better treatment for arbitrary limits

This commit is contained in:
Roberto Ierusalimschy
1999-06-17 14:04:03 -03:00
parent d4dce57f5c
commit 36b6fe8d17
8 changed files with 56 additions and 34 deletions

6
llex.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: llex.c,v 1.34 1999/03/25 21:05:05 roberto Exp roberto $
** $Id: llex.c,v 1.35 1999/05/14 12:24:04 roberto Exp roberto $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@@ -106,7 +106,9 @@ void luaX_setinput (LexState *LS, ZIO *z)
** =======================================================
*/
#define PRAGMASIZE 80
#ifndef PRAGMASIZE
#define PRAGMASIZE 80 /* arbitrary limit */
#endif
static void skipspace (LexState *LS) {
while (LS->current == ' ' || LS->current == '\t' || LS->current == '\r')