]> git.saurik.com Git - bison.git/commitdiff
(b4_token_enum): Do not define YYTOKENTYPE.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Oct 2002 23:18:52 +0000 (23:18 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Oct 2002 23:18:52 +0000 (23:18 +0000)
data/c.m4

index 1eca2e92b91a2046003a44af306ecd9d9685e164..21145a175fbe918e6805a9214fbfa3fe8fb0161d 100644 (file)
--- a/data/c.m4
+++ b/data/c.m4
@@ -107,8 +107,7 @@ m4_define([b4_token_enum],
 m4_define([b4_token_defines],
 [m4_if([$@], [[]], [],
 [/* Tokens.  */
-#ifndef YYTOKENTYPE
-# if defined (__STDC__) || defined (__cplusplus)
+#if defined (__STDC__) || defined (__cplusplus)
    /* Put the tokens into the symbol table, so that GDB and other debuggers
       know about them.  */
    enum yytokentype {
@@ -116,10 +115,7 @@ m4_map_sep([     b4_token_enum], [,
 ],
            [$@])
    };
-# endif
-  /* POSIX requires `int' for tokens in interfaces.  */
-# define YYTOKENTYPE int
-#endif /* !YYTOKENTYPE */
+#endif
 m4_map([b4_token_define], [$@])
 ])
 ])