ports/devel/bison-devel/files/patch-getargs.c
David E. O'Brien 74894ed54d 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
2001-09-23 00:21:23 +00:00

18 lines
518 B
C

--- src/getargs.c.orig Sun Sep 23 02:08:44 2001
+++ src/getargs.c Sun Sep 23 02:09:27 2001
@@ -35,6 +35,7 @@
int statistics_flag = 0;
int yacc_flag = 0; /* for -y */
int graph_flag = 0;
+int broken_undeftoken_init;
const char *skeleton = NULL;
@@ -42,6 +43,7 @@
const char *shortopts = "yvgdhrltknVo:b:p:S:";
static struct option longopts[] =
{
+ {"broken-undeftoken-init", 0, &broken_undeftoken_init, 1},
/* Operation modes. */
{"help", no_argument, 0, 'h'},
{"version", no_argument, 0, 'V'},