bug-bison
[Top][All Lists]
Advanced

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

Re: yacc.c does not prototype yyparse in the header


From: Paul Eggert
Subject: Re: yacc.c does not prototype yyparse in the header
Date: Mon, 11 Jun 2012 02:29:45 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

On 06/11/2012 01:54 AM, Akim Demaille wrote:
> Bruce Korb just pointed out to me that Bison 2.5.1 does
> not prototype yyparse in the generated header, with yacc.c.
> The other skeletons do.  I don't understand why.

This is for historical reasons, as Bison
historically generated parsers that compiled with
traditional C compilers that did not support prototypes.
Nowadays that is no longer a concern, and yyparse can
use prototypes unconditionally.

> I guess we only have
> to pay attention to handle %prefix via M4, and not via CPP

I would think so, yes.



reply via email to

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