aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| | |
| * | split compat53 Lua module into separate modules that do/don't modify the ↵Philipp Janda2015-04-114-165/+282
| | | | | | | | | | | | global env
* | | Point to correct wiki.Philipp Janda2015-04-211-1/+1
| | |
* | | Link to issue with coroutine.running.Philipp Janda2015-04-211-3/+6
| |/ |/|
* | Make coroutine mappings weak (and document them).Philipp Janda2015-04-201-7/+18
|/ | | | | | | (x)pcall uses coroutines internally to allow yielding. The internal mapping tables for those coroutines (and the initial coroutine that started the pcall) should not keep the threads alive if the (x)pcall yields and is never resumed again.
* link to wiki for functions with compatibility issuesPhilipp Janda2015-03-171-50/+38
|
* remove support for luaL_Stream (due to LuaJIT incompatibility)Philipp Janda2015-03-082-15/+0
|
* Merge pull request #9 from ghedo/requirefPhilipp Janda2015-02-251-1/+1
|\ | | | | make sure that _LOADED is not nil
| * make sure that _LOADED is not nilAlessandro Ghedini2015-02-251-1/+1
|/
* remove some references to global variablesPhilipp Janda2015-02-231-1/+3
|
* fix test for invalid LUA_OP*Philipp Janda2015-02-201-1/+1
|
* Make code snippets more readable.Hisham Muhammad2015-02-201-30/+13
|
* remove spurious (void*) castPhilipp Janda2015-02-161-1/+1
|
* make LuaJIT support for luaL_Stream interface possiblePhilipp Janda2015-02-141-0/+7
|
* minor fixesPhilipp Janda2015-01-241-4/+3
|
* better performance for lua_compare; some code refactoringPhilipp Janda2015-01-242-52/+41
|
* add rockspec for pending 0.1 releasev0.1Philipp Janda2015-01-231-0/+31
|
* fix typoPhilipp Janda2015-01-231-1/+1
|
* document LUA_KFUNCTION macro, update readmePhilipp Janda2015-01-231-1/+38
|
* update readmePhilipp Janda2015-01-221-7/+11
|
* hack around %U format in lutf8lib.cPhilipp Janda2015-01-221-1/+30
|
* use Lua 5.3's source for string packingPhilipp Janda2015-01-214-9/+1491
|
* backport Lua 5.2/5.3 buffer API for Lua 5.1Philipp Janda2015-01-215-7/+127
|
* luajit already has yieldable (x)pcall, add tests for code from compat52Philipp Janda2015-01-204-159/+511
|
* use table library from Lua 5.3 sources if availablePhilipp Janda2015-01-205-2/+365
|