Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/facebook/luaffifb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ffi.h
AgeCommit message (Collapse)Author
2017-07-21Support newer versions of luaAfonso Bordado
2016-06-13fixing arm64 builds (hopefully)Soumith Chintala
2016-04-11Port to PPC64elGustavo 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-02Add support for Lua 5.3Sam Gross
2015-11-17Fixes for Lua 5.1Sam Gross
2015-09-16Fix LICENSE and PATENTS fileSam Gross
2015-08-04Add Facebook LICENSE, PATENTS, and CONTRIBUTING filesSam Gross
2015-05-01Support 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-28Assume complex number support for now.Sam Gross
Luarocks doesn't compile with std=c99.
2015-04-28Dynamic libraries are .dylib on Darwin.Sam Gross
Changed to match luajit.
2015-04-28Create complex numbers from lua tables.Sam Gross
For example: ffi.new('complex', real, imag)
2013-11-08LuaJIT dlopens ffi libraries with RTLD_LAZY not RTLD_NOW so do the same hereJustin Cormack
2012-06-05Refactor unsigned types into the signed types with an is_unsigned flagJames R. McKaskill
With that relax pointer compatibility to not checked the is_unsigned. Fixes #26
2012-05-09Handle __attribute__((aligned))James R. McKaskill
2012-04-30Refactor function parsing to handle functions returning function pointers.James R. McKaskill
EG the type of signal on unix is void (*signal(int, void (*)(int)))(int);
2012-04-30fix parsing of long double with msvcJames R. McKaskill
2012-04-25Add partial long double support.James R. McKaskill
The parser now won't balk at long double, but you can't compile functions with long double or get/set values in structs.
2012-04-25Add gcc mode attributeJames R. McKaskill
2012-04-25__asm__ should concat consecutive string literalsJames R. McKaskill
2012-04-23Process escapes in __asm stringsJames R. McKaskill
2012-04-23Add support for exported global variables.James R. McKaskill
Fixes #7
2012-04-22__declspec(aligned(#)) should only increase the alignmentJames R. McKaskill
2012-04-22Fix bitfields on linux x86James R. McKaskill
2012-04-22Fixes for lua 5.1James R. McKaskill
2012-04-22Refactor and fixup bitfields.James R. McKaskill
This also adds a whole bunch more bitfield tests which will hopefully cover all the weirdness of bitfields.
2012-04-22Add support for complex numbers on X86.James R. McKaskill
2012-04-22Add support for __asm() symbol redirectionJames R. McKaskill
2012-04-22Add support for the packed and align attributes.James R. McKaskill
2012-04-22Overallocate bitfield structs to the next 8 byte boundary to stop valgrind.James R. McKaskill
Valgrind is rightly complaining as we always access bitfields in 8 byte chunks to simplify the get/set logic.
2012-04-10Add support for complex numbersJames R. McKaskill
2012-04-07Add support for _Bool and fixup bool testsJames R. McKaskill
2012-04-07Add support for ffi.metatypeJames R. McKaskill
2012-04-05Refactor for callbacks.James R. McKaskill
Changed callbacks into a cdata type and added __call, :set, and :free methods. C functions are still pushed as lua functions. Reworked up upvalues to use a lightuserdata to a static int as the key. Added a callback user data that frees jitted code in the __gc. This is added as an up-value to C functions converted to lua functions so that the code is free'd when the lua function is no longer needed.
2012-04-01Don't use _t types, these are reserved by posixJames R. McKaskill
2011-08-01Split struct parsing into two passes to handle out of order members and ↵James R. McKaskill
attributes.
2011-08-01Add const safetyJames R. McKaskill
2011-08-01Equal metamethod should return false for non-comparable typesJames R. McKaskill
2011-08-01Add license headersJames R. McKaskill
2011-07-30Add OSX supportJames R. McKaskill
To build for OSX you should use the macosx makefile target instead of the default.
2011-07-27Use LoadLibrary instead of GetModuleHandle on windows so that gdi and user32 ↵James R. McKaskill
are always loaded.
2011-07-25Add ARM CE support.James McKaskill
This also adds support for static builds (define LUA_FFI_BUILD_AS_DLL to get a dll on windows, otherwise a static lib is built). msvcbuild.bat still builds a dll. The build script does not build for CE as this is non-trivial and very dependent on which CE profile (or even a custom one). Instead to build on CE, add generate_call_h.bat as a pre-build event and then build *.c with UNDER_CE defined, whatever defines windows.h requires, and the msvc include directory. The arm support is also only little endian for the moment.
2011-07-18Add callback supportJames McKaskill
2011-07-18Cleanup NULL handlingJames McKaskill
2011-07-18Breakup parser.c:parse_recordJames McKaskill
2011-07-17Add support for bitfieldsJames McKaskill
2011-07-17Allow functions with a struct* to be called with a table by allocating a ↵James McKaskill
temp struct
2011-07-16Adding support for variable sized arrays and structsJames McKaskill
2011-07-16Fixes for 32bit, and use jmp stubs only when necessaryJames McKaskill
2011-07-15Got linux 64bit test to passJames R. McKaskill
Had to rework function calls to use a jumptable (of sorts) to handle function calls with a greater than 2GB displacement. Also finished the 64bit vararg support. Windows 64bit is code complete but probably won't work as it hasn't been tested yet.
2011-07-15First pass at x64 support - hasn't been tested and vararg support is incompleteJames McKaskill