From 81ec0229a2de23581d1afaff86e3a5330e2811e1 Mon Sep 17 00:00:00 2001
From: Luigi Scarso <luigi.scarso@gmail.com>
Date: Fri, 3 Mar 2017 09:29:25 +0000
Subject: [PATCH] clean up -- !!! WARNING: WORK IN PROGRESS !!!

---
 source/texk/web2c/luatexdir/lua/luastuff.w | 20 ++------------------
 1 file changed, 2 insertions(+), 18 deletions(-)

diff --git a/source/texk/web2c/luatexdir/lua/luastuff.w b/source/texk/web2c/luatexdir/lua/luastuff.w
index 6181caccf..9ee51c0b2 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");
 
-- 
GitLab