From 322bee0aac0f177127e4a33aff94a5fa2158a0f9 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 10 Aug 2019 01:38:06 -0700 Subject: Additional listing options, improve help output, fix macro limits Additional listing options: -Ld to display counts in decimal -Lp to output a list file in every pass (to make sure one exists) Clean up the help output and make it comprehensive. The -hf and -y options are no longer necessary, although they are supported for backwards compatiblity. Fix macro-levels so it actually count descent levels; a new macro-tokens limit introduced for the actual token limit. Slightly simplify the limits code. Signed-off-by: H. Peter Anvin --- include/nasm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/nasm.h b/include/nasm.h index 6ff37aec..59d95682 100644 --- a/include/nasm.h +++ b/include/nasm.h @@ -54,6 +54,9 @@ #include "srcfile.h" #include "error.h" +/* Program name for error messages etc. */ +extern const char *_progname; + /* Time stamp for the official start of compilation */ struct compile_time { time_t t; @@ -748,7 +751,8 @@ struct pragma { enum nasm_limit { LIMIT_PASSES, LIMIT_STALLED, - LIMIT_MACROS, + LIMIT_MACRO_LEVELS, + LIMIT_MACRO_TOKENS, LIMIT_REP, LIMIT_EVAL, LIMIT_LINES -- cgit v1.2.1