summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-11 16:42:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-11 16:42:57 -0300
commit30f6e658d2071d23309e4ac70dd8ec199049aff4 (patch)
tree905c4d0db5ad6fd8fcf51d9542bd3751cc87a4be /ltests.c
parent787a78f83e0484c9e9698189982e2f309808fae8 (diff)
downloadlua-30f6e658d2071d23309e4ac70dd8ec199049aff4.tar.gz
lua-30f6e658d2071d23309e4ac70dd8ec199049aff4.tar.bz2
lua-30f6e658d2071d23309e4ac70dd8ec199049aff4.zip
`lua_newstate' renamed to `lua_open'
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index 92c543d6..60079ce3 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.39 2000/08/31 20:23:40 roberto Exp roberto $ 2** $Id: ltests.c,v 1.40 2000/09/05 19:33:32 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*/
@@ -267,7 +267,7 @@ static int udataval (lua_State *L) {
267} 267}
268 268
269static int newstate (lua_State *L) { 269static int newstate (lua_State *L) {
270 lua_State *L1 = lua_newstate(luaL_check_int(L, 1)); 270 lua_State *L1 = lua_open(luaL_check_int(L, 1));
271 if (L1) 271 if (L1)
272 lua_pushuserdata(L, L1); 272 lua_pushuserdata(L, L1);
273 else 273 else