mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 14:53:03 +00:00
* src/reader.c (parse_include_decl): New, Not yet implemented.
(read_declarations): Add case tok_include. * src/getargs.h (include): Add its extern definition. * src/getargs.c (include): New const char *. (getargs): Add case '-I'. * src/options.c (option_table): Add include as command line and percent option. * src/lex.h (token_t): Add tok_include.
This commit is contained in:
@@ -39,6 +39,7 @@ int graph_flag = 0;
|
||||
int trace_flag = 0;
|
||||
|
||||
const char *skeleton = NULL;
|
||||
const char *include = NULL;
|
||||
|
||||
extern char *program_name;
|
||||
|
||||
@@ -168,6 +169,10 @@ getargs (int argc, char *argv[])
|
||||
skeleton = optarg;
|
||||
break;
|
||||
|
||||
case 'I':
|
||||
include = optarg;
|
||||
break;
|
||||
|
||||
case 'd':
|
||||
/* Here, the -d and --defines options are differentiated. */
|
||||
defines_flag = 1;
|
||||
|
||||
Reference in New Issue
Block a user