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

clean up -- !!! WARNING: WORK IN PROGRESS !!!

parent f446611e
No related branches found
No related tags found
No related merge requests found
...@@ -337,7 +337,6 @@ void luainterpreter(void) ...@@ -337,7 +337,6 @@ void luainterpreter(void)
/* our own libraries register themselves */ /* our own libraries register themselves */
luaopen_fio(L); luaopen_fio(L);
lua_setglobal(L, "fio");
luaopen_ff(L); luaopen_ff(L);
luaopen_tex(L); luaopen_tex(L);
luaopen_token(L); luaopen_token(L);
...@@ -355,27 +354,12 @@ lua_setglobal(L, "fio"); ...@@ -355,27 +354,12 @@ lua_setglobal(L, "fio");
luaopen_vf(L); luaopen_vf(L);
luaopen_pdf(L); luaopen_pdf(L);
luaopen_epdf(L); luaopen_epdf(L);
/*luaopen_pdfscanner(L);*/ luaopen_pdfscanner(L);
if (!lua_only) { if (!lua_only) {
#ifdef LuajitTeX luaopen_img(L);
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_pdfscanner(L);| */
lua_pushcfunction(L, luaopen_pdfscanner);
lua_pushstring(L, "pdfscanner");
lua_call(L, 1, 0);
lua_createtable(L, 0, 0); lua_createtable(L, 0, 0);
lua_setglobal(L, "texconfig"); lua_setglobal(L, "texconfig");
......
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