diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-08-25 16:51:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-08-25 16:51:54 -0300 |
commit | 9fcc48517659c72de43bece515fdd5cea88c07f8 (patch) | |
tree | ad065ea1c7e2c0f6781e366e9a2e95b4cadb1780 /lapi.c | |
parent | 64066359dda2a0920d307e901185faf78cc32b97 (diff) | |
download | lua-9fcc48517659c72de43bece515fdd5cea88c07f8.tar.gz lua-9fcc48517659c72de43bece515fdd5cea88c07f8.tar.bz2 lua-9fcc48517659c72de43bece515fdd5cea88c07f8.zip |
zio does not keep "source" name (nobody uses it)
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.240 2003/07/07 13:34:25 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.241 2003/08/15 13:48:53 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,9 +718,9 @@ 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, chunkname); | 721 | luaZ_init(&z, reader, data); |
722 | c = luaZ_lookahead(&z); | 722 | c = luaZ_lookahead(&z); |
723 | status = luaD_protectedparser(L, &z, (c == LUA_SIGNATURE[0])); | 723 | status = luaD_protectedparser(L, &z, (c == LUA_SIGNATURE[0]), chunkname); |
724 | lua_unlock(L); | 724 | lua_unlock(L); |
725 | return status; | 725 | return status; |
726 | } | 726 | } |