ffi 1.9.24 → 1.16.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (457) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +348 -0
  4. data/Gemfile +4 -5
  5. data/README.md +44 -17
  6. data/Rakefile +74 -148
  7. data/ext/ffi_c/AbstractMemory.c +89 -70
  8. data/ext/ffi_c/AbstractMemory.h +3 -2
  9. data/ext/ffi_c/ArrayType.c +49 -13
  10. data/ext/ffi_c/ArrayType.h +1 -0
  11. data/ext/ffi_c/Buffer.c +90 -38
  12. data/ext/ffi_c/Call.c +55 -56
  13. data/ext/ffi_c/Call.h +12 -6
  14. data/ext/ffi_c/ClosurePool.c +333 -0
  15. data/ext/ffi_c/{Closure.h → ClosurePool.h} +25 -13
  16. data/ext/ffi_c/DynamicLibrary.c +91 -33
  17. data/ext/ffi_c/Function.c +306 -235
  18. data/ext/ffi_c/Function.h +3 -5
  19. data/ext/ffi_c/FunctionInfo.c +87 -32
  20. data/ext/ffi_c/LastError.c +74 -15
  21. data/ext/ffi_c/LongDouble.c +12 -10
  22. data/ext/ffi_c/LongDouble.h +0 -4
  23. data/ext/ffi_c/MappedType.c +66 -23
  24. data/ext/ffi_c/MappedType.h +0 -2
  25. data/ext/ffi_c/MemoryPointer.c +37 -15
  26. data/ext/ffi_c/MemoryPointer.h +0 -4
  27. data/ext/ffi_c/MethodHandle.c +265 -38
  28. data/ext/ffi_c/MethodHandle.h +3 -2
  29. data/ext/ffi_c/Platform.c +5 -56
  30. data/ext/ffi_c/Pointer.c +93 -55
  31. data/ext/ffi_c/Pointer.h +1 -4
  32. data/ext/ffi_c/Struct.c +202 -134
  33. data/ext/ffi_c/Struct.h +18 -9
  34. data/ext/ffi_c/StructByValue.c +50 -23
  35. data/ext/ffi_c/StructLayout.c +135 -64
  36. data/ext/ffi_c/Thread.c +4 -228
  37. data/ext/ffi_c/Thread.h +1 -20
  38. data/ext/ffi_c/Type.c +105 -55
  39. data/ext/ffi_c/Type.h +3 -2
  40. data/ext/ffi_c/Types.c +8 -9
  41. data/ext/ffi_c/Types.h +3 -4
  42. data/ext/ffi_c/Variadic.c +88 -47
  43. data/ext/ffi_c/compat.h +26 -22
  44. data/ext/ffi_c/extconf.rb +75 -32
  45. data/ext/ffi_c/ffi.c +9 -10
  46. data/ext/ffi_c/libffi/.appveyor/site.exp +16 -0
  47. data/ext/ffi_c/libffi/.appveyor/unix-noexec.exp +7 -0
  48. data/ext/ffi_c/libffi/.appveyor.yml +53 -19
  49. data/ext/ffi_c/libffi/.ci/bfin-sim.exp +58 -0
  50. data/ext/ffi_c/libffi/.ci/build-cross-in-container.sh +18 -0
  51. data/ext/ffi_c/libffi/.ci/build-in-container.sh +10 -0
  52. data/ext/ffi_c/libffi/.ci/build.sh +124 -0
  53. data/ext/ffi_c/libffi/.ci/install.sh +78 -0
  54. data/ext/ffi_c/libffi/.ci/m32r-sim.exp +58 -0
  55. data/ext/ffi_c/libffi/{.travis → .ci}/moxie-sim.exp +1 -1
  56. data/ext/ffi_c/libffi/.ci/msvs-detect +1103 -0
  57. data/ext/ffi_c/libffi/.ci/or1k-sim.exp +58 -0
  58. data/ext/ffi_c/libffi/.ci/powerpc-eabisim.exp +58 -0
  59. data/ext/ffi_c/libffi/.ci/site.exp +29 -0
  60. data/ext/ffi_c/libffi/.ci/wine-sim.exp +55 -0
  61. data/ext/ffi_c/libffi/.circleci/config.yml +156 -0
  62. data/ext/ffi_c/libffi/.gitattributes +4 -0
  63. data/ext/ffi_c/libffi/.github/workflows/build.yml +460 -0
  64. data/ext/ffi_c/libffi/.github/workflows/emscripten.yml +171 -0
  65. data/ext/ffi_c/libffi/.gitignore +10 -2
  66. data/ext/ffi_c/libffi/{ChangeLog.libffi-3.1 → ChangeLog.old} +1407 -0
  67. data/ext/ffi_c/libffi/LICENSE +1 -1
  68. data/ext/ffi_c/libffi/LICENSE-BUILDTOOLS +5 -4
  69. data/ext/ffi_c/libffi/Makefile.am +64 -73
  70. data/ext/ffi_c/libffi/Makefile.in +553 -235
  71. data/ext/ffi_c/libffi/README.md +165 -100
  72. data/ext/ffi_c/libffi/acinclude.m4 +10 -112
  73. data/ext/ffi_c/libffi/compile +348 -0
  74. data/ext/ffi_c/libffi/config.guess +950 -662
  75. data/ext/ffi_c/libffi/config.sub +1362 -1306
  76. data/ext/ffi_c/libffi/configure +4909 -4096
  77. data/ext/ffi_c/libffi/configure.ac +93 -32
  78. data/ext/ffi_c/libffi/configure.host +76 -28
  79. data/ext/ffi_c/libffi/doc/Makefile.in +15 -8
  80. data/ext/ffi_c/libffi/doc/libffi.texi +107 -46
  81. data/ext/ffi_c/libffi/doc/version.texi +4 -4
  82. data/ext/ffi_c/libffi/fficonfig.h.in +22 -44
  83. data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +165 -56
  84. data/ext/ffi_c/libffi/include/Makefile.am +1 -1
  85. data/ext/ffi_c/libffi/include/Makefile.in +17 -12
  86. data/ext/ffi_c/libffi/include/ffi.h.in +64 -48
  87. data/ext/ffi_c/libffi/include/ffi_cfi.h +21 -0
  88. data/ext/ffi_c/libffi/include/ffi_common.h +34 -1
  89. data/ext/ffi_c/libffi/include/tramp.h +45 -0
  90. data/ext/ffi_c/libffi/install-sh +107 -74
  91. data/ext/ffi_c/libffi/libffi.map.in +8 -12
  92. data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +2 -48
  93. data/ext/ffi_c/libffi/libtool-version +2 -2
  94. data/ext/ffi_c/libffi/ltmain.sh +576 -284
  95. data/ext/ffi_c/libffi/m4/asmcfi.m4 +1 -1
  96. data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +5 -26
  97. data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +18 -14
  98. data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +108 -72
  99. data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +5 -26
  100. data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +76 -44
  101. data/ext/ffi_c/libffi/m4/ax_configure_args.m4 +5 -26
  102. data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +7 -3
  103. data/ext/ffi_c/libffi/m4/ax_prepend_flag.m4 +51 -0
  104. data/ext/ffi_c/libffi/make_sunver.pl +333 -0
  105. data/ext/ffi_c/libffi/man/Makefile.in +15 -8
  106. data/ext/ffi_c/libffi/missing +8 -8
  107. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.sln +33 -0
  108. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj +130 -0
  109. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.filters +57 -0
  110. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.user +4 -0
  111. data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h +511 -0
  112. data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/fficonfig.h +219 -0
  113. data/ext/ffi_c/libffi/msvcc.sh +39 -14
  114. data/ext/ffi_c/libffi/src/aarch64/ffi.c +286 -98
  115. data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +19 -3
  116. data/ext/ffi_c/libffi/src/aarch64/internal.h +33 -0
  117. data/ext/ffi_c/libffi/src/aarch64/sysv.S +142 -37
  118. data/ext/ffi_c/libffi/src/aarch64/win64_armasm.S +506 -0
  119. data/ext/ffi_c/libffi/src/arc/arcompact.S +169 -94
  120. data/ext/ffi_c/libffi/src/arc/ffi.c +325 -148
  121. data/ext/ffi_c/libffi/src/arc/ffitarget.h +14 -0
  122. data/ext/ffi_c/libffi/src/arm/ffi.c +112 -10
  123. data/ext/ffi_c/libffi/src/arm/ffitarget.h +8 -1
  124. data/ext/ffi_c/libffi/src/arm/internal.h +10 -0
  125. data/ext/ffi_c/libffi/src/arm/sysv.S +117 -44
  126. data/ext/ffi_c/libffi/src/arm/sysv_msvc_arm32.S +311 -0
  127. data/ext/ffi_c/libffi/src/closures.c +189 -48
  128. data/ext/ffi_c/libffi/src/csky/ffi.c +395 -0
  129. data/ext/ffi_c/libffi/src/csky/ffitarget.h +63 -0
  130. data/ext/ffi_c/libffi/src/csky/sysv.S +371 -0
  131. data/ext/ffi_c/libffi/src/dlmalloc.c +6 -1
  132. data/ext/ffi_c/libffi/src/frv/ffi.c +1 -1
  133. data/ext/ffi_c/libffi/src/ia64/ffi.c +12 -0
  134. data/ext/ffi_c/libffi/src/ia64/unix.S +20 -2
  135. data/ext/ffi_c/libffi/src/kvx/asm.h +5 -0
  136. data/ext/ffi_c/libffi/src/kvx/ffi.c +273 -0
  137. data/ext/ffi_c/libffi/src/kvx/ffitarget.h +75 -0
  138. data/ext/ffi_c/libffi/src/kvx/sysv.S +127 -0
  139. data/ext/ffi_c/libffi/src/loongarch64/ffi.c +621 -0
  140. data/ext/ffi_c/libffi/src/loongarch64/ffitarget.h +82 -0
  141. data/ext/ffi_c/libffi/src/loongarch64/sysv.S +327 -0
  142. data/ext/ffi_c/libffi/src/m32r/ffi.c +31 -14
  143. data/ext/ffi_c/libffi/src/metag/ffi.c +1 -1
  144. data/ext/ffi_c/libffi/src/mips/ffi.c +245 -66
  145. data/ext/ffi_c/libffi/src/mips/ffitarget.h +8 -1
  146. data/ext/ffi_c/libffi/src/mips/n32.S +137 -28
  147. data/ext/ffi_c/libffi/src/mips/o32.S +63 -4
  148. data/ext/ffi_c/libffi/src/moxie/ffi.c +48 -23
  149. data/ext/ffi_c/libffi/src/or1k/ffi.c +25 -12
  150. data/ext/ffi_c/libffi/src/pa/ffi.c +62 -108
  151. data/ext/ffi_c/libffi/src/pa/ffi64.c +614 -0
  152. data/ext/ffi_c/libffi/src/pa/ffitarget.h +20 -11
  153. data/ext/ffi_c/libffi/src/pa/hpux32.S +87 -38
  154. data/ext/ffi_c/libffi/src/pa/hpux64.S +681 -0
  155. data/ext/ffi_c/libffi/src/pa/linux.S +109 -39
  156. data/ext/ffi_c/libffi/src/powerpc/ffi.c +6 -4
  157. data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +13 -1
  158. data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +211 -32
  159. data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +18 -7
  160. data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +10 -4
  161. data/ext/ffi_c/libffi/src/powerpc/linux64.S +93 -28
  162. data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +83 -5
  163. data/ext/ffi_c/libffi/src/powerpc/sysv.S +5 -7
  164. data/ext/ffi_c/libffi/src/powerpc/t-aix +5 -0
  165. data/ext/ffi_c/libffi/src/prep_cif.c +26 -4
  166. data/ext/ffi_c/libffi/src/riscv/ffi.c +79 -10
  167. data/ext/ffi_c/libffi/src/riscv/ffitarget.h +1 -0
  168. data/ext/ffi_c/libffi/src/riscv/sysv.S +86 -7
  169. data/ext/ffi_c/libffi/src/sparc/ffi64.c +16 -0
  170. data/ext/ffi_c/libffi/src/tramp.c +716 -0
  171. data/ext/ffi_c/libffi/src/wasm32/ffi.c +934 -0
  172. data/ext/ffi_c/libffi/src/wasm32/ffitarget.h +62 -0
  173. data/ext/ffi_c/libffi/src/x86/ffi.c +128 -49
  174. data/ext/ffi_c/libffi/src/x86/ffi64.c +89 -23
  175. data/ext/ffi_c/libffi/src/x86/ffitarget.h +21 -4
  176. data/ext/ffi_c/libffi/src/x86/ffiw64.c +63 -10
  177. data/ext/ffi_c/libffi/src/x86/internal.h +14 -0
  178. data/ext/ffi_c/libffi/src/x86/internal64.h +14 -0
  179. data/ext/ffi_c/libffi/src/x86/sysv.S +274 -45
  180. data/ext/ffi_c/libffi/src/x86/sysv_intel.S +998 -0
  181. data/ext/ffi_c/libffi/src/x86/unix64.S +190 -4
  182. data/ext/ffi_c/libffi/src/x86/win64.S +32 -10
  183. data/ext/ffi_c/libffi/src/x86/win64_intel.S +3 -2
  184. data/ext/ffi_c/libffi/src/xtensa/ffi.c +16 -8
  185. data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +4 -0
  186. data/ext/ffi_c/libffi/src/xtensa/sysv.S +26 -16
  187. data/ext/ffi_c/libffi/testsuite/Makefile.am +127 -109
  188. data/ext/ffi_c/libffi/testsuite/Makefile.in +144 -88
  189. data/ext/ffi_c/libffi/testsuite/emscripten/build-tests.sh +54 -0
  190. data/ext/ffi_c/libffi/testsuite/emscripten/build.sh +63 -0
  191. data/ext/ffi_c/libffi/testsuite/emscripten/conftest.py +80 -0
  192. data/ext/ffi_c/libffi/testsuite/emscripten/node-tests.sh +48 -0
  193. data/ext/ffi_c/libffi/testsuite/emscripten/test.html +7 -0
  194. data/ext/ffi_c/libffi/testsuite/emscripten/test_libffi.py +51 -0
  195. data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +71 -25
  196. data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +2 -2
  197. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/bhaible.exp +7 -2
  198. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +5 -4
  199. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-callback.c +2 -2
  200. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/testcases.c +5 -1
  201. data/ext/ffi_c/libffi/testsuite/libffi.call/bpo_38748.c +41 -0
  202. data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +12 -1
  203. data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +28 -3
  204. data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +9 -8
  205. data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +3 -0
  206. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +5 -0
  207. data/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +4 -0
  208. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +4 -0
  209. data/ext/ffi_c/libffi/testsuite/libffi.call/s55.c +60 -0
  210. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +8 -9
  211. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +2 -2
  212. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +2 -2
  213. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +2 -2
  214. data/ext/ffi_c/libffi/testsuite/libffi.call/struct10.c +1 -1
  215. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_2.c +63 -0
  216. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3.c +65 -0
  217. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3f.c +65 -0
  218. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4.c +67 -0
  219. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4f.c +67 -0
  220. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_big.c +93 -0
  221. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_small.c +61 -0
  222. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_return_2H.c +63 -0
  223. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_return_8H.c +90 -0
  224. data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +1 -119
  225. data/ext/ffi_c/libffi/testsuite/libffi.call/va_2.c +220 -0
  226. data/ext/ffi_c/libffi/testsuite/libffi.call/va_3.c +154 -0
  227. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +13 -0
  228. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +11 -0
  229. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +15 -0
  230. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp +67 -0
  231. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn0.c +3 -2
  232. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn1.c +2 -0
  233. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn2.c +2 -0
  234. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn3.c +21 -1
  235. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn4.c +2 -0
  236. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn5.c +2 -0
  237. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn6.c +2 -0
  238. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_loc_fn0.c +7 -6
  239. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_simple.c +6 -0
  240. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_12byte.c +18 -0
  241. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_16byte.c +22 -0
  242. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_18byte.c +24 -0
  243. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_19byte.c +29 -0
  244. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_1_1byte.c +4 -0
  245. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_20byte.c +19 -1
  246. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_20byte1.c +21 -1
  247. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_24byte.c +35 -3
  248. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_2byte.c +13 -0
  249. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3_1byte.c +19 -0
  250. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3byte1.c +13 -0
  251. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3byte2.c +13 -0
  252. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3float.c +18 -0
  253. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_4_1byte.c +22 -0
  254. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_4byte.c +13 -0
  255. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_5_1_byte.c +29 -1
  256. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_5byte.c +19 -1
  257. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_64byte.c +24 -0
  258. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_6_1_byte.c +28 -1
  259. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_6byte.c +24 -2
  260. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_7_1_byte.c +39 -1
  261. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_7byte.c +25 -1
  262. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_8byte.c +14 -0
  263. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_9byte1.c +14 -1
  264. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_9byte2.c +14 -2
  265. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_double.c +19 -1
  266. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_float.c +19 -1
  267. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble.c +20 -1
  268. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble_split.c +40 -25
  269. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble_split2.c +40 -3
  270. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_pointer.c +19 -1
  271. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint16.c +18 -1
  272. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint32.c +18 -3
  273. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint64.c +18 -1
  274. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint16.c +18 -1
  275. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint32.c +19 -1
  276. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint64.c +19 -1
  277. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_dbls_struct.c +3 -1
  278. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_double_va.c +9 -1
  279. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_float.c +4 -0
  280. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_longdouble.c +11 -1
  281. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_longdouble_va.c +22 -3
  282. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_schar.c +5 -1
  283. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_sshort.c +6 -1
  284. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_sshortchar.c +9 -1
  285. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_uchar.c +9 -1
  286. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_ushort.c +6 -2
  287. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_ushortchar.c +9 -1
  288. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_pointer.c +5 -0
  289. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_pointer_stack.c +10 -0
  290. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_schar.c +3 -0
  291. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_sint.c +2 -0
  292. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_sshort.c +3 -0
  293. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_struct_va1.c +11 -0
  294. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uchar.c +3 -0
  295. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uint.c +4 -0
  296. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uint_va.c +4 -0
  297. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ulong_va.c +4 -0
  298. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ulonglong.c +2 -0
  299. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ushort.c +3 -0
  300. data/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +1 -0
  301. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/huge_struct.c +24 -22
  302. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct.c +32 -9
  303. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct1.c +1 -1
  304. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct10.c +12 -0
  305. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct11.c +21 -5
  306. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct12.c +86 -0
  307. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct13.c +115 -0
  308. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct2.c +10 -1
  309. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct3.c +10 -1
  310. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct4.c +9 -0
  311. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct5.c +9 -0
  312. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct6.c +11 -0
  313. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct7.c +9 -0
  314. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct8.c +11 -0
  315. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct9.c +11 -0
  316. data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs1.c +86 -0
  317. data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs2.c +102 -0
  318. data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs3.c +101 -0
  319. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_medium.c +1 -1
  320. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_medium2.c +1 -1
  321. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/testclosure.c +6 -1
  322. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/unwindtest.cc +2 -1
  323. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/unwindtest_ffi_call.cc +1 -0
  324. data/ext/ffi_c/libffi.bsd.mk +2 -2
  325. data/ext/ffi_c/libffi.darwin.mk +1 -1
  326. data/ext/ffi_c/libffi.gnu.mk +2 -2
  327. data/ext/ffi_c/rbffi.h +1 -3
  328. data/ffi.gemspec +15 -9
  329. data/lib/ffi/abstract_memory.rb +44 -0
  330. data/lib/ffi/autopointer.rb +8 -23
  331. data/lib/ffi/compat.rb +43 -0
  332. data/lib/ffi/data_converter.rb +67 -0
  333. data/lib/ffi/dynamic_library.rb +89 -0
  334. data/lib/ffi/enum.rb +18 -11
  335. data/lib/ffi/ffi.rb +6 -0
  336. data/lib/ffi/function.rb +71 -0
  337. data/lib/ffi/io.rb +3 -3
  338. data/lib/ffi/library.rb +65 -77
  339. data/lib/ffi/library_path.rb +109 -0
  340. data/lib/ffi/managedstruct.rb +3 -3
  341. data/lib/ffi/platform/aarch64-darwin/types.conf +130 -0
  342. data/lib/ffi/platform/aarch64-freebsd/types.conf +128 -0
  343. data/lib/ffi/platform/aarch64-freebsd12/types.conf +181 -0
  344. data/lib/ffi/platform/aarch64-linux/types.conf +81 -81
  345. data/lib/ffi/platform/aarch64-openbsd/types.conf +134 -0
  346. data/lib/ffi/platform/aarch64-windows/types.conf +52 -0
  347. data/lib/ffi/platform/arm-freebsd/types.conf +152 -0
  348. data/lib/ffi/platform/arm-freebsd12/types.conf +152 -0
  349. data/lib/ffi/platform/arm-linux/types.conf +110 -82
  350. data/lib/ffi/platform/hppa1.1-linux/types.conf +178 -0
  351. data/lib/ffi/platform/hppa2.0-linux/types.conf +178 -0
  352. data/lib/ffi/platform/i386-cygwin/types.conf +1 -1
  353. data/lib/ffi/platform/i386-darwin/types.conf +63 -63
  354. data/lib/ffi/platform/i386-freebsd/types.conf +89 -89
  355. data/lib/ffi/platform/i386-freebsd12/types.conf +152 -0
  356. data/lib/ffi/platform/i386-gnu/types.conf +84 -84
  357. data/lib/ffi/platform/i386-linux/types.conf +77 -77
  358. data/lib/ffi/platform/i386-netbsd/types.conf +87 -87
  359. data/lib/ffi/platform/i386-openbsd/types.conf +89 -89
  360. data/lib/ffi/platform/i386-solaris/types.conf +96 -96
  361. data/lib/ffi/platform/i386-windows/types.conf +43 -96
  362. data/lib/ffi/platform/ia64-linux/types.conf +79 -79
  363. data/lib/ffi/platform/loongarch64-linux/types.conf +141 -0
  364. data/lib/ffi/platform/mips-linux/types.conf +79 -79
  365. data/lib/ffi/platform/mips64-linux/types.conf +81 -81
  366. data/lib/ffi/platform/mips64el-linux/types.conf +81 -81
  367. data/lib/ffi/platform/mipsel-linux/types.conf +79 -79
  368. data/lib/ffi/platform/mipsisa32r6-linux/types.conf +79 -79
  369. data/lib/ffi/platform/mipsisa32r6el-linux/types.conf +79 -79
  370. data/lib/ffi/platform/mipsisa64r6-linux/types.conf +81 -81
  371. data/lib/ffi/platform/mipsisa64r6el-linux/types.conf +81 -81
  372. data/lib/ffi/platform/powerpc-aix/types.conf +155 -155
  373. data/lib/ffi/platform/powerpc-darwin/types.conf +63 -63
  374. data/lib/ffi/platform/powerpc-linux/types.conf +108 -78
  375. data/lib/ffi/platform/powerpc-openbsd/types.conf +156 -0
  376. data/lib/ffi/platform/powerpc64-linux/types.conf +81 -81
  377. data/lib/ffi/platform/powerpc64le-linux/types.conf +100 -0
  378. data/lib/ffi/platform/riscv64-linux/types.conf +104 -0
  379. data/lib/ffi/platform/s390-linux/types.conf +79 -79
  380. data/lib/ffi/platform/s390x-linux/types.conf +79 -79
  381. data/lib/ffi/platform/sparc-linux/types.conf +79 -79
  382. data/lib/ffi/platform/sparc-solaris/types.conf +103 -103
  383. data/lib/ffi/platform/sparcv9-openbsd/types.conf +156 -0
  384. data/lib/ffi/platform/sparcv9-solaris/types.conf +103 -103
  385. data/lib/ffi/platform/sw_64-linux/types.conf +141 -0
  386. data/lib/ffi/platform/x86_64-cygwin/types.conf +1 -1
  387. data/lib/ffi/platform/x86_64-darwin/types.conf +88 -84
  388. data/lib/ffi/platform/x86_64-dragonflybsd/types.conf +130 -0
  389. data/lib/ffi/platform/x86_64-freebsd/types.conf +90 -90
  390. data/lib/ffi/platform/x86_64-freebsd12/types.conf +158 -0
  391. data/lib/ffi/platform/x86_64-haiku/types.conf +117 -0
  392. data/lib/ffi/platform/x86_64-linux/types.conf +107 -77
  393. data/lib/ffi/platform/x86_64-msys/types.conf +119 -0
  394. data/lib/ffi/platform/x86_64-netbsd/types.conf +89 -89
  395. data/lib/ffi/platform/x86_64-openbsd/types.conf +86 -86
  396. data/lib/ffi/platform/x86_64-solaris/types.conf +96 -96
  397. data/lib/ffi/platform/x86_64-windows/types.conf +42 -110
  398. data/lib/ffi/platform.rb +43 -20
  399. data/lib/ffi/pointer.rb +26 -20
  400. data/lib/ffi/struct.rb +14 -68
  401. data/lib/ffi/struct_by_reference.rb +72 -0
  402. data/lib/ffi/struct_layout.rb +96 -0
  403. data/lib/ffi/struct_layout_builder.rb +1 -1
  404. data/lib/ffi/tools/const_generator.rb +11 -8
  405. data/lib/ffi/tools/generator.rb +47 -2
  406. data/lib/ffi/tools/generator_task.rb +13 -17
  407. data/lib/ffi/tools/struct_generator.rb +6 -5
  408. data/lib/ffi/tools/types_generator.rb +7 -4
  409. data/lib/ffi/types.rb +33 -7
  410. data/lib/ffi/variadic.rb +20 -18
  411. data/lib/ffi/version.rb +1 -1
  412. data/lib/ffi.rb +10 -3
  413. data/rakelib/ffi_gem_helper.rb +65 -0
  414. data/samples/getlogin.rb +1 -1
  415. data/samples/getpid.rb +1 -1
  416. data/samples/gettimeofday.rb +8 -8
  417. data/samples/hello.rb +2 -1
  418. data/samples/hello_ractor.rb +11 -0
  419. data/samples/inotify.rb +1 -1
  420. data/samples/pty.rb +1 -2
  421. data/samples/qsort.rb +0 -1
  422. data/samples/qsort_ractor.rb +28 -0
  423. data.tar.gz.sig +0 -0
  424. metadata +252 -153
  425. metadata.gz.sig +0 -0
  426. data/.gitignore +0 -22
  427. data/.gitmodules +0 -3
  428. data/.travis.yml +0 -52
  429. data/.yardopts +0 -5
  430. data/appveyor.yml +0 -22
  431. data/ext/ffi_c/Closure.c +0 -54
  432. data/ext/ffi_c/DataConverter.c +0 -91
  433. data/ext/ffi_c/StructByReference.c +0 -190
  434. data/ext/ffi_c/StructByReference.h +0 -50
  435. data/ext/ffi_c/libffi/.travis/build.sh +0 -34
  436. data/ext/ffi_c/libffi/.travis/install.sh +0 -22
  437. data/ext/ffi_c/libffi/.travis/site.exp +0 -18
  438. data/ext/ffi_c/libffi/.travis.yml +0 -34
  439. data/ext/ffi_c/libffi/ChangeLog.libffi +0 -584
  440. data/ext/ffi_c/libffi/ChangeLog.libgcj +0 -40
  441. data/ext/ffi_c/libffi/ChangeLog.v1 +0 -764
  442. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar_va.c +0 -44
  443. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort_va.c +0 -44
  444. data/ext/ffi_c/win32/stdbool.h +0 -8
  445. data/ext/ffi_c/win32/stdint.h +0 -201
  446. data/samples/sample_helper.rb +0 -6
  447. data/ext/ffi_c/libffi/{.travis → .ci}/ar-lib +0 -0
  448. data/ext/ffi_c/libffi/{.travis → .ci}/compile +0 -0
  449. data/ext/ffi_c/libffi/testsuite/libffi.call/{pyobjc-tc.c → pyobjc_tc.c} +0 -0
  450. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_double.c +0 -0
  451. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_many_mixed_args.c +0 -0
  452. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_many_mixed_float_double.c +0 -0
  453. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/err_bad_abi.c +0 -0
  454. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/problem1.c +0 -0
  455. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_large.c +0 -0
  456. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_large2.c +0 -0
  457. data/lib/ffi/platform/{sparc64-linux → sparcv9-linux}/types.conf +79 -79
metadata CHANGED
@@ -1,14 +1,39 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.24
4
+ version: 1.16.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne Meissner
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2018-06-02 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEBDCCAmygAwIBAgIBAjANBgkqhkiG9w0BAQsFADAoMSYwJAYDVQQDDB1sYXJz
14
+ L0RDPWdyZWl6LXJlaW5zZG9yZi9EQz1kZTAeFw0yMzAyMTUxNzQxMTVaFw0yNDAy
15
+ MTUxNzQxMTVaMCgxJjAkBgNVBAMMHWxhcnMvREM9Z3JlaXotcmVpbnNkb3JmL0RD
16
+ PWRlMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAwum6Y1KznfpzXOT/
17
+ mZgJTBbxZuuZF49Fq3K0WA67YBzNlDv95qzSp7V/7Ek3NCcnT7G+2kSuhNo1FhdN
18
+ eSDO/moYebZNAcu3iqLsuzuULXPLuoU0GsMnVMqV9DZPh7cQHE5EBZ7hlzDBK7k/
19
+ 8nBMvR0mHo77kIkapHc26UzVq/G0nKLfDsIHXVylto3PjzOumjG6GhmFN4r3cP6e
20
+ SDfl1FSeRYVpt4kmQULz/zdSaOH3AjAq7PM2Z91iGwQvoUXMANH2v89OWjQO/NHe
21
+ JMNDFsmHK/6Ji4Kk48Z3TyscHQnipAID5GhS1oD21/WePdj7GhmbF5gBzkV5uepd
22
+ eJQPgWGwrQW/Z2oPjRuJrRofzWfrMWqbOahj9uth6WSxhNexUtbjk6P8emmXOJi5
23
+ chQPnWX+N3Gj+jjYxqTFdwT7Mj3pv1VHa+aNUbqSPpvJeDyxRIuo9hvzDaBHb/Cg
24
+ 9qRVcm8a96n4t7y2lrX1oookY6bkBaxWOMtWlqIprq8JZXM9AgMBAAGjOTA3MAkG
25
+ A1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQ4h1tIyvdUWtMI739xMzTR
26
+ 7EfMFzANBgkqhkiG9w0BAQsFAAOCAYEAQAcuTARfiiVUVx5KURICfdTM2Kd7LhOn
27
+ qt3Vs4ANGvT226LEp3RnQ+kWGQYMRb3cw3LY2TNQRPlnZxE994mgjBscN4fbjXqO
28
+ T0JbVpeszRZa5k1goggbnWT7CO7yU7WcHh13DaSubY7HUpAJn2xz9w2stxQfN/EE
29
+ VMlnDJ1P7mUHAvpK8X9j9h7Xlc1niViT18MYwux8mboVTryrLr+clATUkkM3yBF0
30
+ RV+c34ReW5eXO9Tr6aKTxh/pFC9ggDT6jOxuJgSvG8HWJzVf4NDvMavIas4KYjiI
31
+ BU6CpWaG5NxicqL3BERi52U43HV08br+LNVpb7Rekgve/PJuSFnAR015bhSRXe5U
32
+ vBioD1qW2ZW9tXg8Ww2IfDaO5a1So5Xby51rhNlyo6ATj2NkuLWZUKPKHhAz0TKm
33
+ Dzx/gFSOrRoCt2mXNgrmcAfr386AfaMvCh7cXqdxZwmVo7ILZCYXck0pajvubsDd
34
+ NUIIFkVXvd1odFyK9LF1RFAtxn/iAmpx
35
+ -----END CERTIFICATE-----
36
+ date: 2023-10-04 00:00:00.000000000 Z
12
37
  dependencies:
13
38
  - !ruby/object:Gem::Dependency
14
39
  name: rake
@@ -16,42 +41,42 @@ dependencies:
16
41
  requirements:
17
42
  - - "~>"
18
43
  - !ruby/object:Gem::Version
19
- version: '10.1'
44
+ version: '13.0'
20
45
  type: :development
21
46
  prerelease: false
22
47
  version_requirements: !ruby/object:Gem::Requirement
23
48
  requirements:
24
49
  - - "~>"
25
50
  - !ruby/object:Gem::Version
26
- version: '10.1'
51
+ version: '13.0'
27
52
  - !ruby/object:Gem::Dependency
28
53
  name: rake-compiler
29
54
  requirement: !ruby/object:Gem::Requirement
30
55
  requirements:
31
56
  - - "~>"
32
57
  - !ruby/object:Gem::Version
33
- version: '1.0'
58
+ version: '1.1'
34
59
  type: :development
35
60
  prerelease: false
36
61
  version_requirements: !ruby/object:Gem::Requirement
37
62
  requirements:
38
63
  - - "~>"
39
64
  - !ruby/object:Gem::Version
40
- version: '1.0'
65
+ version: '1.1'
41
66
  - !ruby/object:Gem::Dependency
42
67
  name: rake-compiler-dock
43
68
  requirement: !ruby/object:Gem::Requirement
44
69
  requirements:
45
70
  - - "~>"
46
71
  - !ruby/object:Gem::Version
47
- version: 0.6.2
72
+ version: '1.0'
48
73
  type: :development
49
74
  prerelease: false
50
75
  version_requirements: !ruby/object:Gem::Requirement
51
76
  requirements:
52
77
  - - "~>"
53
78
  - !ruby/object:Gem::Version
54
- version: 0.6.2
79
+ version: '1.0'
55
80
  - !ruby/object:Gem::Dependency
56
81
  name: rspec
57
82
  requirement: !ruby/object:Gem::Requirement
@@ -66,20 +91,6 @@ dependencies:
66
91
  - - "~>"
67
92
  - !ruby/object:Gem::Version
68
93
  version: 2.14.1
69
- - !ruby/object:Gem::Dependency
70
- name: rubygems-tasks
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 0.2.4
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 0.2.4
83
94
  description: Ruby FFI library
84
95
  email: wmeissner@gmail.com
85
96
  executables: []
@@ -87,10 +98,6 @@ extensions:
87
98
  - ext/ffi_c/extconf.rb
88
99
  extra_rdoc_files: []
89
100
  files:
90
- - ".gitignore"
91
- - ".gitmodules"
92
- - ".travis.yml"
93
- - ".yardopts"
94
101
  - CHANGELOG.md
95
102
  - COPYING
96
103
  - Gemfile
@@ -98,7 +105,6 @@ files:
98
105
  - LICENSE.SPECS
99
106
  - README.md
100
107
  - Rakefile
101
- - appveyor.yml
102
108
  - ext/ffi_c/AbstractMemory.c
103
109
  - ext/ffi_c/AbstractMemory.h
104
110
  - ext/ffi_c/ArrayType.c
@@ -106,9 +112,8 @@ files:
106
112
  - ext/ffi_c/Buffer.c
107
113
  - ext/ffi_c/Call.c
108
114
  - ext/ffi_c/Call.h
109
- - ext/ffi_c/Closure.c
110
- - ext/ffi_c/Closure.h
111
- - ext/ffi_c/DataConverter.c
115
+ - ext/ffi_c/ClosurePool.c
116
+ - ext/ffi_c/ClosurePool.h
112
117
  - ext/ffi_c/DynamicLibrary.c
113
118
  - ext/ffi_c/DynamicLibrary.h
114
119
  - ext/ffi_c/Function.c
@@ -130,8 +135,6 @@ files:
130
135
  - ext/ffi_c/Pointer.h
131
136
  - ext/ffi_c/Struct.c
132
137
  - ext/ffi_c/Struct.h
133
- - ext/ffi_c/StructByReference.c
134
- - ext/ffi_c/StructByReference.h
135
138
  - ext/ffi_c/StructByValue.c
136
139
  - ext/ffi_c/StructByValue.h
137
140
  - ext/ffi_c/StructLayout.c
@@ -152,19 +155,29 @@ files:
152
155
  - ext/ffi_c/libffi.vc.mk
153
156
  - ext/ffi_c/libffi.vc64.mk
154
157
  - ext/ffi_c/libffi/.appveyor.yml
158
+ - ext/ffi_c/libffi/.appveyor/site.exp
159
+ - ext/ffi_c/libffi/.appveyor/unix-noexec.exp
160
+ - ext/ffi_c/libffi/.ci/ar-lib
161
+ - ext/ffi_c/libffi/.ci/bfin-sim.exp
162
+ - ext/ffi_c/libffi/.ci/build-cross-in-container.sh
163
+ - ext/ffi_c/libffi/.ci/build-in-container.sh
164
+ - ext/ffi_c/libffi/.ci/build.sh
165
+ - ext/ffi_c/libffi/.ci/compile
166
+ - ext/ffi_c/libffi/.ci/install.sh
167
+ - ext/ffi_c/libffi/.ci/m32r-sim.exp
168
+ - ext/ffi_c/libffi/.ci/moxie-sim.exp
169
+ - ext/ffi_c/libffi/.ci/msvs-detect
170
+ - ext/ffi_c/libffi/.ci/or1k-sim.exp
171
+ - ext/ffi_c/libffi/.ci/powerpc-eabisim.exp
172
+ - ext/ffi_c/libffi/.ci/site.exp
173
+ - ext/ffi_c/libffi/.ci/wine-sim.exp
174
+ - ext/ffi_c/libffi/.circleci/config.yml
175
+ - ext/ffi_c/libffi/.gitattributes
155
176
  - ext/ffi_c/libffi/.github/issue_template.md
177
+ - ext/ffi_c/libffi/.github/workflows/build.yml
178
+ - ext/ffi_c/libffi/.github/workflows/emscripten.yml
156
179
  - ext/ffi_c/libffi/.gitignore
157
- - ext/ffi_c/libffi/.travis.yml
158
- - ext/ffi_c/libffi/.travis/ar-lib
159
- - ext/ffi_c/libffi/.travis/build.sh
160
- - ext/ffi_c/libffi/.travis/compile
161
- - ext/ffi_c/libffi/.travis/install.sh
162
- - ext/ffi_c/libffi/.travis/moxie-sim.exp
163
- - ext/ffi_c/libffi/.travis/site.exp
164
- - ext/ffi_c/libffi/ChangeLog.libffi
165
- - ext/ffi_c/libffi/ChangeLog.libffi-3.1
166
- - ext/ffi_c/libffi/ChangeLog.libgcj
167
- - ext/ffi_c/libffi/ChangeLog.v1
180
+ - ext/ffi_c/libffi/ChangeLog.old
168
181
  - ext/ffi_c/libffi/LICENSE
169
182
  - ext/ffi_c/libffi/LICENSE-BUILDTOOLS
170
183
  - ext/ffi_c/libffi/Makefile.am
@@ -172,6 +185,7 @@ files:
172
185
  - ext/ffi_c/libffi/README.md
173
186
  - ext/ffi_c/libffi/acinclude.m4
174
187
  - ext/ffi_c/libffi/autogen.sh
188
+ - ext/ffi_c/libffi/compile
175
189
  - ext/ffi_c/libffi/config.guess
176
190
  - ext/ffi_c/libffi/config.sub
177
191
  - ext/ffi_c/libffi/configure
@@ -188,6 +202,7 @@ files:
188
202
  - ext/ffi_c/libffi/include/ffi.h.in
189
203
  - ext/ffi_c/libffi/include/ffi_cfi.h
190
204
  - ext/ffi_c/libffi/include/ffi_common.h
205
+ - ext/ffi_c/libffi/include/tramp.h
191
206
  - ext/ffi_c/libffi/install-sh
192
207
  - ext/ffi_c/libffi/libffi.map.in
193
208
  - ext/ffi_c/libffi/libffi.pc.in
@@ -205,7 +220,9 @@ files:
205
220
  - ext/ffi_c/libffi/m4/ax_enable_builddir.m4
206
221
  - ext/ffi_c/libffi/m4/ax_gcc_archflag.m4
207
222
  - ext/ffi_c/libffi/m4/ax_gcc_x86_cpuid.m4
223
+ - ext/ffi_c/libffi/m4/ax_prepend_flag.m4
208
224
  - ext/ffi_c/libffi/m4/ax_require_defined.m4
225
+ - ext/ffi_c/libffi/make_sunver.pl
209
226
  - ext/ffi_c/libffi/man/Makefile.am
210
227
  - ext/ffi_c/libffi/man/Makefile.in
211
228
  - ext/ffi_c/libffi/man/ffi.3
@@ -213,11 +230,18 @@ files:
213
230
  - ext/ffi_c/libffi/man/ffi_prep_cif.3
214
231
  - ext/ffi_c/libffi/man/ffi_prep_cif_var.3
215
232
  - ext/ffi_c/libffi/missing
233
+ - ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.sln
234
+ - ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj
235
+ - ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.filters
236
+ - ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.user
237
+ - ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h
238
+ - ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/fficonfig.h
216
239
  - ext/ffi_c/libffi/msvcc.sh
217
240
  - ext/ffi_c/libffi/src/aarch64/ffi.c
218
241
  - ext/ffi_c/libffi/src/aarch64/ffitarget.h
219
242
  - ext/ffi_c/libffi/src/aarch64/internal.h
220
243
  - ext/ffi_c/libffi/src/aarch64/sysv.S
244
+ - ext/ffi_c/libffi/src/aarch64/win64_armasm.S
221
245
  - ext/ffi_c/libffi/src/alpha/ffi.c
222
246
  - ext/ffi_c/libffi/src/alpha/ffitarget.h
223
247
  - ext/ffi_c/libffi/src/alpha/internal.h
@@ -229,6 +253,7 @@ files:
229
253
  - ext/ffi_c/libffi/src/arm/ffitarget.h
230
254
  - ext/ffi_c/libffi/src/arm/internal.h
231
255
  - ext/ffi_c/libffi/src/arm/sysv.S
256
+ - ext/ffi_c/libffi/src/arm/sysv_msvc_arm32.S
232
257
  - ext/ffi_c/libffi/src/avr32/ffi.c
233
258
  - ext/ffi_c/libffi/src/avr32/ffitarget.h
234
259
  - ext/ffi_c/libffi/src/avr32/sysv.S
@@ -239,6 +264,9 @@ files:
239
264
  - ext/ffi_c/libffi/src/cris/ffi.c
240
265
  - ext/ffi_c/libffi/src/cris/ffitarget.h
241
266
  - ext/ffi_c/libffi/src/cris/sysv.S
267
+ - ext/ffi_c/libffi/src/csky/ffi.c
268
+ - ext/ffi_c/libffi/src/csky/ffitarget.h
269
+ - ext/ffi_c/libffi/src/csky/sysv.S
242
270
  - ext/ffi_c/libffi/src/debug.c
243
271
  - ext/ffi_c/libffi/src/dlmalloc.c
244
272
  - ext/ffi_c/libffi/src/frv/eabi.S
@@ -249,6 +277,13 @@ files:
249
277
  - ext/ffi_c/libffi/src/ia64/ia64_flags.h
250
278
  - ext/ffi_c/libffi/src/ia64/unix.S
251
279
  - ext/ffi_c/libffi/src/java_raw_api.c
280
+ - ext/ffi_c/libffi/src/kvx/asm.h
281
+ - ext/ffi_c/libffi/src/kvx/ffi.c
282
+ - ext/ffi_c/libffi/src/kvx/ffitarget.h
283
+ - ext/ffi_c/libffi/src/kvx/sysv.S
284
+ - ext/ffi_c/libffi/src/loongarch64/ffi.c
285
+ - ext/ffi_c/libffi/src/loongarch64/ffitarget.h
286
+ - ext/ffi_c/libffi/src/loongarch64/sysv.S
252
287
  - ext/ffi_c/libffi/src/m32r/ffi.c
253
288
  - ext/ffi_c/libffi/src/m32r/ffitarget.h
254
289
  - ext/ffi_c/libffi/src/m32r/sysv.S
@@ -278,8 +313,10 @@ files:
278
313
  - ext/ffi_c/libffi/src/or1k/ffitarget.h
279
314
  - ext/ffi_c/libffi/src/or1k/sysv.S
280
315
  - ext/ffi_c/libffi/src/pa/ffi.c
316
+ - ext/ffi_c/libffi/src/pa/ffi64.c
281
317
  - ext/ffi_c/libffi/src/pa/ffitarget.h
282
318
  - ext/ffi_c/libffi/src/pa/hpux32.S
319
+ - ext/ffi_c/libffi/src/pa/hpux64.S
283
320
  - ext/ffi_c/libffi/src/pa/linux.S
284
321
  - ext/ffi_c/libffi/src/powerpc/aix.S
285
322
  - ext/ffi_c/libffi/src/powerpc/aix_closure.S
@@ -296,6 +333,7 @@ files:
296
333
  - ext/ffi_c/libffi/src/powerpc/linux64_closure.S
297
334
  - ext/ffi_c/libffi/src/powerpc/ppc_closure.S
298
335
  - ext/ffi_c/libffi/src/powerpc/sysv.S
336
+ - ext/ffi_c/libffi/src/powerpc/t-aix
299
337
  - ext/ffi_c/libffi/src/prep_cif.c
300
338
  - ext/ffi_c/libffi/src/raw_api.c
301
339
  - ext/ffi_c/libffi/src/riscv/ffi.c
@@ -320,10 +358,13 @@ files:
320
358
  - ext/ffi_c/libffi/src/tile/ffi.c
321
359
  - ext/ffi_c/libffi/src/tile/ffitarget.h
322
360
  - ext/ffi_c/libffi/src/tile/tile.S
361
+ - ext/ffi_c/libffi/src/tramp.c
323
362
  - ext/ffi_c/libffi/src/types.c
324
363
  - ext/ffi_c/libffi/src/vax/elfbsd.S
325
364
  - ext/ffi_c/libffi/src/vax/ffi.c
326
365
  - ext/ffi_c/libffi/src/vax/ffitarget.h
366
+ - ext/ffi_c/libffi/src/wasm32/ffi.c
367
+ - ext/ffi_c/libffi/src/wasm32/ffitarget.h
327
368
  - ext/ffi_c/libffi/src/x86/asmnames.h
328
369
  - ext/ffi_c/libffi/src/x86/ffi.c
329
370
  - ext/ffi_c/libffi/src/x86/ffi64.c
@@ -332,6 +373,7 @@ files:
332
373
  - ext/ffi_c/libffi/src/x86/internal.h
333
374
  - ext/ffi_c/libffi/src/x86/internal64.h
334
375
  - ext/ffi_c/libffi/src/x86/sysv.S
376
+ - ext/ffi_c/libffi/src/x86/sysv_intel.S
335
377
  - ext/ffi_c/libffi/src/x86/unix64.S
336
378
  - ext/ffi_c/libffi/src/x86/win64.S
337
379
  - ext/ffi_c/libffi/src/x86/win64_intel.S
@@ -342,6 +384,12 @@ files:
342
384
  - ext/ffi_c/libffi/testsuite/Makefile.am
343
385
  - ext/ffi_c/libffi/testsuite/Makefile.in
344
386
  - ext/ffi_c/libffi/testsuite/config/default.exp
387
+ - ext/ffi_c/libffi/testsuite/emscripten/build-tests.sh
388
+ - ext/ffi_c/libffi/testsuite/emscripten/build.sh
389
+ - ext/ffi_c/libffi/testsuite/emscripten/conftest.py
390
+ - ext/ffi_c/libffi/testsuite/emscripten/node-tests.sh
391
+ - ext/ffi_c/libffi/testsuite/emscripten/test.html
392
+ - ext/ffi_c/libffi/testsuite/emscripten/test_libffi.py
345
393
  - ext/ffi_c/libffi/testsuite/lib/libffi.exp
346
394
  - ext/ffi_c/libffi/testsuite/lib/target-libpath.exp
347
395
  - ext/ffi_c/libffi/testsuite/lib/wrapper.exp
@@ -354,82 +402,8 @@ files:
354
402
  - ext/ffi_c/libffi/testsuite/libffi.bhaible/testcases.c
355
403
  - ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c
356
404
  - ext/ffi_c/libffi/testsuite/libffi.call/align_stdcall.c
405
+ - ext/ffi_c/libffi/testsuite/libffi.call/bpo_38748.c
357
406
  - 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
407
  - ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c
434
408
  - ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h
435
409
  - ext/ffi_c/libffi/testsuite/libffi.call/float.c
@@ -438,29 +412,15 @@ files:
438
412
  - ext/ffi_c/libffi/testsuite/libffi.call/float3.c
439
413
  - ext/ffi_c/libffi/testsuite/libffi.call/float4.c
440
414
  - ext/ffi_c/libffi/testsuite/libffi.call/float_va.c
441
- - ext/ffi_c/libffi/testsuite/libffi.call/huge_struct.c
442
415
  - ext/ffi_c/libffi/testsuite/libffi.call/many.c
443
416
  - ext/ffi_c/libffi/testsuite/libffi.call/many2.c
444
417
  - ext/ffi_c/libffi/testsuite/libffi.call/many_double.c
445
418
  - ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c
446
419
  - 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
420
  - ext/ffi_c/libffi/testsuite/libffi.call/offsets.c
460
421
  - ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c
461
- - ext/ffi_c/libffi/testsuite/libffi.call/problem1.c
462
422
  - ext/ffi_c/libffi/testsuite/libffi.call/promotion.c
463
- - ext/ffi_c/libffi/testsuite/libffi.call/pyobjc-tc.c
423
+ - ext/ffi_c/libffi/testsuite/libffi.call/pyobjc_tc.c
464
424
  - ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c
465
425
  - ext/ffi_c/libffi/testsuite/libffi.call/return_dbl1.c
466
426
  - ext/ffi_c/libffi/testsuite/libffi.call/return_dbl2.c
@@ -475,10 +435,7 @@ files:
475
435
  - ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c
476
436
  - ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c
477
437
  - 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
438
+ - ext/ffi_c/libffi/testsuite/libffi.call/s55.c
482
439
  - ext/ffi_c/libffi/testsuite/libffi.call/strlen.c
483
440
  - ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c
484
441
  - ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c
@@ -493,14 +450,123 @@ files:
493
450
  - ext/ffi_c/libffi/testsuite/libffi.call/struct7.c
494
451
  - ext/ffi_c/libffi/testsuite/libffi.call/struct8.c
495
452
  - ext/ffi_c/libffi/testsuite/libffi.call/struct9.c
496
- - ext/ffi_c/libffi/testsuite/libffi.call/testclosure.c
453
+ - ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_2.c
454
+ - ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3.c
455
+ - ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3f.c
456
+ - ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4.c
457
+ - ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4f.c
458
+ - ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_big.c
459
+ - ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_small.c
460
+ - ext/ffi_c/libffi/testsuite/libffi.call/struct_return_2H.c
461
+ - ext/ffi_c/libffi/testsuite/libffi.call/struct_return_8H.c
497
462
  - 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
463
  - ext/ffi_c/libffi/testsuite/libffi.call/va_1.c
464
+ - ext/ffi_c/libffi/testsuite/libffi.call/va_2.c
465
+ - ext/ffi_c/libffi/testsuite/libffi.call/va_3.c
501
466
  - ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c
502
467
  - ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c
503
468
  - ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c
469
+ - ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp
470
+ - ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn0.c
471
+ - ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn1.c
472
+ - ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn2.c
473
+ - ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn3.c
474
+ - ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn4.c
475
+ - ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn5.c
476
+ - ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn6.c
477
+ - ext/ffi_c/libffi/testsuite/libffi.closures/closure_loc_fn0.c
478
+ - ext/ffi_c/libffi/testsuite/libffi.closures/closure_simple.c
479
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_12byte.c
480
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_16byte.c
481
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_18byte.c
482
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_19byte.c
483
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_1_1byte.c
484
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte.c
485
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte1.c
486
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_24byte.c
487
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_2byte.c
488
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_3_1byte.c
489
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte1.c
490
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte2.c
491
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_3float.c
492
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_4_1byte.c
493
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_4byte.c
494
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_5_1_byte.c
495
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_5byte.c
496
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_64byte.c
497
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_6_1_byte.c
498
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_6byte.c
499
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_7_1_byte.c
500
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_7byte.c
501
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_8byte.c
502
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte1.c
503
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte2.c
504
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_double.c
505
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_float.c
506
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble.c
507
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split.c
508
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split2.c
509
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_pointer.c
510
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint16.c
511
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint32.c
512
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint64.c
513
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint16.c
514
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint32.c
515
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint64.c
516
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_dbls_struct.c
517
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_double.c
518
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_double_va.c
519
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_float.c
520
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble.c
521
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble_va.c
522
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_args.c
523
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_float_double.c
524
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_schar.c
525
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshort.c
526
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshortchar.c
527
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_uchar.c
528
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushort.c
529
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushortchar.c
530
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer.c
531
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer_stack.c
532
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_schar.c
533
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_sint.c
534
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_sshort.c
535
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_struct_va1.c
536
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar.c
537
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint.c
538
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint_va.c
539
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulong_va.c
540
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulonglong.c
541
+ - ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort.c
542
+ - ext/ffi_c/libffi/testsuite/libffi.closures/err_bad_abi.c
543
+ - ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h
544
+ - ext/ffi_c/libffi/testsuite/libffi.closures/huge_struct.c
545
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct.c
546
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct1.c
547
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct10.c
548
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct11.c
549
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct12.c
550
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct13.c
551
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct2.c
552
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct3.c
553
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct4.c
554
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct5.c
555
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct6.c
556
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct7.c
557
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct8.c
558
+ - ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct9.c
559
+ - ext/ffi_c/libffi/testsuite/libffi.closures/problem1.c
560
+ - ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs1.c
561
+ - ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs2.c
562
+ - ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs3.c
563
+ - ext/ffi_c/libffi/testsuite/libffi.closures/stret_large.c
564
+ - ext/ffi_c/libffi/testsuite/libffi.closures/stret_large2.c
565
+ - ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium.c
566
+ - ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium2.c
567
+ - ext/ffi_c/libffi/testsuite/libffi.closures/testclosure.c
568
+ - ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest.cc
569
+ - ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest_ffi_call.cc
504
570
  - ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc
505
571
  - ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c
506
572
  - ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c
@@ -550,26 +616,40 @@ files:
550
616
  - ext/ffi_c/libffi/testsuite/libffi.go/static-chain.h
551
617
  - ext/ffi_c/rbffi.h
552
618
  - ext/ffi_c/rbffi_endian.h
553
- - ext/ffi_c/win32/stdbool.h
554
- - ext/ffi_c/win32/stdint.h
555
619
  - ffi.gemspec
556
620
  - lib/ffi.rb
621
+ - lib/ffi/abstract_memory.rb
557
622
  - lib/ffi/autopointer.rb
558
623
  - lib/ffi/buffer.rb
559
624
  - lib/ffi/callback.rb
625
+ - lib/ffi/compat.rb
626
+ - lib/ffi/data_converter.rb
627
+ - lib/ffi/dynamic_library.rb
560
628
  - lib/ffi/enum.rb
561
629
  - lib/ffi/errno.rb
562
630
  - lib/ffi/ffi.rb
631
+ - lib/ffi/function.rb
563
632
  - lib/ffi/io.rb
564
633
  - lib/ffi/library.rb
634
+ - lib/ffi/library_path.rb
565
635
  - lib/ffi/managedstruct.rb
566
636
  - lib/ffi/memorypointer.rb
567
637
  - lib/ffi/platform.rb
638
+ - lib/ffi/platform/aarch64-darwin/types.conf
639
+ - lib/ffi/platform/aarch64-freebsd/types.conf
640
+ - lib/ffi/platform/aarch64-freebsd12/types.conf
568
641
  - lib/ffi/platform/aarch64-linux/types.conf
642
+ - lib/ffi/platform/aarch64-openbsd/types.conf
643
+ - lib/ffi/platform/aarch64-windows/types.conf
644
+ - lib/ffi/platform/arm-freebsd/types.conf
645
+ - lib/ffi/platform/arm-freebsd12/types.conf
569
646
  - lib/ffi/platform/arm-linux/types.conf
647
+ - lib/ffi/platform/hppa1.1-linux/types.conf
648
+ - lib/ffi/platform/hppa2.0-linux/types.conf
570
649
  - lib/ffi/platform/i386-cygwin/types.conf
571
650
  - lib/ffi/platform/i386-darwin/types.conf
572
651
  - lib/ffi/platform/i386-freebsd/types.conf
652
+ - lib/ffi/platform/i386-freebsd12/types.conf
573
653
  - lib/ffi/platform/i386-gnu/types.conf
574
654
  - lib/ffi/platform/i386-linux/types.conf
575
655
  - lib/ffi/platform/i386-netbsd/types.conf
@@ -577,6 +657,7 @@ files:
577
657
  - lib/ffi/platform/i386-solaris/types.conf
578
658
  - lib/ffi/platform/i386-windows/types.conf
579
659
  - lib/ffi/platform/ia64-linux/types.conf
660
+ - lib/ffi/platform/loongarch64-linux/types.conf
580
661
  - lib/ffi/platform/mips-linux/types.conf
581
662
  - lib/ffi/platform/mips64-linux/types.conf
582
663
  - lib/ffi/platform/mips64el-linux/types.conf
@@ -588,23 +669,34 @@ files:
588
669
  - lib/ffi/platform/powerpc-aix/types.conf
589
670
  - lib/ffi/platform/powerpc-darwin/types.conf
590
671
  - lib/ffi/platform/powerpc-linux/types.conf
672
+ - lib/ffi/platform/powerpc-openbsd/types.conf
591
673
  - lib/ffi/platform/powerpc64-linux/types.conf
674
+ - lib/ffi/platform/powerpc64le-linux/types.conf
675
+ - lib/ffi/platform/riscv64-linux/types.conf
592
676
  - lib/ffi/platform/s390-linux/types.conf
593
677
  - lib/ffi/platform/s390x-linux/types.conf
594
678
  - lib/ffi/platform/sparc-linux/types.conf
595
679
  - lib/ffi/platform/sparc-solaris/types.conf
596
- - lib/ffi/platform/sparc64-linux/types.conf
680
+ - lib/ffi/platform/sparcv9-linux/types.conf
681
+ - lib/ffi/platform/sparcv9-openbsd/types.conf
597
682
  - lib/ffi/platform/sparcv9-solaris/types.conf
683
+ - lib/ffi/platform/sw_64-linux/types.conf
598
684
  - lib/ffi/platform/x86_64-cygwin/types.conf
599
685
  - lib/ffi/platform/x86_64-darwin/types.conf
686
+ - lib/ffi/platform/x86_64-dragonflybsd/types.conf
600
687
  - lib/ffi/platform/x86_64-freebsd/types.conf
688
+ - lib/ffi/platform/x86_64-freebsd12/types.conf
689
+ - lib/ffi/platform/x86_64-haiku/types.conf
601
690
  - lib/ffi/platform/x86_64-linux/types.conf
691
+ - lib/ffi/platform/x86_64-msys/types.conf
602
692
  - lib/ffi/platform/x86_64-netbsd/types.conf
603
693
  - lib/ffi/platform/x86_64-openbsd/types.conf
604
694
  - lib/ffi/platform/x86_64-solaris/types.conf
605
695
  - lib/ffi/platform/x86_64-windows/types.conf
606
696
  - lib/ffi/pointer.rb
607
697
  - lib/ffi/struct.rb
698
+ - lib/ffi/struct_by_reference.rb
699
+ - lib/ffi/struct_layout.rb
608
700
  - lib/ffi/struct_layout_builder.rb
609
701
  - lib/ffi/tools/const_generator.rb
610
702
  - lib/ffi/tools/generator.rb
@@ -615,19 +707,27 @@ files:
615
707
  - lib/ffi/union.rb
616
708
  - lib/ffi/variadic.rb
617
709
  - lib/ffi/version.rb
710
+ - rakelib/ffi_gem_helper.rb
618
711
  - samples/getlogin.rb
619
712
  - samples/getpid.rb
620
713
  - samples/gettimeofday.rb
621
714
  - samples/hello.rb
715
+ - samples/hello_ractor.rb
622
716
  - samples/inotify.rb
623
717
  - samples/pty.rb
624
718
  - samples/qsort.rb
625
- - samples/sample_helper.rb
626
- homepage: http://wiki.github.com/ffi/ffi
719
+ - samples/qsort_ractor.rb
720
+ homepage: https://github.com/ffi/ffi/wiki
627
721
  licenses:
628
722
  - BSD-3-Clause
629
- metadata: {}
630
- post_install_message:
723
+ metadata:
724
+ bug_tracker_uri: https://github.com/ffi/ffi/issues
725
+ changelog_uri: https://github.com/ffi/ffi/blob/master/CHANGELOG.md
726
+ documentation_uri: https://github.com/ffi/ffi/wiki
727
+ wiki_uri: https://github.com/ffi/ffi/wiki
728
+ source_code_uri: https://github.com/ffi/ffi/
729
+ mailing_list_uri: http://groups.google.com/group/ruby-ffi
730
+ post_install_message:
631
731
  rdoc_options:
632
732
  - "--exclude=ext/ffi_c/.*\\.o$"
633
733
  - "--exclude=ffi_c\\.(bundle|so)$"
@@ -637,16 +737,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
637
737
  requirements:
638
738
  - - ">="
639
739
  - !ruby/object:Gem::Version
640
- version: '1.9'
740
+ version: '2.5'
641
741
  required_rubygems_version: !ruby/object:Gem::Requirement
642
742
  requirements:
643
743
  - - ">="
644
744
  - !ruby/object:Gem::Version
645
745
  version: '0'
646
746
  requirements: []
647
- rubyforge_project:
648
- rubygems_version: 2.7.3
649
- signing_key:
747
+ rubygems_version: 3.4.19
748
+ signing_key:
650
749
  specification_version: 4
651
750
  summary: Ruby FFI
652
751
  test_files: []