mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 09:13:04 +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:
@@ -21,7 +21,7 @@
|
||||
#ifndef OPTIONS_H_
|
||||
# define OPTIONS_H_
|
||||
|
||||
/* opt_access_t and struct option_table_struct need to be declare
|
||||
/* opt_access_t and struct option_table_struct need to be declare
|
||||
here, for the parse_percent_token function in lex.c. */
|
||||
|
||||
/* Option accessibility. */
|
||||
@@ -43,7 +43,7 @@ struct option_table_struct
|
||||
/* Use for command line. */
|
||||
int has_arg;
|
||||
/* A set_flag value causes the named flag to be set. */
|
||||
int *set_flag;
|
||||
void *set_flag;
|
||||
/* A retval action returns the code. */
|
||||
int ret_val;
|
||||
/* The short option value, frequently a letter. */
|
||||
|
||||
Reference in New Issue
Block a user