* src/output.c (output_rule_data): Don't output NULL, it might

not be defined yet.
This commit is contained in:
Akim Demaille
2002-02-13 18:35:03 +00:00
parent bd16a5dcf5
commit 4bda3f10ca
3 changed files with 9 additions and 2 deletions
+5
View File
@@ -1,3 +1,8 @@
2002-02-13 Andreas Schwab <[email protected]>
* src/output.c (output_rule_data): Don't output NULL, it might
not be defined yet.
2002-02-11 Robert Anisko <[email protected]>
* data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
+1
View File
@@ -5,6 +5,7 @@ Airy Andre [email protected]
Akim Demaille [email protected]
Albert Chin-A-Young [email protected]
Alexander Belopolsky [email protected]
Andreas Schwab [email protected]
Arnold Robbins [email protected]
Cris van Pelt [email protected]
Daniel Hagerty [email protected]
+3 -2
View File
@@ -275,8 +275,9 @@ output_rule_data (void)
obstack_sgrow (&format_obstack, ", ");
j += strsize;
}
/* add a NULL entry to list of tokens */
obstack_sgrow (&format_obstack, "NULL");
/* Add a NULL entry to list of tokens (well, 0, as NULL might not be
defined). */
obstack_sgrow (&format_obstack, "0");
/* Finish table and store. */
obstack_1grow (&format_obstack, 0);