diff options
author | Reuben Thomas <rrt@sc3d.org> | 2015-02-26 23:16:00 +0000 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2015-02-26 23:16:00 +0000 |
commit | cfac9a7a49c4d4cad00bd28b10c5fe69989c5b0c (patch) | |
tree | b87cbf8c1f334d6a32c899acb485a4063d3ec373 | |
parent | 8a223626d37f452e974bb31f3e1c65361c256cf1 (diff) | |
download | lrexlib-cfac9a7a49c4d4cad00bd28b10c5fe69989c5b0c.tar.gz |
Add Lua 5.3 support (no code change required)
-rw-r--r-- | README.rst | 6 | ||||
-rw-r--r-- | rockspecs.lua | 11 |
2 files changed, 9 insertions, 8 deletions
@@ -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. diff --git a/rockspecs.lua b/rockspecs.lua index dde9497..487185c 100644 --- a/rockspecs.lua +++ b/rockspecs.lua @@ -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"} } } |