* 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:
Marc Autret
2001-11-26 21:06:22 +00:00
parent a220f55509
commit f6bd542788
6 changed files with 36 additions and 3 deletions

View File

@@ -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;