From 6658b9588faa3dae1747f2b705e99e96c6cf0e31 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 7 Mar 2002 15:11:51 -0300 Subject: details --- llimits.h | 12 +++++++++--- lstate.h | 6 +----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/llimits.h b/llimits.h index 3f8f8139..22cfe305 100644 --- 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 index 8ba95a59..48293f05 100644 --- 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 { -- cgit v1.2.3-55-g6feb