summaryrefslogtreecommitdiff
path: root/Build/source/libs/luajit/TLpatches
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2018-01-17 18:00:12 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2018-01-17 18:00:12 +0000
commitf100e939b3262ac391fe767d591d1a316ab59f3a (patch)
tree53787d7aa79da3a8b10df0049cfe623cf0f2bd89 /Build/source/libs/luajit/TLpatches
parent345e6b3ddab394ae88cd0d916992bc2bc0f8695d (diff)
Luatex 1.07 --- luatex and luatex53
git-svn-id: svn://tug.org/texlive/trunk@46348 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/luajit/TLpatches')
-rw-r--r--Build/source/libs/luajit/TLpatches/patch-046
-rw-r--r--Build/source/libs/luajit/TLpatches/patch-0913
2 files changed, 16 insertions, 3 deletions
diff --git a/Build/source/libs/luajit/TLpatches/patch-04 b/Build/source/libs/luajit/TLpatches/patch-04
index 83881026a1d..c382ca11993 100644
--- a/Build/source/libs/luajit/TLpatches/patch-04
+++ b/Build/source/libs/luajit/TLpatches/patch-04
@@ -33,12 +33,16 @@ diff -bur LuaJIT-2.1.0-beta3-orig/src/lauxlib.h LuaJIT-2.1.0-beta3/src/lauxlib.h
/*
** ===============================================================
** some useful macros
-@@ -155,6 +180,8 @@
+@@ -155,6 +180,12 @@
LUALIB_API void (luaL_addvalue) (luaL_Buffer *B);
LUALIB_API void (luaL_pushresult) (luaL_Buffer *B);
++/* -- Luajittex needs this one because it's faster than make it Lua -- */
++LUA_API int (RESERVED_lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip);
+/* Luajittex needs this one because it overloads loadfile */
+LUALIB_API int (RESERVED_load_aux_JIT) (lua_State *L, int status, int envarg);
++
++
/* }====================================================== */
diff --git a/Build/source/libs/luajit/TLpatches/patch-09 b/Build/source/libs/luajit/TLpatches/patch-09
index 312031f36f2..d0fcf9b2946 100644
--- a/Build/source/libs/luajit/TLpatches/patch-09
+++ b/Build/source/libs/luajit/TLpatches/patch-09
@@ -1,11 +1,20 @@
diff -bur LuaJIT-2.1.0-beta3-orig/src/lj_load.c LuaJIT-2.1.0-beta3/src/lj_load.c
--- LuaJIT-2.1.0-beta3-orig/src/lj_load.c 2017-05-01 21:05:00.000000000 +0200
+++ LuaJIT-2.1.0-beta3/src/lj_load.c 2017-06-19 18:05:35.864190001 +0200
-@@ -166,3 +166,22 @@
+@@ -166,3 +166,31 @@
return 1;
}
-+
++/* -- Luajittex needs this one because it's faster than make it Lua -- */
++LUA_API int RESERVED_lua_dump(lua_State *L, lua_Writer writer, void *data, int strip)
++{
++ cTValue *o = L->top-1;
++ api_check(L, L->top > L->base);
++ if (tvisfunc(o) && isluafunc(funcV(o)))
++ return lj_bcwrite(L, funcproto(funcV(o)), writer, data, strip);
++ else
++ return 1;
++}
+
+/* -- Luajittex needs this one because it overloads loadfile -- */
+LUALIB_API int RESERVED_load_aux_JIT(lua_State *L, int status, int envarg)