avoid C stack overflow during parsing

This commit is contained in:
Roberto Ierusalimschy
2002-11-22 14:35:20 -02:00
parent 007f229568
commit 04b143ddf9
3 changed files with 22 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: llimits.h,v 1.46 2002/10/08 18:46:08 roberto Exp roberto $
** $Id: llimits.h,v 1.47 2002/10/22 17:18:28 roberto Exp roberto $
** Limits, basic types, and some other `installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -165,4 +165,10 @@ typedef unsigned long Instruction;
#endif
/* maximum number of syntactical nested non-terminals */
#ifndef LUA_MAXPARSERLEVEL
#define LUA_MAXPARSERLEVEL 200
#endif
#endif