aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release: 0.12v0.12Hisham Muhammad2023-11-021-0/+33
|
* Fix missing closing parenthesis in preprocessor macro (#58)Gran PC2023-11-021-1/+1
| | | | | | | | | | | | | | | | | | | Fixes this: ```In file included from liolib.c:10:0: lprefix.h:201:0: warning: "LUA_USE_POSIX" redefined [enabled by default] # define LUA_USE_POSIX 1 ^ In file included from /usr/include/lua.h:16:0, from c-api/compat-5.3.h:10, from lprefix.h:46, from liolib.c:10: /usr/include/luaconf.h:21:0: note: this is the location of the previous definition #define LUA_USE_POSIX ^ In file included from liolib.c:10:0: lprefix.h:202:9: error: missing ')' in expression # elif (defined(_MSC_VER) ```
* Release: 0.11v0.11Hisham Muhammad2023-10-192-1/+34
|
* Support getting io.popen results on file:close() on PUC-Rio Lua 5.1 (#53)Hisham Muhammad2023-09-138-2/+906
|
* strerror_r is not available on mingw (#57)Hisham Muhammad2022-08-011-2/+3
|
* keplerproject -> lunarmodulesHisham Muhammad2022-07-2613-45/+46
| | | | | | | | | | Regarding the copyright: Kepler Project did not exist as an entity in 2015, and the original copyright for lua-compat-5.2 on which this is based said "Copyright 2013 Hisham Muhammad." The updated notice should be a better representation of authorship, including the copyright for the parts included from upstream Lua.
* Convert lua_pushlstring from a macro to a function (#55)Philipp Janda2021-12-182-6/+11
| | | | This should avoid issues with multiple evaluations of the arguments, which should be very rare, but could in principle happen.
* GitHub Actions (#51)Philipp Janda2020-11-112-1/+67
|
* Multi arch tests (#50)Philipp Janda2020-11-111-0/+51
|
* Add latest bit32 rockspecPhilipp Janda2020-11-081-0/+28
|
* Fix bit32 conversion issues for Lua 5.1 on 32 bitv0.10Philipp Janda2020-10-102-2/+13
| | | | | | | The default unsigned conversion procedure from upstream using `lua_Integer` as an intermediate value fails if `lua_Integer` has only 32 bits (as is the case on 32 bit Lua 5.1). This fix uses a `lua_Number` (hopefully double) as intermediate value in those cases.
* Fix bit32 scm rockspecPhilipp Janda2020-10-101-1/+1
|
* Fix repository name in rockspecv0.9Philipp Janda2020-07-091-1/+1
|
* Add bit32 libraryPhilipp Janda2020-07-094-0/+298
|
* Make it usable on Lua 5.4v0.8Philipp Janda2020-07-085-6/+40
|
* Update backports to Lua 5.3.5 versionsPhilipp Janda2018-12-153-7/+7
|
* Fix feature detection for strerror_rPhilipp Janda2018-12-151-2/+3
| | | | Closes #44.
* Fix structure initialization in compat53 lua_loadPhilipp Janda2018-12-151-1/+3
| | | | Closes #45.
* Make test C module compile as C++ again.Philipp Janda2018-07-291-1/+1
|
* Link to `lua_getextraspace` quirks in README.md.Philipp Janda2018-07-291-1/+2
|
* Improve `lua_getextraspace` tests.Philipp Janda2018-07-291-7/+21
|
* Add an implementation of `lua_getextraspace()`.Philipp Janda2018-07-275-6/+92
|
* Add rockspec for v0.7 release.Philipp Janda2018-07-081-0/+32
|
* Fix feature test for C11 Annex K (strerror_s).v0.7Philipp Janda2018-04-261-2/+2
| | | | Fixes #41.
* Provide strict lua_tointegerx for Lua 5.2 as well.Philipp Janda2018-02-112-19/+19
| | | | Closes #40.
* lua_tointeger(x) rejects non-ints for Lua 5.1.Philipp Janda2018-01-134-5/+20
|
* Verify that lua_getuservalue returns type.Philipp Janda2018-01-131-2/+2
| | | | Closes #39.
* Merge pull request #38 from ThePhD/warnings/vcxxv0.6Philipp Janda2017-10-091-2/+2
|\ | | | | fix VC warnings for integer down-conversions to char
| * fix VC warnings for integer down-conversions to charThePhD2017-10-041-2/+2
|/
* Merge pull request #37 from keplerproject/strerrorPhilipp Janda2017-10-011-46/+25
|\ | | | | Transparently handle GNU/XSI strerror_r.
| * Add braces and suppress warning.strerrorPhilipp Janda2017-09-241-3/+7
| |
| * Do less stuff when sz is 0 in compat53_strerror().Philipp Janda2017-09-231-10/+10
| |
| * Transparently handle GNU/XSI strerror_r.Philipp Janda2017-09-231-45/+20
|/ | | | Closes #36.
* Add Travis-CI integrationPhilipp Janda2017-09-184-7/+60
|
* Fix links in the README.md.Philipp Janda2017-09-161-3/+3
|
* Merge branch 'ThePhD-feature/luaL_loadfilebufferx'Philipp Janda2017-09-165-72/+421
|\
| * Add tests for `luaL_load{buffer,file}x`.Philipp Janda2017-09-163-76/+129
| | | | | | | | | | Fix bug regarding empty input in `lua_load`. Adapt error message and error code.
| * Add Lua 5.3 version of `lua_load`.Philipp Janda2017-09-163-37/+73
| | | | | | | | | | Change `luaL_loadfilex` to use the modified `lua_load` function. Add more credits to the README.md.
| * Merge branch 'feature/luaL_loadfilebufferx' of ↵Philipp Janda2017-09-163-6/+266
|/| | | | | | | https://github.com/ThePhD/lua-compat-5.3 into ThePhD-feature/luaL_loadfilebufferx
| * fix usage of tabsThe Phantom Derpstorm2017-09-131-5/+5
| |
| * update readmeThePhD2017-09-131-2/+2
| |
| * implement luaL_loadbufferx and luaL_loadfilexThePhD2017-09-132-4/+264
| |
* | Merge branch 'daurnimator-luaL_Stream'Philipp Janda2017-09-162-9/+21
|\ \
| * | Include lualib.h, remove #define LUA_FILEHANDLE.Philipp Janda2017-09-161-8/+5
| | | | | | | | | | | | | | | | | | | | | This avoids warnings about redefinitions when `lualib.h` is included after `compat-5.3.h`. Lua 5.1 only. Also make clear that `COMPAT53_INCLUDE_SOURCE` is an internal macro by undefining it before we use it.
| * | Merge branch 'luaL_Stream' of https://github.com/daurnimator/lua-compat-5.3 ↵Philipp Janda2017-09-162-6/+21
|/| | | | | | | | | | | into daurnimator-luaL_Stream
| * | Add (partial) luaL_Stream definitiondaurnimator2017-09-082-6/+17
| | |
| * | Add LUA_FILEHANDLE definedaurnimator2017-09-082-0/+4
| | |
* | | Merge branch 'ThePhD-fix/lua_Number_casts'Philipp Janda2017-09-141-2/+2
|\ \ \
| * | | Merge branch 'fix/lua_Number_casts' of ↵Philipp Janda2017-09-141-2/+2
|/| | | | | | | | | | | | | | | https://github.com/ThePhD/lua-compat-5.3 into ThePhD-fix/lua_Number_casts
| * | | fix `lua_Integer` casts that error on Visual C++ and other pedantic ↵ThePhD2017-09-131-2/+2
| | |/ | |/| | | | | | | conversion-warning compilers for 64-bit builds