diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-06-17 14:04:03 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-06-17 14:04:03 -0300 |
commit | 36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8 (patch) | |
tree | efa22fb54a0d354249d9f3c9e0a26118d6527bd0 /llex.h | |
parent | d4dce57f5ca64c65c7c49eac683b8f807e8dc02d (diff) | |
download | lua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.tar.gz lua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.tar.bz2 lua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.zip |
better treatment for arbitrary limits
Diffstat (limited to 'llex.h')
-rw-r--r-- | llex.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.h,v 1.10 1998/07/24 18:02:38 roberto Exp roberto $ | 2 | ** $Id: llex.h,v 1.11 1999/02/25 19:13:56 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -25,7 +25,9 @@ enum RESERVED { | |||
25 | NAME, CONC, DOTS, EQ, GE, LE, NE, NUMBER, STRING, EOS}; | 25 | NAME, CONC, DOTS, EQ, GE, LE, NE, NUMBER, STRING, EOS}; |
26 | 26 | ||
27 | 27 | ||
28 | #define MAX_IFS 5 | 28 | #ifndef MAX_IFS |
29 | #define MAX_IFS 5 /* arbitrary limit */ | ||
30 | #endif | ||
29 | 31 | ||
30 | /* "ifstate" keeps the state of each nested $if the lexical is dealing with. */ | 32 | /* "ifstate" keeps the state of each nested $if the lexical is dealing with. */ |
31 | 33 | ||