Skip to content
Snippets Groups Projects
Commit 13b6a34f authored by Luigi Scarso's avatar Luigi Scarso
Browse files

code clean-up (HH) -- trunk

parent 64f5327e
No related branches found
No related tags found
No related merge requests found
......@@ -346,9 +346,7 @@ void luainterpreter(void)
/*tex preload the pure \LUA\ modules */
luatex_socketlua_open(L);
}
/*tex |zlib|'s slightly odd calling convention */
luaopen_zlib(L);
lua_setglobal(L, "zlib");
luaopen_gzip(L);
/*tex our own libraries register themselves */
luaopen_fio(L);
......
#define luatex_svn_revision 7110
#define luatex_svn_revision 7112
......@@ -569,7 +569,7 @@ LUALIB_API int luaopen_zlib(lua_State *L)
** Stack:
*/
lua_newtable(L);
luaL_openlib(L, NULL, zlib, 0);
luaL_openlib(L, "zlib", zlib, 1);
/*
** Stack: zlib table
......
......@@ -54,7 +54,7 @@ print('updated crc: '..crc)
line(' deflate/inflate')
local us
f = io.open('lzlib.c') -- f = io.open('../all.tar')
f = io.open('test_zlib.lua') -- f = io.open('../all.tar')
us = f:read('*a')
f:close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment