ffi 1.10.0 → 1.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{appveyor.yml → .appveyor.yml} +9 -1
- data/.github/workflows/ci.yml +64 -0
- data/.gitignore +3 -0
- data/.gitmodules +1 -0
- data/.travis.yml +35 -20
- data/CHANGELOG.md +124 -0
- data/Gemfile +6 -4
- data/README.md +29 -17
- data/Rakefile +29 -120
- data/ext/ffi_c/AbstractMemory.c +5 -9
- data/ext/ffi_c/Buffer.c +2 -2
- data/ext/ffi_c/Call.c +14 -41
- data/ext/ffi_c/Call.h +4 -7
- data/ext/ffi_c/ClosurePool.c +11 -14
- data/ext/ffi_c/DynamicLibrary.c +1 -1
- data/ext/ffi_c/Function.c +18 -117
- data/ext/ffi_c/FunctionInfo.c +1 -2
- data/ext/ffi_c/LongDouble.c +12 -10
- data/ext/ffi_c/LongDouble.h +0 -4
- data/ext/ffi_c/MemoryPointer.c +1 -1
- data/ext/ffi_c/MethodHandle.c +18 -24
- data/ext/ffi_c/MethodHandle.h +3 -2
- data/ext/ffi_c/Platform.c +1 -47
- data/ext/ffi_c/Pointer.c +1 -1
- data/ext/ffi_c/Struct.c +47 -51
- data/ext/ffi_c/Struct.h +12 -6
- data/ext/ffi_c/StructLayout.c +20 -14
- data/ext/ffi_c/Thread.c +4 -223
- data/ext/ffi_c/Thread.h +0 -14
- data/ext/ffi_c/Type.c +0 -18
- data/ext/ffi_c/Type.h +0 -1
- data/ext/ffi_c/Types.c +1 -1
- data/ext/ffi_c/Variadic.c +9 -15
- data/ext/ffi_c/compat.h +4 -0
- data/ext/ffi_c/extconf.rb +36 -26
- data/ext/ffi_c/ffi.c +3 -8
- data/ext/ffi_c/libffi.darwin.mk +1 -1
- data/ext/ffi_c/libffi/.appveyor.yml +29 -13
- data/ext/ffi_c/libffi/.gitattributes +4 -0
- data/ext/ffi_c/libffi/.travis.yml +51 -2
- data/ext/ffi_c/libffi/.travis/bfin-sim.exp +58 -0
- data/ext/ffi_c/libffi/.travis/build-cross-in-container.sh +14 -0
- data/ext/ffi_c/libffi/.travis/build-in-container.sh +12 -0
- data/ext/ffi_c/libffi/.travis/build.sh +116 -8
- data/ext/ffi_c/libffi/.travis/install.sh +65 -16
- data/ext/ffi_c/libffi/.travis/m32r-sim.exp +58 -0
- data/ext/ffi_c/libffi/.travis/or1k-sim.exp +58 -0
- data/ext/ffi_c/libffi/.travis/powerpc-eabisim.exp +58 -0
- data/ext/ffi_c/libffi/.travis/site.exp +10 -1
- data/ext/ffi_c/libffi/.travis/wine-sim.exp +55 -0
- data/ext/ffi_c/libffi/{ChangeLog.libffi-3.1 → ChangeLog.old} +1407 -0
- data/ext/ffi_c/libffi/LICENSE +1 -1
- data/ext/ffi_c/libffi/LICENSE-BUILDTOOLS +5 -4
- data/ext/ffi_c/libffi/Makefile.am +35 -41
- data/ext/ffi_c/libffi/README.md +29 -8
- data/ext/ffi_c/libffi/configure.ac +31 -11
- data/ext/ffi_c/libffi/configure.host +26 -9
- data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +1 -3
- data/ext/ffi_c/libffi/include/ffi.h.in +19 -7
- data/ext/ffi_c/libffi/include/ffi_common.h +5 -1
- data/ext/ffi_c/libffi/libffi.map.in +8 -12
- data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +2 -48
- data/ext/ffi_c/libffi/libtool-version +1 -1
- data/ext/ffi_c/libffi/m4/asmcfi.m4 +1 -1
- data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +5 -26
- data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +5 -26
- data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +2 -1
- data/ext/ffi_c/libffi/m4/ax_configure_args.m4 +5 -26
- data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +7 -3
- data/ext/ffi_c/libffi/make_sunver.pl +333 -0
- data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.sln +33 -0
- data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj +130 -0
- data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.filters +57 -0
- data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.user +4 -0
- data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h +511 -0
- data/ext/ffi_c/libffi/msvcc.sh +27 -2
- data/ext/ffi_c/libffi/src/aarch64/ffi.c +132 -58
- data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +13 -2
- data/ext/ffi_c/libffi/src/aarch64/sysv.S +21 -8
- data/ext/ffi_c/libffi/src/aarch64/win64_armasm.S +506 -0
- data/ext/ffi_c/libffi/src/arm/ffi.c +40 -5
- data/ext/ffi_c/libffi/src/arm/ffitarget.h +8 -1
- data/ext/ffi_c/libffi/src/arm/sysv.S +2 -0
- data/ext/ffi_c/libffi/src/arm/sysv_msvc_arm32.S +311 -0
- data/ext/ffi_c/libffi/src/closures.c +51 -13
- data/ext/ffi_c/libffi/src/frv/ffi.c +1 -1
- data/ext/ffi_c/libffi/src/metag/ffi.c +1 -1
- data/ext/ffi_c/libffi/src/mips/o32.S +2 -0
- data/ext/ffi_c/libffi/src/moxie/ffi.c +1 -1
- data/ext/ffi_c/libffi/src/pa/ffi.c +46 -91
- data/ext/ffi_c/libffi/src/pa/ffitarget.h +1 -6
- data/ext/ffi_c/libffi/src/pa/hpux32.S +4 -2
- data/ext/ffi_c/libffi/src/pa/linux.S +27 -4
- data/ext/ffi_c/libffi/src/powerpc/ffi.c +6 -4
- data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +211 -32
- data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +18 -7
- data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +10 -4
- data/ext/ffi_c/libffi/src/powerpc/linux64.S +83 -28
- data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +68 -4
- data/ext/ffi_c/libffi/src/powerpc/sysv.S +5 -7
- data/ext/ffi_c/libffi/src/prep_cif.c +4 -2
- data/ext/ffi_c/libffi/src/riscv/ffi.c +42 -6
- data/ext/ffi_c/libffi/src/riscv/ffitarget.h +1 -0
- data/ext/ffi_c/libffi/src/riscv/sysv.S +86 -7
- data/ext/ffi_c/libffi/src/x86/ffi.c +21 -10
- data/ext/ffi_c/libffi/src/x86/ffi64.c +15 -11
- data/ext/ffi_c/libffi/src/x86/ffitarget.h +15 -2
- data/ext/ffi_c/libffi/src/x86/ffiw64.c +15 -10
- data/ext/ffi_c/libffi/src/x86/sysv.S +103 -8
- data/ext/ffi_c/libffi/src/x86/sysv_intel.S +995 -0
- data/ext/ffi_c/libffi/src/x86/unix64.S +99 -2
- data/ext/ffi_c/libffi/src/x86/win64.S +9 -1
- data/ext/ffi_c/libffi/testsuite/Makefile.am +114 -109
- data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +26 -22
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/bhaible.exp +7 -2
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +1 -1
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-callback.c +1 -1
- data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +12 -1
- data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +9 -8
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +1 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp +67 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn0.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn1.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn2.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn3.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn4.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn5.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn6.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_loc_fn0.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_simple.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_12byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_16byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_18byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_19byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_1_1byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_20byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_20byte1.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_24byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_2byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3_1byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3byte1.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3byte2.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3float.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_4_1byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_4byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_5_1_byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_5byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_64byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_6_1_byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_6byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_7_1_byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_7byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_8byte.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_9byte1.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_9byte2.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_double.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_float.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble_split.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble_split2.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_pointer.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint16.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint32.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint64.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint16.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint32.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint64.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_dbls_struct.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_double.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_double_va.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_float.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_longdouble.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_longdouble_va.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_many_mixed_args.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_many_mixed_float_double.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_schar.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_sshort.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_sshortchar.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_uchar.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_ushort.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_ushortchar.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_pointer.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_pointer_stack.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_schar.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_sint.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_sshort.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_struct_va1.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uchar.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uchar_va.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uint.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uint_va.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ulong_va.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ulonglong.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ushort.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ushort_va.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/err_bad_abi.c +0 -0
- data/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +138 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/huge_struct.c +1 -1
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct1.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct10.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct11.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct2.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct3.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct4.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct5.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct6.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct7.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct8.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct9.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/problem1.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_large.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_large2.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_medium.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_medium2.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/testclosure.c +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/unwindtest.cc +0 -0
- data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/unwindtest_ffi_call.cc +0 -0
- data/ext/ffi_c/rbffi.h +0 -2
- data/ffi.gemspec +12 -5
- data/lib/ffi.rb +10 -2
- data/lib/ffi/data_converter.rb +67 -0
- data/lib/ffi/ffi.rb +2 -0
- data/lib/ffi/library.rb +10 -6
- data/lib/ffi/platform.rb +12 -3
- data/lib/ffi/platform/aarch64-freebsd/types.conf +89 -89
- data/lib/ffi/platform/aarch64-freebsd12/types.conf +89 -89
- data/lib/ffi/platform/aarch64-linux/types.conf +81 -81
- data/lib/ffi/platform/arm-freebsd/types.conf +87 -87
- data/lib/ffi/platform/arm-freebsd12/types.conf +87 -87
- data/lib/ffi/platform/arm-linux/types.conf +110 -82
- data/lib/ffi/platform/i386-cygwin/types.conf +1 -1
- data/lib/ffi/platform/i386-darwin/types.conf +63 -63
- data/lib/ffi/platform/i386-freebsd/types.conf +87 -87
- data/lib/ffi/platform/i386-freebsd12/types.conf +87 -87
- data/lib/ffi/platform/i386-gnu/types.conf +84 -84
- data/lib/ffi/platform/i386-linux/types.conf +77 -77
- data/lib/ffi/platform/i386-netbsd/types.conf +87 -87
- data/lib/ffi/platform/i386-openbsd/types.conf +89 -89
- data/lib/ffi/platform/i386-solaris/types.conf +96 -96
- data/lib/ffi/platform/i386-windows/types.conf +43 -96
- data/lib/ffi/platform/ia64-linux/types.conf +79 -79
- data/lib/ffi/platform/mips-linux/types.conf +79 -79
- data/lib/ffi/platform/mips64-linux/types.conf +81 -81
- data/lib/ffi/platform/mips64el-linux/types.conf +81 -81
- data/lib/ffi/platform/mipsel-linux/types.conf +79 -79
- data/lib/ffi/platform/mipsisa32r6-linux/types.conf +79 -79
- data/lib/ffi/platform/mipsisa32r6el-linux/types.conf +79 -79
- data/lib/ffi/platform/mipsisa64r6-linux/types.conf +81 -81
- data/lib/ffi/platform/mipsisa64r6el-linux/types.conf +81 -81
- data/lib/ffi/platform/powerpc-aix/types.conf +155 -155
- data/lib/ffi/platform/powerpc-darwin/types.conf +63 -63
- data/lib/ffi/platform/powerpc-linux/types.conf +108 -78
- data/lib/ffi/platform/powerpc-openbsd/types.conf +156 -0
- data/lib/ffi/platform/powerpc64-linux/types.conf +81 -81
- data/lib/ffi/platform/s390-linux/types.conf +79 -79
- data/lib/ffi/platform/s390x-linux/types.conf +79 -79
- data/lib/ffi/platform/sparc-linux/types.conf +79 -79
- data/lib/ffi/platform/sparc-solaris/types.conf +103 -103
- data/lib/ffi/platform/sparc64-linux/types.conf +79 -79
- data/lib/ffi/platform/sparcv9-openbsd/types.conf +156 -0
- data/lib/ffi/platform/sparcv9-solaris/types.conf +103 -103
- data/lib/ffi/platform/x86_64-cygwin/types.conf +1 -1
- data/lib/ffi/platform/x86_64-darwin/types.conf +88 -84
- data/lib/ffi/platform/x86_64-dragonflybsd/types.conf +130 -0
- data/lib/ffi/platform/x86_64-freebsd/types.conf +89 -89
- data/lib/ffi/platform/x86_64-freebsd12/types.conf +139 -109
- data/lib/ffi/platform/x86_64-linux/types.conf +107 -77
- data/lib/ffi/platform/x86_64-netbsd/types.conf +89 -89
- data/lib/ffi/platform/x86_64-openbsd/types.conf +86 -86
- data/lib/ffi/platform/x86_64-solaris/types.conf +96 -96
- data/lib/ffi/platform/x86_64-windows/types.conf +42 -110
- data/lib/ffi/pointer.rb +20 -13
- data/lib/ffi/struct.rb +13 -68
- data/lib/ffi/struct_by_reference.rb +72 -0
- data/lib/ffi/struct_layout.rb +96 -0
- data/lib/ffi/tools/const_generator.rb +5 -4
- data/lib/ffi/tools/generator.rb +47 -2
- data/lib/ffi/tools/generator_task.rb +13 -17
- data/lib/ffi/tools/struct_generator.rb +4 -4
- data/lib/ffi/tools/types_generator.rb +7 -4
- data/lib/ffi/types.rb +1 -1
- data/lib/ffi/version.rb +1 -1
- data/samples/getlogin.rb +1 -1
- data/samples/getpid.rb +1 -1
- data/samples/gettimeofday.rb +8 -8
- data/samples/hello.rb +2 -1
- data/samples/inotify.rb +1 -1
- data/samples/pty.rb +1 -2
- data/samples/qsort.rb +0 -1
- metadata +141 -116
- data/ext/ffi_c/DataConverter.c +0 -91
- data/ext/ffi_c/StructByReference.c +0 -190
- data/ext/ffi_c/StructByReference.h +0 -50
- data/ext/ffi_c/libffi/ChangeLog.libffi +0 -584
- data/ext/ffi_c/libffi/ChangeLog.libgcj +0 -40
- data/ext/ffi_c/libffi/ChangeLog.v1 +0 -764
- data/samples/sample_helper.rb +0 -6
@@ -47,9 +47,12 @@ module FFI
|
|
47
47
|
typedefs = nil
|
48
48
|
Tempfile.open 'ffi_types_generator' do |io|
|
49
49
|
io.puts <<-C
|
50
|
+
#include <stdint.h>
|
51
|
+
#include <stddef.h>
|
50
52
|
#include <sys/types.h>
|
51
53
|
#if !(defined(WIN32))
|
52
54
|
#include <sys/socket.h>
|
55
|
+
#include <netinet/in.h>
|
53
56
|
#include <sys/resource.h>
|
54
57
|
#endif
|
55
58
|
C
|
@@ -66,7 +69,7 @@ module FFI
|
|
66
69
|
end
|
67
70
|
end
|
68
71
|
|
69
|
-
code =
|
72
|
+
code = []
|
70
73
|
|
71
74
|
typedefs.each_line do |type|
|
72
75
|
# We only care about single line typedef
|
@@ -116,18 +119,18 @@ module FFI
|
|
116
119
|
end
|
117
120
|
|
118
121
|
if type = TYPE_MAP[def_type]
|
119
|
-
code << "rbx.platform.typedef.#{final_type} = #{type}
|
122
|
+
code << "rbx.platform.typedef.#{final_type} = #{type}"
|
120
123
|
TYPE_MAP[final_type] = TYPE_MAP[def_type]
|
121
124
|
else
|
122
125
|
# Fallback to an ordinary pointer if we don't know the type
|
123
126
|
if def_type =~ /\*/
|
124
|
-
code << "rbx.platform.typedef.#{final_type} = pointer
|
127
|
+
code << "rbx.platform.typedef.#{final_type} = pointer"
|
125
128
|
TYPE_MAP[final_type] = :pointer
|
126
129
|
end
|
127
130
|
end
|
128
131
|
end
|
129
132
|
|
130
|
-
code
|
133
|
+
code.sort.join("\n")
|
131
134
|
end
|
132
135
|
end
|
133
136
|
end
|
data/lib/ffi/types.rb
CHANGED
@@ -152,7 +152,7 @@ module FFI
|
|
152
152
|
# also allow to work with the pointer itself. This is useful when you want
|
153
153
|
# a Ruby string already containing a copy of the data, but also the pointer
|
154
154
|
# to the data for you to do something with it, like freeing it, in case the
|
155
|
-
# library handed the memory
|
155
|
+
# library handed the memory off to the caller (Ruby-FFI).
|
156
156
|
#
|
157
157
|
# It's {typedef}'d as +:strptr+.
|
158
158
|
class StrPtrConverter
|
data/lib/ffi/version.rb
CHANGED
data/samples/getlogin.rb
CHANGED
data/samples/getpid.rb
CHANGED
data/samples/gettimeofday.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
require 'rubygems'
|
2
1
|
require 'ffi'
|
2
|
+
require 'rbconfig'
|
3
|
+
|
3
4
|
class Timeval < FFI::Struct
|
4
|
-
|
5
|
-
if rb_maj.to_i >= 1 && rb_min.to_i >= 9 || RUBY_PLATFORM =~ /java/
|
6
|
-
layout :tv_sec => :ulong, :tv_usec => :ulong
|
7
|
-
else
|
8
|
-
layout :tv_sec, :ulong, 0, :tv_usec, :ulong, 4
|
9
|
-
end
|
5
|
+
layout tv_sec: :ulong, tv_usec: :ulong
|
10
6
|
end
|
11
7
|
module LibC
|
12
8
|
extend FFI::Library
|
13
|
-
|
9
|
+
if FFI::Platform.windows?
|
10
|
+
ffi_lib RbConfig::CONFIG["LIBRUBY_SO"]
|
11
|
+
else
|
12
|
+
ffi_lib FFI::Library::LIBC
|
13
|
+
end
|
14
14
|
attach_function :gettimeofday, [ :pointer, :pointer ], :int
|
15
15
|
end
|
16
16
|
t = Timeval.new
|
data/samples/hello.rb
CHANGED
data/samples/inotify.rb
CHANGED
data/samples/pty.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'ffi'
|
2
2
|
|
3
|
-
|
4
3
|
module PTY
|
5
4
|
private
|
6
5
|
module LibC
|
@@ -41,7 +40,7 @@ module PTY
|
|
41
40
|
#
|
42
41
|
exec_cmd, exec_args = build_args(args)
|
43
42
|
pid = LibC.forkpty(mfdp, name, nil, nil)
|
44
|
-
raise "forkpty failed: #{LibC.strerror(FFI.errno)}" if pid < 0
|
43
|
+
raise "forkpty failed: #{LibC.strerror(FFI.errno)}" if pid < 0
|
45
44
|
if pid == 0
|
46
45
|
LibC.execvp(exec_cmd, exec_args)
|
47
46
|
exit 1
|
data/samples/qsort.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wayne Meissner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '13.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '13.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake-compiler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0
|
47
|
+
version: '1.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,6 +87,8 @@ extensions:
|
|
87
87
|
- ext/ffi_c/extconf.rb
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
+
- ".appveyor.yml"
|
91
|
+
- ".github/workflows/ci.yml"
|
90
92
|
- ".gitignore"
|
91
93
|
- ".gitmodules"
|
92
94
|
- ".travis.yml"
|
@@ -98,7 +100,6 @@ files:
|
|
98
100
|
- LICENSE.SPECS
|
99
101
|
- README.md
|
100
102
|
- Rakefile
|
101
|
-
- appveyor.yml
|
102
103
|
- ext/ffi_c/AbstractMemory.c
|
103
104
|
- ext/ffi_c/AbstractMemory.h
|
104
105
|
- ext/ffi_c/ArrayType.c
|
@@ -108,7 +109,6 @@ files:
|
|
108
109
|
- ext/ffi_c/Call.h
|
109
110
|
- ext/ffi_c/ClosurePool.c
|
110
111
|
- ext/ffi_c/ClosurePool.h
|
111
|
-
- ext/ffi_c/DataConverter.c
|
112
112
|
- ext/ffi_c/DynamicLibrary.c
|
113
113
|
- ext/ffi_c/DynamicLibrary.h
|
114
114
|
- ext/ffi_c/Function.c
|
@@ -130,8 +130,6 @@ files:
|
|
130
130
|
- ext/ffi_c/Pointer.h
|
131
131
|
- ext/ffi_c/Struct.c
|
132
132
|
- ext/ffi_c/Struct.h
|
133
|
-
- ext/ffi_c/StructByReference.c
|
134
|
-
- ext/ffi_c/StructByReference.h
|
135
133
|
- ext/ffi_c/StructByValue.c
|
136
134
|
- ext/ffi_c/StructByValue.h
|
137
135
|
- ext/ffi_c/StructLayout.c
|
@@ -152,19 +150,24 @@ files:
|
|
152
150
|
- ext/ffi_c/libffi.vc.mk
|
153
151
|
- ext/ffi_c/libffi.vc64.mk
|
154
152
|
- ext/ffi_c/libffi/.appveyor.yml
|
153
|
+
- ext/ffi_c/libffi/.gitattributes
|
155
154
|
- ext/ffi_c/libffi/.github/issue_template.md
|
156
155
|
- ext/ffi_c/libffi/.gitignore
|
157
156
|
- ext/ffi_c/libffi/.travis.yml
|
158
157
|
- ext/ffi_c/libffi/.travis/ar-lib
|
158
|
+
- ext/ffi_c/libffi/.travis/bfin-sim.exp
|
159
|
+
- ext/ffi_c/libffi/.travis/build-cross-in-container.sh
|
160
|
+
- ext/ffi_c/libffi/.travis/build-in-container.sh
|
159
161
|
- ext/ffi_c/libffi/.travis/build.sh
|
160
162
|
- ext/ffi_c/libffi/.travis/compile
|
161
163
|
- ext/ffi_c/libffi/.travis/install.sh
|
164
|
+
- ext/ffi_c/libffi/.travis/m32r-sim.exp
|
162
165
|
- ext/ffi_c/libffi/.travis/moxie-sim.exp
|
166
|
+
- ext/ffi_c/libffi/.travis/or1k-sim.exp
|
167
|
+
- ext/ffi_c/libffi/.travis/powerpc-eabisim.exp
|
163
168
|
- ext/ffi_c/libffi/.travis/site.exp
|
164
|
-
- ext/ffi_c/libffi/
|
165
|
-
- ext/ffi_c/libffi/ChangeLog.
|
166
|
-
- ext/ffi_c/libffi/ChangeLog.libgcj
|
167
|
-
- ext/ffi_c/libffi/ChangeLog.v1
|
169
|
+
- ext/ffi_c/libffi/.travis/wine-sim.exp
|
170
|
+
- ext/ffi_c/libffi/ChangeLog.old
|
168
171
|
- ext/ffi_c/libffi/LICENSE
|
169
172
|
- ext/ffi_c/libffi/LICENSE-BUILDTOOLS
|
170
173
|
- ext/ffi_c/libffi/Makefile.am
|
@@ -206,6 +209,7 @@ files:
|
|
206
209
|
- ext/ffi_c/libffi/m4/ax_gcc_archflag.m4
|
207
210
|
- ext/ffi_c/libffi/m4/ax_gcc_x86_cpuid.m4
|
208
211
|
- ext/ffi_c/libffi/m4/ax_require_defined.m4
|
212
|
+
- ext/ffi_c/libffi/make_sunver.pl
|
209
213
|
- ext/ffi_c/libffi/man/Makefile.am
|
210
214
|
- ext/ffi_c/libffi/man/Makefile.in
|
211
215
|
- ext/ffi_c/libffi/man/ffi.3
|
@@ -213,11 +217,18 @@ files:
|
|
213
217
|
- ext/ffi_c/libffi/man/ffi_prep_cif.3
|
214
218
|
- ext/ffi_c/libffi/man/ffi_prep_cif_var.3
|
215
219
|
- ext/ffi_c/libffi/missing
|
220
|
+
- ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.sln
|
221
|
+
- ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj
|
222
|
+
- ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.filters
|
223
|
+
- ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.user
|
224
|
+
- ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h
|
225
|
+
- ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/fficonfig.h
|
216
226
|
- ext/ffi_c/libffi/msvcc.sh
|
217
227
|
- ext/ffi_c/libffi/src/aarch64/ffi.c
|
218
228
|
- ext/ffi_c/libffi/src/aarch64/ffitarget.h
|
219
229
|
- ext/ffi_c/libffi/src/aarch64/internal.h
|
220
230
|
- ext/ffi_c/libffi/src/aarch64/sysv.S
|
231
|
+
- ext/ffi_c/libffi/src/aarch64/win64_armasm.S
|
221
232
|
- ext/ffi_c/libffi/src/alpha/ffi.c
|
222
233
|
- ext/ffi_c/libffi/src/alpha/ffitarget.h
|
223
234
|
- ext/ffi_c/libffi/src/alpha/internal.h
|
@@ -229,6 +240,7 @@ files:
|
|
229
240
|
- ext/ffi_c/libffi/src/arm/ffitarget.h
|
230
241
|
- ext/ffi_c/libffi/src/arm/internal.h
|
231
242
|
- ext/ffi_c/libffi/src/arm/sysv.S
|
243
|
+
- ext/ffi_c/libffi/src/arm/sysv_msvc_arm32.S
|
232
244
|
- ext/ffi_c/libffi/src/avr32/ffi.c
|
233
245
|
- ext/ffi_c/libffi/src/avr32/ffitarget.h
|
234
246
|
- ext/ffi_c/libffi/src/avr32/sysv.S
|
@@ -332,6 +344,7 @@ files:
|
|
332
344
|
- ext/ffi_c/libffi/src/x86/internal.h
|
333
345
|
- ext/ffi_c/libffi/src/x86/internal64.h
|
334
346
|
- ext/ffi_c/libffi/src/x86/sysv.S
|
347
|
+
- ext/ffi_c/libffi/src/x86/sysv_intel.S
|
335
348
|
- ext/ffi_c/libffi/src/x86/unix64.S
|
336
349
|
- ext/ffi_c/libffi/src/x86/win64.S
|
337
350
|
- ext/ffi_c/libffi/src/x86/win64_intel.S
|
@@ -355,81 +368,6 @@ files:
|
|
355
368
|
- ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c
|
356
369
|
- ext/ffi_c/libffi/testsuite/libffi.call/align_stdcall.c
|
357
370
|
- ext/ffi_c/libffi/testsuite/libffi.call/call.exp
|
358
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/closure_fn0.c
|
359
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/closure_fn1.c
|
360
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/closure_fn2.c
|
361
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/closure_fn3.c
|
362
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/closure_fn4.c
|
363
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/closure_fn5.c
|
364
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/closure_fn6.c
|
365
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/closure_loc_fn0.c
|
366
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/closure_simple.c
|
367
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_12byte.c
|
368
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_16byte.c
|
369
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_18byte.c
|
370
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_19byte.c
|
371
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_1_1byte.c
|
372
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte.c
|
373
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte1.c
|
374
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_24byte.c
|
375
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_2byte.c
|
376
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_3_1byte.c
|
377
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte1.c
|
378
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte2.c
|
379
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_3float.c
|
380
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_4_1byte.c
|
381
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_4byte.c
|
382
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_5_1_byte.c
|
383
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_5byte.c
|
384
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_64byte.c
|
385
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_6_1_byte.c
|
386
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_6byte.c
|
387
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_7_1_byte.c
|
388
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_7byte.c
|
389
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_8byte.c
|
390
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte1.c
|
391
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte2.c
|
392
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_double.c
|
393
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_float.c
|
394
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble.c
|
395
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split.c
|
396
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split2.c
|
397
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_pointer.c
|
398
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint16.c
|
399
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint32.c
|
400
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint64.c
|
401
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint16.c
|
402
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint32.c
|
403
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint64.c
|
404
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_dbls_struct.c
|
405
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_double.c
|
406
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_double_va.c
|
407
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_float.c
|
408
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble.c
|
409
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble_va.c
|
410
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_args.c
|
411
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_float_double.c
|
412
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_schar.c
|
413
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_sshort.c
|
414
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_sshortchar.c
|
415
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_uchar.c
|
416
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_ushort.c
|
417
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_ushortchar.c
|
418
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer.c
|
419
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer_stack.c
|
420
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_schar.c
|
421
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_sint.c
|
422
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_sshort.c
|
423
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_struct_va1.c
|
424
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar.c
|
425
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar_va.c
|
426
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_uint.c
|
427
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_uint_va.c
|
428
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_ulong_va.c
|
429
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_ulonglong.c
|
430
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort.c
|
431
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort_va.c
|
432
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/err_bad_abi.c
|
433
371
|
- ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c
|
434
372
|
- ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h
|
435
373
|
- ext/ffi_c/libffi/testsuite/libffi.call/float.c
|
@@ -438,27 +376,13 @@ files:
|
|
438
376
|
- ext/ffi_c/libffi/testsuite/libffi.call/float3.c
|
439
377
|
- ext/ffi_c/libffi/testsuite/libffi.call/float4.c
|
440
378
|
- ext/ffi_c/libffi/testsuite/libffi.call/float_va.c
|
441
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/huge_struct.c
|
442
379
|
- ext/ffi_c/libffi/testsuite/libffi.call/many.c
|
443
380
|
- ext/ffi_c/libffi/testsuite/libffi.call/many2.c
|
444
381
|
- ext/ffi_c/libffi/testsuite/libffi.call/many_double.c
|
445
382
|
- ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c
|
446
383
|
- ext/ffi_c/libffi/testsuite/libffi.call/negint.c
|
447
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c
|
448
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct1.c
|
449
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct10.c
|
450
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct11.c
|
451
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct2.c
|
452
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct3.c
|
453
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c
|
454
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct5.c
|
455
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct6.c
|
456
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct7.c
|
457
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct8.c
|
458
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/nested_struct9.c
|
459
384
|
- ext/ffi_c/libffi/testsuite/libffi.call/offsets.c
|
460
385
|
- ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c
|
461
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/problem1.c
|
462
386
|
- ext/ffi_c/libffi/testsuite/libffi.call/promotion.c
|
463
387
|
- ext/ffi_c/libffi/testsuite/libffi.call/pyobjc-tc.c
|
464
388
|
- ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c
|
@@ -475,10 +399,6 @@ files:
|
|
475
399
|
- ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c
|
476
400
|
- ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c
|
477
401
|
- ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c
|
478
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/stret_large.c
|
479
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/stret_large2.c
|
480
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/stret_medium.c
|
481
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/stret_medium2.c
|
482
402
|
- ext/ffi_c/libffi/testsuite/libffi.call/strlen.c
|
483
403
|
- ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c
|
484
404
|
- ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c
|
@@ -493,14 +413,109 @@ files:
|
|
493
413
|
- ext/ffi_c/libffi/testsuite/libffi.call/struct7.c
|
494
414
|
- ext/ffi_c/libffi/testsuite/libffi.call/struct8.c
|
495
415
|
- ext/ffi_c/libffi/testsuite/libffi.call/struct9.c
|
496
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/testclosure.c
|
497
416
|
- ext/ffi_c/libffi/testsuite/libffi.call/uninitialized.c
|
498
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/unwindtest.cc
|
499
|
-
- ext/ffi_c/libffi/testsuite/libffi.call/unwindtest_ffi_call.cc
|
500
417
|
- ext/ffi_c/libffi/testsuite/libffi.call/va_1.c
|
501
418
|
- ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c
|
502
419
|
- ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c
|
503
420
|
- ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c
|
421
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp
|
422
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn0.c
|
423
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn1.c
|
424
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn2.c
|
425
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn3.c
|
426
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn4.c
|
427
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn5.c
|
428
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn6.c
|
429
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/closure_loc_fn0.c
|
430
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/closure_simple.c
|
431
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_12byte.c
|
432
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_16byte.c
|
433
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_18byte.c
|
434
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_19byte.c
|
435
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_1_1byte.c
|
436
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte.c
|
437
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte1.c
|
438
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_24byte.c
|
439
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_2byte.c
|
440
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_3_1byte.c
|
441
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte1.c
|
442
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte2.c
|
443
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_3float.c
|
444
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_4_1byte.c
|
445
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_4byte.c
|
446
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_5_1_byte.c
|
447
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_5byte.c
|
448
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_64byte.c
|
449
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_6_1_byte.c
|
450
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_6byte.c
|
451
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_7_1_byte.c
|
452
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_7byte.c
|
453
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_8byte.c
|
454
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte1.c
|
455
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte2.c
|
456
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_double.c
|
457
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_float.c
|
458
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble.c
|
459
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split.c
|
460
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split2.c
|
461
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_pointer.c
|
462
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint16.c
|
463
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint32.c
|
464
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint64.c
|
465
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint16.c
|
466
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint32.c
|
467
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint64.c
|
468
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_dbls_struct.c
|
469
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_double.c
|
470
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_double_va.c
|
471
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_float.c
|
472
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble.c
|
473
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble_va.c
|
474
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_args.c
|
475
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_float_double.c
|
476
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_schar.c
|
477
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshort.c
|
478
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshortchar.c
|
479
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_uchar.c
|
480
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushort.c
|
481
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushortchar.c
|
482
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer.c
|
483
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer_stack.c
|
484
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_schar.c
|
485
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_sint.c
|
486
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_sshort.c
|
487
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_struct_va1.c
|
488
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar.c
|
489
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar_va.c
|
490
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint.c
|
491
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint_va.c
|
492
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulong_va.c
|
493
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulonglong.c
|
494
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort.c
|
495
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort_va.c
|
496
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/err_bad_abi.c
|
497
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h
|
498
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/huge_struct.c
|
499
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct.c
|
500
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct1.c
|
501
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct10.c
|
502
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct11.c
|
503
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct2.c
|
504
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct3.c
|
505
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct4.c
|
506
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct5.c
|
507
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct6.c
|
508
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct7.c
|
509
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct8.c
|
510
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct9.c
|
511
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/problem1.c
|
512
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/stret_large.c
|
513
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/stret_large2.c
|
514
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium.c
|
515
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium2.c
|
516
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/testclosure.c
|
517
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest.cc
|
518
|
+
- ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest_ffi_call.cc
|
504
519
|
- ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc
|
505
520
|
- ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c
|
506
521
|
- ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c
|
@@ -557,6 +572,7 @@ files:
|
|
557
572
|
- lib/ffi/autopointer.rb
|
558
573
|
- lib/ffi/buffer.rb
|
559
574
|
- lib/ffi/callback.rb
|
575
|
+
- lib/ffi/data_converter.rb
|
560
576
|
- lib/ffi/enum.rb
|
561
577
|
- lib/ffi/errno.rb
|
562
578
|
- lib/ffi/ffi.rb
|
@@ -593,15 +609,18 @@ files:
|
|
593
609
|
- lib/ffi/platform/powerpc-aix/types.conf
|
594
610
|
- lib/ffi/platform/powerpc-darwin/types.conf
|
595
611
|
- lib/ffi/platform/powerpc-linux/types.conf
|
612
|
+
- lib/ffi/platform/powerpc-openbsd/types.conf
|
596
613
|
- lib/ffi/platform/powerpc64-linux/types.conf
|
597
614
|
- lib/ffi/platform/s390-linux/types.conf
|
598
615
|
- lib/ffi/platform/s390x-linux/types.conf
|
599
616
|
- lib/ffi/platform/sparc-linux/types.conf
|
600
617
|
- lib/ffi/platform/sparc-solaris/types.conf
|
601
618
|
- lib/ffi/platform/sparc64-linux/types.conf
|
619
|
+
- lib/ffi/platform/sparcv9-openbsd/types.conf
|
602
620
|
- lib/ffi/platform/sparcv9-solaris/types.conf
|
603
621
|
- lib/ffi/platform/x86_64-cygwin/types.conf
|
604
622
|
- lib/ffi/platform/x86_64-darwin/types.conf
|
623
|
+
- lib/ffi/platform/x86_64-dragonflybsd/types.conf
|
605
624
|
- lib/ffi/platform/x86_64-freebsd/types.conf
|
606
625
|
- lib/ffi/platform/x86_64-freebsd12/types.conf
|
607
626
|
- lib/ffi/platform/x86_64-linux/types.conf
|
@@ -611,6 +630,8 @@ files:
|
|
611
630
|
- lib/ffi/platform/x86_64-windows/types.conf
|
612
631
|
- lib/ffi/pointer.rb
|
613
632
|
- lib/ffi/struct.rb
|
633
|
+
- lib/ffi/struct_by_reference.rb
|
634
|
+
- lib/ffi/struct_layout.rb
|
614
635
|
- lib/ffi/struct_layout_builder.rb
|
615
636
|
- lib/ffi/tools/const_generator.rb
|
616
637
|
- lib/ffi/tools/generator.rb
|
@@ -628,11 +649,16 @@ files:
|
|
628
649
|
- samples/inotify.rb
|
629
650
|
- samples/pty.rb
|
630
651
|
- samples/qsort.rb
|
631
|
-
|
632
|
-
homepage: http://wiki.github.com/ffi/ffi
|
652
|
+
homepage: https://github.com/ffi/ffi/wiki
|
633
653
|
licenses:
|
634
654
|
- BSD-3-Clause
|
635
|
-
metadata:
|
655
|
+
metadata:
|
656
|
+
bug_tracker_uri: https://github.com/ffi/ffi/issues
|
657
|
+
changelog_uri: https://github.com/ffi/ffi/blob/master/CHANGELOG.md
|
658
|
+
documentation_uri: https://github.com/ffi/ffi/wiki
|
659
|
+
wiki_uri: https://github.com/ffi/ffi/wiki
|
660
|
+
source_code_uri: https://github.com/ffi/ffi/
|
661
|
+
mailing_list_uri: http://groups.google.com/group/ruby-ffi
|
636
662
|
post_install_message:
|
637
663
|
rdoc_options:
|
638
664
|
- "--exclude=ext/ffi_c/.*\\.o$"
|
@@ -643,15 +669,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
643
669
|
requirements:
|
644
670
|
- - ">="
|
645
671
|
- !ruby/object:Gem::Version
|
646
|
-
version: '
|
672
|
+
version: '2.3'
|
647
673
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
648
674
|
requirements:
|
649
675
|
- - ">="
|
650
676
|
- !ruby/object:Gem::Version
|
651
677
|
version: '0'
|
652
678
|
requirements: []
|
653
|
-
|
654
|
-
rubygems_version: 2.7.8
|
679
|
+
rubygems_version: 3.1.2
|
655
680
|
signing_key:
|
656
681
|
specification_version: 4
|
657
682
|
summary: Ruby FFI
|