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: Joaquim Carvalho <jdc_at_x64.com>
Date: 22 Feb 2003 02:46:55 +0000
On Fri, 2003-02-21 at 22:36, TP Diffenbach wrote:
> // 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>:
> > ---quote---
> > 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)
> > ---unquote---
> > 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
> > just
> > #ifdef around it. This also allows me to find the sections I
> > have
> > commented out quickly. I hunt for the common string I use (ROB :)
> > ) and
> > don't have to worry about missing a comment.
> > /Adi
> > +-- --- --- --- --- --- --- --- --- --- --- --- --- --+
> > | 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
Received on 2003-02-22