[BusyBox] Clean up
Mike Frysinger
vapier at gentoo.org
Wed Jul 27 02:00:51 UTC 2005
On Tuesday 26 July 2005 09:46 pm, Rob Landley wrote:
> On Tuesday 26 July 2005 09:09, Jason Schoon wrote:
> > That was basically my original idea, but Rob pointed out that
> > multiline blocks are really messy in that scenario.
> >
> > I think from a preprocessor and compiler standpoint it is all cool,
> > but you will make some people scratch their heads the first time they
> > see:
> >
> > CLEAN_UP({free(foo); close(sockfd)});
> >
> > Curly braces inside of parens just isn't something you generally see.
>
> Actually the thing you can't get away with is _semicolons_, which normal C
> doesn't have inside of parentheses.
normally no, but if you make the CLEAN_UP magical enough, the code will
compile just fine ...
> These are normal C: understandable by anybody who knows the language:
that just leaves us with the fact that at first glance the following looks
really really funny:
> CLEAN_UP(
> thing(a);
> thing(b);
> thing(c);
> )
-mike
More information about the busybox
mailing list