diff options
| author | Lua Team <team@lua.org> | 2015-06-03 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 2015-06-03 12:00:00 +0000 |
| commit | 6ddf2b3ca86471f90439976967c9e608582f0d0b (patch) | |
| tree | 7fa563fe4062fcea38b86adfe8a26ac413f0d97b /src/lstate.c | |
| parent | 34c362812ab38172d3da36404ec9a85f929579c5 (diff) | |
| download | lua-github-5.3.1-rc1.tar.gz | |
Lua 5.3.1-rc15.3.1-rc1
Diffstat (limited to 'src/lstate.c')
| -rw-r--r-- | src/lstate.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lstate.c b/src/lstate.c index ff6b02d3..12e51d24 100644 --- a/src/lstate.c +++ b/src/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.127 2014/11/02 19:33:33 roberto Exp $ +** $Id: lstate.c,v 2.128 2015/03/04 13:31:21 roberto Exp $ ** Global State ** See Copyright Notice in lua.h */ @@ -37,9 +37,6 @@ #endif -#define MEMERRMSG "not enough memory" - - /* ** a macro to help the creation of a unique random seed when a state is ** created; the seed is used to randomize hashes. @@ -200,12 +197,9 @@ static void f_luaopen (lua_State *L, void *ud) { UNUSED(ud); stack_init(L, L); /* init stack */ init_registry(L, g); - luaS_resize(L, MINSTRTABSIZE); /* initial size of string table */ + luaS_init(L); luaT_init(L); luaX_init(L); - /* pre-create memory-error message */ - g->memerrmsg = luaS_newliteral(L, MEMERRMSG); - luaC_fix(L, obj2gco(g->memerrmsg)); /* it should never be collected */ g->gcrunning = 1; /* allow gc */ g->version = lua_version(NULL); luai_userstateopen(L); |
