[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bison-1.33: NULL undefined

From: Andreas Schwab
Subject: Bison-1.33: NULL undefined
Date: Wed, 13 Feb 2002 18:09:30 +0100
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux)

bison --debug writes NULL at a place where it might not be defined yet.


2002-02-13  Andreas Schwab  <address@hidden>

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

--- src/output.c
+++ src/output.c
@@ -452,7 +452,7 @@
       j += strsize;
   /* add a NULL entry to list of tokens */
-  obstack_sgrow (&table_obstack, "NULL\n};\n");
+  obstack_sgrow (&table_obstack, "0\n};\n");
   if (!token_table_flag && !no_parser_flag)
     obstack_sgrow (&table_obstack, "#endif\n\n");

Andreas Schwab, SuSE Labs, address@hidden
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 N├╝rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]