From 864519b9fdc3e1a14cbff8af20d7055f617233cd Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 6 Nov 1997 05:00:09 +0000 Subject: [PATCH] Allow separate single character and long options. Avoid overflow of options buffer. Provide examples of sim-options use. --- sim/common/ChangeLog | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index a75e522d1ab..ddb182a3453 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,20 @@ +Thu Nov 6 12:06:46 1997 Andrew Cagney + + * 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 * sim-core.h (DECLARE_SIM_CORE_WRITE_N. DECLARE_SIM_CORE_READ_N): -- 2.30.2