This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ANSIfy cp/parser.c


Zack wrote:
>Nathanael Nerode <neroden@twcny.rr.com> writes:
>
>> Bootstrapped on i686-pc-linux-gnu.  OK to commit?
>>
>> I'm doing these one file at a time because they're *huge* (and because I 
>> have to do most of it by hand).  I'm asking
>> for approval because the ANSIfication of the function defintions (the
>> way formal parameters are specified) doesn't appear to fall under the
>> 'obvious' rule.  If someone says it does, I'll start putting these in
>> as soon as they bootstrap. :-)
>
>I have ambitions of applying the new parser to C as well as C++;
>therefore I would appreciate this *not* being applied, unless we are
>going to reexamine the requirement for K+R C in the C front end.
>
>zw

First of all, we clearly *are* going to reexamine it.  It only exists 
because HP still ships a K&R compiler by default with HPUX; this has to 
end or become irrelevant sometime.

Second, the new parser code is already loaded with ANSI-isms.  By 
normalizing style, I believe this would actually make it easier to 
de-ANSIfy it later using an automated tool.

--Nathanael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]