diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-31 10:30:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-31 10:30:39 -0300 |
commit | 1022b3c85ee2bc8ec109da03fb1168139f209536 (patch) | |
tree | 7ee2257018e73bf314d119beaec22f1dbf348f26 | |
parent | a1d3e001b9d6e553591c5dc7fe6b59a170163f63 (diff) | |
download | lua-1022b3c85ee2bc8ec109da03fb1168139f209536.tar.gz lua-1022b3c85ee2bc8ec109da03fb1168139f209536.tar.bz2 lua-1022b3c85ee2bc8ec109da03fb1168139f209536.zip |
minimum size for stack
-rw-r--r-- | lstate.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.33 2000/08/14 17:46:07 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.34 2000/08/28 17:57:04 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 | */ |
@@ -49,7 +49,8 @@ lua_State *lua_newstate (int stacksize, int put_builtin) { | |||
49 | L->errorJmp = &myErrorJmp; | 49 | L->errorJmp = &myErrorJmp; |
50 | if (setjmp(myErrorJmp.b) == 0) { /* to catch memory allocation errors */ | 50 | if (setjmp(myErrorJmp.b) == 0) { /* to catch memory allocation errors */ |
51 | L->gt = luaH_new(L, 10); | 51 | L->gt = luaH_new(L, 10); |
52 | luaD_init(L, (stacksize == 0) ? DEFAULT_STACK_SIZE : stacksize); | 52 | luaD_init(L, (stacksize == 0) ? DEFAULT_STACK_SIZE : |
53 | stacksize+LUA_MINSTACK); | ||
53 | luaS_init(L); | 54 | luaS_init(L); |
54 | luaX_init(L); | 55 | luaX_init(L); |
55 | luaT_init(L); | 56 | luaT_init(L); |