mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
(b4_token_defines): Protect against double-inclusion
by wrapping enum yytokentype's definition inside #ifndef YYTOKENTYPE. This undoes a bug I introduced on 2002-10-12.
This commit is contained in:
@@ -107,7 +107,8 @@ m4_define([b4_token_enum],
|
|||||||
m4_define([b4_token_defines],
|
m4_define([b4_token_defines],
|
||||||
[m4_if([$@], [[]], [],
|
[m4_if([$@], [[]], [],
|
||||||
[/* Tokens. */
|
[/* Tokens. */
|
||||||
#if defined (__STDC__) || defined (__cplusplus)
|
#ifndef YYTOKENTYPE
|
||||||
|
# define YYTOKENTYPE
|
||||||
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
||||||
know about them. */
|
know about them. */
|
||||||
enum yytokentype {
|
enum yytokentype {
|
||||||
|
|||||||
Reference in New Issue
Block a user