mixing preprocessor directives and C constructs ... ick.
Robert P. J. Day
rpjday at mindspring.com
Mon Mar 6 17:19:21 UTC 2006
On Mon, 6 Mar 2006, Rob Landley wrote:
> On Monday 06 March 2006 9:18 am, Robert P. J. Day wrote:
> > i'm aware that what follows is technically correct but it creeps me
> > out just a little.
> >
> > in fdisk.c, we see preprocessor directives sneaking into C
> > conditional constructs:
> >
> > sgi_other_endian = (BYTE_ORDER == LITTLE_ENDIAN);
>
> Did you follow the whole conversation about dead code elimination?
> We _want_ this sort of thing. (Although the current fdisk.c is
> unlikely to be a good example.)
i'm guessing i didn't. i'll go back thru the archives.
rday
More information about the busybox
mailing list