From 797fdfc06b241df42e489dd4a5fe39b4e9694be2 Mon Sep 17 00:00:00 2001 From: Yashas Date: Sat, 19 Jan 2019 13:29:00 +0530 Subject: [PATCH] Revert "force `sc_tokens` size and token enumeration size to match" This reverts commit d60ef405c9f3eca13dd7e505c8c330ec0241ff02. --- source/compiler/sc.h | 5 +---- source/compiler/sc2.c | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/source/compiler/sc.h b/source/compiler/sc.h index 65a1bfa..a418350 100644 --- a/source/compiler/sc.h +++ b/source/compiler/sc.h @@ -421,10 +421,7 @@ enum { teLOCAL, /* local variable (name or offset) */ teFUNCTN, /* Pawn function */ teNATIVE, /* native function */ - teNONNEG, /* nonnegative integer */ - - tlexLAST = teNONNEG, - + teNONNEG , /* nonnegative integer */ /* for assigment to "lastst" only (see SC1.C) */ tEXPR, tENDLESS, /* endless loop */ diff --git a/source/compiler/sc2.c b/source/compiler/sc2.c index 2ae7943..d30c34f 100644 --- a/source/compiler/sc2.c +++ b/source/compiler/sc2.c @@ -2133,7 +2133,7 @@ SC_FUNC void lexinit(void) _lexnewline=FALSE; } -char *sc_tokens[tlexLAST-tFIRST+1] = { +char *sc_tokens[] = { "*=", "/=", "%=", "+=", "-=", "<<=", ">>>=", ">>=", "&=", "^=", "|=", "||", "&&", "==", "!=", "<=", ">=", "<<", ">>>", ">>", "++", "--", "...", "..",