diff --git a/source/texk/web2c/luatexdir/lua/luastuff.w b/source/texk/web2c/luatexdir/lua/luastuff.w index 6181caccf7287181db77f10233ccffbeb451fd90..9ee51c0b2292176e976276b7a4ad09928aeaf5c4 100644 --- a/source/texk/web2c/luatexdir/lua/luastuff.w +++ b/source/texk/web2c/luatexdir/lua/luastuff.w @@ -337,7 +337,6 @@ void luainterpreter(void) /* our own libraries register themselves */ luaopen_fio(L); -lua_setglobal(L, "fio"); luaopen_ff(L); luaopen_tex(L); luaopen_token(L); @@ -355,27 +354,12 @@ lua_setglobal(L, "fio"); luaopen_vf(L); luaopen_pdf(L); luaopen_epdf(L); - /*luaopen_pdfscanner(L);*/ + luaopen_pdfscanner(L); if (!lua_only) { -#ifdef LuajitTeX - lua_pushcfunction(L, luaopen_img); - lua_pushstring(L, "img"); - lua_call(L, 1, 0); -#else - luaL_requiref(L, "img", luaopen_img, 1); - lua_pop(L, 1); -#endif + luaopen_img(L); } - /* |luaopen_pdfscanner(L);| */ - lua_pushcfunction(L, luaopen_pdfscanner); - lua_pushstring(L, "pdfscanner"); - lua_call(L, 1, 0); - - - - lua_createtable(L, 0, 0); lua_setglobal(L, "texconfig");