commit 125f52205831b30937916de4eaaaf86a99844169
parent e75ec4465bb6db854bd1f0df43cca2b5a9e6e37d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 30 Oct 2024 12:36:56 +0100
make: Use FILENAME_MAX for MAXTOKEN
As we store mainly filenames as tokens, then it makes sense to
use FILENAME_MAX that would fit better for this purpouses than
an arbitrary value like 256.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/scc-make/parser.c b/src/cmd/scc-make/parser.c
@@ -11,7 +11,7 @@
#define MAXREPL 30
#define TABSIZ 64
-#define MAXTOKEN 256
+#define MAXTOKEN FILENAME_MAX
#define ITEM 128
typedef struct macro Macro;