[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
yacc.c does not prototype yyparse in the header
From: |
Akim Demaille |
Subject: |
yacc.c does not prototype yyparse in the header |
Date: |
Mon, 11 Jun 2012 10:54:51 +0200 |
Hi all,
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. I see
nothing in the documentation of Yacc that prevents this,
and surely this is troublesome for many uses.
I don't think there are problems here. I guess we only have
to pay attention to handle %prefix via M4, and not via CPP,
to avoid having
#define yyparse fooparse
leak from the header (yet we could also #define it first,
then undefine at the end, in case one would like to use the
name "yyparse" in whatever export %code snippet; but do we
really need to cover this? The less CPP, the better).
Am I missing something?
- bison-2.5.1 released [stable], Akim Demaille, 2012/06/05
- Re: bison-2.5.1 released [stable], Richard Stallman, 2012/06/05
- Message not available
- Message not available
- Message not available
- yacc.c does not prototype yyparse in the header,
Akim Demaille <=
- Re: yacc.c does not prototype yyparse in the header, Paul Eggert, 2012/06/11
- Re: yacc.c does not prototype yyparse in the header, Akim Demaille, 2012/06/12
- Re: yacc.c does not prototype yyparse in the header, Paul Eggert, 2012/06/12
- Re: yacc.c does not prototype yyparse in the header, Akim Demaille, 2012/06/13
- Re: yacc.c does not prototype yyparse in the header, Paul Eggert, 2012/06/13
- Re: yacc.c does not prototype yyparse in the header, Akim Demaille, 2012/06/28
- Re: yacc.c does not prototype yyparse in the header, Akim Demaille, 2012/06/29
- FYI: glr.c: minor refactoring (was: yacc.c does not prototype yyparse in the header), Akim Demaille, 2012/06/12
- FYI: skeletons: factor yacc.c and glr.c (was: yacc.c does not prototype yyparse in the header), Akim Demaille, 2012/06/12
- RFC: yacc.c: factor (was: yacc.c does not prototype yyparse in the header), Akim Demaille, 2012/06/12