X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/900c5db5379673765a18c6746fd9139a278cc9a9..b25d88f6d2e2f4b59927aacecdc0a9e44a34b5d9:/src/getargs.c diff --git a/src/getargs.c b/src/getargs.c index 061ec7f9..92e9ef4e 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -24,6 +24,7 @@ #include "argmatch.h" #include "error.h" #include "complain.h" +#include "struniq.h" #include "getargs.h" #include "files.h" @@ -283,18 +284,6 @@ static struct option const long_options[] = /* Hidden. */ { "trace", optional_argument, 0, 'T' }, - /* FIXME: semantic parsers will output an `include' of an - output file: be sure that the naem included is indeed the name of - the output file. */ /* FIXME Should we activate this options ? - */ - { "output", required_argument, 0, 'o' }, - { "file-prefix", required_argument, 0, 'b' }, - { "name-prefix", required_argument, 0, 'p' }, - - /* - * Percent and command line declarations. - */ - /* Output. */ { "defines", optional_argument, 0, 'd' }, @@ -419,5 +408,5 @@ getargs (int argc, char *argv[]) usage (EXIT_FAILURE); } - infile = xstrdup (argv[optind]); + current_file = grammar_file = struniq_new (argv[optind]); }