# HG changeset patch # User Matti Hamalainen # Date 1206973905 -10800 # Node ID fa676e489b645694c526a585e8f1cb403094e258 # Parent 35444232ac7ed2ddbb4d1b9c9f13cd030a299dae# Parent 7df56e5ec76b1ba4cef4b7ba0503b90c814237f7 Automated merge with ssh://hg.atheme.org//hg/audacious diff -r 35444232ac7e -r fa676e489b64 HACKING --- a/HACKING Mon Mar 31 17:31:38 2008 +0300 +++ b/HACKING Mon Mar 31 17:31:45 2008 +0300 @@ -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. @@ -86,7 +88,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: @@ -96,10 +99,16 @@ - Blocks: - while (...) { - do_something(...) + while (...) + { + do_something(...); } - if (...) { - } else { + if (...) + { + do_stuff(); } + else + { + do_other_stuff(); + }