From 8e757340834bb7e377affa50bfba809e967bcbaa Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 6 Sep 2007 11:08:23 +0000 Subject: mention the brace placement for functions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14627 a1c6a512-1295-4272-9138-f99709370657 --- docs/CONTRIBUTING | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/CONTRIBUTING') diff --git a/docs/CONTRIBUTING b/docs/CONTRIBUTING index 1bd055860b..d36e359719 100644 --- a/docs/CONTRIBUTING +++ b/docs/CONTRIBUTING @@ -44,6 +44,13 @@ When changing code, follow the code style of the file you are editing. When writing new files, you may use the brace placement style of your choice. +Braces for function declarations are put in a new line under the name, as in: + + int foo(char *name) + { + return FOO_NAME: + } + Always indent your code with four spaces. Don't use TAB characters, as that will mess up code display in CVS, printing, and a zillion other places. -- cgit v1.2.3