|
Rockbox mail archiveSubject: Re: Coding conventionsRe: Coding conventions
From: Robert Hak <rhak_at_ramapo.edu>
Date: Thu, 29 Aug 2002 09:14:07 -0400 (EDT) Directly from the Contributing file: http://rockbox.haxx.se/docs/contributing.html "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." If your format has been changed, you can check with the Code Police ;) (aka: Zagor :) ) Hope that helps.. /Adi 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) { i++; } But I notice that code I supplied was altered -> someone doesn't seem to like single lines in braces. Phil ===+===+===+===+===+===+===+===+===+===+===+=== Robert E. Hak http://phobos.ramapo.edu/~rhak Rockbox: The Archos Firmware Replacement! FAQ: http://rockbox.haxx.se/docs/FAQ ===+===+===+===+===+===+===+===+===+===+===+=== "God is obsolete." - !!!SRINI : http://www.unamerican.com Received on 2002-08-29 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |