putc broken

Nick Burrett nick at dsvr.net
Sat Jan 12 08:33:28 PST 2002


Peter Naulls <peter at chocky.org> writes:

> In message <m3u1tr3705.fsf at nick.ws.noc.dsvr.net>
>           Nick Burrett <nick at dsvr.net> wrote:
> 
> > <pedant>
> > This is a bad example. Using pre/post decrement/increment operations
> > in function calls causes undefined behaviour because it is not clear
> > whether the operation should be performed after the function call or
> > before `foo'.
> > </pedant>
> > 
> > Pedantry aside, I've committed a fix for this.
> 
> <pedant>
> You fixed the wrong one!
> </pedant>
> 
> :-)
> 
> As Ian pointed out, I named the wrong macro in the body of my message.
> The putchar macro was fine; it's putc which must go.

OK. I've removed the putc macro.

But I'm still dropping putchar, since it is useless as a macro.
 
Nick.



More information about the gcc mailing list