aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-07 15:11:51 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-03-07 15:11:51 -0300
commit6658b9588faa3dae1747f2b705e99e96c6cf0e31 (patch)
tree64c76cb64e033194ca8dcc65e45598c05d0ca8f3
parent457d88eaaa2ac32e4fa0b7c4310cda9bba95d154 (diff)
downloadlua-6658b9588faa3dae1747f2b705e99e96c6cf0e31.tar.gz
lua-6658b9588faa3dae1747f2b705e99e96c6cf0e31.tar.bz2
lua-6658b9588faa3dae1747f2b705e99e96c6cf0e31.zip
details
-rw-r--r--llimits.h12
-rw-r--r--lstate.h6
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 @@
1/* 1/*
2** $Id: llimits.h,v 1.37 2002/02/14 21:43:01 roberto Exp roberto $ 2** $Id: llimits.h,v 1.38 2002/03/05 16:22:54 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*/
@@ -86,6 +86,12 @@ union L_Umaxalign { LUSER_ALIGNMENT_T u; void *s; long l; };
86typedef unsigned long Instruction; 86typedef unsigned long Instruction;
87 87
88 88
89/* maximum size for the Lua stack */
90#ifndef LUA_MAXSTACK
91#define LUA_MAXSTACK 14000
92#endif
93
94
89/* maximum stack for a Lua function */ 95/* maximum stack for a Lua function */
90#define MAXSTACK 250 96#define MAXSTACK 250
91 97
@@ -108,9 +114,9 @@ typedef unsigned long Instruction;
108#endif 114#endif
109 115
110 116
111/* minimum size for the string table */ 117/* minimum size for the string table (must be power of 2) */
112#ifndef MINSTRTABSIZE 118#ifndef MINSTRTABSIZE
113#define MINSTRTABSIZE 20 119#define MINSTRTABSIZE 32
114#endif 120#endif
115 121
116 122
diff --git a/lstate.h b/lstate.h
index 8ba95a59..48293f05 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.68 2001/12/18 20:52:30 roberto Exp $ 2** $Id: lstate.h,v 1.77 2002/02/14 21:47:29 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -73,10 +73,6 @@ struct lua_longjmp; /* defined in ldo.c */
73 73
74#define BASIC_STACK_SIZE (2*LUA_MINSTACK) 74#define BASIC_STACK_SIZE (2*LUA_MINSTACK)
75 75
76#ifndef LUA_MAXSTACK
77#define LUA_MAXSTACK 14000
78#endif
79
80 76
81 77
82typedef struct stringtable { 78typedef struct stringtable {