Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Coding conventions
From: perterm (perterm_at_vce.de)
Date: 2002-08-29


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) {
     i++;
}

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

Phil



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