From cb49b088b61b75b905663a58a2c545de1ffea13a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 9 Mar 2001 15:05:05 -0300 Subject: old signature for lua_open --- ltests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 574e60f6..8f20c67b 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.74 2001/03/06 20:09:38 roberto Exp roberto $ +** $Id: ltests.c,v 1.75 2001/03/07 13:22:55 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -422,7 +422,7 @@ static int newtag (lua_State *L) { } static int doonnewstack (lua_State *L) { - lua_State *L1 = lua_open(L, luaL_check_int(L, 1)); + lua_State *L1 = lua_newthread(L, luaL_check_int(L, 1)); if (L1 == NULL) return 0; *((int **)L1) = &islocked; /* initialize the lock */ lua_dostring(L1, luaL_check_string(L, 2)); @@ -445,7 +445,7 @@ static int d2s (lua_State *L) { static int newstate (lua_State *L) { - lua_State *L1 = lua_open(NULL, luaL_check_int(L, 1)); + lua_State *L1 = lua_open(luaL_check_int(L, 1)); if (L1) { *((int **)L1) = &islocked; /* initialize the lock */ lua_pushnumber(L, (unsigned long)L1); -- cgit v1.2.3-55-g6feb