Rockbox mail archiveSubject: Re: Recorder experimental new UI, Sound Sliders and larger Tetris source code
Re: Recorder experimental new UI, Sound Sliders and larger Tetris source code
From: TP Diffenbach <rockbox_at_diffenbach.org>
Date: Fri, 21 Feb 2003 17:36:54 -0500
// style comments are not only a C++ism, they're also allowed in Standard C as specified in the C99 Standard.
C99 also brings in some other goodies, such as inline, bool, for loop initilaizers, better varargs support, declarations mixed with code, and other useful things some of which are (inconsistently) used in existing Rockbox code.
Of course, I don't know how well gcc supports C99. But adopting this the C99 Standard might well make /de jure/ constructs that are laready /de facto/ in Rockbox.
Quoting Robert Hak <rhak_at_ramapo.edu>:
> p.s. What's the reason for you not wanting the // comments?
> Are there any alternatives? (I like to have comments in my
> code, I also like to be able to comment-out a block of code
> without having to edit all the comment lines inside it)
> Well // is generally accepted as a C++ism (and as such is not
> something we
> want as stated in the contributing docs).
> What I tend to do to comment out a large block for testing is to
> #ifdef around it. This also allows me to find the sections I
> commented out quickly. I hunt for the common string I use (ROB :)
> ) and
> don't have to worry about missing a comment.
> +-- --- --- --- --- --- --- --- --- --- --- --- --- --+
> | Robert E. Hak < http://phobos.ramapo.edu/~rhak > |
> "Are you pondering what I am pondering Pinky?"
> "I think so Brain, but you wear the pink tutu this time."
> - Pinky and the Brain
-- Archos FM needs a Rockbox!Received on 2003-02-21