diff options
author | 2008-03-02 00:35:58 +0000 | |
---|---|---|
committer | 2008-03-02 00:35:58 +0000 | |
commit | 7df031fb4f301ee55a3ca1ad4459a5588bcfd0fa (patch) | |
tree | 9d9aaa4bb791689aa376517c7418a2551a491915 /src/lib/util/options.c | |
parent | 492612b6c9046677abeaf7938619b8f8c4158ee9 (diff) |
Rewrote some potentially compiler specific code:
* added ATTR_FORCE_INLINE to osdcomm.h
* added ATTR_NONNULL
* moved U64 S64 fram mamecore.h to osdcomm.h
* define SETJMP_GNUC_PROTECT() in osdcomm.h for use in ppc602, ppc603
Diffstat (limited to 'src/lib/util/options.c')
-rw-r--r-- | src/lib/util/options.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/util/options.c b/src/lib/util/options.c index bb4f9132c89..c5b6e9cf1e7 100644 --- a/src/lib/util/options.c +++ b/src/lib/util/options.c @@ -647,7 +647,14 @@ void options_output_help(core_options *opts, void (*output)(const char *)) /* otherwise, output entries for all non-deprecated items */ else if ((data->flags & (OPTION_DEPRECATED | OPTION_INTERNAL)) == 0 && data->description != NULL) - output_printf(output, "-%-20s%s\n", astring_c(data->links[0].name), data->description); + { + if (data->flags & OPTION_BOOLEAN) + output_printf(output, "-[no]%-16s%s\n", astring_c(data->links[0].name), data->description); + else if (data->flags & OPTION_COMMAND) + output_printf(output, "-%-20s%s\n", astring_c(data->links[0].name), data->description); + else + output_printf(output, "-%s %s\n%21s%s\n", astring_c(data->links[0].name), astring_c(data->links[0].name), "",data->description); + } } } |