summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-31 10:30:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-31 10:30:39 -0300
commit1022b3c85ee2bc8ec109da03fb1168139f209536 (patch)
tree7ee2257018e73bf314d119beaec22f1dbf348f26
parenta1d3e001b9d6e553591c5dc7fe6b59a170163f63 (diff)
downloadlua-1022b3c85ee2bc8ec109da03fb1168139f209536.tar.gz
lua-1022b3c85ee2bc8ec109da03fb1168139f209536.tar.bz2
lua-1022b3c85ee2bc8ec109da03fb1168139f209536.zip
minimum size for stack
-rw-r--r--lstate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index d3d045f0..7e264565 100644
--- a/lstate.c
+++ b/lstate.c
@@ -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);