#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. */
/* 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. */
};
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_ */