diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2001-09-23 00:21:23 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-09-23 00:21:23 +0000 |
commit | 74894ed54d114f8e046e460c8dca6d2c40eb86ee (patch) | |
tree | 13baccf36ea5dce162aeabf9fbe76d9581a44f9e /devel/bison20/files/patch-reader.c | |
parent | Update to version 4.58.1 (diff) |
Update to 1.29
* Added `-g' and `--graph'.
* Added `--locations' and `%locations'.
* Added `-S' and `--skeleton'.
* `%raw', `-r', `--raw' is disabled.
* Special characters are escaped when output. This solves the problems
* New directives.
`%yacc', `%fixed_output_files', `%defines', `%no_parser', `%verbose',
`%debug', `%source_extension' and `%header_extension'.
* The input and the output files has automatically a similar extension.
Submitted by: demon
Diffstat (limited to 'devel/bison20/files/patch-reader.c')
-rw-r--r-- | devel/bison20/files/patch-reader.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/devel/bison20/files/patch-reader.c b/devel/bison20/files/patch-reader.c index 29e1146a7e1d..4e0460a0ebe5 100644 --- a/devel/bison20/files/patch-reader.c +++ b/devel/bison20/files/patch-reader.c @@ -1,22 +1,23 @@ ---- src/reader.c.orig Mon Jun 14 15:19:05 1999 -+++ src/reader.c Mon Jan 17 03:38:56 2000 -@@ -44,6 +44,7 @@ - int rline_allocated; +--- 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 @@ - extern char *program_name; + static bucket *errtoken; + static bucket *undeftoken; ++ +extern int broken_undeftoken_init; - extern int definesflag; - extern int nolinesflag; - extern int noparserflag; -@@ -199,7 +200,10 @@ - /* it is always token number 2. */ - undeftoken = getsym("$undefined."); - undeftoken->class = STOKEN; + + + /*===================\ +@@ -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.28 bug-compatable ++ /* 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 ftable and fdefines file. - Also notice any %token, %left, etc. found there. */ - if (noparserflag) + + /* Read the declaration section. Copy %{ ... %} groups to + TABLE_OBSTACK and FDEFINES file. Also notice any %token, %left, |