Commit
* luaposix-git-1.rockspec (dependencies): Bump lua to 5.4. * .travis.yml: Add Lua 5.4 to the test matrix. * ext/include/_helpers.c: Add LUA_VERSION_NUM 504. * lib/posix/init.lua: Add parens to require calls in comma expressions in generic for loops with next. * NEWS.md (New Features): Updated. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ sudo: false | |
|
||
env: | ||
matrix: | ||
- VLUA="lua=5.4" | ||
- VLUA="lua=5.3" | ||
- VLUA="lua=5.2" | ||
- VLUA="lua=5.1" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* POSIX library for Lua 5.1, 5.2 & 5.3. | ||
* POSIX library for Lua 5.1, 5.2, 5.3 & 5.4. | ||
* Copyright (C) 2013-2020 Gary V. Vaughan | ||
* Copyright (C) 2010-2013 Reuben Thomas <rrt@sc3d.org> | ||
* Copyright (C) 2008-2010 Natanael Copa <natanael.copa@gmail.com> | ||
|
@@ -67,7 +67,7 @@ | |
# endif | ||
#endif | ||
|
||
#if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 | ||
#if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 504 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
gvvaughan
Author
Contributor
|
||
# define lua_objlen lua_rawlen | ||
# define lua_strlen lua_rawlen | ||
#endif | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ description = { | |
} | ||
|
||
dependencies = { | ||
'lua >= 5.1, < 5.4', | ||
'lua >= 5.1, < 5.5', | ||
} | ||
|
||
do | ||
|
Any reason this isn't just
LUA_VERSION_NUM >= 502
?