Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-03-01 | Add test for callbacks with arguments on the stackHEADmaster | Sam Gross | |
2021-03-01 | Fixed a defect in callback parameter passing mechanism for __amd64__ … (#38) | Sudheer Hebbale | |
2017-07-21 | Merge pull request #35 from afonso360/master | Soumith Chintala | |
Support newer versions of lua | |||
2017-07-21 | Support newer versions of lua | Afonso Bordado | |
2016-10-28 | Merge pull request #25 from luketwitter/master | Sam Gross | |
Fix invalid >2GB relative jumps to shared global functions. | |||
2016-10-27 | Fix invalid >2GB relative jumps to shared global functions. | Luke Alonso | |
If the code pages for the shared global functions happen to be allocated more than 2GB away from other generated code, malformed jumps will be emitted, and crashes ensue. This fixes the issue by turning the global functions into macros. They were all quite small, so this should have minimal impact on code size. | |||
2016-06-29 | Merge pull request #18 from xHasKx/master | Soumith Chintala | |
Fixing memleak: jit->pages not free'd | |||
2016-06-27 | Fixing memleak: jit->pages not free'd | Alexander Kiranov | |
Without this fix (run in directory with ffi.so): valgrind --trace-children=yes --leak-check=full --show-leak-kinds=all lua -e "package.cpath='./?.so';require('ffi')" ... ==29982== 8 bytes in 1 blocks are definitely lost in loss record 1 of 5 ==29982== at 0x4C28C20: malloc (vg_replace_malloc.c:296) ==29982== by 0x4C2AFCF: realloc (vg_replace_malloc.c:692) ==29982== by 0x5AEDA37: reserve_code (call.c:134) ==29982== by 0x5AED7C6: compile (call.c:75) ==29982== by 0x5AEB5F4: compile_globals (call_x64.h:269) ==29982== by 0x5AFA4F9: setup_upvals (ffi.c:3362) ==29982== by 0x4078F3: luaD_precall (in /home/.../test-ffi-leak) ==29982== by 0x407CC2: luaD_call (in /home/.../test-ffi-leak) ==29982== by 0x407D20: luaD_callnoyield (in /home/.../test-ffi-leak) ==29982== by 0x40553B: lua_callk (in /home/.../test-ffi-leak) ==29982== by 0x5AFB3AB: luaopen_ffi (ffi.c:3693) ==29982== by 0x4078F3: luaD_precall (in /home/.../test-ffi-leak) | |||
2016-06-17 | Update version requirements in README.md | Sam Gross | |
Fixes #14 | |||
2016-06-17 | Add travis-ci build status | Sam Gross | |
2016-06-17 | Merge pull request #17 from xHasKx/master | Sam Gross | |
- Refactor TO_NUMBER macro - Remove generate_call_h.sh | |||
2016-06-17 | Changed cdata to native Lua 5.3 numbers | Alexander Kiranov | |
2016-06-13 | Merge pull request #16 from soumith/patch-1 | Soumith Chintala | |
fixing arm64 builds (hopefully) | |||
2016-06-13 | fixing arm64 builds (hopefully) | Soumith Chintala | |
2016-06-06 | Merge pull request #15 from PPC64/ppc64_port | Sam Gross | |
Port to PPC64el | |||
2016-04-14 | Make default target when running test_includes.sh | Sam Gross | |
2016-04-11 | Port to PPC64el | Gustavo Serra Scalet | |
A LuaJIT port to PPC64 is available on this official PR: https://github.com/LuaJIT/LuaJIT/pull/54 It compiles, but I can't test as well as I can't in X64... well, let's see afterwards. | |||
2016-01-24 | Improve parser | Sam Gross | |
Fixes #4 * Ignore inline specifiers on functions * Support __attribute__ before and after static/inline/etc. attributes * Supports hdf5 on Lua 5.2 | |||
2016-01-19 | Merge pull request #7 from colesbury/arm | Sam Gross | |
Add ARM header files | |||
2016-01-19 | Add ARM header files | Sam Gross | |
Update call_arm.dasc to fix compile errors, although it's still not functional. | |||
2016-01-02 | Add support for Lua 5.3 | Sam Gross | |
2015-11-17 | Fixes for Lua 5.1 | Sam Gross | |
2015-11-17 | Fix path to Lua 5.1 source | Sam Gross | |
2015-11-15 | Merge pull request #3 from colesbury/travis | Sam Gross | |
Add Travis CI build for Lua 5.1 and 5.2 | |||
2015-11-15 | Add Travis CI build for Lua 5.1 and 5.2 | Sam Gross | |
2015-11-13 | Fix out-of-bounds access in test.lua | Sam Gross | |
2015-11-13 | Convert io.* file handles to FILE* pointers. | Sam Gross | |
Fixes #2 | |||
2015-11-04 | Merge pull request #1 from soumith/patch-1 | Sam Gross | |
Update README.md | |||
2015-11-04 | Update README.md | Soumith Chintala | |
2015-10-06 | Fix source URL in rockspec | Sam Gross | |
2015-09-16 | Fix LICENSE and PATENTS file | Sam Gross | |
2015-08-17 | Update README.md | Sam Gross | |
2015-08-17 | Use UNIX line endings | Sam Gross | |
2015-08-17 | Fix compiler warning | Sam Gross | |
2015-08-17 | Add ffi.NULL as a copy of ffi.C.NULL | Sam Gross | |
The ffi.NULL constant is preferable to ffi.C.NULL because it can be used in both LuaJIT and LuaFFI code. (In LuaJIT it's just nil) | |||
2015-08-12 | Allow FFI number types as sizes to ffi.string | Sam Gross | |
For example: ffi.string(buf, ffi.new('long', 10)) | |||
2015-08-04 | Add Facebook LICENSE, PATENTS, and CONTRIBUTING files | Sam Gross | |
2015-07-21 | Remove reference flag when ereferencing a pointer in a struct | Sam Gross | |
This fixes the access of something like: struct Foo { int bar[3]; } struct Foo foo; foo.bar[0] = 1; | |||
2015-05-13 | Include uservalue for complex numbers returned from C functions. | Sam Gross | |
Complex numbers have uservalues because we enabled setting metatables on complex numbers. | |||
2015-05-13 | Fix alignment of integers on x64. | Sam Gross | |
2015-05-06 | TEMP: Don't free the JIT-compiled binding code. | Sam Gross | |
The order in which finalizers are callled on exit in Lua can cause the binding code to be freed before the last use of the function. | |||
2015-05-01 | Additional support for references. | Sam Gross | |
2015-05-01 | Support casting ffi.C functions to cdata numbers. | Sam Gross | |
For example, ffi.cast('intptr_t', ffi.C.malloc) gives the address of the malloc function. | |||
2015-04-29 | Match LuaJIT format for complex numbers | Sam Gross | |
2015-04-28 | Align 64-bit ints on 8-byte boundaries when on the stack. | Sam Gross | |
2015-04-28 | Don't delete call_*.h on clean. | Sam Gross | |
2015-04-28 | Assume complex number support for now. | Sam Gross | |
Luarocks doesn't compile with std=c99. | |||
2015-04-28 | Add luarocks spec file for package. | Sam Gross | |
Also include call_*.h files to make it easy to build with luarocks. | |||
2015-04-28 | Overload type() to return "cdata" for cdata. | Sam Gross | |
2015-04-28 | Complex numbers may have metatypes. | Sam Gross | |