# HG changeset patch # User William Pitcock # Date 1206973965 18000 # Node ID f922499e69bcecc16f5b5113a00587878c41f0e7 # Parent 2c3390afe10e00c64d647f864553ce7109c1a389 Fix typos, etc. diff -r 2c3390afe10e -r f922499e69bc HACKING --- a/HACKING Mon Mar 31 17:21:21 2008 +0300 +++ b/HACKING Mon Mar 31 09:32:45 2008 -0500 @@ -1,11 +1,13 @@ Hacking / coding guide for Audacious and Audacious-plugins ========================================================== (C) Copyright 2008 Audacious Development Team -Written by Matti 'ccr' Hämäläinen +Written by Matti 'ccr' Hämäläinen , and mercilessly +edited by others. -Premeable -========= +Preamble +======== + This document describes the guidelines for people who wish to work on improving or cleaning up Audacious media player, or any of the plugins we distribute in the plugins package. @@ -78,7 +80,8 @@ - Indentation: Use the same indentation style (also spaces vs. tabs) as the file you are editing. In new files/code, use indentation of - 4 spaces (no tabs). + 4 spaces (no tabs). When moving functions to new files, PLEASE + reindent the code. - Whitespace usage in code: @@ -88,10 +91,16 @@ - Blocks: - while (...) { - do_something(...) + while (...) + { + do_something(...); } - if (...) { - } else { + if (...) + { + do_stuff(); } + else + { + do_other_stuff(); + }