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

Rockbox mail archive

Subject: Re: Coding conventions

Re: Coding conventions

From: Robert Hak <>
Date: Thu, 29 Aug 2002 09:14:07 -0400 (EDT)

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 :
Received on 2002-08-29

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy