Add Lua 5.3 support (no code change required)

This commit is contained in:
Reuben Thomas
2015-02-26 23:16:00 +00:00
parent 8a223626d3
commit cfac9a7a49
2 changed files with 9 additions and 8 deletions
+3 -3
View File
@@ -5,11 +5,11 @@ Lrexlib
| and Shmuel Zeigerman (shmuz@013net.net)
**Lrexlib** provides bindings of five regular expression library APIs
(POSIX_, PCRE_, GNU_, TRE_ and Oniguruma_) to Lua_ 5.1 and Lua 5.2.
(POSIX_, PCRE_, GNU_, TRE_ and Oniguruma_) to Lua_ >= 5.1.
The bindings for TRE and Oniguruma are not currently complete.
**Lrexlib** is copyright Reuben Thomas 2000-2012 and copyright Shmuel
Zeigerman 2004-2012, and is released under the same license as Lua,
**Lrexlib** is copyright Reuben Thomas 2000-2015 and copyright Shmuel
Zeigerman 2004-2015, and is released under the same license as Lua,
the MIT_ license (otherwise known as the revised BSD license). There
is no warranty.
+6 -5
View File
@@ -7,6 +7,7 @@
local flavours = {"PCRE", "POSIX", "oniguruma", "TRE", "GNU"}
local version_dashed = version:gsub ("%.", "-")
local defines = {"VERSION=\""..version.."\"", "LUA_COMPAT_5_2"}
-- FIXME: When Lua 5.1 support is dropped, use an env argument with
-- loadfile instead of wrapping in a table
@@ -44,7 +45,7 @@ PCRE = {
type = "builtin",
modules = {
rex_pcre = {
defines = {"VERSION=\""..version.."\""},
defines = defines,
sources = {"src/common.c", "src/pcre/lpcre.c", "src/pcre/lpcre_f.c"},
libraries = {"pcre"},
incdirs = {"$(PCRE_INCDIR)"},
@@ -64,7 +65,7 @@ POSIX = {
type = "builtin",
modules = {
rex_posix = {
defines = {"VERSION=\""..version.."\""},
defines = defines,
sources = {"src/common.c", "src/posix/lposix.c"}
}
}
@@ -82,7 +83,7 @@ oniguruma = {
type = "builtin",
modules = {
rex_onig = {
defines = {"VERSION=\""..version.."\""},
defines = defines,
sources = {"src/common.c", "src/oniguruma/lonig.c", "src/oniguruma/lonig_f.c"},
libraries = {"onig"},
incdirs = {"$(ONIG_INCDIR)"},
@@ -103,7 +104,7 @@ TRE = {
type = "builtin",
modules = {
rex_tre = {
defines = {"VERSION=\""..version.."\""},
defines = defines,
sources = {"src/common.c", "src/tre/ltre.c" --[[, "src/tre/tre_w.c"]]},
libraries = {"tre"},
incdirs = {"$(TRE_INCDIR)"},
@@ -123,7 +124,7 @@ GNU = {
type = "builtin",
modules = {
rex_gnu = {
defines = {"VERSION=\""..version.."\""},
defines = defines,
sources = {"src/common.c", "src/gnu/lgnu.c"}
}
}