diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-03-11 07:48:18 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2015-03-11 07:48:18 +0000 |
commit | d968be62390458d3c5f47f58517a50f34cc5f6c9 (patch) | |
tree | 65ab762830812433c34fb2f2301c6c2929454fe5 /Build/source/libs/lua52/lua-5.2.4-PATCHES | |
parent | 3b0b3263acb8f019faefec094b4f75ded56b6a9f (diff) |
lua 5.2.4
git-svn-id: svn://tug.org/texlive/trunk@36481 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/lua52/lua-5.2.4-PATCHES')
4 files changed, 108 insertions, 0 deletions
diff --git a/Build/source/libs/lua52/lua-5.2.4-PATCHES/ChangeLog b/Build/source/libs/lua52/lua-5.2.4-PATCHES/ChangeLog new file mode 100644 index 00000000000..a8f1b4d385f --- /dev/null +++ b/Build/source/libs/lua52/lua-5.2.4-PATCHES/ChangeLog @@ -0,0 +1,36 @@ +2015-03-11 Peter Breitenlohner <peb@mppmu.mpg.de> + + Import lua-5.2.4/ from http://www.lua.org/ftp/lua-5.2.4.tar.gz. + + * patch-01-utf-8, patch-02-FreeBSD, patch-03-export: Adapted. + +2014-10-22 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-03-export (new): Export symbols for LuaTeX (from Luigi). + +2014-02-13 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-02-FreeBSD (new): Required for FreeBSD. + From Nikola Lecic <nikola.lecic@anthesphoria.net>. + +2014-02-13 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-01-utf-8 (new): Allow utf-8 chars in identifiers. + From Luigi Scarso <luigi.scarso@gmail.com>. + +2012-12-07 Peter Breitenlohner <peb@mppmu.mpg.de> + + Import lua-5.2.3/ from http://www.lua.org/ftp/lua-5.2.3.tar.gz. + +2012-06-25 Peter Breitenlohner <peb@mppmu.mpg.de> + + Import lua-5.2.2/ from http://www.lua.org/ftp/lua-5.2.2.tar.gz. + + * patch-01-const (removed): Now included upstream. + +2012-06-18 Peter Breitenlohner <peb@mppmu.mpg.de> + + Import lua-5.2.1/ from http://www.lua.org/ftp/lua-5.2.1.tar.gz. + + * patch-01-const (new): Add const to avoid warning. + diff --git a/Build/source/libs/lua52/lua-5.2.4-PATCHES/patch-01-utf-8 b/Build/source/libs/lua52/lua-5.2.4-PATCHES/patch-01-utf-8 new file mode 100644 index 00000000000..9ad97494106 --- /dev/null +++ b/Build/source/libs/lua52/lua-5.2.4-PATCHES/patch-01-utf-8 @@ -0,0 +1,26 @@ +diff -ur lua-5.2.4.orig/src/lctype.h lua-5.2.4/src/lctype.h +--- lua-5.2.4.orig/src/lctype.h 2013-04-12 20:48:47.000000000 +0200 ++++ lua-5.2.4/src/lctype.h 2014-02-13 13:17:33.000000000 +0100 +@@ -7,6 +7,8 @@ + #ifndef lctype_h + #define lctype_h + ++#include <ctype.h> ++ + #include "lua.h" + + +@@ -53,9 +55,11 @@ + + /* + ** 'lalpha' (Lua alphabetic) and 'lalnum' (Lua alphanumeric) both include '_' ++** ++** all utf-8 chars (greater than 0x7f) are always alphabetic + */ +-#define lislalpha(c) testprop(c, MASK(ALPHABIT)) +-#define lislalnum(c) testprop(c, (MASK(ALPHABIT) | MASK(DIGITBIT))) ++#define lislalpha(c) (isalpha(c) || (c) == '_' || (c) > 0x7f) ++#define lislalnum(c) (isalnum(c) || (c) == '_' || (c) > 0x7f) + #define lisdigit(c) testprop(c, MASK(DIGITBIT)) + #define lisspace(c) testprop(c, MASK(SPACEBIT)) + #define lisprint(c) testprop(c, MASK(PRINTBIT)) diff --git a/Build/source/libs/lua52/lua-5.2.4-PATCHES/patch-02-FreeBSD b/Build/source/libs/lua52/lua-5.2.4-PATCHES/patch-02-FreeBSD new file mode 100644 index 00000000000..c9465de9446 --- /dev/null +++ b/Build/source/libs/lua52/lua-5.2.4-PATCHES/patch-02-FreeBSD @@ -0,0 +1,13 @@ +diff -ur lua-5.2.4.orig/src/liolib.c lua-5.2.4/src/liolib.c +--- lua-5.2.4.orig/src/liolib.c 2013-04-12 20:48:47.000000000 +0200 ++++ lua-5.2.4/src/liolib.c 2014-03-19 15:03:49.727286832 +0100 +@@ -19,6 +19,9 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#if defined(HAVE_UNISTD_H) ++#include <unistd.h> ++#endif + + #define liolib_c + #define LUA_LIB diff --git a/Build/source/libs/lua52/lua-5.2.4-PATCHES/patch-03-export b/Build/source/libs/lua52/lua-5.2.4-PATCHES/patch-03-export new file mode 100644 index 00000000000..2c2edd01b6a --- /dev/null +++ b/Build/source/libs/lua52/lua-5.2.4-PATCHES/patch-03-export @@ -0,0 +1,33 @@ +diff -ur lua-5.2.4.orig/src/lopcodes.h lua-5.2.4/src/lopcodes.h +--- lua-5.2.4.orig/src/lopcodes.h 2014-10-20 20:32:09.000000000 +0200 ++++ lua-5.2.4/src/lopcodes.h 2015-03-11 08:31:42.000000000 +0100 +@@ -269,7 +269,7 @@ + OpArgK /* argument is a constant or register/constant */ + }; + +-LUAI_DDEC const lu_byte luaP_opmodes[NUM_OPCODES]; ++LUA_API const lu_byte luaP_opmodes[NUM_OPCODES]; + + #define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 3)) + #define getBMode(m) (cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3)) +@@ -278,7 +278,7 @@ + #define testTMode(m) (luaP_opmodes[m] & (1 << 7)) + + +-LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ ++LUA_API const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ + + + /* number of list items to accumulate before a SETLIST instruction */ +diff -ur lua-5.2.4.orig/src/lundump.h lua-5.2.4/src/lundump.h +--- lua-5.2.4.orig/src/lundump.h 2013-04-12 20:48:47.000000000 +0200 ++++ lua-5.2.4/src/lundump.h 2014-10-22 11:14:59.000000000 +0200 +@@ -17,7 +17,7 @@ + LUAI_FUNC void luaU_header (lu_byte* h); + + /* dump one chunk; from ldump.c */ +-LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); ++LUA_API int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); + + /* data to catch conversion errors */ + #define LUAC_TAIL "\x19\x93\r\n\x1a\n" |