* src/lex.c (parse_percent_token): Fix.
+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.
2001-09-20 Pascal Bart <pascal.bart@epita.fr>
* src/options.c (symtab.h): Include it, need by lex.h.
obstack_1grow (&token_obstack, '%');
while (isalpha (c) || c == '_' || c == '-')
{
obstack_1grow (&token_obstack, '%');
while (isalpha (c) || c == '_' || c == '-')
{
- if (c == '-')
- c = '_';
+ if (c == '_')
+ c = '-';
obstack_1grow (&token_obstack, c);
c = getc (finput);
}
obstack_1grow (&token_obstack, c);
c = getc (finput);
}
{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_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, "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.
/*
* Percent and command line declarations.