diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-07 15:11:51 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-07 15:11:51 -0300 |
commit | 6658b9588faa3dae1747f2b705e99e96c6cf0e31 (patch) | |
tree | 64c76cb64e033194ca8dcc65e45598c05d0ca8f3 | |
parent | 457d88eaaa2ac32e4fa0b7c4310cda9bba95d154 (diff) | |
download | lua-6658b9588faa3dae1747f2b705e99e96c6cf0e31.tar.gz lua-6658b9588faa3dae1747f2b705e99e96c6cf0e31.tar.bz2 lua-6658b9588faa3dae1747f2b705e99e96c6cf0e31.zip |
details
-rw-r--r-- | llimits.h | 12 | ||||
-rw-r--r-- | lstate.h | 6 |
2 files changed, 10 insertions, 8 deletions
@@ -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; }; | |||
86 | typedef unsigned long Instruction; | 86 | typedef 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 | ||
@@ -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 | ||
82 | typedef struct stringtable { | 78 | typedef struct stringtable { |