aboutsummaryrefslogtreecommitdiff
path: root/c-api (follow)
Commit message (Collapse)AuthorAgeFilesLines
* strerror_r is not available on mingw (#57)Hisham Muhammad2022-08-011-2/+3
|
* Convert lua_pushlstring from a macro to a function (#55)Philipp Janda2021-12-182-6/+11
| | | | This should avoid issues with multiple evaluations of the arguments, which should be very rare, but could in principle happen.
* Make it usable on Lua 5.4v0.8Philipp Janda2020-07-081-3/+3
|
* Fix feature detection for strerror_rPhilipp Janda2018-12-151-2/+3
| | | | Closes #44.
* Fix structure initialization in compat53 lua_loadPhilipp Janda2018-12-151-1/+3
| | | | Closes #45.
* Add an implementation of `lua_getextraspace()`.Philipp Janda2018-07-272-1/+60
|
* Fix feature test for C11 Annex K (strerror_s).v0.7Philipp Janda2018-04-261-2/+2
| | | | Fixes #41.
* Provide strict lua_tointegerx for Lua 5.2 as well.Philipp Janda2018-02-112-19/+19
| | | | Closes #40.
* lua_tointeger(x) rejects non-ints for Lua 5.1.Philipp Janda2018-01-132-4/+13
|
* fix VC warnings for integer down-conversions to charThePhD2017-10-041-2/+2
|
* 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-162-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 Janda2017-09-162-4/+264
|\ | | | | | | 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-132-4/+264
| |
* | Include lualib.h, remove #define LUA_FILEHANDLE.Philipp Janda2017-09-161-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 Janda2017-09-161-0/+12
|\ \ | | | | | | | | | into daurnimator-luaL_Stream
| * | Add (partial) luaL_Stream definitiondaurnimator2017-09-081-0/+9
| | |
| * | Add LUA_FILEHANDLE definedaurnimator2017-09-081-0/+3
| | |
* | | Merge branch 'fix/lua_Number_casts' of ↵Philipp Janda2017-09-141-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 ↵ThePhD2017-09-131-2/+2
| | |/ | |/| | | | | | | conversion-warning compilers for 64-bit builds
* / | define LUA_ERRGCMM code for return valuesThePhD2017-09-131-0/+13
|/ /
* / Add lua_resumedaurnimator2017-09-081-0/+3
|/
* 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
* 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.
* Provide fixed luaL_tolstring for Lua 5.2 as well.Philipp Janda2017-08-272-37/+37
|
* 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
|
* Handle edge case for lua_pushlstring(). Add test.Philipp Janda2017-08-271-1/+1
|
* Add lua_pushlstring (return value)daurnimator2017-08-261-0/+3
|
* Have lua_pushstring return the pushed stringdaurnimator2017-08-261-0/+3
| | | | Fixes #21
* Update behavior of luaL_tolstring().Philipp Janda2017-08-081-3/+10
|
* Fix compilation issues with recent LuaJIT 2.1.Philipp Janda2017-08-072-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 Janda2016-07-082-8/+11
|
* OSX is a Unix.Philipp Janda2016-01-221-1/+2
|
* 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
|
* luaL_newmetatable sets __name on all Lua versions.Philipp Janda2015-07-111-0/+3
|
* Add luaL_execresult to C API.Philipp Janda2015-05-202-2/+42
|
* remove support for luaL_Stream (due to LuaJIT incompatibility)Philipp Janda2015-03-081-13/+0
|
* 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
|
* make LuaJIT support for luaL_Stream interface possiblePhilipp Janda2015-02-141-0/+7
|