Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | adjust file metatables even in compat53.module mode (#67) | Hisham Muhammad | 2024-08-29 | 1 | -8/+15 |
| | | | | | * adjust file metatables even in compat53.module mode * apply tweaks only to LuaJIT; file:write() only to compat=none | ||||
* | fix: math.tointeger accepts strings convertible to integers (#66) | Hisham Muhammad | 2024-08-29 | 1 | -0/+1 |
| | |||||
* | Support getting io.popen results on file:close() on PUC-Rio Lua 5.1 (#53) | Hisham Muhammad | 2023-09-13 | 1 | -0/+14 |
| | |||||
* | Fix bit32 conversion issues for Lua 5.1 on 32 bitv0.10 | Philipp Janda | 2020-10-10 | 1 | -0/+1 |
| | | | | | | | 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. | ||||
* | Add bit32 library | Philipp Janda | 2020-07-09 | 1 | -0/+9 |
| | |||||
* | Make it usable on Lua 5.4v0.8 | Philipp Janda | 2020-07-08 | 1 | -0/+2 |
| | |||||
* | Make test C module compile as C++ again. | Philipp Janda | 2018-07-29 | 1 | -1/+1 |
| | |||||
* | Improve `lua_getextraspace` tests. | Philipp Janda | 2018-07-29 | 1 | -7/+21 |
| | |||||
* | Add an implementation of `lua_getextraspace()`. | Philipp Janda | 2018-07-27 | 2 | -4/+31 |
| | |||||
* | lua_tointeger(x) rejects non-ints for Lua 5.1. | Philipp Janda | 2018-01-13 | 2 | -1/+7 |
| | |||||
* | Verify that lua_getuservalue returns type. | Philipp Janda | 2018-01-13 | 1 | -2/+2 |
| | | | | Closes #39. | ||||
* | Add Travis-CI integration | Philipp Janda | 2017-09-18 | 2 | -7/+11 |
| | |||||
* | Add tests for `luaL_load{buffer,file}x`. | Philipp Janda | 2017-09-16 | 2 | -66/+120 |
| | | | | | Fix bug regarding empty input in `lua_load`. Adapt error message and error code. | ||||
* | Handle edge case for lua_pushlstring(). Add test. | Philipp Janda | 2017-08-27 | 2 | -0/+13 |
| | |||||
* | Add tests for luaL_tolstring and string.pack. | Philipp Janda | 2017-08-09 | 1 | -2/+6 |
| | |||||
* | Simplify utf8 helper function. | Philipp Janda | 2016-02-05 | 1 | -1/+1 |
| | | | | | There's no need for `compat_utf8_escape()` to be a vararg function. Remove default templates from `package.path`. | ||||
* | Add tests for utf8 backport. | Philipp Janda | 2016-01-24 | 1 | -0/+42 |
| | |||||
* | Make '*' optional for file:lines() and file:read(). | Philipp Janda | 2015-08-24 | 1 | -3/+11 |
| | |||||
* | Make '*' optional for io.read() and io.lines(). | Philipp Janda | 2015-08-23 | 1 | -1/+13 |
| | |||||
* | assert() can handle non-string errors. | Philipp Janda | 2015-08-18 | 1 | -2/+13 |
| | |||||
* | luaL_newmetatable sets __name on all Lua versions. | Philipp Janda | 2015-07-11 | 1 | -1/+4 |
| | |||||
* | Compress decimal escapes for string.format("%q"). | Philipp Janda | 2015-06-02 | 1 | -1/+1 |
| | | | | | | | | Lua 5.2+ escape all control characters using decimal escape sequences. The previous code did the same but always used three decimals (possibly zero-padded) no matter the following character. The new version only uses all three decimals when another decimal character is following. | ||||
* | Add luaL_execresult to C API. | Philipp Janda | 2015-05-20 | 2 | -0/+12 |
| | |||||
* | Adapt tests for compat53.module. | Philipp Janda | 2015-04-26 | 1 | -55/+73 |
| | | | | | Run tests for compat53.module if "module" is given as argument to the test script. Skip tests that don't apply in this case. | ||||
* | split compat53 Lua module into separate modules that do/don't modify the ↵ | Philipp Janda | 2015-04-11 | 1 | -1/+1 |
| | | | | global env | ||||
* | backport Lua 5.2/5.3 buffer API for Lua 5.1 | Philipp Janda | 2015-01-21 | 2 | -0/+18 |
| | |||||
* | luajit already has yieldable (x)pcall, add tests for code from compat52 | Philipp Janda | 2015-01-20 | 1 | -1/+345 |
| | |||||
* | use table library from Lua 5.3 sources if available | Philipp Janda | 2015-01-20 | 1 | -0/+3 |
| | |||||
* | add lua_arith and lua_compare for Lua 5.1 | Philipp Janda | 2015-01-20 | 2 | -0/+46 |
| | |||||
* | add table.sort, add code from lua-compat-5.2 | Philipp Janda | 2015-01-18 | 1 | -0/+40 |
| | |||||
* | table library (except table.sort for now) respects metamethods | Philipp Janda | 2015-01-17 | 1 | -1/+115 |
| | |||||
* | add ipairs function that respects __index | Philipp Janda | 2015-01-17 | 1 | -0/+10 |
| | |||||
* | add new fields to math library | Philipp Janda | 2015-01-16 | 1 | -31/+85 |
| | |||||
* | add initial implementation of c-api and license | Philipp Janda | 2015-01-13 | 2 | -0/+355 |