summaryrefslogtreecommitdiff
path: root/asm/nasm.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-08-10 05:33:14 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-08-10 05:33:14 -0700
commit6686de2bab67b376ba581c3540eec7e7634cea03 (patch)
tree028a0be2e3db06619d623fd90bfa84b6591155b1 /asm/nasm.c
parent3f51082bcdfe31e625bf857cdeb953d69c639b62 (diff)
downloadnasm-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/asm/nasm.c b/asm/nasm.c
index 7b6494e4..517ac187 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -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"