* 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

@@ -974,6 +974,16 @@ parse_skel_decl (void)
/* Complete with parse_dquoted_param () on the CVS branch 1.29. */
}
/*---------------------------------------.
| Parse what comes after %skeleton_path. |
`---------------------------------------*/
void
parse_include_decl (void)
{
/* Complete with parse_dquoted_param () on the CVS branch 1.29. */
}
/*----------------------------------------------------------------.
| Read from finput until `%%' is seen. Discard the `%%'. Handle |
| any `%' declarations, and copy the contents of any `%{ ... %}' |
@@ -1048,6 +1058,10 @@ read_declarations (void)
parse_skel_decl ();
break;
case tok_include:
parse_include_decl ();
break;
case tok_noop:
break;