summaryrefslogtreecommitdiff
path: root/Build/source/libs/luajit/TLpatches/patch-06
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/luajit/TLpatches/patch-06')
-rw-r--r--Build/source/libs/luajit/TLpatches/patch-0653
1 files changed, 0 insertions, 53 deletions
diff --git a/Build/source/libs/luajit/TLpatches/patch-06 b/Build/source/libs/luajit/TLpatches/patch-06
deleted file mode 100644
index 8786dd4d621..00000000000
--- a/Build/source/libs/luajit/TLpatches/patch-06
+++ /dev/null
@@ -1,53 +0,0 @@
-diff -bur LuaJIT-2.1.0-beta3-orig/src/lib_package.c LuaJIT-2.1.0-beta3/src/lib_package.c
---- LuaJIT-2.1.0-beta3-orig/src/lib_package.c 2017-05-01 21:05:00.000000000 +0200
-+++ LuaJIT-2.1.0-beta3/src/lib_package.c 2017-06-19 16:54:20.092831408 +0200
-@@ -361,6 +361,28 @@
- return 1; /* library loaded successfully */
- }
-
-+#define LUA_POF "luaopen_"
-+#define LUA_OFSEP "_"
-+#define POF LUA_POF
-+
-+static const char *mkfuncname (lua_State *L, const char *modname) {
-+ const char *funcname;
-+ const char *mark = strchr(modname, *LUA_IGMARK);
-+ if (mark) modname = mark + 1;
-+ funcname = luaL_gsub(L, modname, ".", LUA_OFSEP);
-+ funcname = lua_pushfstring(L, POF"%s", funcname);
-+ lua_remove(L, -2); /* remove 'gsub' result */
-+ return funcname;
-+}
-+
-+int loader_C_luatex (lua_State *L, const char *name, const char *filename) {
-+ const char *funcname;
-+ funcname = mkfuncname(L, name);
-+ if (ll_loadfunc(L, filename, funcname,0) != 0)
-+ loaderror(L, filename);
-+ return 1; /* library loaded successfully */
-+}
-+
- static int lj_cf_package_loader_croot(lua_State *L)
- {
- const char *filename;
-@@ -380,6 +402,20 @@
- return 1;
- }
-
-+int loader_Call_luatex (lua_State *L, const char *name, const char *filename) {
-+ const char *funcname;
-+ int stat;
-+ if (filename == NULL) return 1; /* root not found */
-+ funcname = mkfuncname(L, name);
-+ if ((stat = ll_loadfunc(L, filename, funcname,0)) != 0) {
-+ if (stat != PACKAGE_ERR_FUNC) loaderror(L, filename); /* real error */
-+ lua_pushfstring(L, "\n\tno module " LUA_QS " in file " LUA_QS,
-+ name, filename);
-+ return 1; /* function not found */
-+ }
-+ return 1; /* library loaded successfully */
-+}
-+
- static int lj_cf_package_loader_preload(lua_State *L)
- {
- const char *name = luaL_checkstring(L, 1);