From 9fcc48517659c72de43bece515fdd5cea88c07f8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Aug 2003 16:51:54 -0300 Subject: zio does not keep "source" name (nobody uses it) --- lapi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index 88ed5dd6..2a8283a4 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 1.240 2003/07/07 13:34:25 roberto Exp roberto $ +** $Id: lapi.c,v 1.241 2003/08/15 13:48:53 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -718,9 +718,9 @@ LUA_API int lua_load (lua_State *L, lua_Chunkreader reader, void *data, int c; lua_lock(L); if (!chunkname) chunkname = "?"; - luaZ_init(&z, reader, data, chunkname); + luaZ_init(&z, reader, data); c = luaZ_lookahead(&z); - status = luaD_protectedparser(L, &z, (c == LUA_SIGNATURE[0])); + status = luaD_protectedparser(L, &z, (c == LUA_SIGNATURE[0]), chunkname); lua_unlock(L); return status; } -- cgit v1.2.3-55-g6feb