skeletons: use header guards.

* data/glr.c, data/glr.cc, data/yacc.c: here.
* NEWS: Document it.
This commit is contained in:
Akim Demaille
2012-06-15 14:21:16 +02:00
parent 6aef2e01a4
commit c3e9f08f93
4 changed files with 69 additions and 51 deletions

15
NEWS
View File

@@ -8,14 +8,23 @@ GNU Bison NEWS
and remove the definition of yystype (removal announced since Bison
1.875).
** Changes in regular C parsers (yacc.c):
*** The generated header is included
** The generated header is included (yacc.c)
Instead of duplicating the content of the generated header (definition of
YYSTYPE, yyltype etc.), the generated parser now includes it, as was
already the case for GLR or C++ parsers.
** Header guards (yacc.c, glr.c, glr.cc)
The generated headers are now guarded, as is already the case for C++
parsers (lalr1.cc). For intance, with --defines=foo.h:
#ifndef YY_FOO_H
# define YY_FOO_H
...
#endif /* !YY_FOO_H */
* Noteworthy changes in release 2.5.1 (2012-06-05) [stable]
** Future changes: