From 7df031fb4f301ee55a3ca1ad4459a5588bcfd0fa Mon Sep 17 00:00:00 2001 From: Couriersud Date: Sun, 2 Mar 2008 00:35:58 +0000 Subject: 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 --- src/lib/util/options.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/lib/util/options.c') 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); + } } } -- cgit v1.2.3-70-g09d2