summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2019-08-10 01:38:06 -0700
committerH. Peter Anvin <hpa@zytor.com>2019-08-10 01:46:58 -0700
commit322bee0aac0f177127e4a33aff94a5fa2158a0f9 (patch)
tree77ea5f8db299b2ff7c32e25a5c770f9e3e9c6975 /include
parentab6f8319552f17d269a5bf2facea48ea1c338b71 (diff)
downloadnasm-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.h6
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