* src/options.c (option_table): Adjust.

* src/lex.c (parse_percent_token): Fix.
This commit is contained in:
Marc Autret
2001-09-21 15:42:26 +00:00
parent 31b53af2fa
commit 6bc35ae56a
3 changed files with 11 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
2001-09-21 Marc Autret <autret_m@epita.fr>
* src/options.c (option_table): Adjust.
* src/lex.c (parse_percent_token): Fix.
2001-09-20 Pascal Bart <pascal.bart@epita.fr>
* src/options.c (symtab.h): Include it, need by lex.h.

View File

@@ -569,8 +569,8 @@ parse_percent_token (void)
obstack_1grow (&token_obstack, '%');
while (isalpha (c) || c == '_' || c == '-')
{
if (c == '-')
c = '_';
if (c == '_')
c = '-';
obstack_1grow (&token_obstack, c);
c = getc (finput);
}

View File

@@ -86,11 +86,11 @@ const struct option_table_struct option_table[] =
{opt_both, "file-prefix", required_argument,&spec_file_prefix,tok_setopt,'b'},
{opt_both, "name-prefix", required_argument,&spec_name_prefix,tok_setopt,'p'},
#endif
{opt_percent, "header_extension", 0, NULL, tok_hdrext, 0},
{opt_percent, "source_extension", 0, NULL, tok_srcext, 0},
{opt_percent, "header-extension", 0, NULL, tok_hdrext, 0},
{opt_percent, "source-extension", 0, NULL, tok_srcext, 0},
{opt_percent, "define", 0, NULL, tok_define, 0},
{opt_percent, "semantic_parser", 0, &semantic_parser, tok_noop, 0},
{opt_percent, "pure_parser", 0, &pure_parser, tok_noop, 0},
{opt_percent, "semantic-parser", 0, &semantic_parser, tok_noop, 0},
{opt_percent, "pure-parser", 0, &pure_parser, tok_noop, 0},
/*
* Percent and command line declarations.