X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9bfe901c33190b9726bddabf8f192ad0c3a25500..74ffbcb6bf2b471ef16c485830a3084978fa29f7:/src/options.c diff --git a/src/options.c b/src/options.c index f1240766..b951c5d6 100644 --- a/src/options.c +++ b/src/options.c @@ -27,10 +27,11 @@ #include "gram.h" #include "symtab.h" #include "lex.h" +#include "output.h" #include "options.h" /* Shorts options. */ -const char *shortopts = "yvgdhrltknVo:b:p:S:"; +const char *shortopts = "yvegdhrltknVo:b:p:S:"; /* Long options. */ struct option *longopts = NULL; @@ -50,6 +51,7 @@ const struct option_table_struct option_table[] = /* Parser. */ /* was 'a'; apparently unused -wjh */ {opt_cmd_line, "name-prefix", required_argument, 0, 0, 'p'}, + {opt_cmd_line, "include", required_argument, 0, 0, 'I'}, /* Output. */ {opt_cmd_line, "file-prefix", required_argument, 0, 0, 'b'}, @@ -80,6 +82,7 @@ const struct option_table_struct option_table[] = {opt_percent, "nonassoc", 0, NULL, tok_nonassoc, 0}, {opt_percent, "binary", 0, NULL, tok_nonassoc, 0}, {opt_percent, "prec", 0, NULL, tok_prec, 0}, + {opt_percent, "error-verbose", 0, &error_verbose, tok_intopt, 0}, /* FIXME: semantic parsers will output an `include' of an output file: be sure that the naem included is indeed the name of @@ -102,8 +105,8 @@ const struct option_table_struct option_table[] = the same, the char `-'. */ /* Output. */ - {opt_both, "defines", optional_argument, &defines_flag, tok_intopt, 'd'}, - {opt_both, "verbose", no_argument, &verbose_flag, tok_intopt, 'v'}, + {opt_both, "defines", optional_argument, &defines_flag, tok_intopt, 'd'}, + {opt_both, "verbose", no_argument, &verbose_flag, tok_intopt, 'v'}, /* Operation modes. */ {opt_both, "fixed-output-files", no_argument, &yacc_flag, tok_intopt, 'y'},