浏览代码

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

Roberto Ierusalimschy 22 年之前
父节点
当前提交
91bf77534c
共有 2 个文件被更改,包括 2 次插入9 次删除
  1. 1 7
      llimits.h
  2. 1 2
      ltests.c

+ 1 - 7
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
 ** Limits, basic types, and some other `installation-dependent' definitions
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -156,12 +156,6 @@ typedef lu_int32 Instruction;
 #endif
 #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) */
 /* minimum size for the string table (must be power of 2) */
 #ifndef MINSTRTABSIZE
 #ifndef MINSTRTABSIZE
 #define MINSTRTABSIZE	32
 #define MINSTRTABSIZE	32

+ 1 - 2
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
 ** Internal Module for Debugging of the Lua Implementation
 ** See Copyright Notice in lua.h
 ** 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, "BITS_INT", BITS_INT);
   setnameval(L, "LFPF", LFIELDS_PER_FLUSH);
   setnameval(L, "LFPF", LFIELDS_PER_FLUSH);
   setnameval(L, "MAXVARS", MAXVARS);
   setnameval(L, "MAXVARS", MAXVARS);
-  setnameval(L, "MAXPARAMS", MAXPARAMS);
   setnameval(L, "MAXSTACK", MAXSTACK);
   setnameval(L, "MAXSTACK", MAXSTACK);
   setnameval(L, "MAXUPVALUES", MAXUPVALUES);
   setnameval(L, "MAXUPVALUES", MAXUPVALUES);
   return 1;
   return 1;