ports/devel/bison2/files/patch-reader.c
David E. O'Brien fd710dff4a This PORTEPOCH for life crap is stupid.
Back out the downgrade, I would have never agreed to it if I had know...
This leaves a window of downgradededness 18 hours -- people can just live
with that.
2001-12-11 01:58:33 +00:00

23 lines
779 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- src/reader.c.orig Sun Sep 23 02:10:06 2001
+++ src/reader.c Sun Sep 23 02:08:08 2001
@@ -65,6 +65,8 @@
static bucket *errtoken;
static bucket *undeftoken;
+
+extern int broken_undeftoken_init;
/*===================\
@@ -1959,7 +1961,10 @@
It is always token number 2. */
undeftoken = getsym ("$undefined.");
undeftoken->class = token_sym;
- undeftoken->user_token_number = 2;
+ /* XXX ``broken_undeftoken_init'' makes Bison 1.29 bug-compatable
+ with Bison 1.25. FreeBSD depends on this behavior when compiling
+ EGCS-1.1.2's cc1plus. */
+ undeftoken->user_token_number = broken_undeftoken_init ? 0 : 2;
/* Read the declaration section. Copy %{ ... %} groups to
TABLE_OBSTACK and FDEFINES file. Also notice any %token, %left,