mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 00:03:03 +00:00
* src/bison.simple: Define type yystype instead of YYSTYPE, and
define CPP macro, which substitute YYSTYPE by yystype. * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do with yyltype/YYLTYPE. This allows inclusion of the generated header within the parser if the compiler, such as GGC, accepts multiple equivalent #defines. From Akim.
This commit is contained in:
@@ -117,7 +117,8 @@
|
||||
|
||||
#line %%input_line "%%filename"
|
||||
#ifndef YYSTYPE
|
||||
typedef %%stype YYSTYPE;
|
||||
typedef %%stype yystype;
|
||||
# define YYSTYPE yystype
|
||||
#endif
|
||||
|
||||
#ifndef YYLTYPE
|
||||
|
||||
Reference in New Issue
Block a user