X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/82b6d266fdd393132bf7073acaea31f4f624b223..c47dc59adc0864783aedce4c60a35016716aef98:/src/options.h diff --git a/src/options.h b/src/options.h index c509580f..27530102 100644 --- a/src/options.h +++ b/src/options.h @@ -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. */ @@ -51,12 +51,11 @@ struct option_table_struct }; extern const char *shortopts; -extern struct option *longopts; /* Table which contain all options. */ extern const struct option_table_struct option_table[]; /* Set the longopts variable from option_table. */ -void create_long_option_table PARAMS (()); +struct option *long_option_table_new PARAMS ((void)); #endif /* !OPTIONS_H_ */