diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-03-09 15:05:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-03-09 15:05:05 -0300 |
commit | cb49b088b61b75b905663a58a2c545de1ffea13a (patch) | |
tree | 6eee74cd799d2aebfc8846501f41009afe00c647 /ltests.c | |
parent | c5a23cf01aca02a8a8d0ee5f5f558f74b31ded89 (diff) | |
download | lua-cb49b088b61b75b905663a58a2c545de1ffea13a.tar.gz lua-cb49b088b61b75b905663a58a2c545de1ffea13a.tar.bz2 lua-cb49b088b61b75b905663a58a2c545de1ffea13a.zip |
old signature for lua_open
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 1.74 2001/03/06 20:09:38 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.75 2001/03/07 13:22:55 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -422,7 +422,7 @@ static int newtag (lua_State *L) { | |||
422 | } | 422 | } |
423 | 423 | ||
424 | static int doonnewstack (lua_State *L) { | 424 | static int doonnewstack (lua_State *L) { |
425 | lua_State *L1 = lua_open(L, luaL_check_int(L, 1)); | 425 | lua_State *L1 = lua_newthread(L, luaL_check_int(L, 1)); |
426 | if (L1 == NULL) return 0; | 426 | if (L1 == NULL) return 0; |
427 | *((int **)L1) = &islocked; /* initialize the lock */ | 427 | *((int **)L1) = &islocked; /* initialize the lock */ |
428 | lua_dostring(L1, luaL_check_string(L, 2)); | 428 | lua_dostring(L1, luaL_check_string(L, 2)); |
@@ -445,7 +445,7 @@ static int d2s (lua_State *L) { | |||
445 | 445 | ||
446 | 446 | ||
447 | static int newstate (lua_State *L) { | 447 | static int newstate (lua_State *L) { |
448 | lua_State *L1 = lua_open(NULL, luaL_check_int(L, 1)); | 448 | lua_State *L1 = lua_open(luaL_check_int(L, 1)); |
449 | if (L1) { | 449 | if (L1) { |
450 | *((int **)L1) = &islocked; /* initialize the lock */ | 450 | *((int **)L1) = &islocked; /* initialize the lock */ |
451 | lua_pushnumber(L, (unsigned long)L1); | 451 | lua_pushnumber(L, (unsigned long)L1); |