Mercurial > hg > index.cgi
diff lwasm/main.c @ 442:61580fc48f98
Add option to omit file names from lwasm listings
Add --list-nofiles option to modify generated listing to omit the filename
specification.
author | William Astle <lost@l-w.ca> |
---|---|
date | Mon, 27 Nov 2017 22:52:17 -0700 |
parents | b138b4005125 |
children | 141a1beb98ae |
line wrap: on
line diff
--- a/lwasm/main.c Mon Nov 27 22:35:53 2017 -0700 +++ b/lwasm/main.c Mon Nov 27 22:52:17 2017 -0700 @@ -46,6 +46,7 @@ { "debug", 'd', "LEVEL", lw_cmdline_opt_optional, "Set debug mode"}, { "format", 'f', "TYPE", 0, "Select output format: decb, basic, raw, obj, os9"}, { "list", 'l', "FILE", lw_cmdline_opt_optional, "Generate list [to FILE]"}, + { "list-nofiles", 0x104, 0, 0, "Omit file names in list output"}, { "symbols", 's', 0, lw_cmdline_opt_optional, "Generate symbol list in listing, no effect without --list"}, { "symbols-nolocals", 0x103, 0, lw_cmdline_opt_optional, "Same as --symbols but with local labels ignored"}, { "tabs", 't', "WIDTH", 0, "Set tab spacing in listing (0=don't expand tabs)" }, @@ -148,6 +149,10 @@ as -> flags |= FLAG_SYMBOLS | FLAG_SYMBOLS_NOLOCALS; break; + case 0x104: + as -> listnofile = 1; + break; + case 'b': as -> output_format = OUTPUT_DECB; break;