From 4bda3f10cade960947bfd075a6a9d91e4ef448e6 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 13 Feb 2002 18:35:03 +0000 Subject: [PATCH] * src/output.c (output_rule_data): Don't output NULL, it might not be defined yet. --- ChangeLog | 5 +++++ THANKS | 1 + src/output.c | 5 +++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 64191ce6..32f37fb2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-02-13 Andreas Schwab + + * src/output.c (output_rule_data): Don't output NULL, it might + not be defined yet. + 2002-02-11 Robert Anisko * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue. diff --git a/THANKS b/THANKS index 7f4e262c..d00258b4 100644 --- a/THANKS +++ b/THANKS @@ -5,6 +5,7 @@ Airy Andre Airy.Andre@edf.fr Akim Demaille akim@freefriends.org Albert Chin-A-Young china@thewrittenword.com Alexander Belopolsky alexb@rentec.com +Andreas Schwab schwab@suse.de Arnold Robbins arnold@skeeve.com Cris van Pelt cris@amf03054.office.wxs.nl Daniel Hagerty hag@gnu.org diff --git a/src/output.c b/src/output.c index 702f0cb1..5f5341f7 100644 --- a/src/output.c +++ b/src/output.c @@ -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); -- 2.45.2