diff options
author | H. Peter Anvin <hpa@zytor.com> | 2018-06-15 17:51:39 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2018-06-15 17:57:15 -0700 |
commit | 79561027a08c3d673152775524cf713c80a82323 (patch) | |
tree | 2219b3ba19637844ed2b9cce160c3ce2f907bdd9 /include/nasm.h | |
parent | 675618c5dd670ea719d3c418e3d1d275b600b05f (diff) | |
download | nasm-79561027a08c3d673152775524cf713c80a82323.tar.gz |
Make limits 64 bits, add globallines limit to configurable limits
Make all limit counters 64 bits, in case someone really has a usage
for an insanely large program. The globallines limit was omitted, add
it to the list of configurable limits.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/nasm.h')
-rw-r--r-- | include/nasm.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/nasm.h b/include/nasm.h index a801da46..164ae0e7 100644 --- a/include/nasm.h +++ b/include/nasm.h @@ -768,10 +768,11 @@ enum nasm_limit { LIMIT_STALLED, LIMIT_MACROS, LIMIT_REP, - LIMIT_EVAL + LIMIT_EVAL, + LIMIT_LINES }; -#define LIMIT_MAX LIMIT_EVAL -extern int nasm_limit[LIMIT_MAX+1]; +#define LIMIT_MAX LIMIT_LINES +extern int64_t nasm_limit[LIMIT_MAX+1]; extern enum directive_result nasm_set_limit(const char *, const char *); /* @@ -1250,7 +1251,7 @@ enum decorator_tokens { */ extern int pass0; -extern int passn; /* Actual pass number */ +extern int64_t passn; /* Actual pass number */ extern bool tasm_compatible_mode; extern int optimizing; |