From 260d1eaaa73a377fb7b0cfc00707ddba35a54ccd Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sun, 19 Apr 2020 11:26:31 -0700 Subject: Make priority array max size explicit. we were implicitly depending on UMINUS being the last entry in the operator table -- that's fragile. --- sys/src/cmd/cpp/cpp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/cmd/cpp/cpp.h') diff --git a/sys/src/cmd/cpp/cpp.h b/sys/src/cmd/cpp/cpp.h index 64520af1d..cb21a785e 100644 --- a/sys/src/cmd/cpp/cpp.h +++ b/sys/src/cmd/cpp/cpp.h @@ -17,7 +17,7 @@ enum toktype { END, UNCLASS, NAME, NUMBER, STRING, CCON, NL, WS, DSHARP, COLON, ASGN, COMMA, XCOMMA, SHARP, SEMIC, CBRA, CKET, ASPLUS, ASMINUS, ASSTAR, ASSLASH, ASPCT, ASCIRC, ASLSH, ASRSH, ASOR, ASAND, ELLIPS, - DSHARP1, NAME1, DEFINED, UMINUS }; + DSHARP1, NAME1, DEFINED, UMINUS, MAXTOK}; enum kwtype { KIF, KIFDEF, KIFNDEF, KELIF, KELSE, KENDIF, KINCLUDE, KDEFINE, KUNDEF, KLINE, KERROR, KWARNING, KPRAGMA, KDEFINED, -- cgit v1.2.3