aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-08-25 17:00:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-08-25 17:00:50 -0300
commit4b2e71ddb674c3bb22f549743721155ddaeb9b5d (patch)
tree0dfbbf6eb89f732af749085df890448c7b5c33d5 /lapi.c
parent9fcc48517659c72de43bece515fdd5cea88c07f8 (diff)
downloadlua-4b2e71ddb674c3bb22f549743721155ddaeb9b5d.tar.gz
lua-4b2e71ddb674c3bb22f549743721155ddaeb9b5d.tar.bz2
lua-4b2e71ddb674c3bb22f549743721155ddaeb9b5d.zip
ZIO passes Lua state to chunk reader
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 2a8283a4..966f72ec 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.241 2003/08/15 13:48:53 roberto Exp roberto $ 2** $Id: lapi.c,v 1.242 2003/08/25 19:51:54 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -718,7 +718,7 @@ LUA_API int lua_load (lua_State *L, lua_Chunkreader reader, void *data,
718 int c; 718 int c;
719 lua_lock(L); 719 lua_lock(L);
720 if (!chunkname) chunkname = "?"; 720 if (!chunkname) chunkname = "?";
721 luaZ_init(&z, reader, data); 721 luaZ_init(L, &z, reader, data);
722 c = luaZ_lookahead(&z); 722 c = luaZ_lookahead(&z);
723 status = luaD_protectedparser(L, &z, (c == LUA_SIGNATURE[0]), chunkname); 723 status = luaD_protectedparser(L, &z, (c == LUA_SIGNATURE[0]), chunkname);
724 lua_unlock(L); 724 lua_unlock(L);