From 4991e71b33a41440c50bf1b14abd857d459f2b52 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 7 Aug 2022 17:04:30 +0200 Subject: fix toks range --- bootstrap/all.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/all.h b/bootstrap/all.h index aba2bc3..8c61d5e 100644 --- a/bootstrap/all.h +++ b/bootstrap/all.h @@ -61,7 +61,8 @@ enum toktype { #define KWTK(kw) TKkw_##kw, LIST_KEYWORDS(KWTK) #undef KWTK - TKintlit, + NUM_KEYWORDS, + TKintlit = -100, TKflolit, TKboolit, TKstrlit, @@ -74,7 +75,6 @@ enum toktype { TKexpr, TKeof, }; -#define NUM_KEYWORDS TKintlit struct tok { int t; -- cgit v1.2.3