aboutsummaryrefslogtreecommitdiff
path: root/c-api/compat-5.3.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add braces and suppress warning.strerrorPhilipp Janda2017-09-241-3/+7
|
* Do less stuff when sz is 0 in compat53_strerror().Philipp Janda2017-09-231-10/+10
|
* Transparently handle GNU/XSI strerror_r.Philipp Janda2017-09-231-45/+20
| | | | Closes #36.
* Add tests for `luaL_load{buffer,file}x`.Philipp Janda2017-09-161-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 Janda2017-09-161-37/+67
| | | | | Change `luaL_loadfilex` to use the modified `lua_load` function. Add more credits to the README.md.
* Merge branch 'feature/luaL_loadfilebufferx' of ↵Philipp Janda2017-09-161-2/+258
|\ | | | | | | https://github.com/ThePhD/lua-compat-5.3 into ThePhD-feature/luaL_loadfilebufferx
| * fix usage of tabsThe Phantom Derpstorm2017-09-131-5/+5
| |
| * implement luaL_loadbufferx and luaL_loadfilexThePhD2017-09-131-2/+258
| |
* | fix `lua_Integer` casts that error on Visual C++ and other pedantic ↵ThePhD2017-09-131-2/+2
|/ | | | conversion-warning compilers for 64-bit builds
* Use FALLTHROUGH annotation to fix -Wimplicit-fallthrough warningdaurnimator2017-09-031-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
* Provide fixed luaL_tolstring for Lua 5.2 as well.Philipp Janda2017-08-271-34/+34
|
* Add parens around macro arguments.Philipp Janda2017-08-271-1/+1
| | | | Fixes #22.
* Update behavior of luaL_tolstring().Philipp Janda2017-08-081-3/+10
|
* Fix compilation issues with recent LuaJIT 2.1.Philipp Janda2017-08-071-2/+0
| | | | | | | | 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-081-7/+10
|
* OSX is a Unix.Philipp Janda2016-01-221-1/+2
|
* luaL_checkstack accepts NULL message.v0.3Philipp Janda2015-09-131-0/+12
|
* Fix linker problems when compiling as C++.Philipp Janda2015-09-071-2/+0
| | | | | | 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
|
* Add luaL_execresult to C API.Philipp Janda2015-05-201-1/+39
|
* make sure that _LOADED is not nilAlessandro Ghedini2015-02-251-1/+1
|
* 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
|
* minor fixesPhilipp Janda2015-01-241-4/+3
|
* better performance for lua_compare; some code refactoringPhilipp Janda2015-01-241-45/+41
|
* backport Lua 5.2/5.3 buffer API for Lua 5.1Philipp Janda2015-01-211-0/+57
|
* add lua_arith and lua_compare for Lua 5.1Philipp Janda2015-01-201-0/+90
|
* prepare to use ltablib.c from 5.3 for table libraryPhilipp Janda2015-01-191-1/+2
|
* add fallback for lua_str2number, readme fixPhilipp Janda2015-01-131-0/+4
|
* add initial implementation of c-api and licensePhilipp Janda2015-01-131-0/+430