gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patches #219 - #224


From: Pavel Machek
Subject: Re: Patches #219 - #224
Date: Mon, 8 Apr 2002 01:46:10 +0000

Hi!

>  > #224:
>  > +#    define dump while(0)
>  > +#    define dprintf while(0)
>  >
>  > Are you sure that syntax is correct?
> 
> According to me and a co-worker that used to be in compiler design, yes it
> is.
> 
> What happens:
>     dprintf( "some format string: %s %d\n", s, n );
> gets translated to:
>     while(0);

AFAICS it will translate to

while(0)( "some format string" );

That can't be right...
                                                                Pavel

-- 
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]