summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-07-29 16:26:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-07-29 16:26:34 -0300
commit91bf77534c1bdd24a2687dd45b84bd7cc6878a45 (patch)
tree9149573ff1151f35c6fe694e3a0885f66fd366b6
parenta0a384a6b14b16bce8f48d2f2d327e716ae68f3d (diff)
downloadlua-91bf77534c1bdd24a2687dd45b84bd7cc6878a45.tar.gz
lua-91bf77534c1bdd24a2687dd45b84bd7cc6878a45.tar.bz2
lua-91bf77534c1bdd24a2687dd45b84bd7cc6878a45.zip
no need for a maximum number of parameters (maximum number of locals
take care of that).
-rw-r--r--llimits.h8
-rw-r--r--ltests.c3
2 files changed, 2 insertions, 9 deletions
diff --git a/llimits.h b/llimits.h
index 1d480e88..44151c8d 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.54 2003/04/28 19:57:50 roberto Exp roberto $ 2** $Id: llimits.h,v 1.55 2003/05/14 21:01:53 roberto Exp roberto $
3** Limits, basic types, and some other `installation-dependent' definitions 3** Limits, basic types, and some other `installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -156,12 +156,6 @@ typedef lu_int32 Instruction;
156#endif 156#endif
157 157
158 158
159/* maximum number of parameters in a function */
160#ifndef MAXPARAMS
161#define MAXPARAMS 100 /* <MAXLOCALS */
162#endif
163
164
165/* minimum size for the string table (must be power of 2) */ 159/* minimum size for the string table (must be power of 2) */
166#ifndef MINSTRTABSIZE 160#ifndef MINSTRTABSIZE
167#define MINSTRTABSIZE 32 161#define MINSTRTABSIZE 32
diff --git a/ltests.c b/ltests.c
index 90430e67..a659d3af 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.161 2003/05/14 21:10:07 roberto Exp roberto $ 2** $Id: ltests.c,v 1.162 2003/07/09 12:08:43 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -246,7 +246,6 @@ static int get_limits (lua_State *L) {
246 setnameval(L, "BITS_INT", BITS_INT); 246 setnameval(L, "BITS_INT", BITS_INT);
247 setnameval(L, "LFPF", LFIELDS_PER_FLUSH); 247 setnameval(L, "LFPF", LFIELDS_PER_FLUSH);
248 setnameval(L, "MAXVARS", MAXVARS); 248 setnameval(L, "MAXVARS", MAXVARS);
249 setnameval(L, "MAXPARAMS", MAXPARAMS);
250 setnameval(L, "MAXSTACK", MAXSTACK); 249 setnameval(L, "MAXSTACK", MAXSTACK);
251 setnameval(L, "MAXUPVALUES", MAXUPVALUES); 250 setnameval(L, "MAXUPVALUES", MAXUPVALUES);
252 return 1; 251 return 1;