dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Coding conventions
From: Robert Hak (
Date: 2002-08-29

Directly from the Contributing file:

"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

If your format has been changed, you can check with the Code Police ;)

(aka: Zagor :) )

Hope that helps..


On Thu, 29 Aug 2002, perterm wrote:

Robert Hak wrote:
> avoid putting the if clause's on the same
> line:
> if(true) i++;
> should be
> if(true)
> i++;

Does this convention cover how braces should be used, too?
I usually would write

if (true) {

But I notice that code I supplied was altered -> someone doesn't seem to
like single lines in braces.


                    Robert E. Hak

       Rockbox: The Archos Firmware Replacement!

"God is obsolete."
        - !!!SRINI :

Page was last modified "Jan 10 2012" The Rockbox Crew