Allow separate single character and long options.

Avoid overflow of options buffer.
Provide examples of sim-options use.
This commit is contained in:
Andrew Cagney 1997-11-06 05:00:09 +00:00
parent 070937ba64
commit 864519b9fd
1 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,20 @@
Thu Nov 6 12:06:46 1997 Andrew Cagney <cagney@b1.cygnus.com>
* sim-options.c (STANDARD_OPTIONS): Change OPTION_* to an enum.
(standard_option_handler): Update.
* sim-options.h: Clarify documentation.
(OPTION_LONG_ONLY_P): Delete definition.
(OPTION_VALID_P): Define.
* sim-options.c (sim_print_help): Allow short only options.
(sim_parse_args): Ditto.
(sim_args_command): Skip short only options.
(sim_parse_args): Allocate space for NUM_OPTS not just 256. Make
separate entries for short and long options in the HANDLERS and
ORIG_VAL tables.
(sim_parse_args): Disable argument permutation.
Wed Nov 5 13:40:31 1997 Andrew Cagney <cagney@b1.cygnus.com>
* sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N):