[Tarantool-patches] [PATCH luajit 0/4] Fixes for ctypes with attributes
Sergey Kaplun
skaplun at tarantool.org
Mon Jun 3 17:33:58 MSK 2024
The first two patches fix the parsing and calculation for size and align
for C++ references. The last two patches fix the `ffi.metatype()`
behaviour for C types with attributes.
Branch: https://github.com/tarantool/luajit/tree/skaplun/lj-861-1005-ffi-fixes
Be aware that CI is red due to infrastructure problems with aarch64
hosts and being unable to download manifests for ecosystem integrational
CI.
Related issues:
* https://github.com/tarantool/tarantool/issues/9924
* https://github.com/LuaJIT/LuaJIT/issues/861
* https://github.com/LuaJIT/LuaJIT/issues/1005
Mike Pall (4):
FFI: Fix ffi.alignof() for reference types.
FFI: Fix sizeof expression in C parser for reference types.
FFI: Allow ffi.metatype() for typedefs with attributes.
FFI: Fix ffi.metatype() for non-raw types.
src/lib_ffi.c | 6 +--
src/lj_cparse.c | 2 +-
src/lj_ctype.c | 8 +++
src/lj_ctype.h | 1 +
.../lj-861-ctype-attributes.test.lua | 53 +++++++++++++++++++
5 files changed, 66 insertions(+), 4 deletions(-)
create mode 100644 test/tarantool-tests/lj-861-ctype-attributes.test.lua
--
2.45.1
More information about the Tarantool-patches
mailing list