lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 91bf77534c1bdd24a2687dd45b84bd7cc6878a45
parent a0a384a6b14b16bce8f48d2f2d327e716ae68f3d
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue, 29 Jul 2003 16:26:12 -0300

no need for a maximum number of parameters (maximum number of locals
take care of that).

Diffstat:
Mllimits.h | 8+-------
Mltests.c | 3+--
2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/llimits.h b/llimits.h @@ -1,5 +1,5 @@ /* -** $Id: llimits.h,v 1.54 2003/04/28 19:57:50 roberto Exp roberto $ +** $Id: llimits.h,v 1.55 2003/05/14 21:01:53 roberto Exp roberto $ ** Limits, basic types, and some other `installation-dependent' definitions ** See Copyright Notice in lua.h */ @@ -156,12 +156,6 @@ typedef lu_int32 Instruction; #endif -/* maximum number of parameters in a function */ -#ifndef MAXPARAMS -#define MAXPARAMS 100 /* <MAXLOCALS */ -#endif - - /* minimum size for the string table (must be power of 2) */ #ifndef MINSTRTABSIZE #define MINSTRTABSIZE 32 diff --git a/ltests.c b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.161 2003/05/14 21:10:07 roberto Exp roberto $ +** $Id: ltests.c,v 1.162 2003/07/09 12:08:43 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -246,7 +246,6 @@ static int get_limits (lua_State *L) { setnameval(L, "BITS_INT", BITS_INT); setnameval(L, "LFPF", LFIELDS_PER_FLUSH); setnameval(L, "MAXVARS", MAXVARS); - setnameval(L, "MAXPARAMS", MAXPARAMS); setnameval(L, "MAXSTACK", MAXSTACK); setnameval(L, "MAXUPVALUES", MAXUPVALUES); return 1;