ref: 9932a824ac650713434b1761aad497cc55b40a54
parent: 52a22aa34114f8584e848262cbebe001e35390c0
author: qwx <qwx@sciops.net>
date: Mon Mar 2 04:53:40 EST 2026
cc: bump max include directories limit necessary for npe-based ports; use the same limit as cpp(1) for now, but could be made dynamic if this ever proves insufficient.
--- a/sys/src/cmd/cc/cc.h
+++ b/sys/src/cmd/cc/cc.h
@@ -27,6 +27,7 @@
#define YYMAXDEPTH 1500
#define NTERM 10
#define MAXALIGN 7
+#define NINCLUDE 64
#define SIGN(n) (1ULL<<(n-1))
#define MASK(n) (SIGN(n)|(SIGN(n)-1))
@@ -431,7 +432,7 @@
EXTERN int fperror;
EXTERN Sym* hash[NHASH];
EXTERN int hasdoubled;
-EXTERN char* include[20];
+EXTERN char* include[NINCLUDE];
EXTERN Io* iofree;
EXTERN Io* ionext;
EXTERN Io* iostack;
--
⑨