Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add rockspec for new minor release.v0.5 | Philipp Janda | 2017-08-28 | 1 | -0/+32 |
| | |||||
* | 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. | ||||
* | Update backports to Lua 5.3.4. | Philipp Janda | 2017-08-27 | 4 | -85/+126 |
| | |||||
* | Provide fixed luaL_tolstring for Lua 5.2 as well. | Philipp Janda | 2017-08-27 | 2 | -37/+37 |
| | |||||
* | Fix compilation for older versions of Lua 5.3. | Philipp Janda | 2017-08-27 | 1 | -0/+5 |
| | | | | Fixes #20. | ||||
* | 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 |
| | |||||
* | Merge branch 'daurnimator-pushstring-return' | Philipp Janda | 2017-08-27 | 4 | -0/+20 |
|\ | |||||
| * | Handle edge case for lua_pushlstring(). Add test. | Philipp Janda | 2017-08-27 | 3 | -1/+14 |
| | | |||||
| * | Add lua_pushlstring (return value) | daurnimator | 2017-08-26 | 2 | -1/+4 |
| | | |||||
| * | Have lua_pushstring return the pushed string | daurnimator | 2017-08-26 | 2 | -0/+4 |
|/ | | | | Fixes #21 | ||||
* | Add rockspec for new minor release.v0.4 | Philipp Janda | 2017-08-09 | 1 | -0/+32 |
| | |||||
* | Add tests for luaL_tolstring and string.pack. | Philipp Janda | 2017-08-09 | 1 | -2/+6 |
| | |||||
* | 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 | 3 | -27/+44 |
| | | | | | | | | 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 |
| | |||||
* | Merge pull request #18 from jvprat/loadstring | Philipp Janda | 2016-05-19 | 1 | -1/+1 |
|\ | | | | | Fix loadstring on Lua 5.1 | ||||
| * | Fix loadstring on Lua 5.1 | Jordi Vilalta Prat | 2016-05-18 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #17 from jvprat/os_execute | Philipp Janda | 2016-04-26 | 1 | -1/+4 |
|\ | | | | | Fix the return code of os.execute() on Windows. | ||||
| * | Fix the return code of os.execute() on Windows. | Jordi Vilalta Prat | 2016-04-25 | 1 | -1/+4 |
|/ | |||||
* | Simplify utf8 helper function. | Philipp Janda | 2016-02-05 | 2 | -8/+2 |
| | | | | | 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 |
| | |||||
* | Update backports. | Philipp Janda | 2016-01-22 | 4 | -241/+485 |
| | | | | | The backports of lstrlib.c, ltablib.c, and lutf8lib.c have been updated to Lua version 5.3.2. | ||||
* | OSX is a Unix. | Philipp Janda | 2016-01-22 | 1 | -1/+2 |
| | |||||
* | Add rockspec for version 0.3. | Philipp Janda | 2015-09-27 | 1 | -0/+32 |
| | |||||
* | 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 |
| | |||||
* | Make '*' optional for file:lines() and file:read(). | Philipp Janda | 2015-08-24 | 2 | -242/+317 |
| | |||||
* | Make '*' optional for io.read() and io.lines(). | Philipp Janda | 2015-08-23 | 2 | -22/+90 |
| | |||||
* | Mention assert() implementation. | Philipp Janda | 2015-08-18 | 1 | -0/+1 |
| | |||||
* | Remove superfluous redefinitions. | Philipp Janda | 2015-08-18 | 1 | -23/+5 |
| | | | | | | | | | By calling the `compat53.module` version of `coroutine.running` from the `compat53` redefinition, the `main_coroutine` value can be reused and the need for the `coroutine.status` and `coroutine.resume` redefinitions vanishes. Thanks @daurnimator! | ||||
* | assert() can handle non-string errors. | Philipp Janda | 2015-08-18 | 2 | -2/+27 |
| | |||||
* | luaL_newmetatable sets __name on all Lua versions. | Philipp Janda | 2015-07-11 | 2 | -1/+7 |
| | |||||
* | Compress decimal escapes for string.format("%q"). | Philipp Janda | 2015-06-02 | 2 | -4/+4 |
| | | | | | | | | 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 | 5 | -3/+55 |
| | |||||
* | Add rockspec for version 0.2. | Philipp Janda | 2015-05-01 | 1 | -0/+32 |
| | |||||
* | Fix warnings emitted by luacheck.v0.2 | Philipp Janda | 2015-05-01 | 2 | -13/+5 |
| | |||||
* | Update scm rockspec. | Philipp Janda | 2015-04-29 | 1 | -1/+2 |
| | |||||
* | Fix compilation of lstrlib.c for Lua 5.1. | Philipp Janda | 2015-04-29 | 1 | -0/+1 |
| | | | | | | The removal of lualib.h from compat-5.3.h causes an unwanted replacement of luaopen_string to luaopen_string_XXX. Include lualib.h in lprefix.h before the corresponding macro definition to counter that. | ||||
* | Merge branch 'isolated' | Philipp Janda | 2015-04-29 | 4 | -383/+559 |
|\ | | | | | | | | | Conflicts: README.md | ||||
| * | 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. | ||||
| * | Choose correct xpcall implementation in compat53 module. | Philipp Janda | 2015-04-26 | 1 | -2/+2 |
| | | |||||
| * | Fix typo. | Philipp Janda | 2015-04-26 | 1 | -1/+1 |
| | | |||||
| * | Add nonyieldable xpcall that takes extra arguments. | Philipp Janda | 2015-04-26 | 2 | -6/+14 |
| | | | | | | | | | | | | | | | | | | Although the full-featured yieldable xpcall has been moved to the compat53 module, the compat53.module module can at least have a version that takes and passes extra arguments. Also remove some unnecessary local aliases left over from previous refactoring. | ||||
| * | Document changes to compat53.module in readme. | Philipp Janda | 2015-04-25 | 1 | -19/+10 |
| | | |||||
| * | Refactor compat53 and compat53.module Lua modules. | Philipp Janda | 2015-04-25 | 3 | -968/+985 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new compat53.module module contains only changes that don't affect other files, and it is supposed to be used in modules like this: local _ENV = require( "compat53.module" ) if setfenv then setfenv( 1, _ENV ) end compat53.module does not change string/file metatables, and it also doesn't support yielding from (x)pcall. The compat53 module copies all functions from compat53.module to the global environment, and additionally sets string/file metatables and implements yieldable (x)pcall. | ||||
| * | Merge branch 'master' into isolated | Philipp Janda | 2015-04-20 | 1 | -7/+18 |
| |\ | | | | | | | | | | | | | Conflicts: compat53/base.lua | ||||
| * | | document new submodules | Philipp Janda | 2015-04-12 | 1 | -1/+26 |
| | | |