api.prefix.
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 26 Jun 2012 08:09:10 +0000 (10:09 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Fri, 29 Jun 2012 15:40:42 +0000 (17:40 +0200)
commit4b3847c3c0e161b85267d077adb256a880c0f3e3
tree65f7d5608bf6fcaba13df94c2a527496f785669d
parent087dcd78685097983821e5d540f9ff3385931833
api.prefix.

* data/c.m4 (b4_api_prefix, b4_api_PREFIX): New.
(b4_prefix, b4_union_name, b4_token_enums, b4_declare_yylstype): Use them.
* data/glr.c, data/yacc.c, data/glr.cc, data/lalr1.cc: Use them to change
the prefix of exported preprocessor symbols.
* src/getargs.c (usage): Ditto.
* tests/headers.at (Several parsers): New.
* tests/local.at (AT_API_PREFIX): New.
AT_YYSTYPE, AT_YYLTYPE): Adjust.
* doc/bison.texi (Multiple Parsers): Move documentation of %name-prefix to...
(Table of Symbols): here.
(Multiple Parsers): Document api.prefix.
(%define Summary): Point to it.
Use @code for variable names.
(Bison Options): -p/--name-prefix are obsoleted.
* NEWS: Announce api.prefix.
NEWS
data/c.m4
data/glr.c
data/glr.cc
data/lalr1.cc
data/yacc.c
doc/bison.texi
src/getargs.c
tests/headers.at
tests/local.at