* 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

View File

@@ -1,3 +1,8 @@
2002-02-13 Andreas Schwab <schwab@suse.de>
* src/output.c (output_rule_data): Don't output NULL, it might
not be defined yet.
2002-02-11 Robert Anisko <robert@lrde.epita.fr> 2002-02-11 Robert Anisko <robert@lrde.epita.fr>
* data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue. * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.

1
THANKS
View File

@@ -5,6 +5,7 @@ Airy Andre Airy.Andre@edf.fr
Akim Demaille akim@freefriends.org Akim Demaille akim@freefriends.org
Albert Chin-A-Young china@thewrittenword.com Albert Chin-A-Young china@thewrittenword.com
Alexander Belopolsky alexb@rentec.com Alexander Belopolsky alexb@rentec.com
Andreas Schwab schwab@suse.de
Arnold Robbins arnold@skeeve.com Arnold Robbins arnold@skeeve.com
Cris van Pelt cris@amf03054.office.wxs.nl Cris van Pelt cris@amf03054.office.wxs.nl
Daniel Hagerty hag@gnu.org Daniel Hagerty hag@gnu.org

View File

@@ -275,8 +275,9 @@ output_rule_data (void)
obstack_sgrow (&format_obstack, ", "); obstack_sgrow (&format_obstack, ", ");
j += strsize; j += strsize;
} }
/* add a NULL entry to list of tokens */ /* Add a NULL entry to list of tokens (well, 0, as NULL might not be
obstack_sgrow (&format_obstack, "NULL"); defined). */
obstack_sgrow (&format_obstack, "0");
/* Finish table and store. */ /* Finish table and store. */
obstack_1grow (&format_obstack, 0); obstack_1grow (&format_obstack, 0);