summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cpp/cpp.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-04-19 11:26:31 -0700
committerOri Bernstein <ori@eigenstate.org>2020-04-19 11:26:31 -0700
commit260d1eaaa73a377fb7b0cfc00707ddba35a54ccd (patch)
tree26eb95e5f52e7a5d112d2dccb48d9205dddf3980 /sys/src/cmd/cpp/cpp.h
parent15a32f06839819cbbf6f40dccc5189c66379bcc0 (diff)
downloadplan9front-260d1eaaa73a377fb7b0cfc00707ddba35a54ccd.tar.xz
Make priority array max size explicit.
we were implicitly depending on UMINUS being the last entry in the operator table -- that's fragile.
Diffstat (limited to 'sys/src/cmd/cpp/cpp.h')
-rw-r--r--sys/src/cmd/cpp/cpp.h2
1 files changed, 1 insertions, 1 deletions
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,