Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add braces and suppress warning.strerror | Philipp Janda | 2017-09-24 | 1 | -3/+7 |
| | |||||
* | Do less stuff when sz is 0 in compat53_strerror(). | Philipp Janda | 2017-09-23 | 1 | -10/+10 |
| | |||||
* | Transparently handle GNU/XSI strerror_r. | Philipp Janda | 2017-09-23 | 1 | -45/+20 |
| | | | | Closes #36. | ||||
* | Add tests for `luaL_load{buffer,file}x`. | Philipp Janda | 2017-09-16 | 1 | -10/+9 |
| | | | | | Fix bug regarding empty input in `lua_load`. Adapt error message and error code. | ||||
* | Add Lua 5.3 version of `lua_load`. | Philipp Janda | 2017-09-16 | 2 | -37/+70 |
| | | | | | Change `luaL_loadfilex` to use the modified `lua_load` function. Add more credits to the README.md. | ||||
* | Merge branch 'feature/luaL_loadfilebufferx' of ↵ | Philipp Janda | 2017-09-16 | 2 | -4/+264 |
|\ | | | | | | | https://github.com/ThePhD/lua-compat-5.3 into ThePhD-feature/luaL_loadfilebufferx | ||||
| * | fix usage of tabs | The Phantom Derpstorm | 2017-09-13 | 1 | -5/+5 |
| | | |||||
| * | implement luaL_loadbufferx and luaL_loadfilex | ThePhD | 2017-09-13 | 2 | -4/+264 |
| | | |||||
* | | Include lualib.h, remove #define LUA_FILEHANDLE. | Philipp Janda | 2017-09-16 | 1 | -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 Janda | 2017-09-16 | 1 | -0/+12 |
|\ \ | | | | | | | | | | into daurnimator-luaL_Stream | ||||
| * | | Add (partial) luaL_Stream definition | daurnimator | 2017-09-08 | 1 | -0/+9 |
| | | | |||||
| * | | Add LUA_FILEHANDLE define | daurnimator | 2017-09-08 | 1 | -0/+3 |
| | | | |||||
* | | | Merge branch 'fix/lua_Number_casts' of ↵ | Philipp Janda | 2017-09-14 | 1 | -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 ↵ | ThePhD | 2017-09-13 | 1 | -2/+2 |
| | |/ | |/| | | | | | | | conversion-warning compilers for 64-bit builds | ||||
* / | | define LUA_ERRGCMM code for return values | ThePhD | 2017-09-13 | 1 | -0/+13 |
|/ / | |||||
* / | Add lua_resume | daurnimator | 2017-09-08 | 1 | -0/+3 |
|/ | |||||
* | Use FALLTHROUGH annotation to fix -Wimplicit-fallthrough warning | daurnimator | 2017-09-03 | 1 | -1/+1 |
| | | | | | Using a form that passes -Wimplicit-fallthrough=4. See https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gcc/Warning-Options.html#index-Wimplicit-fallthrough | ||||
* | Put parens around L macro parameter as well. | Philipp Janda | 2017-08-27 | 1 | -33/+33 |
| | | | | | Lua only reserves the right to evaluate L multiples times after all, *not* that L won't contain commas. | ||||
* | Provide fixed luaL_tolstring for Lua 5.2 as well. | Philipp Janda | 2017-08-27 | 2 | -37/+37 |
| | |||||
* | Add parens around macro arguments. | Philipp Janda | 2017-08-27 | 2 | -35/+35 |
| | | | | Fixes #22. | ||||
* | Handle lua_pushlstring edge case for Lua 5.2 too. | Philipp Janda | 2017-08-27 | 1 | -0/+3 |
| | |||||
* | Handle edge case for lua_pushlstring(). Add test. | Philipp Janda | 2017-08-27 | 1 | -1/+1 |
| | |||||
* | Add lua_pushlstring (return value) | daurnimator | 2017-08-26 | 1 | -0/+3 |
| | |||||
* | Have lua_pushstring return the pushed string | daurnimator | 2017-08-26 | 1 | -0/+3 |
| | | | | Fixes #21 | ||||
* | Update behavior of luaL_tolstring(). | Philipp Janda | 2017-08-08 | 1 | -3/+10 |
| | |||||
* | Fix compilation issues with recent LuaJIT 2.1. | Philipp Janda | 2017-08-07 | 2 | -26/+39 |
| | | | | | | | | Protect macros with `#ifndef`. Use "compat53" prefix instead of "lua" prefix for the mode where static versions of the C API functions are created. Fixes #19. | ||||
* | Fix lua_len and luaL_len to use lua_Integer. | Philipp Janda | 2016-07-08 | 2 | -8/+11 |
| | |||||
* | OSX is a Unix. | Philipp Janda | 2016-01-22 | 1 | -1/+2 |
| | |||||
* | luaL_checkstack accepts NULL message.v0.3 | Philipp Janda | 2015-09-13 | 2 | -0/+15 |
| | |||||
* | Fix macro for lua_stringtonumber. | Philipp Janda | 2015-09-07 | 1 | -1/+1 |
| | |||||
* | Fix linker problems when compiling as C++. | Philipp Janda | 2015-09-07 | 2 | -2/+6 |
| | | | | | | When compiling compat-5.3.c as C++, the Lua symbols may still have C-linkage. Reference those symbols as `extern "C"` by default and add an option for normal (C++) linkage. | ||||
* | Make C API compile as C++. | Philipp Janda | 2015-09-05 | 1 | -1/+1 |
| | |||||
* | luaL_newmetatable sets __name on all Lua versions. | Philipp Janda | 2015-07-11 | 1 | -0/+3 |
| | |||||
* | Add luaL_execresult to C API. | Philipp Janda | 2015-05-20 | 2 | -2/+42 |
| | |||||
* | remove support for luaL_Stream (due to LuaJIT incompatibility) | Philipp Janda | 2015-03-08 | 1 | -13/+0 |
| | |||||
* | make sure that _LOADED is not nil | Alessandro Ghedini | 2015-02-25 | 1 | -1/+1 |
| | |||||
* | fix test for invalid LUA_OP* | Philipp Janda | 2015-02-20 | 1 | -1/+1 |
| | |||||
* | Make code snippets more readable. | Hisham Muhammad | 2015-02-20 | 1 | -30/+13 |
| | |||||
* | remove spurious (void*) cast | Philipp Janda | 2015-02-16 | 1 | -1/+1 |
| | |||||
* | make LuaJIT support for luaL_Stream interface possible | Philipp Janda | 2015-02-14 | 1 | -0/+7 |
| | |||||
* | minor fixes | Philipp Janda | 2015-01-24 | 1 | -4/+3 |
| | |||||
* | better performance for lua_compare; some code refactoring | Philipp Janda | 2015-01-24 | 1 | -45/+41 |
| | |||||
* | fix typo | Philipp Janda | 2015-01-23 | 1 | -1/+1 |
| | |||||
* | backport Lua 5.2/5.3 buffer API for Lua 5.1 | Philipp Janda | 2015-01-21 | 2 | -4/+108 |
| | |||||
* | luajit already has yieldable (x)pcall, add tests for code from compat52 | Philipp Janda | 2015-01-20 | 1 | -0/+1 |
| | |||||
* | add lua_arith and lua_compare for Lua 5.1 | Philipp Janda | 2015-01-20 | 2 | -2/+106 |
| | |||||
* | prepare to use ltablib.c from 5.3 for table library | Philipp Janda | 2015-01-19 | 1 | -1/+2 |
| | |||||
* | add fallback for lua_str2number, readme fix | Philipp Janda | 2015-01-13 | 1 | -0/+4 |
| | |||||
* | add initial implementation of c-api and license | Philipp Janda | 2015-01-13 | 2 | -0/+724 |