diff options
author | H. Peter Anvin <hpa@zytor.com> | 2019-08-10 01:38:06 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2019-08-10 01:46:58 -0700 |
commit | 322bee0aac0f177127e4a33aff94a5fa2158a0f9 (patch) | |
tree | 77ea5f8db299b2ff7c32e25a5c770f9e3e9c6975 /include | |
parent | ab6f8319552f17d269a5bf2facea48ea1c338b71 (diff) | |
download | nasm-322bee0aac0f177127e4a33aff94a5fa2158a0f9.tar.gz |
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 <hpa@zytor.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/nasm.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 |