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



Rockbox mail archive

Subject: 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>:

>
> ---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
>
>
>


-- 
Archos FM needs a Rockbox!
Received on 2003-02-21

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy