diff options
author | H. Peter Anvin <hpa@zytor.com> | 2019-08-10 05:33:14 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2019-08-10 05:33:14 -0700 |
commit | 6686de2bab67b376ba581c3540eec7e7634cea03 (patch) | |
tree | 028a0be2e3db06619d623fd90bfa84b6591155b1 /asm/nasm.c | |
parent | 3f51082bcdfe31e625bf857cdeb953d69c639b62 (diff) | |
download | nasm-6686de2bab67b376ba581c3540eec7e7634cea03.tar.gz |
preproc: add listing options to override nolist; some cleanups
Add listing options:
-Lb to show builtin macro packages
-Lf to override .nolist
Do some cleanups in the process, in particular generalize read_line()
between stdmac and file alternatives.
When processing stdmac, create an istk entry for it. This means stdmac
can be identified by istk->fp == NULL. At some future date there could
even be a function pointer to an appropriate read function.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'asm/nasm.c')
-rw-r--r-- | asm/nasm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2013,8 +2013,10 @@ static void help(FILE *out) "\n" " -l listfile write listing to a list file\n" " -Lflags... add optional information to the list file\n" + " -Lb show builtin macro packages (standard and %use)\n" " -Ld show byte and repeat counts in decimal, not hex\n" " -Le show the preprocessed output\n" + " -Lf ignore .nolist (force output)\n" " -Lm show all single-line macro definitions\n" " -Lp output a list file every pass, in case of errors\n" "\n" |