commit 6658b9588faa3dae1747f2b705e99e96c6cf0e31
parent 457d88eaaa2ac32e4fa0b7c4310cda9bba95d154
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Thu, 7 Mar 2002 15:11:29 -0300
details
Diffstat:
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/llimits.h b/llimits.h
@@ -1,5 +1,5 @@
/*
-** $Id: llimits.h,v 1.37 2002/02/14 21:43:01 roberto Exp roberto $
+** $Id: llimits.h,v 1.38 2002/03/05 16:22:54 roberto Exp roberto $
** Limits, basic types, and some other `installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -86,6 +86,12 @@ union L_Umaxalign { LUSER_ALIGNMENT_T u; void *s; long l; };
typedef unsigned long Instruction;
+/* maximum size for the Lua stack */
+#ifndef LUA_MAXSTACK
+#define LUA_MAXSTACK 14000
+#endif
+
+
/* maximum stack for a Lua function */
#define MAXSTACK 250
@@ -108,9 +114,9 @@ typedef unsigned long Instruction;
#endif
-/* minimum size for the string table */
+/* minimum size for the string table (must be power of 2) */
#ifndef MINSTRTABSIZE
-#define MINSTRTABSIZE 20
+#define MINSTRTABSIZE 32
#endif
diff --git a/lstate.h b/lstate.h
@@ -1,5 +1,5 @@
/*
-** $Id: lstate.h,v 1.68 2001/12/18 20:52:30 roberto Exp $
+** $Id: lstate.h,v 1.77 2002/02/14 21:47:29 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -73,10 +73,6 @@ struct lua_longjmp; /* defined in ldo.c */
#define BASIC_STACK_SIZE (2*LUA_MINSTACK)
-#ifndef LUA_MAXSTACK
-#define LUA_MAXSTACK 14000
-#endif
-
typedef struct stringtable {