ffi 1.10.0 → 1.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (332) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +165 -0
  3. data/Gemfile +6 -4
  4. data/README.md +38 -18
  5. data/Rakefile +36 -120
  6. data/ext/ffi_c/AbstractMemory.c +29 -34
  7. data/ext/ffi_c/Buffer.c +4 -9
  8. data/ext/ffi_c/Call.c +16 -48
  9. data/ext/ffi_c/Call.h +4 -7
  10. data/ext/ffi_c/ClosurePool.c +75 -25
  11. data/ext/ffi_c/ClosurePool.h +3 -1
  12. data/ext/ffi_c/DynamicLibrary.c +2 -7
  13. data/ext/ffi_c/Function.c +25 -129
  14. data/ext/ffi_c/FunctionInfo.c +3 -8
  15. data/ext/ffi_c/LastError.c +2 -6
  16. data/ext/ffi_c/LongDouble.c +12 -10
  17. data/ext/ffi_c/LongDouble.h +0 -4
  18. data/ext/ffi_c/MemoryPointer.c +3 -8
  19. data/ext/ffi_c/MethodHandle.c +21 -31
  20. data/ext/ffi_c/MethodHandle.h +3 -2
  21. data/ext/ffi_c/Platform.c +3 -54
  22. data/ext/ffi_c/Pointer.c +25 -26
  23. data/ext/ffi_c/Struct.c +49 -56
  24. data/ext/ffi_c/Struct.h +12 -6
  25. data/ext/ffi_c/StructByValue.c +2 -7
  26. data/ext/ffi_c/StructLayout.c +22 -19
  27. data/ext/ffi_c/Thread.c +4 -228
  28. data/ext/ffi_c/Thread.h +1 -20
  29. data/ext/ffi_c/Type.c +1 -19
  30. data/ext/ffi_c/Type.h +0 -1
  31. data/ext/ffi_c/Types.c +1 -1
  32. data/ext/ffi_c/Variadic.c +11 -22
  33. data/ext/ffi_c/compat.h +4 -0
  34. data/ext/ffi_c/extconf.rb +53 -30
  35. data/ext/ffi_c/ffi.c +3 -8
  36. data/ext/ffi_c/libffi.darwin.mk +1 -1
  37. data/ext/ffi_c/libffi/.appveyor.yml +29 -13
  38. data/ext/ffi_c/libffi/.gitattributes +4 -0
  39. data/ext/ffi_c/libffi/.travis.yml +51 -2
  40. data/ext/ffi_c/libffi/.travis/bfin-sim.exp +58 -0
  41. data/ext/ffi_c/libffi/.travis/build-cross-in-container.sh +14 -0
  42. data/ext/ffi_c/libffi/.travis/build-in-container.sh +12 -0
  43. data/ext/ffi_c/libffi/.travis/build.sh +116 -8
  44. data/ext/ffi_c/libffi/.travis/install.sh +65 -16
  45. data/ext/ffi_c/libffi/.travis/m32r-sim.exp +58 -0
  46. data/ext/ffi_c/libffi/.travis/moxie-sim.exp +1 -1
  47. data/ext/ffi_c/libffi/.travis/or1k-sim.exp +58 -0
  48. data/ext/ffi_c/libffi/.travis/powerpc-eabisim.exp +58 -0
  49. data/ext/ffi_c/libffi/.travis/site.exp +10 -1
  50. data/ext/ffi_c/libffi/.travis/wine-sim.exp +55 -0
  51. data/ext/ffi_c/libffi/{ChangeLog.libffi-3.1 → ChangeLog.old} +1407 -0
  52. data/ext/ffi_c/libffi/LICENSE +1 -1
  53. data/ext/ffi_c/libffi/LICENSE-BUILDTOOLS +5 -4
  54. data/ext/ffi_c/libffi/Makefile.am +56 -72
  55. data/ext/ffi_c/libffi/README.md +33 -8
  56. data/ext/ffi_c/libffi/config.guess +552 -331
  57. data/ext/ffi_c/libffi/config.sub +1321 -1306
  58. data/ext/ffi_c/libffi/configure.ac +37 -12
  59. data/ext/ffi_c/libffi/configure.host +56 -27
  60. data/ext/ffi_c/libffi/doc/Makefile.am +3 -0
  61. data/ext/ffi_c/libffi/doc/libffi.texi +997 -0
  62. data/ext/ffi_c/libffi/doc/version.texi +4 -0
  63. data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +2 -4
  64. data/ext/ffi_c/libffi/include/ffi.h.in +19 -7
  65. data/ext/ffi_c/libffi/include/ffi_common.h +5 -1
  66. data/ext/ffi_c/libffi/libffi.map.in +8 -12
  67. data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +2 -48
  68. data/ext/ffi_c/libffi/libtool-version +1 -1
  69. data/ext/ffi_c/libffi/m4/asmcfi.m4 +1 -1
  70. data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +5 -26
  71. data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +5 -26
  72. data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +2 -1
  73. data/ext/ffi_c/libffi/m4/ax_configure_args.m4 +5 -26
  74. data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +7 -3
  75. data/ext/ffi_c/libffi/make_sunver.pl +333 -0
  76. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.sln +33 -0
  77. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj +130 -0
  78. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.filters +57 -0
  79. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.user +4 -0
  80. data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h +511 -0
  81. data/ext/ffi_c/libffi/msvcc.sh +38 -13
  82. data/ext/ffi_c/libffi/src/aarch64/ffi.c +153 -69
  83. data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +19 -3
  84. data/ext/ffi_c/libffi/src/aarch64/internal.h +1 -0
  85. data/ext/ffi_c/libffi/src/aarch64/sysv.S +22 -9
  86. data/ext/ffi_c/libffi/src/aarch64/win64_armasm.S +506 -0
  87. data/ext/ffi_c/libffi/src/arm/ffi.c +62 -5
  88. data/ext/ffi_c/libffi/src/arm/ffitarget.h +8 -1
  89. data/ext/ffi_c/libffi/src/arm/sysv.S +6 -4
  90. data/ext/ffi_c/libffi/src/arm/sysv_msvc_arm32.S +311 -0
  91. data/ext/ffi_c/libffi/src/closures.c +69 -14
  92. data/ext/ffi_c/libffi/src/csky/ffi.c +395 -0
  93. data/ext/ffi_c/libffi/src/csky/ffitarget.h +63 -0
  94. data/ext/ffi_c/libffi/src/csky/sysv.S +371 -0
  95. data/ext/ffi_c/libffi/src/dlmalloc.c +1 -1
  96. data/ext/ffi_c/libffi/src/frv/ffi.c +1 -1
  97. data/ext/ffi_c/libffi/src/kvx/asm.h +5 -0
  98. data/ext/ffi_c/libffi/src/kvx/ffi.c +273 -0
  99. data/ext/ffi_c/libffi/src/kvx/ffitarget.h +75 -0
  100. data/ext/ffi_c/libffi/src/kvx/sysv.S +127 -0
  101. data/ext/ffi_c/libffi/src/metag/ffi.c +1 -1
  102. data/ext/ffi_c/libffi/src/mips/ffi.c +5 -1
  103. data/ext/ffi_c/libffi/src/mips/ffitarget.h +1 -1
  104. data/ext/ffi_c/libffi/src/mips/o32.S +2 -0
  105. data/ext/ffi_c/libffi/src/moxie/ffi.c +1 -1
  106. data/ext/ffi_c/libffi/src/pa/ffi.c +46 -91
  107. data/ext/ffi_c/libffi/src/pa/ffitarget.h +1 -6
  108. data/ext/ffi_c/libffi/src/pa/hpux32.S +4 -2
  109. data/ext/ffi_c/libffi/src/pa/linux.S +27 -4
  110. data/ext/ffi_c/libffi/src/powerpc/ffi.c +6 -4
  111. data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +13 -1
  112. data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +211 -32
  113. data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +18 -7
  114. data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +10 -4
  115. data/ext/ffi_c/libffi/src/powerpc/linux64.S +91 -28
  116. data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +81 -5
  117. data/ext/ffi_c/libffi/src/powerpc/sysv.S +5 -7
  118. data/ext/ffi_c/libffi/src/prep_cif.c +4 -2
  119. data/ext/ffi_c/libffi/src/riscv/ffi.c +42 -6
  120. data/ext/ffi_c/libffi/src/riscv/ffitarget.h +1 -0
  121. data/ext/ffi_c/libffi/src/riscv/sysv.S +86 -7
  122. data/ext/ffi_c/libffi/src/x86/ffi.c +29 -12
  123. data/ext/ffi_c/libffi/src/x86/ffi64.c +22 -11
  124. data/ext/ffi_c/libffi/src/x86/ffitarget.h +15 -2
  125. data/ext/ffi_c/libffi/src/x86/ffiw64.c +20 -10
  126. data/ext/ffi_c/libffi/src/x86/sysv.S +105 -10
  127. data/ext/ffi_c/libffi/src/x86/sysv_intel.S +995 -0
  128. data/ext/ffi_c/libffi/src/x86/unix64.S +100 -4
  129. data/ext/ffi_c/libffi/src/x86/win64.S +12 -3
  130. data/ext/ffi_c/libffi/src/x86/win64_intel.S +3 -2
  131. data/ext/ffi_c/libffi/testsuite/Makefile.am +114 -109
  132. data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +32 -8
  133. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/bhaible.exp +7 -2
  134. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +4 -4
  135. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-callback.c +2 -2
  136. data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +12 -1
  137. data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +9 -8
  138. data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +1 -1
  139. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp +67 -0
  140. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn0.c +0 -0
  141. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn1.c +0 -0
  142. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn2.c +0 -0
  143. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn3.c +0 -0
  144. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn4.c +0 -0
  145. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn5.c +0 -0
  146. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_fn6.c +0 -0
  147. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_loc_fn0.c +0 -0
  148. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/closure_simple.c +0 -0
  149. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_12byte.c +0 -0
  150. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_16byte.c +0 -0
  151. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_18byte.c +0 -0
  152. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_19byte.c +0 -0
  153. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_1_1byte.c +0 -0
  154. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_20byte.c +0 -0
  155. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_20byte1.c +0 -0
  156. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_24byte.c +0 -0
  157. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_2byte.c +0 -0
  158. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3_1byte.c +0 -0
  159. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3byte1.c +0 -0
  160. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3byte2.c +0 -0
  161. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_3float.c +0 -0
  162. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_4_1byte.c +0 -0
  163. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_4byte.c +0 -0
  164. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_5_1_byte.c +0 -0
  165. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_5byte.c +0 -0
  166. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_64byte.c +0 -0
  167. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_6_1_byte.c +0 -0
  168. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_6byte.c +0 -0
  169. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_7_1_byte.c +0 -0
  170. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_7byte.c +0 -0
  171. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_8byte.c +0 -0
  172. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_9byte1.c +0 -0
  173. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_9byte2.c +0 -0
  174. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_double.c +0 -0
  175. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_float.c +0 -0
  176. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble.c +0 -0
  177. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble_split.c +0 -0
  178. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_longdouble_split2.c +0 -0
  179. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_pointer.c +0 -0
  180. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint16.c +0 -0
  181. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint32.c +0 -0
  182. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_sint64.c +0 -0
  183. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint16.c +0 -0
  184. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint32.c +0 -0
  185. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_align_uint64.c +0 -0
  186. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_dbls_struct.c +0 -0
  187. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_double.c +0 -0
  188. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_double_va.c +0 -0
  189. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_float.c +0 -0
  190. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_longdouble.c +0 -0
  191. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_longdouble_va.c +0 -0
  192. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_many_mixed_args.c +0 -0
  193. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_many_mixed_float_double.c +0 -0
  194. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_schar.c +0 -0
  195. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_sshort.c +0 -0
  196. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_sshortchar.c +0 -0
  197. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_uchar.c +0 -0
  198. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_ushort.c +0 -0
  199. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_multi_ushortchar.c +0 -0
  200. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_pointer.c +0 -0
  201. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_pointer_stack.c +0 -0
  202. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_schar.c +0 -0
  203. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_sint.c +0 -0
  204. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_sshort.c +0 -0
  205. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_struct_va1.c +0 -0
  206. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uchar.c +0 -0
  207. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uchar_va.c +0 -0
  208. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uint.c +0 -0
  209. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_uint_va.c +0 -0
  210. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ulong_va.c +0 -0
  211. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ulonglong.c +0 -0
  212. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ushort.c +0 -0
  213. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/cls_ushort_va.c +0 -0
  214. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/err_bad_abi.c +0 -0
  215. data/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +138 -0
  216. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/huge_struct.c +3 -1
  217. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct.c +0 -0
  218. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct1.c +0 -0
  219. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct10.c +0 -0
  220. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct11.c +0 -0
  221. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct2.c +0 -0
  222. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct3.c +0 -0
  223. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct4.c +0 -0
  224. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct5.c +0 -0
  225. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct6.c +0 -0
  226. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct7.c +0 -0
  227. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct8.c +0 -0
  228. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/nested_struct9.c +0 -0
  229. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/problem1.c +0 -0
  230. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_large.c +0 -0
  231. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_large2.c +0 -0
  232. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_medium.c +0 -0
  233. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/stret_medium2.c +0 -0
  234. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/testclosure.c +0 -0
  235. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/unwindtest.cc +0 -0
  236. data/ext/ffi_c/libffi/testsuite/{libffi.call → libffi.closures}/unwindtest_ffi_call.cc +0 -0
  237. data/ext/ffi_c/rbffi.h +0 -2
  238. data/ffi.gemspec +13 -6
  239. data/lib/ffi.rb +10 -2
  240. data/lib/ffi/abstract_memory.rb +44 -0
  241. data/lib/ffi/autopointer.rb +1 -1
  242. data/lib/ffi/data_converter.rb +67 -0
  243. data/lib/ffi/ffi.rb +3 -0
  244. data/lib/ffi/io.rb +3 -3
  245. data/lib/ffi/library.rb +11 -7
  246. data/lib/ffi/managedstruct.rb +2 -2
  247. data/lib/ffi/platform.rb +27 -9
  248. data/lib/ffi/platform/aarch64-darwin/types.conf +130 -0
  249. data/lib/ffi/platform/aarch64-freebsd/types.conf +89 -89
  250. data/lib/ffi/platform/aarch64-freebsd12/types.conf +89 -89
  251. data/lib/ffi/platform/aarch64-linux/types.conf +81 -81
  252. data/lib/ffi/platform/aarch64-openbsd/types.conf +134 -0
  253. data/lib/ffi/platform/arm-freebsd/types.conf +87 -87
  254. data/lib/ffi/platform/arm-freebsd12/types.conf +87 -87
  255. data/lib/ffi/platform/arm-linux/types.conf +110 -82
  256. data/lib/ffi/platform/i386-cygwin/types.conf +1 -1
  257. data/lib/ffi/platform/i386-darwin/types.conf +63 -63
  258. data/lib/ffi/platform/i386-freebsd/types.conf +87 -87
  259. data/lib/ffi/platform/i386-freebsd12/types.conf +87 -87
  260. data/lib/ffi/platform/i386-gnu/types.conf +84 -84
  261. data/lib/ffi/platform/i386-linux/types.conf +77 -77
  262. data/lib/ffi/platform/i386-netbsd/types.conf +87 -87
  263. data/lib/ffi/platform/i386-openbsd/types.conf +89 -89
  264. data/lib/ffi/platform/i386-solaris/types.conf +96 -96
  265. data/lib/ffi/platform/i386-windows/types.conf +43 -96
  266. data/lib/ffi/platform/ia64-linux/types.conf +79 -79
  267. data/lib/ffi/platform/mips-linux/types.conf +79 -79
  268. data/lib/ffi/platform/mips64-linux/types.conf +81 -81
  269. data/lib/ffi/platform/mips64el-linux/types.conf +81 -81
  270. data/lib/ffi/platform/mipsel-linux/types.conf +79 -79
  271. data/lib/ffi/platform/mipsisa32r6-linux/types.conf +79 -79
  272. data/lib/ffi/platform/mipsisa32r6el-linux/types.conf +79 -79
  273. data/lib/ffi/platform/mipsisa64r6-linux/types.conf +81 -81
  274. data/lib/ffi/platform/mipsisa64r6el-linux/types.conf +81 -81
  275. data/lib/ffi/platform/powerpc-aix/types.conf +155 -155
  276. data/lib/ffi/platform/powerpc-darwin/types.conf +63 -63
  277. data/lib/ffi/platform/powerpc-linux/types.conf +108 -78
  278. data/lib/ffi/platform/powerpc-openbsd/types.conf +156 -0
  279. data/lib/ffi/platform/powerpc64-linux/types.conf +81 -81
  280. data/lib/ffi/platform/s390-linux/types.conf +79 -79
  281. data/lib/ffi/platform/s390x-linux/types.conf +79 -79
  282. data/lib/ffi/platform/sparc-linux/types.conf +79 -79
  283. data/lib/ffi/platform/sparc-solaris/types.conf +103 -103
  284. data/lib/ffi/platform/sparc64-linux/types.conf +79 -79
  285. data/lib/ffi/platform/sparcv9-openbsd/types.conf +156 -0
  286. data/lib/ffi/platform/sparcv9-solaris/types.conf +103 -103
  287. data/lib/ffi/platform/x86_64-cygwin/types.conf +1 -1
  288. data/lib/ffi/platform/x86_64-darwin/types.conf +88 -84
  289. data/lib/ffi/platform/x86_64-dragonflybsd/types.conf +130 -0
  290. data/lib/ffi/platform/x86_64-freebsd/types.conf +89 -89
  291. data/lib/ffi/platform/x86_64-freebsd12/types.conf +139 -109
  292. data/lib/ffi/platform/x86_64-haiku/types.conf +117 -0
  293. data/lib/ffi/platform/x86_64-linux/types.conf +107 -77
  294. data/lib/ffi/platform/x86_64-msys/types.conf +119 -0
  295. data/lib/ffi/platform/x86_64-netbsd/types.conf +89 -89
  296. data/lib/ffi/platform/x86_64-openbsd/types.conf +86 -86
  297. data/lib/ffi/platform/x86_64-solaris/types.conf +96 -96
  298. data/lib/ffi/platform/x86_64-windows/types.conf +42 -110
  299. data/lib/ffi/pointer.rb +22 -15
  300. data/lib/ffi/struct.rb +13 -68
  301. data/lib/ffi/struct_by_reference.rb +72 -0
  302. data/lib/ffi/struct_layout.rb +96 -0
  303. data/lib/ffi/tools/const_generator.rb +5 -4
  304. data/lib/ffi/tools/generator.rb +47 -2
  305. data/lib/ffi/tools/generator_task.rb +13 -17
  306. data/lib/ffi/tools/struct_generator.rb +4 -4
  307. data/lib/ffi/tools/types_generator.rb +7 -4
  308. data/lib/ffi/types.rb +1 -1
  309. data/lib/ffi/variadic.rb +1 -1
  310. data/lib/ffi/version.rb +1 -1
  311. data/samples/getlogin.rb +1 -1
  312. data/samples/getpid.rb +1 -1
  313. data/samples/gettimeofday.rb +8 -8
  314. data/samples/hello.rb +2 -1
  315. data/samples/inotify.rb +1 -1
  316. data/samples/pty.rb +1 -2
  317. data/samples/qsort.rb +0 -1
  318. metadata +151 -122
  319. data/.gitignore +0 -22
  320. data/.gitmodules +0 -3
  321. data/.travis.yml +0 -43
  322. data/.yardopts +0 -5
  323. data/appveyor.yml +0 -22
  324. data/ext/ffi_c/DataConverter.c +0 -91
  325. data/ext/ffi_c/StructByReference.c +0 -190
  326. data/ext/ffi_c/StructByReference.h +0 -50
  327. data/ext/ffi_c/libffi/ChangeLog.libffi +0 -584
  328. data/ext/ffi_c/libffi/ChangeLog.libgcj +0 -40
  329. data/ext/ffi_c/libffi/ChangeLog.v1 +0 -764
  330. data/ext/ffi_c/win32/stdbool.h +0 -8
  331. data/ext/ffi_c/win32/stdint.h +0 -201
  332. data/samples/sample_helper.rb +0 -6
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- doc/
2
- bin/
3
- .yardoc
4
- *.orig
5
- nbproject/private
6
- pkg
7
- *.orig
8
- *.rej
9
- *.patch
10
- *.diff
11
- build
12
- *.so
13
- *.[oa]
14
- core
15
- lib/ffi/types.conf
16
- lib/ffi_c.bundle
17
- lib/ffi_c.so
18
- vendor
19
- .bundle
20
- Gemfile.lock
21
- types_log
22
- *.gem
@@ -1,3 +0,0 @@
1
- [submodule "ext/ffi_c/libffi"]
2
- path = ext/ffi_c/libffi
3
- url = https://github.com/libffi/libffi.git
@@ -1,43 +0,0 @@
1
- dist: trusty
2
- sudo: false
3
- group: beta
4
- language: ruby
5
- before_install:
6
- - gem install bundler
7
- script:
8
- - bundle exec rake compile || bundle exec rake compile
9
- - bundle exec rake test
10
- os:
11
- - linux
12
- - osx
13
- rvm:
14
- - 2.3.8
15
- - 2.4.5
16
- - 2.5.3
17
- - 2.6.0
18
- - ruby-head
19
- - system
20
- env:
21
- - CC=gcc
22
- - CC=clang
23
- matrix:
24
- allow_failures:
25
- - rvm: system
26
- - os: osx
27
- rvm: ruby-head
28
- exclude: # ruby 2.4.2 needs build with xcode9 or later on osx
29
- - os: osx
30
- rvm: 2.4.2
31
- include:
32
- - os: osx
33
- osx_image: xcode9.1
34
- rvm: 2.4.2
35
- env:
36
- - CC=gcc
37
- - os: osx
38
- osx_image: xcode9.1
39
- rvm: 2.4.2
40
- env:
41
- - CC=clang
42
- after_failure:
43
- - "find build -name mkmf.log | xargs cat"
data/.yardopts DELETED
@@ -1,5 +0,0 @@
1
- --title "Ruby FFI"
2
- --charset UTF-8
3
- --private
4
- lib/**/*.rb
5
- ext/**/*.c
@@ -1,22 +0,0 @@
1
- install:
2
- - SET PATH=C:\Ruby%RUBYVER%\bin;%PATH%
3
- - SET RAKEOPT=-rdevkit
4
- - ps: |
5
- if ($env:RUBYVER -like "*head*") {
6
- $(new-object net.webclient).DownloadFile("https://github.com/oneclick/rubyinstaller2/releases/download/rubyinstaller-head/rubyinstaller-$env:RUBYVER.exe", "$pwd/ruby-setup.exe")
7
- cmd /c ruby-setup.exe /verysilent /dir=C:/Ruby$env:RUBYVER
8
- }
9
- - ridk version
10
- - gem --version
11
- - gem install bundler --quiet --no-document
12
- - bundle install
13
- build: off
14
- build_script:
15
- - bundle exec rake compile || bundle exec rake compile
16
- test_script:
17
- - bundle exec rake test
18
- environment:
19
- matrix:
20
- - RUBYVER: "head-x64"
21
- - RUBYVER: 24
22
- - RUBYVER: 25-x64
@@ -1,91 +0,0 @@
1
-
2
- #include <ruby.h>
3
-
4
- #include <ffi.h>
5
- #include "rbffi.h"
6
-
7
- #include "Type.h"
8
- #include "MappedType.h"
9
-
10
-
11
- VALUE rbffi_DataConverterClass = Qnil;
12
- static ID id_native_type_ivar;
13
-
14
- /*
15
- * Get native type.
16
- * @overload native_type(type)
17
- * @param [String, Symbol, Type] type
18
- * @return [Type]
19
- * Get native type from +type+.
20
- * @overload native_type
21
- * @raise {NotImplementedError} This method must be overriden.
22
- */
23
- static VALUE
24
- conv_native_type(int argc, VALUE* argv, VALUE self)
25
- {
26
- if (argc == 0) {
27
- if (!rb_ivar_defined(self, id_native_type_ivar)) {
28
- rb_raise(rb_eNotImpError, "native_type method not overridden and no native_type set");
29
- }
30
-
31
- return rb_ivar_get(self, id_native_type_ivar);
32
-
33
- } else if (argc == 1) {
34
- VALUE type = rbffi_Type_Find(argv[0]);
35
-
36
- rb_ivar_set(self, id_native_type_ivar, type);
37
-
38
- return type;
39
-
40
- } else {
41
- rb_raise(rb_eArgError, "incorrect arguments");
42
- }
43
- }
44
-
45
- /*
46
- * call-seq: to_native(value, ctx)
47
- * @param value
48
- * @param ctx
49
- * @return [value]
50
- * Convert to a native type.
51
- */
52
- static VALUE
53
- conv_to_native(VALUE self, VALUE value, VALUE ctx)
54
- {
55
- return value;
56
- }
57
-
58
- /*
59
- * call-seq: from_native(value, ctx)
60
- * @param value
61
- * @param ctx
62
- * @return [value]
63
- * Convert from a native type.
64
- */
65
- static VALUE
66
- conv_from_native(VALUE self, VALUE value, VALUE ctx)
67
- {
68
- return value;
69
- }
70
-
71
-
72
-
73
- void
74
- rbffi_DataConverter_Init(VALUE moduleFFI)
75
- {
76
- /*
77
- * Document-module: FFI::DataConverter
78
- * This module is used to extend somes classes and give then a common API.
79
- *
80
- * Most of methods defined here must be overriden.
81
- */
82
- rbffi_DataConverterClass = rb_define_module_under(moduleFFI, "DataConverter");
83
-
84
- rb_define_method(rbffi_DataConverterClass, "native_type", conv_native_type, -1);
85
- rb_define_method(rbffi_DataConverterClass, "to_native", conv_to_native, 2);
86
- rb_define_method(rbffi_DataConverterClass, "from_native", conv_from_native, 2);
87
-
88
- id_native_type_ivar = rb_intern("@native_type");
89
- }
90
-
91
-
@@ -1,190 +0,0 @@
1
- /*
2
- * Copyright (c) 2010, Wayne Meissner
3
- * All rights reserved.
4
- *
5
- * Redistribution and use in source and binary forms, with or without
6
- * modification, are permitted provided that the following conditions are met:
7
- *
8
- * * Redistributions of source code must retain the above copyright notice, this
9
- * list of conditions and the following disclaimer.
10
- * * Redistributions in binary form must reproduce the above copyright notice
11
- * this list of conditions and the following disclaimer in the documentation
12
- * and/or other materials provided with the distribution.
13
- * * The name of the author or authors may not be used to endorse or promote
14
- * products derived from this software without specific prior written permission.
15
- *
16
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
20
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
- */
27
-
28
- #ifndef _MSC_VER
29
- # include <sys/param.h>
30
- #endif
31
- #include <sys/types.h>
32
- #include <stdio.h>
33
- #ifndef _MSC_VER
34
- # include <stdint.h>
35
- # include <stdbool.h>
36
- #else
37
- # include "win32/stdbool.h"
38
- # include "win32/stdint.h"
39
- #endif
40
- #include <errno.h>
41
- #include <ruby.h>
42
-
43
- #include <ffi.h>
44
- #include "rbffi.h"
45
- #include "compat.h"
46
-
47
- #include "Pointer.h"
48
- #include "Struct.h"
49
- #include "StructByReference.h"
50
-
51
-
52
- #define FFI_ALIGN(v, a) (((((size_t) (v))-1) | ((a)-1))+1)
53
-
54
- static VALUE sbr_allocate(VALUE);
55
- static VALUE sbr_initialize(VALUE, VALUE);
56
- static void sbr_mark(StructByReference *);
57
-
58
- VALUE rbffi_StructByReferenceClass = Qnil;
59
-
60
- static VALUE
61
- sbr_allocate(VALUE klass)
62
- {
63
- StructByReference* sbr;
64
-
65
- VALUE obj = Data_Make_Struct(klass, StructByReference, sbr_mark, -1, sbr);
66
-
67
- sbr->rbStructClass = Qnil;
68
-
69
- return obj;
70
- }
71
-
72
- /*
73
- * call-seq: initialize(struc_class)
74
- * @param [Struct] struct_calss
75
- * @return [self]
76
- * A new instance of StructByReference.
77
- */
78
- static VALUE
79
- sbr_initialize(VALUE self, VALUE rbStructClass)
80
- {
81
- StructByReference* sbr = NULL;
82
-
83
- if (!rb_class_inherited_p(rbStructClass, rbffi_StructClass)) {
84
- rb_raise(rb_eTypeError, "wrong type (expected subclass of FFI::Struct)");
85
- }
86
-
87
- Data_Get_Struct(self, StructByReference, sbr);
88
- sbr->rbStructClass = rbStructClass;
89
-
90
- return self;
91
- }
92
-
93
- static void
94
- sbr_mark(StructByReference *sbr)
95
- {
96
- rb_gc_mark(sbr->rbStructClass);
97
- }
98
-
99
-
100
- /*
101
- * call-seq: struct_class
102
- * @return [Struct]
103
- * Get +struct_class+.
104
- */
105
- static VALUE
106
- sbr_struct_class(VALUE self)
107
- {
108
- StructByReference* sbr;
109
-
110
- Data_Get_Struct(self, StructByReference, sbr);
111
-
112
- return sbr->rbStructClass;
113
- }
114
-
115
- /*
116
- * call-seq: native_type
117
- * @return [Class]
118
- * Always get {FFI::Type}::POINTER.
119
- */
120
- static VALUE
121
- sbr_native_type(VALUE self)
122
- {
123
- return rb_const_get(rbffi_TypeClass, rb_intern("POINTER"));
124
- }
125
-
126
- /*
127
- * call-seq: to_native(value, ctx)
128
- * @param [nil, Struct] value
129
- * @param [nil] ctx
130
- * @return [AbstractMemory] Pointer on +value+.
131
- */
132
- static VALUE
133
- sbr_to_native(VALUE self, VALUE value, VALUE ctx)
134
- {
135
- StructByReference* sbr;
136
- Struct* s;
137
-
138
- if (unlikely(value == Qnil)) {
139
- return rbffi_NullPointerSingleton;
140
- }
141
-
142
- Data_Get_Struct(self, StructByReference, sbr);
143
- if (!rb_obj_is_kind_of(value, sbr->rbStructClass)) {
144
- rb_raise(rb_eTypeError, "wrong argument type %s (expected %s)",
145
- rb_obj_classname(value),
146
- RSTRING_PTR(rb_class_name(sbr->rbStructClass)));
147
- }
148
-
149
- Data_Get_Struct(value, Struct, s);
150
-
151
- return s->rbPointer;
152
- }
153
-
154
- /*
155
- * call-seq: from_native(value, ctx)
156
- * @param [AbstractMemory] value
157
- * @param [nil] ctx
158
- * @return [Struct]
159
- * Create a struct from content of memory +value+.
160
- */
161
- static VALUE
162
- sbr_from_native(VALUE self, VALUE value, VALUE ctx)
163
- {
164
- StructByReference* sbr;
165
-
166
- Data_Get_Struct(self, StructByReference, sbr);
167
-
168
- return rb_class_new_instance(1, &value, sbr->rbStructClass);
169
- }
170
-
171
-
172
- void
173
- rbffi_StructByReference_Init(VALUE moduleFFI)
174
- {
175
- /*
176
- * Document-class: FFI::StructByReference
177
- * This class includes {FFI::DataConverter} module.
178
- */
179
- rbffi_StructByReferenceClass = rb_define_class_under(moduleFFI, "StructByReference", rb_cObject);
180
- rb_global_variable(&rbffi_StructByReferenceClass);
181
- rb_include_module(rbffi_StructByReferenceClass, rb_const_get(moduleFFI, rb_intern("DataConverter")));
182
-
183
- rb_define_alloc_func(rbffi_StructByReferenceClass, sbr_allocate);
184
- rb_define_method(rbffi_StructByReferenceClass, "initialize", sbr_initialize, 1);
185
- rb_define_method(rbffi_StructByReferenceClass, "struct_class", sbr_struct_class, 0);
186
- rb_define_method(rbffi_StructByReferenceClass, "native_type", sbr_native_type, 0);
187
- rb_define_method(rbffi_StructByReferenceClass, "to_native", sbr_to_native, 2);
188
- rb_define_method(rbffi_StructByReferenceClass, "from_native", sbr_from_native, 2);
189
- }
190
-
@@ -1,50 +0,0 @@
1
- /*
2
- * Copyright (c) 2009, Wayne Meissner
3
- * All rights reserved.
4
- *
5
- * Redistribution and use in source and binary forms, with or without
6
- * modification, are permitted provided that the following conditions are met:
7
- *
8
- * * Redistributions of source code must retain the above copyright notice, this
9
- * list of conditions and the following disclaimer.
10
- * * Redistributions in binary form must reproduce the above copyright notice
11
- * this list of conditions and the following disclaimer in the documentation
12
- * and/or other materials provided with the distribution.
13
- * * The name of the author or authors may not be used to endorse or promote
14
- * products derived from this software without specific prior written permission.
15
- *
16
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
20
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
- */
27
-
28
- #ifndef RBFFI_STRUCTBYREFERENCE_H
29
- #define RBFFI_STRUCTBYREFERENCE_H
30
-
31
- #include <ruby.h>
32
-
33
- #ifdef __cplusplus
34
- extern "C" {
35
- #endif
36
-
37
- typedef struct StructByReference_ {
38
- VALUE rbStructClass;
39
- } StructByReference;
40
-
41
- void rbffi_StructByReference_Init(VALUE moduleFFI);
42
-
43
- extern VALUE rbffi_StructByReferenceClass;
44
-
45
- #ifdef __cplusplus
46
- }
47
- #endif
48
-
49
- #endif /* RBFFI_STRUCTBYREFERENCE_H */
50
-
@@ -1,584 +0,0 @@
1
- 2011-02-08 Andreas Tobler <andreast@fgznet.ch>
2
-
3
- * testsuite/lib/libffi.exp: Tweak for stand-alone mode.
4
-
5
- 2009-12-25 Samuli Suominen <ssuominen@gentoo.org>
6
-
7
- * configure.ac: Undefine _AC_ARG_VAR_PRECIOUS for autoconf 2.64.
8
- * configure: Rebuilt.
9
- * fficonfig.h.in: Rebuilt.
10
-
11
- 2009-06-16 Andrew Haley <aph@redhat.com>
12
-
13
- * testsuite/libffi.call/cls_align_sint64.c,
14
- testsuite/libffi.call/cls_align_uint64.c,
15
- testsuite/libffi.call/cls_longdouble_va.c,
16
- testsuite/libffi.call/cls_ulonglong.c,
17
- testsuite/libffi.call/return_ll1.c,
18
- testsuite/libffi.call/stret_medium2.c: Fix printf format
19
- specifiers.
20
- * testsuite/libffi.call/huge_struct.c: Ad x86 XFAILs.
21
- * testsuite/libffi.call/float2.c: Fix dg-excess-errors.
22
- * testsuite/libffi.call/ffitest.h,
23
- testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
24
-
25
- 2009-06-12 Andrew Haley <aph@redhat.com>
26
-
27
- * testsuite/libffi.call/cls_align_sint64.c,
28
- testsuite/libffi.call/cls_align_uint64.c,
29
- testsuite/libffi.call/cls_ulonglong.c,
30
- testsuite/libffi.call/return_ll1.c,
31
- testsuite/libffi.call/stret_medium2.c: Fix printf format
32
- specifiers.
33
- testsuite/libffi.special/unwindtest.cc: include stdint.h.
34
-
35
- 2009-06-11 Timothy Wall <twall@users.sf.net>
36
-
37
- * Makefile.am,
38
- configure.ac,
39
- include/ffi.h.in,
40
- include/ffi_common.h,
41
- src/closures.c,
42
- src/dlmalloc.c,
43
- src/x86/ffi.c,
44
- src/x86/ffitarget.h,
45
- src/x86/win64.S (new),
46
- README: Added win64 support (mingw or MSVC)
47
- * Makefile.in,
48
- include/Makefile.in,
49
- man/Makefile.in,
50
- testsuite/Makefile.in,
51
- configure,
52
- aclocal.m4: Regenerated
53
- * ltcf-c.sh: properly escape cygwin/w32 path
54
- * man/ffi_call.3: Clarify size requirements for return value.
55
- * src/x86/ffi64.c: Fix filename in comment.
56
- * src/x86/win32.S: Remove unused extern.
57
-
58
- * testsuite/libffi.call/closure_fn0.c,
59
- testsuite/libffi.call/closure_fn1.c,
60
- testsuite/libffi.call/closure_fn2.c,
61
- testsuite/libffi.call/closure_fn3.c,
62
- testsuite/libffi.call/closure_fn4.c,
63
- testsuite/libffi.call/closure_fn5.c,
64
- testsuite/libffi.call/closure_fn6.c,
65
- testsuite/libffi.call/closure_stdcall.c,
66
- testsuite/libffi.call/cls_12byte.c,
67
- testsuite/libffi.call/cls_16byte.c,
68
- testsuite/libffi.call/cls_18byte.c,
69
- testsuite/libffi.call/cls_19byte.c,
70
- testsuite/libffi.call/cls_1_1byte.c,
71
- testsuite/libffi.call/cls_20byte.c,
72
- testsuite/libffi.call/cls_20byte1.c,
73
- testsuite/libffi.call/cls_24byte.c,
74
- testsuite/libffi.call/cls_2byte.c,
75
- testsuite/libffi.call/cls_3_1byte.c,
76
- testsuite/libffi.call/cls_3byte1.c,
77
- testsuite/libffi.call/cls_3byte2.c,
78
- testsuite/libffi.call/cls_4_1byte.c,
79
- testsuite/libffi.call/cls_4byte.c,
80
- testsuite/libffi.call/cls_5_1_byte.c,
81
- testsuite/libffi.call/cls_5byte.c,
82
- testsuite/libffi.call/cls_64byte.c,
83
- testsuite/libffi.call/cls_6_1_byte.c,
84
- testsuite/libffi.call/cls_6byte.c,
85
- testsuite/libffi.call/cls_7_1_byte.c,
86
- testsuite/libffi.call/cls_7byte.c,
87
- testsuite/libffi.call/cls_8byte.c,
88
- testsuite/libffi.call/cls_9byte1.c,
89
- testsuite/libffi.call/cls_9byte2.c,
90
- testsuite/libffi.call/cls_align_double.c,
91
- testsuite/libffi.call/cls_align_float.c,
92
- testsuite/libffi.call/cls_align_longdouble.c,
93
- testsuite/libffi.call/cls_align_longdouble_split.c,
94
- testsuite/libffi.call/cls_align_longdouble_split2.c,
95
- testsuite/libffi.call/cls_align_pointer.c,
96
- testsuite/libffi.call/cls_align_sint16.c,
97
- testsuite/libffi.call/cls_align_sint32.c,
98
- testsuite/libffi.call/cls_align_sint64.c,
99
- testsuite/libffi.call/cls_align_uint16.c,
100
- testsuite/libffi.call/cls_align_uint32.c,
101
- testsuite/libffi.call/cls_align_uint64.c,
102
- testsuite/libffi.call/cls_dbls_struct.c,
103
- testsuite/libffi.call/cls_double.c,
104
- testsuite/libffi.call/cls_double_va.c,
105
- testsuite/libffi.call/cls_float.c,
106
- testsuite/libffi.call/cls_longdouble.c,
107
- testsuite/libffi.call/cls_longdouble_va.c,
108
- testsuite/libffi.call/cls_multi_schar.c,
109
- testsuite/libffi.call/cls_multi_sshort.c,
110
- testsuite/libffi.call/cls_multi_sshortchar.c,
111
- testsuite/libffi.call/cls_multi_uchar.c,
112
- testsuite/libffi.call/cls_multi_ushort.c,
113
- testsuite/libffi.call/cls_multi_ushortchar.c,
114
- testsuite/libffi.call/cls_pointer.c,
115
- testsuite/libffi.call/cls_pointer_stack.c,
116
- testsuite/libffi.call/cls_schar.c,
117
- testsuite/libffi.call/cls_sint.c,
118
- testsuite/libffi.call/cls_sshort.c,
119
- testsuite/libffi.call/cls_uchar.c,
120
- testsuite/libffi.call/cls_uint.c,
121
- testsuite/libffi.call/cls_ulonglong.c,
122
- testsuite/libffi.call/cls_ushort.c,
123
- testsuite/libffi.call/err_bad_abi.c,
124
- testsuite/libffi.call/err_bad_typedef.c,
125
- testsuite/libffi.call/float2.c,
126
- testsuite/libffi.call/huge_struct.c,
127
- testsuite/libffi.call/nested_struct.c,
128
- testsuite/libffi.call/nested_struct1.c,
129
- testsuite/libffi.call/nested_struct10.c,
130
- testsuite/libffi.call/nested_struct2.c,
131
- testsuite/libffi.call/nested_struct3.c,
132
- testsuite/libffi.call/nested_struct4.c,
133
- testsuite/libffi.call/nested_struct5.c,
134
- testsuite/libffi.call/nested_struct6.c,
135
- testsuite/libffi.call/nested_struct7.c,
136
- testsuite/libffi.call/nested_struct8.c,
137
- testsuite/libffi.call/nested_struct9.c,
138
- testsuite/libffi.call/problem1.c,
139
- testsuite/libffi.call/return_ldl.c,
140
- testsuite/libffi.call/return_ll1.c,
141
- testsuite/libffi.call/stret_large.c,
142
- testsuite/libffi.call/stret_large2.c,
143
- testsuite/libffi.call/stret_medium.c,
144
- testsuite/libffi.call/stret_medium2.c,
145
- testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
146
- of checking for MMAP. Use intptr_t instead of long casts.
147
-
148
- 2009-06-04 Andrew Haley <aph@redhat.com>
149
-
150
- * src/powerpc/ffitarget.h: Fix misapplied merge from gcc.
151
-
152
- 2009-06-04 Andrew Haley <aph@redhat.com>
153
-
154
- * src/mips/o32.S,
155
- src/mips/n32.S: Fix licence formatting.
156
-
157
- 2009-06-04 Andrew Haley <aph@redhat.com>
158
-
159
- * src/x86/darwin.S: Fix licence formatting.
160
- src/x86/win32.S: Likewise.
161
- src/sh64/sysv.S: Likewise.
162
- src/sh/sysv.S: Likewise.
163
-
164
- 2009-06-04 Andrew Haley <aph@redhat.com>
165
-
166
- * src/sh64/ffi.c: Remove lint directives. Was missing from merge
167
- of Andreas Tobler's patch from 2006-04-22.
168
-
169
- 2009-06-04 Andrew Haley <aph@redhat.com>
170
-
171
- * src/sh/ffi.c: Apply missing hunk from Alexandre Oliva's patch of
172
- 2007-03-07.
173
-
174
- 2008-12-26 Timothy Wall <twall@users.sf.net>
175
-
176
- * testsuite/libffi.call/cls_longdouble.c,
177
- testsuite/libffi.call/cls_longdouble_va.c,
178
- testsuite/libffi.call/cls_align_longdouble.c,
179
- testsuite/libffi.call/cls_align_longdouble_split.c,
180
- testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
181
- failures on x86_64 cygwin/mingw.
182
-
183
- 2008-12-22 Timothy Wall <twall@users.sf.net>
184
-
185
- * testsuite/libffi.call/closure_fn0.c,
186
- testsuite/libffi.call/closure_fn1.c,
187
- testsuite/libffi.call/closure_fn2.c,
188
- testsuite/libffi.call/closure_fn3.c,
189
- testsuite/libffi.call/closure_fn4.c,
190
- testsuite/libffi.call/closure_fn5.c,
191
- testsuite/libffi.call/closure_fn6.c,
192
- testsuite/libffi.call/closure_loc_fn0.c,
193
- testsuite/libffi.call/closure_stdcall.c,
194
- testsuite/libffi.call/cls_align_pointer.c,
195
- testsuite/libffi.call/cls_pointer.c,
196
- testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
197
- pointer to integer (intptr_t).
198
- * testsuite/libffi.call/cls_longdouble.c: disable for win64.
199
-
200
- 2008-12-19 Anthony Green <green@redhat.com>
201
-
202
- * configure.ac: Bump version to 3.0.8.
203
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
204
- * libtool-version: Increment revision.
205
- * README: Update for new release.
206
-
207
- 2008-11-11 Anthony Green <green@redhat.com>
208
-
209
- * configure.ac: Bump version to 3.0.7.
210
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
211
- * libtool-version: Increment revision.
212
- * README: Update for new release.
213
-
214
- 2008-08-25 Andreas Tobler <a.tobler@schweiz.org>
215
-
216
- * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
217
- FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
218
- Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
219
- Adjust copyright notice.
220
- * src/powerpc/ffi.c: Add two new flags to indicate if we have one
221
- register or two register to use for FFI_SYSV structs.
222
- (ffi_prep_cif_machdep): Pass the right register flag introduced above.
223
- (ffi_closure_helper_SYSV): Fix the return type for
224
- FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
225
- Adjust copyright notice.
226
-
227
- 2008-07-24 Anthony Green <green@redhat.com>
228
-
229
- * testsuite/libffi.call/cls_dbls_struct.c,
230
- testsuite/libffi.call/cls_double_va.c,
231
- testsuite/libffi.call/cls_longdouble.c,
232
- testsuite/libffi.call/cls_longdouble_va.c,
233
- testsuite/libffi.call/cls_pointer.c,
234
- testsuite/libffi.call/cls_pointer_stack.c,
235
- testsuite/libffi.call/err_bad_abi.c: Clean up failures from
236
- compiler warnings.
237
-
238
- 2008-07-17 Anthony Green <green@redhat.com>
239
-
240
- * configure.ac: Bump version to 3.0.6.
241
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
242
- * libtool-version: Increment revision. Add documentation.
243
- * README: Update for new release.
244
-
245
- 2008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
246
-
247
- * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
248
- int.
249
-
250
- 2008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
251
-
252
- * src/sh/sysv.S: Add .note.GNU-stack on Linux.
253
- * src/sh64/sysv.S: Likewise.
254
-
255
- 2008-04-03 Anthony Green <green@redhat.com>
256
-
257
- * libffi.pc.in (Libs): Add -L${libdir}.
258
- * configure.ac: Bump version to 3.0.5.
259
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
260
- * libtool-version: Increment revision.
261
- * README: Update for new release.
262
-
263
- 2008-04-03 Anthony Green <green@redhat.com>
264
- Xerces Ranby <xerxes@zafena.se>
265
-
266
- * include/ffi.h.in: Wrap definition of target architecture to
267
- protect from double definitions.
268
-
269
- 2008-03-22 Moriyoshi Koizumi <moriyoshi@gmail.com>
270
-
271
- * src/x86/ffi.c (ffi_prep_closure_loc): Fix for bug revealed in
272
- closure_loc_fn0.c.
273
- * testsuite/libffi.call/closure_loc_fn0.c (closure_loc_test_fn0):
274
- New test.
275
-
276
- 2008-03-04 Anthony Green <green@redhat.com>
277
- Blake Chaffin
278
- hos@tamanegi.org
279
-
280
- * testsuite/libffi.call/cls_align_longdouble_split2.c
281
- testsuite/libffi.call/cls_align_longdouble_split.c
282
- testsuite/libffi.call/cls_dbls_struct.c
283
- testsuite/libffi.call/cls_double_va.c
284
- testsuite/libffi.call/cls_longdouble.c
285
- testsuite/libffi.call/cls_longdouble_va.c
286
- testsuite/libffi.call/cls_pointer.c
287
- testsuite/libffi.call/cls_pointer_stack.c
288
- testsuite/libffi.call/err_bad_abi.c
289
- testsuite/libffi.call/err_bad_typedef.c
290
- testsuite/libffi.call/huge_struct.c
291
- testsuite/libffi.call/stret_large2.c
292
- testsuite/libffi.call/stret_large.c
293
- testsuite/libffi.call/stret_medium2.c
294
- testsuite/libffi.call/stret_medium.c: New tests from Apple.
295
-
296
- 2008-02-26 Jakub Jelinek <jakub@redhat.com>
297
- Anthony Green <green@redhat.com>
298
-
299
- * src/alpha/osf.S: Add .note.GNU-stack on Linux.
300
- * src/s390/sysv.S: Likewise.
301
- * src/powerpc/linux64.S: Likewise.
302
- * src/powerpc/linux64_closure.S: Likewise.
303
- * src/powerpc/ppc_closure.S: Likewise.
304
- * src/powerpc/sysv.S: Likewise.
305
- * src/x86/unix64.S: Likewise.
306
- * src/x86/sysv.S: Likewise.
307
- * src/sparc/v8.S: Likewise.
308
- * src/sparc/v9.S: Likewise.
309
- * src/m68k/sysv.S: Likewise.
310
- * src/ia64/unix.S: Likewise.
311
- * src/arm/sysv.S: Likewise.
312
-
313
- 2008-02-26 Anthony Green <green@redhat.com>
314
- Thomas Heller <theller@ctypes.org>
315
-
316
- * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
317
- comment.
318
-
319
- 2008-02-26 Anthony Green <green@redhat.org>
320
- Thomas Heller <theller@ctypes.org>
321
-
322
- * include/ffi.h.in: Change void (*)() to void (*)(void).
323
-
324
- 2008-02-26 Anthony Green <green@redhat.org>
325
- Thomas Heller <theller@ctypes.org>
326
-
327
- * src/alpha/ffi.c: Change void (*)() to void (*)(void).
328
- src/alpha/osf.S, src/arm/ffi.c, src/frv/ffi.c, src/ia64/ffi.c,
329
- src/ia64/unix.S, src/java_raw_api.c, src/m32r/ffi.c,
330
- src/mips/ffi.c, src/pa/ffi.c, src/pa/hpux32.S, src/pa/linux.S,
331
- src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/raw_api.c,
332
- src/s390/ffi.c, src/sh/ffi.c, src/sh64/ffi.c, src/sparc/ffi.c,
333
- src/x86/ffi.c, src/x86/unix64.S, src/x86/darwin64.S,
334
- src/x86/ffi64.c: Ditto.
335
-
336
- 2008-02-24 Anthony Green <green@redhat.org>
337
-
338
- * configure.ac: Accept openbsd*, not just openbsd.
339
- Bump version to 3.0.4.
340
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
341
- * libtool-version: Increment revision.
342
- * README: Update for new release.
343
-
344
- 2008-02-22 Anthony Green <green@redhat.com>
345
-
346
- * README: Clean up list of tested platforms.
347
-
348
- 2008-02-22 Anthony Green <green@redhat.com>
349
-
350
- * configure.ac: Bump version to 3.0.3.
351
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
352
- * libtool-version: Increment revision.
353
- * README: Update for new release. Clean up test docs.
354
-
355
- 2008-02-22 Bjoern Koenig <bkoenig@alpha-tierchen.de>
356
- Andreas Tobler <a.tobler@schweiz.org>
357
-
358
- * configure.ac: Add amd64-*-freebsd* target.
359
- * configure: Regenerate.
360
-
361
- 2008-02-22 Thomas Heller <theller@ctypes.org>
362
-
363
- * configure.ac: Add x86 OpenBSD support.
364
- * configure: Rebuilt.
365
-
366
- 2008-02-21 Thomas Heller <theller@ctypes.org>
367
-
368
- * README: Change "make test" to "make check".
369
-
370
- 2008-02-21 Anthony Green <green@redhat.com>
371
-
372
- * configure.ac: Bump version to 3.0.2.
373
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
374
- * libtool-version: Increment revision.
375
- * README: Update for new release.
376
-
377
- 2008-02-21 Björn König <bkoenig@alpha-tierchen.de>
378
-
379
- * src/x86/freebsd.S: New file.
380
- * configure.ac: Add x86 FreeBSD support.
381
- * Makefile.am: Ditto.
382
-
383
- 2008-02-15 Anthony Green <green@redhat.com>
384
-
385
- * configure.ac: Bump version to 3.0.1.
386
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
387
- * libtool-version: Increment revision.
388
- * README: Update for new release.
389
-
390
- 2008-02-15 David Daney <ddaney@avtrex.com>
391
-
392
- * src/mips/ffi.c: Remove extra '>' from include directive.
393
- (ffi_prep_closure_loc): Use clear_location instead of tramp.
394
-
395
- 2008-02-15 Anthony Green <green@redhat.com>
396
-
397
- * configure.ac: Bump version to 3.0.0.
398
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
399
-
400
- 2008-02-15 David Daney <ddaney@avtrex.com>
401
-
402
- * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
403
- Define (conditionally), and use it to include cachectl.h.
404
- (ffi_prep_closure_loc): Fix cache flushing.
405
- * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
406
-
407
- 2008-02-15 Anthony Green <green@redhat.com>
408
-
409
- * man/ffi_call.3, man/ffi_prep_cif.3, man/ffi.3:
410
- Update dates and remove all references to ffi_prep_closure.
411
- * configure.ac: Bump version to 2.99.9.
412
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
413
-
414
- 2008-02-15 Anthony Green <green@redhat.com>
415
-
416
- * man/ffi_prep_closure.3: Delete.
417
- * man/Makefile.am (EXTRA_DIST): Remove ffi_prep_closure.3.
418
- (man_MANS): Ditto.
419
- * man/Makefile.in: Rebuilt.
420
- * configure.ac: Bump version to 2.99.8.
421
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
422
-
423
- 2008-02-14 Anthony Green <green@redhat.com>
424
-
425
- * configure.ac: Bump version to 2.99.7.
426
- * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
427
- * include/ffi.h.in LICENSE src/debug.c src/closures.c
428
- src/ffitest.c src/s390/sysv.S src/s390/ffitarget.h
429
- src/types.c src/m68k/ffitarget.h src/raw_api.c src/frv/ffi.c
430
- src/frv/ffitarget.h src/sh/ffi.c src/sh/sysv.S
431
- src/sh/ffitarget.h src/powerpc/ffitarget.h src/pa/ffi.c
432
- src/pa/ffitarget.h src/pa/linux.S src/java_raw_api.c
433
- src/cris/ffitarget.h src/x86/ffi.c src/x86/sysv.S
434
- src/x86/unix64.S src/x86/win32.S src/x86/ffitarget.h
435
- src/x86/ffi64.c src/x86/darwin.S src/ia64/ffi.c
436
- src/ia64/ffitarget.h src/ia64/ia64_flags.h src/ia64/unix.S
437
- src/sparc/ffi.c src/sparc/v9.S src/sparc/ffitarget.h
438
- src/sparc/v8.S src/alpha/ffi.c src/alpha/ffitarget.h
439
- src/alpha/osf.S src/sh64/ffi.c src/sh64/sysv.S
440
- src/sh64/ffitarget.h src/mips/ffi.c src/mips/ffitarget.h
441
- src/mips/n32.S src/mips/o32.S src/arm/ffi.c src/arm/sysv.S
442
- src/arm/ffitarget.h src/prep_cif.c: Update license text.
443
-
444
- 2008-02-14 Anthony Green <green@redhat.com>
445
-
446
- * README: Update tested platforms.
447
- * configure.ac: Bump version to 2.99.6.
448
- * configure: Rebuilt.
449
-
450
- 2008-02-14 Anthony Green <green@redhat.com>
451
-
452
- * configure.ac: Bump version to 2.99.5.
453
- * configure: Rebuilt.
454
- * Makefile.am (EXTRA_DIST): Add darwin64.S
455
- * Makefile.in: Rebuilt.
456
- * testsuite/lib/libffi-dg.exp: Remove libstdc++ bits from GCC tree.
457
- * LICENSE: Update WARRANTY.
458
-
459
- 2008-02-14 Anthony Green <green@redhat.com>
460
-
461
- * libffi.pc.in (libdir): Fix libdir definition.
462
- * configure.ac: Bump version to 2.99.4.
463
- * configure: Rebuilt.
464
-
465
- 2008-02-14 Anthony Green <green@redhat.com>
466
-
467
- * README: Update.
468
- * libffi.info: New file.
469
- * doc/stamp-vti: New file.
470
- * configure.ac: Bump version to 2.99.3.
471
- * configure: Rebuilt.
472
-
473
- 2008-02-14 Anthony Green <green@redhat.com>
474
-
475
- * Makefile.am (SUBDIRS): Add man dir.
476
- * Makefile.in: Rebuilt.
477
- * configure.ac: Create Makefile.
478
- * configure: Rebuilt.
479
- * man/ffi_call.3 man/ffi_prep_cif.3 man/ffi_prep_closure.3
480
- man/Makefile.am man/Makefile.in: New files.
481
-
482
- 2008-02-14 Tom Tromey <tromey@redhat.com>
483
-
484
- * aclocal.m4, Makefile.in, configure, fficonfig.h.in: Rebuilt.
485
- * mdate-sh, texinfo.tex: New files.
486
- * Makefile.am (info_TEXINFOS): New variable.
487
- * doc/libffi.texi: New file.
488
- * doc/version.texi: Likewise.
489
-
490
- 2008-02-14 Anthony Green <green@redhat.com>
491
-
492
- * Makefile.am (AM_CFLAGS): Don't compile with -D$(TARGET).
493
- (lib_LTLIBRARIES): Define.
494
- (toolexeclib_LIBRARIES): Undefine.
495
- * Makefile.in: Rebuilt.
496
- * configure.ac: Reset version to 2.99.1.
497
- * configure.in: Rebuilt.
498
-
499
- 2008-02-14 Anthony Green <green@redhat.com>
500
-
501
- * libffi.pc.in: Use @PACKAGE_NAME@ and @PACKAGE_VERSION@.
502
- * configure.ac: Reset version to 2.99.1.
503
- * configure.in: Rebuilt.
504
- * Makefile.am (EXTRA_DIST): Add ChangeLog.libffi.
505
- * Makefile.in: Rebuilt.
506
- * LICENSE: Update copyright notice.
507
-
508
- 2008-02-14 Anthony Green <green@redhat.com>
509
-
510
- * include/Makefile.am (nodist_includes_HEADERS): Define. Don't
511
- distribute ffitarget.h or ffi.h from the build include dir.
512
- * Makefile.in: Rebuilt.
513
-
514
- 2008-02-14 Anthony Green <green@redhat.com>
515
-
516
- * include/Makefile.am (includesdir): Install headers under libdir.
517
- (pkgconfigdir): Define. Install libffi.pc.
518
- * include/Makefile.in: Rebuilt.
519
- * libffi.pc.in: Create.
520
- * libtool-version: Increment CURRENT
521
- * configure.ac: Add libffi.pc.in
522
- * configure: Rebuilt.
523
-
524
- 2008-02-03 Anthony Green <green@redhat.com>
525
-
526
- * include/Makefile.am (includesdir): Fix header install with
527
- DESTDIR.
528
- * include/Makefile.in: Rebuilt.
529
-
530
- 2008-02-03 Timothy Wall <twall@users.sf.net>
531
-
532
- * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
533
- offset based on code pointer, not data pointer.
534
-
535
- 2008-02-01 Anthony Green <green@redhat.com>
536
-
537
- * include/Makefile.am: Fix header installs.
538
- * Makefile.am: Ditto.
539
- * include/Makefile.in: Rebuilt.
540
- * Makefile.in: Ditto.
541
-
542
- 2008-02-01 Anthony Green <green@redhat.com>
543
-
544
- * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL,
545
- FFI_INIT_TRAMPOLINE): Revert my broken changes to twall's last
546
- patch.
547
-
548
- 2008-01-31 Anthony Green <green@redhat.com>
549
-
550
- * Makefile.am (EXTRA_DIST): Add missing files.
551
- * testsuite/Makefile.am: Ditto.
552
- * Makefile.in, testsuite/Makefile.in: Rebuilt.
553
-
554
- 2008-01-31 Timothy Wall <twall@users.sf.net>
555
-
556
- * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
557
- closures.
558
- * src/x86/ffitarget.h: Increase size of trampoline for stdcall
559
- closures.
560
- * src/x86/win32.S: Add assembly for stdcall closure.
561
- * src/x86/ffi.c: Initialize stdcall closure trampoline.
562
-
563
- 2008-01-30 H.J. Lu <hongjiu.lu@intel.com>
564
-
565
- PR libffi/34612
566
- * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
567
- returning struct.
568
-
569
- * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
570
- tests.
571
-
572
- 2008-01-30 Anthony Green <green@redhat.com>
573
-
574
- * Makefile.am, include/Makefile.am: Move headers to
575
- libffi_la_SOURCES for new automake.
576
- * Makefile.in, include/Makefile.in: Rebuilt.
577
-
578
- * testsuite/lib/wrapper.exp: Copied from gcc tree to allow for
579
- execution outside of gcc tree.
580
- * testsuite/lib/target-libpath.exp: Ditto.
581
-
582
- * testsuite/lib/libffi-dg.exp: Many changes to allow for execution
583
- outside of gcc tree.
584
-