C stack is the same for the parser and the interpreter, so depth

control should be unified in both parts.
This commit is contained in:
Roberto Ierusalimschy
2005-04-07 10:09:07 -03:00
parent de0bfe33b7
commit fabf5db237
3 changed files with 14 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: luaconf.h,v 1.40 2005/03/29 16:20:48 roberto Exp roberto $
** $Id: luaconf.h,v 1.41 2005/04/06 17:30:13 roberto Exp roberto $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -351,18 +351,12 @@
/*
@@ LUAI_MAXCCALLS is the maximum depth for nested C calls (short).
@@ LUAI_MAXCCALLS is the maximum depth for nested C calls (short) and
@* syntactical nested non-terminals in a program.
*/
#define LUAI_MAXCCALLS 200
/*
@@ LUAI_MAXPARSERLEVEL is the maximum number of syntactical nested
@* non-terminals in a program.
*/
#define LUAI_MAXPARSERLEVEL 200
/*
@@ LUAI_MAXVARS is the maximum number of local variables per function
@* (must be smaller than 250).