bug-bison
[Top][All Lists]
Advanced

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

Re: glr.c YYFPUTC and YYFPUTS macros


From: Paul Eggert
Subject: Re: glr.c YYFPUTC and YYFPUTS macros
Date: Tue, 04 Oct 2005 23:54:15 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

address@hidden writes:

> On Tue, October 4, 2005 11:08 pm, Paul Eggert said:
>> Are you worried about programs that redefine the printf function, but
>> do not redefine putc/puts?
> yes.
>>  Do you know of programs that do that?
>> I would think that would be quite rare.
> true, but possible.

I've never or heard of such a thing; I don't think we need to worry
about it.

> it is a style issue. also generated parsers
> now have additional external linkage to
> puts+putc next to printf, right?
> older generated parsers only linked to printf.

Not true.  GCC optimizes printf calls into fwrite etc. calls, when GCC
can determine that the format string doesn't contain any % specifiers.
So older generated parsers already linked to functions other than
printf.

But anyway, I'm tired about arguing about style issues so I undid
the change.




reply via email to

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