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.c | |
parent | d4dce57f5ca64c65c7c49eac683b8f807e8dc02d (diff) | |
download | lua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.tar.gz lua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.tar.bz2 lua-36b6fe8d175bb2aec8fc55ffb090eab90cb12fd8.zip |
better treatment for arbitrary limits
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.34 1999/03/25 21:05:05 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.35 1999/05/14 12:24:04 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 | */ |
@@ -106,7 +106,9 @@ void luaX_setinput (LexState *LS, ZIO *z) | |||
106 | ** ======================================================= | 106 | ** ======================================================= |
107 | */ | 107 | */ |
108 | 108 | ||
109 | #define PRAGMASIZE 80 | 109 | #ifndef PRAGMASIZE |
110 | #define PRAGMASIZE 80 /* arbitrary limit */ | ||
111 | #endif | ||
110 | 112 | ||
111 | static void skipspace (LexState *LS) { | 113 | static void skipspace (LexState *LS) { |
112 | while (LS->current == ' ' || LS->current == '\t' || LS->current == '\r') | 114 | while (LS->current == ' ' || LS->current == '\t' || LS->current == '\r') |