[PATCH] documentation fixes and small addition

Rob Landley rob at landley.net
Thu Jul 6 15:54:16 UTC 2006


On Wednesday 05 July 2006 12:27 pm, Denis Vlasenko wrote:
> Hi,
>
> Patch fixes typos in style-guide.txt and adds recommendation
> to use enums for defining int constants.

A) That's Erik's old style guide, not what I actually enforce.  I've been 
considering writing a new (much smaller) one.

B) Programming tips like "static constants might bloat the code, enums won't" 
belong in the programming section of the FAQ.  (I'd like 'em all in one place 
so new guys don't have to learn this stuff piecemeal quite so much.)

C) I'd like to nail down exactly which versions of gcc can optimize out static 
stuff and which can't.  (I've run tests and gotten inconsistent results.  I 
know 3.3 couldn't, but I think 4.0 can.)

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list