aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add rockspec for new minor release.v0.5Philipp Janda2017-08-281-0/+32
|
* Put parens around L macro parameter as well.Philipp Janda2017-08-271-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 Janda2017-08-274-85/+126
|
* Provide fixed luaL_tolstring for Lua 5.2 as well.Philipp Janda2017-08-272-37/+37
|
* Fix compilation for older versions of Lua 5.3.Philipp Janda2017-08-271-0/+5
| | | | Fixes #20.
* Add parens around macro arguments.Philipp Janda2017-08-272-35/+35
| | | | Fixes #22.
* Handle lua_pushlstring edge case for Lua 5.2 too.Philipp Janda2017-08-271-0/+3
|
* Merge branch 'daurnimator-pushstring-return'Philipp Janda2017-08-274-0/+20
|\
| * Handle edge case for lua_pushlstring(). Add test.Philipp Janda2017-08-273-1/+14
| |
| * Add lua_pushlstring (return value)daurnimator2017-08-262-1/+4
| |
| * Have lua_pushstring return the pushed stringdaurnimator2017-08-262-0/+4
|/ | | | Fixes #21
* Add rockspec for new minor release.v0.4Philipp Janda2017-08-091-0/+32
|
* Add tests for luaL_tolstring and string.pack.Philipp Janda2017-08-091-2/+6
|
* Update behavior of luaL_tolstring().Philipp Janda2017-08-081-3/+10
|
* Fix compilation issues with recent LuaJIT 2.1.Philipp Janda2017-08-073-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 Janda2016-07-082-8/+11
|
* Merge pull request #18 from jvprat/loadstringPhilipp Janda2016-05-191-1/+1
|\ | | | | Fix loadstring on Lua 5.1
| * Fix loadstring on Lua 5.1Jordi Vilalta Prat2016-05-181-1/+1
|/
* Merge pull request #17 from jvprat/os_executePhilipp Janda2016-04-261-1/+4
|\ | | | | Fix the return code of os.execute() on Windows.
| * Fix the return code of os.execute() on Windows.Jordi Vilalta Prat2016-04-251-1/+4
|/
* Simplify utf8 helper function.Philipp Janda2016-02-052-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 Janda2016-01-241-0/+42
|
* Update backports.Philipp Janda2016-01-224-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 Janda2016-01-221-1/+2
|
* Add rockspec for version 0.3.Philipp Janda2015-09-271-0/+32
|
* luaL_checkstack accepts NULL message.v0.3Philipp Janda2015-09-132-0/+15
|
* Fix macro for lua_stringtonumber.Philipp Janda2015-09-071-1/+1
|
* Fix linker problems when compiling as C++.Philipp Janda2015-09-072-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 Janda2015-09-051-1/+1
|
* Make '*' optional for file:lines() and file:read().Philipp Janda2015-08-242-242/+317
|
* Make '*' optional for io.read() and io.lines().Philipp Janda2015-08-232-22/+90
|
* Mention assert() implementation.Philipp Janda2015-08-181-0/+1
|
* Remove superfluous redefinitions.Philipp Janda2015-08-181-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 Janda2015-08-182-2/+27
|
* luaL_newmetatable sets __name on all Lua versions.Philipp Janda2015-07-112-1/+7
|
* Compress decimal escapes for string.format("%q").Philipp Janda2015-06-022-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 Janda2015-05-205-3/+55
|
* Add rockspec for version 0.2.Philipp Janda2015-05-011-0/+32
|
* Fix warnings emitted by luacheck.v0.2Philipp Janda2015-05-012-13/+5
|
* Update scm rockspec.Philipp Janda2015-04-291-1/+2
|
* Fix compilation of lstrlib.c for Lua 5.1.Philipp Janda2015-04-291-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 Janda2015-04-294-383/+559
|\ | | | | | | | | Conflicts: README.md
| * Adapt tests for compat53.module.Philipp Janda2015-04-261-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 Janda2015-04-261-2/+2
| |
| * Fix typo.Philipp Janda2015-04-261-1/+1
| |
| * Add nonyieldable xpcall that takes extra arguments.Philipp Janda2015-04-262-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 Janda2015-04-251-19/+10
| |
| * Refactor compat53 and compat53.module Lua modules.Philipp Janda2015-04-253-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 isolatedPhilipp Janda2015-04-201-7/+18
| |\ | | | | | | | | | | | | Conflicts: compat53/base.lua
| * | document new submodulesPhilipp Janda2015-04-121-1/+26
| | |