commit 6a9a14eca5a5d07f5ed7bfbfd523ec10fb05b02b
parent e703fb320513582b3f3f765c81cfa75fa9f4318a
Author: Ryan Sepassi <rsepassi@gmail.com>
Date: Sun, 26 Apr 2026 15:14:04 -0700
m1pp: bump MAX_MACROS 512 -> 1024
Scheme1's wider use of %macro and %struct (and the new libp1pp
helpers) pushes past the prior cap.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/M1pp/M1pp.P1 b/M1pp/M1pp.P1
@@ -33,12 +33,12 @@ DEFINE M1PP_TEXT_CAP 00000a0000000000
## source_tokens cap: 2 MB / 32-byte tokens = 65536 tokens.
DEFINE M1PP_TOKENS_END 0000200000000000
## Macro record is 296 bytes: name (16) + param_count (8) + params[16]*16 (256)
-## + body_start (8) + body_end (8). MACROS_CAP fits 512 records (151552 B).
+## + body_start (8) + body_end (8). MACROS_CAP fits 1024 records (303104 B).
## Body-token arena fits 65536 tokens (2 MB = 0x200000).
DEFINE M1PP_MACRO_RECORD_SIZE 2801000000000000
DEFINE M1PP_MACRO_BODY_START_OFF 1801000000000000
DEFINE M1PP_MACRO_BODY_END_OFF 2001000000000000
-DEFINE M1PP_MACROS_CAP 0050020000000000
+DEFINE M1PP_MACROS_CAP 00A0040000000000
DEFINE M1PP_MACRO_BODY_CAP 0000200000000000
DEFINE O_WRONLY_CREAT_TRUNC 4102000000000000
DEFINE MODE_0644 A401000000000000
diff --git a/M1pp/M1pp.c b/M1pp/M1pp.c
@@ -77,7 +77,7 @@
#define MAX_OUTPUT 524288
#define MAX_TEXT 524288
#define MAX_TOKENS 65536
-#define MAX_MACROS 512
+#define MAX_MACROS 1024
#define MAX_PARAMS 16
#define MAX_MACRO_BODY_TOKENS MAX_TOKENS
#define MAX_EXPAND 65536