aboutsummaryrefslogtreecommitdiff
path: root/src/luajit.patch
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-04-25 22:52:33 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2018-04-25 22:52:33 -0400
commit5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39 (patch)
treea66ddc4caf4b8a9509330433571d586a6843fe27 /src/luajit.patch
parent795f72c6d49c0566517a43808ce7aaf405220f31 (diff)
downloadtextadept-5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39.tar.gz
textadept-5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39.zip
Removed LuaJIT version of Textadept.
Also updated to Lua 5.3 syntax where held back by LuaJIT's 5.1/5.2 syntax.
Diffstat (limited to 'src/luajit.patch')
-rw-r--r--src/luajit.patch63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/luajit.patch b/src/luajit.patch
deleted file mode 100644
index 3f467d36..00000000
--- a/src/luajit.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-diff -r a7133e1798ac src/Makefile
---- a/src/Makefile Thu Jun 13 08:39:50 2013 -0400
-+++ b/src/Makefile Thu Jun 13 08:43:22 2013 -0400
-@@ -100,7 +100,7 @@
- # enabled by default. Some other features that *might* break some existing
- # code (e.g. __pairs or os.execute() return values) can be enabled here.
- # Note: this does not provide full compatibility with Lua 5.2 at this time.
--#XCFLAGS+= -DLUAJIT_ENABLE_LUA52COMPAT
-+XCFLAGS+= -DLUAJIT_ENABLE_LUA52COMPAT
- #
- # Disable the JIT compiler, i.e. turn LuaJIT into a pure interpreter.
- #XCFLAGS+= -DLUAJIT_DISABLE_JIT
-diff -r 509ca9567f6f src/luaconf.h
---- a/src/luaconf.h Wed Mar 19 23:15:13 2014 -0400
-+++ b/src/luaconf.h Wed Mar 19 23:22:19 2014 -0400
-@@ -21,9 +21,9 @@
- #define LUA_LDIR "!\\lua\\"
- #define LUA_CDIR "!\\"
- #define LUA_PATH_DEFAULT \
-- ".\\?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;"
-+ LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;"
- #define LUA_CPATH_DEFAULT \
-- ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
-+ LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
- #else
- /*
- ** Note to distribution maintainers: do NOT patch the following lines!
-@@ -35,7 +35,7 @@
- #ifndef LUA_LMULTILIB
- #define LUA_LMULTILIB "lib"
- #endif
--#define LUA_LROOT "/usr/local"
-+#define LUA_LROOT "/usr/"
- #define LUA_LUADIR "/lua/5.1/"
- #define LUA_LJDIR "/luajit-2.0.3/"
-
-@@ -51,20 +51,20 @@
- #define LUA_RCPATH
- #endif
-
--#define LUA_JPATH ";" LUA_JROOT "/share" LUA_LJDIR "?.lua"
-+#define LUA_JPATH LUA_JROOT "/share" LUA_LJDIR "?.lua"
- #define LUA_LLDIR LUA_LROOT "/share" LUA_LUADIR
- #define LUA_LCDIR LUA_LROOT "/" LUA_LMULTILIB LUA_LUADIR
- #define LUA_LLPATH ";" LUA_LLDIR "?.lua;" LUA_LLDIR "?/init.lua"
--#define LUA_LCPATH1 ";" LUA_LCDIR "?.so"
-+#define LUA_LCPATH1 LUA_LCDIR "?.so"
- #define LUA_LCPATH2 ";" LUA_LCDIR "loadall.so"
-
--#define LUA_PATH_DEFAULT "./?.lua" LUA_JPATH LUA_LLPATH LUA_RLPATH
--#define LUA_CPATH_DEFAULT "./?.so" LUA_LCPATH1 LUA_RCPATH LUA_LCPATH2
-+#define LUA_PATH_DEFAULT LUA_JPATH LUA_LLPATH LUA_RLPATH
-+#define LUA_CPATH_DEFAULT LUA_LCPATH1 LUA_RCPATH LUA_LCPATH2
- #endif
-
- /* Environment variable names for path overrides and initialization code. */
--#define LUA_PATH "LUA_PATH"
--#define LUA_CPATH "LUA_CPATH"
-+#define LUA_PATH "TA_LUA_PATH"
-+#define LUA_CPATH "TA_LUA_CPATH"
- #define LUA_INIT "LUA_INIT"
-
- /* Special file system characters. */