mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 14:53:03 +00:00
* src/options.h (struct option_table_struct): set_flags is void*.
* src/options.c (longopts): Support `--output' and `%output'. (usage): Adjust. * src/lex.h (tok_setopt): Remove, replaced with... (tok_intopt, tok_stropt): these new guys. * src/lex.c (getopt.h): Not needed. (token_buffer, unlexed_token_buffer): Not const. (percent_table): Promote `-' over `_' in directive names. Active `%name-prefix', `file-prefix', and `output'. (parse_percent_token): Accept possible arguments to directives. Promote `-' over `_' in directive names.
This commit is contained in:
14
src/reader.c
14
src/reader.c
@@ -962,16 +962,13 @@ parse_skel_decl (void)
|
||||
static void
|
||||
read_declarations (void)
|
||||
{
|
||||
int c;
|
||||
int tok;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
c = skip_white_space ();
|
||||
int c = skip_white_space ();
|
||||
|
||||
if (c == '%')
|
||||
{
|
||||
tok = parse_percent_token ();
|
||||
token_t tok = parse_percent_token ();
|
||||
|
||||
switch (tok)
|
||||
{
|
||||
@@ -1033,6 +1030,13 @@ read_declarations (void)
|
||||
case tok_noop:
|
||||
break;
|
||||
|
||||
case tok_stropt:
|
||||
case tok_intopt:
|
||||
case tok_obsolete:
|
||||
case tok_illegal:
|
||||
abort ();
|
||||
break;
|
||||
|
||||
default:
|
||||
complain (_("unrecognized: %s"), token_buffer);
|
||||
skip_to_char ('%');
|
||||
|
||||
Reference in New Issue
Block a user