ffi 1.16.3 → 1.17.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (550) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +42 -0
  4. data/Gemfile +9 -2
  5. data/README.md +1 -1
  6. data/Rakefile +17 -5
  7. data/lib/ffi/autopointer.rb +1 -9
  8. data/lib/ffi/dynamic_library.rb +34 -5
  9. data/lib/ffi/enum.rb +0 -1
  10. data/lib/ffi/function.rb +1 -1
  11. data/lib/ffi/io.rb +2 -2
  12. data/lib/ffi/library.rb +23 -23
  13. data/lib/ffi/platform/aarch64-linux/types.conf +74 -3
  14. data/lib/ffi/pointer.rb +6 -6
  15. data/lib/ffi/struct.rb +4 -4
  16. data/lib/ffi/struct_layout.rb +2 -2
  17. data/lib/ffi/struct_layout_builder.rb +8 -8
  18. data/lib/ffi/types.rb +51 -49
  19. data/lib/ffi/version.rb +1 -1
  20. data/sig/ffi/abstract_memory.rbs +165 -0
  21. data/sig/ffi/auto_pointer.rbs +27 -0
  22. data/sig/ffi/buffer.rbs +18 -0
  23. data/sig/ffi/data_converter.rbs +10 -0
  24. data/sig/ffi/dynamic_library.rbs +9 -0
  25. data/sig/ffi/enum.rbs +38 -0
  26. data/sig/ffi/function.rbs +39 -0
  27. data/sig/ffi/library.rbs +42 -0
  28. data/sig/ffi/native_type.rbs +86 -0
  29. data/sig/ffi/pointer.rbs +42 -0
  30. data/sig/ffi/struct.rbs +76 -0
  31. data/sig/ffi/struct_by_reference.rbs +11 -0
  32. data/sig/ffi/struct_by_value.rbs +7 -0
  33. data/sig/ffi/struct_layout.rbs +9 -0
  34. data/sig/ffi/struct_layout_builder.rbs +5 -0
  35. data/sig/ffi/type.rbs +39 -0
  36. data/sig/ffi.rbs +26 -0
  37. data.tar.gz.sig +0 -0
  38. metadata +34 -532
  39. metadata.gz.sig +0 -0
  40. data/ext/ffi_c/AbstractMemory.c +0 -1128
  41. data/ext/ffi_c/AbstractMemory.h +0 -176
  42. data/ext/ffi_c/ArrayType.c +0 -198
  43. data/ext/ffi_c/ArrayType.h +0 -60
  44. data/ext/ffi_c/Buffer.c +0 -417
  45. data/ext/ffi_c/Call.c +0 -498
  46. data/ext/ffi_c/Call.h +0 -107
  47. data/ext/ffi_c/ClosurePool.c +0 -333
  48. data/ext/ffi_c/ClosurePool.h +0 -59
  49. data/ext/ffi_c/DynamicLibrary.c +0 -397
  50. data/ext/ffi_c/DynamicLibrary.h +0 -98
  51. data/ext/ffi_c/Function.c +0 -1063
  52. data/ext/ffi_c/Function.h +0 -84
  53. data/ext/ffi_c/FunctionInfo.c +0 -322
  54. data/ext/ffi_c/LastError.c +0 -243
  55. data/ext/ffi_c/LastError.h +0 -47
  56. data/ext/ffi_c/LongDouble.c +0 -65
  57. data/ext/ffi_c/LongDouble.h +0 -47
  58. data/ext/ffi_c/MappedType.c +0 -211
  59. data/ext/ffi_c/MappedType.h +0 -57
  60. data/ext/ffi_c/MemoryPointer.c +0 -219
  61. data/ext/ffi_c/MemoryPointer.h +0 -49
  62. data/ext/ffi_c/MethodHandle.c +0 -350
  63. data/ext/ffi_c/MethodHandle.h +0 -56
  64. data/ext/ffi_c/Platform.c +0 -78
  65. data/ext/ffi_c/Platform.h +0 -45
  66. data/ext/ffi_c/Pointer.c +0 -546
  67. data/ext/ffi_c/Pointer.h +0 -60
  68. data/ext/ffi_c/Struct.c +0 -897
  69. data/ext/ffi_c/Struct.h +0 -115
  70. data/ext/ffi_c/StructByValue.c +0 -177
  71. data/ext/ffi_c/StructByValue.h +0 -55
  72. data/ext/ffi_c/StructLayout.c +0 -769
  73. data/ext/ffi_c/Thread.c +0 -129
  74. data/ext/ffi_c/Thread.h +0 -76
  75. data/ext/ffi_c/Type.c +0 -447
  76. data/ext/ffi_c/Type.h +0 -63
  77. data/ext/ffi_c/Types.c +0 -138
  78. data/ext/ffi_c/Types.h +0 -88
  79. data/ext/ffi_c/Variadic.c +0 -345
  80. data/ext/ffi_c/compat.h +0 -82
  81. data/ext/ffi_c/extconf.rb +0 -115
  82. data/ext/ffi_c/ffi.c +0 -97
  83. data/ext/ffi_c/libffi/.appveyor/site.exp +0 -16
  84. data/ext/ffi_c/libffi/.appveyor/unix-noexec.exp +0 -7
  85. data/ext/ffi_c/libffi/.appveyor.yml +0 -84
  86. data/ext/ffi_c/libffi/.ci/ar-lib +0 -270
  87. data/ext/ffi_c/libffi/.ci/bfin-sim.exp +0 -58
  88. data/ext/ffi_c/libffi/.ci/build-cross-in-container.sh +0 -18
  89. data/ext/ffi_c/libffi/.ci/build-in-container.sh +0 -10
  90. data/ext/ffi_c/libffi/.ci/build.sh +0 -124
  91. data/ext/ffi_c/libffi/.ci/compile +0 -351
  92. data/ext/ffi_c/libffi/.ci/install.sh +0 -78
  93. data/ext/ffi_c/libffi/.ci/m32r-sim.exp +0 -58
  94. data/ext/ffi_c/libffi/.ci/moxie-sim.exp +0 -60
  95. data/ext/ffi_c/libffi/.ci/msvs-detect +0 -1103
  96. data/ext/ffi_c/libffi/.ci/or1k-sim.exp +0 -58
  97. data/ext/ffi_c/libffi/.ci/powerpc-eabisim.exp +0 -58
  98. data/ext/ffi_c/libffi/.ci/site.exp +0 -29
  99. data/ext/ffi_c/libffi/.ci/wine-sim.exp +0 -55
  100. data/ext/ffi_c/libffi/.circleci/config.yml +0 -156
  101. data/ext/ffi_c/libffi/.gitattributes +0 -4
  102. data/ext/ffi_c/libffi/.github/issue_template.md +0 -10
  103. data/ext/ffi_c/libffi/.github/workflows/build.yml +0 -460
  104. data/ext/ffi_c/libffi/.github/workflows/emscripten.yml +0 -171
  105. data/ext/ffi_c/libffi/.gitignore +0 -46
  106. data/ext/ffi_c/libffi/ChangeLog.old +0 -7407
  107. data/ext/ffi_c/libffi/LICENSE +0 -21
  108. data/ext/ffi_c/libffi/LICENSE-BUILDTOOLS +0 -353
  109. data/ext/ffi_c/libffi/Makefile.am +0 -157
  110. data/ext/ffi_c/libffi/Makefile.in +0 -2127
  111. data/ext/ffi_c/libffi/README.md +0 -526
  112. data/ext/ffi_c/libffi/acinclude.m4 +0 -377
  113. data/ext/ffi_c/libffi/autogen.sh +0 -2
  114. data/ext/ffi_c/libffi/compile +0 -348
  115. data/ext/ffi_c/libffi/config.guess +0 -1754
  116. data/ext/ffi_c/libffi/config.sub +0 -1892
  117. data/ext/ffi_c/libffi/configure +0 -22791
  118. data/ext/ffi_c/libffi/configure.ac +0 -451
  119. data/ext/ffi_c/libffi/configure.host +0 -337
  120. data/ext/ffi_c/libffi/doc/Makefile.am +0 -3
  121. data/ext/ffi_c/libffi/doc/Makefile.in +0 -818
  122. data/ext/ffi_c/libffi/doc/libffi.texi +0 -1046
  123. data/ext/ffi_c/libffi/doc/version.texi +0 -4
  124. data/ext/ffi_c/libffi/fficonfig.h.in +0 -188
  125. data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +0 -312
  126. data/ext/ffi_c/libffi/include/Makefile.am +0 -9
  127. data/ext/ffi_c/libffi/include/Makefile.in +0 -609
  128. data/ext/ffi_c/libffi/include/ffi.h.in +0 -527
  129. data/ext/ffi_c/libffi/include/ffi_cfi.h +0 -76
  130. data/ext/ffi_c/libffi/include/ffi_common.h +0 -182
  131. data/ext/ffi_c/libffi/include/tramp.h +0 -45
  132. data/ext/ffi_c/libffi/install-sh +0 -541
  133. data/ext/ffi_c/libffi/libffi.map.in +0 -76
  134. data/ext/ffi_c/libffi/libffi.pc.in +0 -11
  135. data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +0 -997
  136. data/ext/ffi_c/libffi/libtool-ldflags +0 -106
  137. data/ext/ffi_c/libffi/libtool-version +0 -29
  138. data/ext/ffi_c/libffi/ltmain.sh +0 -11448
  139. data/ext/ffi_c/libffi/m4/asmcfi.m4 +0 -13
  140. data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +0 -50
  141. data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +0 -198
  142. data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +0 -158
  143. data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +0 -53
  144. data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +0 -119
  145. data/ext/ffi_c/libffi/m4/ax_configure_args.m4 +0 -49
  146. data/ext/ffi_c/libffi/m4/ax_enable_builddir.m4 +0 -302
  147. data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +0 -267
  148. data/ext/ffi_c/libffi/m4/ax_gcc_x86_cpuid.m4 +0 -89
  149. data/ext/ffi_c/libffi/m4/ax_prepend_flag.m4 +0 -51
  150. data/ext/ffi_c/libffi/m4/ax_require_defined.m4 +0 -37
  151. data/ext/ffi_c/libffi/make_sunver.pl +0 -333
  152. data/ext/ffi_c/libffi/man/Makefile.am +0 -8
  153. data/ext/ffi_c/libffi/man/Makefile.in +0 -565
  154. data/ext/ffi_c/libffi/man/ffi.3 +0 -41
  155. data/ext/ffi_c/libffi/man/ffi_call.3 +0 -103
  156. data/ext/ffi_c/libffi/man/ffi_prep_cif.3 +0 -68
  157. data/ext/ffi_c/libffi/man/ffi_prep_cif_var.3 +0 -73
  158. data/ext/ffi_c/libffi/missing +0 -215
  159. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.sln +0 -33
  160. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj +0 -130
  161. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.filters +0 -57
  162. data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.user +0 -4
  163. data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h +0 -511
  164. data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/fficonfig.h +0 -219
  165. data/ext/ffi_c/libffi/msvcc.sh +0 -353
  166. data/ext/ffi_c/libffi/src/aarch64/ffi.c +0 -1129
  167. data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +0 -97
  168. data/ext/ffi_c/libffi/src/aarch64/internal.h +0 -100
  169. data/ext/ffi_c/libffi/src/aarch64/sysv.S +0 -543
  170. data/ext/ffi_c/libffi/src/aarch64/win64_armasm.S +0 -506
  171. data/ext/ffi_c/libffi/src/alpha/ffi.c +0 -521
  172. data/ext/ffi_c/libffi/src/alpha/ffitarget.h +0 -57
  173. data/ext/ffi_c/libffi/src/alpha/internal.h +0 -23
  174. data/ext/ffi_c/libffi/src/alpha/osf.S +0 -282
  175. data/ext/ffi_c/libffi/src/arc/arcompact.S +0 -210
  176. data/ext/ffi_c/libffi/src/arc/ffi.c +0 -443
  177. data/ext/ffi_c/libffi/src/arc/ffitarget.h +0 -67
  178. data/ext/ffi_c/libffi/src/arm/ffi.c +0 -921
  179. data/ext/ffi_c/libffi/src/arm/ffitarget.h +0 -89
  180. data/ext/ffi_c/libffi/src/arm/internal.h +0 -17
  181. data/ext/ffi_c/libffi/src/arm/sysv.S +0 -456
  182. data/ext/ffi_c/libffi/src/arm/sysv_msvc_arm32.S +0 -311
  183. data/ext/ffi_c/libffi/src/avr32/ffi.c +0 -423
  184. data/ext/ffi_c/libffi/src/avr32/ffitarget.h +0 -55
  185. data/ext/ffi_c/libffi/src/avr32/sysv.S +0 -208
  186. data/ext/ffi_c/libffi/src/bfin/ffi.c +0 -196
  187. data/ext/ffi_c/libffi/src/bfin/ffitarget.h +0 -43
  188. data/ext/ffi_c/libffi/src/bfin/sysv.S +0 -179
  189. data/ext/ffi_c/libffi/src/closures.c +0 -1107
  190. data/ext/ffi_c/libffi/src/cris/ffi.c +0 -386
  191. data/ext/ffi_c/libffi/src/cris/ffitarget.h +0 -56
  192. data/ext/ffi_c/libffi/src/cris/sysv.S +0 -215
  193. data/ext/ffi_c/libffi/src/csky/ffi.c +0 -395
  194. data/ext/ffi_c/libffi/src/csky/ffitarget.h +0 -63
  195. data/ext/ffi_c/libffi/src/csky/sysv.S +0 -371
  196. data/ext/ffi_c/libffi/src/debug.c +0 -64
  197. data/ext/ffi_c/libffi/src/dlmalloc.c +0 -5171
  198. data/ext/ffi_c/libffi/src/frv/eabi.S +0 -128
  199. data/ext/ffi_c/libffi/src/frv/ffi.c +0 -292
  200. data/ext/ffi_c/libffi/src/frv/ffitarget.h +0 -62
  201. data/ext/ffi_c/libffi/src/ia64/ffi.c +0 -616
  202. data/ext/ffi_c/libffi/src/ia64/ffitarget.h +0 -56
  203. data/ext/ffi_c/libffi/src/ia64/ia64_flags.h +0 -40
  204. data/ext/ffi_c/libffi/src/ia64/unix.S +0 -585
  205. data/ext/ffi_c/libffi/src/java_raw_api.c +0 -374
  206. data/ext/ffi_c/libffi/src/kvx/asm.h +0 -5
  207. data/ext/ffi_c/libffi/src/kvx/ffi.c +0 -273
  208. data/ext/ffi_c/libffi/src/kvx/ffitarget.h +0 -75
  209. data/ext/ffi_c/libffi/src/kvx/sysv.S +0 -127
  210. data/ext/ffi_c/libffi/src/loongarch64/ffi.c +0 -621
  211. data/ext/ffi_c/libffi/src/loongarch64/ffitarget.h +0 -82
  212. data/ext/ffi_c/libffi/src/loongarch64/sysv.S +0 -327
  213. data/ext/ffi_c/libffi/src/m32r/ffi.c +0 -249
  214. data/ext/ffi_c/libffi/src/m32r/ffitarget.h +0 -53
  215. data/ext/ffi_c/libffi/src/m32r/sysv.S +0 -121
  216. data/ext/ffi_c/libffi/src/m68k/ffi.c +0 -362
  217. data/ext/ffi_c/libffi/src/m68k/ffitarget.h +0 -54
  218. data/ext/ffi_c/libffi/src/m68k/sysv.S +0 -357
  219. data/ext/ffi_c/libffi/src/m88k/ffi.c +0 -400
  220. data/ext/ffi_c/libffi/src/m88k/ffitarget.h +0 -49
  221. data/ext/ffi_c/libffi/src/m88k/obsd.S +0 -209
  222. data/ext/ffi_c/libffi/src/metag/ffi.c +0 -330
  223. data/ext/ffi_c/libffi/src/metag/ffitarget.h +0 -53
  224. data/ext/ffi_c/libffi/src/metag/sysv.S +0 -311
  225. data/ext/ffi_c/libffi/src/microblaze/ffi.c +0 -321
  226. data/ext/ffi_c/libffi/src/microblaze/ffitarget.h +0 -53
  227. data/ext/ffi_c/libffi/src/microblaze/sysv.S +0 -302
  228. data/ext/ffi_c/libffi/src/mips/ffi.c +0 -1309
  229. data/ext/ffi_c/libffi/src/mips/ffitarget.h +0 -251
  230. data/ext/ffi_c/libffi/src/mips/n32.S +0 -772
  231. data/ext/ffi_c/libffi/src/mips/o32.S +0 -561
  232. data/ext/ffi_c/libffi/src/moxie/eabi.S +0 -101
  233. data/ext/ffi_c/libffi/src/moxie/ffi.c +0 -310
  234. data/ext/ffi_c/libffi/src/moxie/ffitarget.h +0 -52
  235. data/ext/ffi_c/libffi/src/nios2/ffi.c +0 -304
  236. data/ext/ffi_c/libffi/src/nios2/ffitarget.h +0 -52
  237. data/ext/ffi_c/libffi/src/nios2/sysv.S +0 -136
  238. data/ext/ffi_c/libffi/src/or1k/ffi.c +0 -341
  239. data/ext/ffi_c/libffi/src/or1k/ffitarget.h +0 -58
  240. data/ext/ffi_c/libffi/src/or1k/sysv.S +0 -107
  241. data/ext/ffi_c/libffi/src/pa/ffi.c +0 -673
  242. data/ext/ffi_c/libffi/src/pa/ffi64.c +0 -614
  243. data/ext/ffi_c/libffi/src/pa/ffitarget.h +0 -94
  244. data/ext/ffi_c/libffi/src/pa/hpux32.S +0 -417
  245. data/ext/ffi_c/libffi/src/pa/hpux64.S +0 -681
  246. data/ext/ffi_c/libffi/src/pa/linux.S +0 -427
  247. data/ext/ffi_c/libffi/src/powerpc/aix.S +0 -566
  248. data/ext/ffi_c/libffi/src/powerpc/aix_closure.S +0 -694
  249. data/ext/ffi_c/libffi/src/powerpc/asm.h +0 -125
  250. data/ext/ffi_c/libffi/src/powerpc/darwin.S +0 -378
  251. data/ext/ffi_c/libffi/src/powerpc/darwin_closure.S +0 -571
  252. data/ext/ffi_c/libffi/src/powerpc/ffi.c +0 -175
  253. data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +0 -1452
  254. data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +0 -1153
  255. data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +0 -105
  256. data/ext/ffi_c/libffi/src/powerpc/ffi_sysv.c +0 -923
  257. data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +0 -204
  258. data/ext/ffi_c/libffi/src/powerpc/linux64.S +0 -293
  259. data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +0 -566
  260. data/ext/ffi_c/libffi/src/powerpc/ppc_closure.S +0 -397
  261. data/ext/ffi_c/libffi/src/powerpc/sysv.S +0 -173
  262. data/ext/ffi_c/libffi/src/powerpc/t-aix +0 -5
  263. data/ext/ffi_c/libffi/src/prep_cif.c +0 -283
  264. data/ext/ffi_c/libffi/src/raw_api.c +0 -267
  265. data/ext/ffi_c/libffi/src/riscv/ffi.c +0 -514
  266. data/ext/ffi_c/libffi/src/riscv/ffitarget.h +0 -69
  267. data/ext/ffi_c/libffi/src/riscv/sysv.S +0 -293
  268. data/ext/ffi_c/libffi/src/s390/ffi.c +0 -756
  269. data/ext/ffi_c/libffi/src/s390/ffitarget.h +0 -70
  270. data/ext/ffi_c/libffi/src/s390/internal.h +0 -11
  271. data/ext/ffi_c/libffi/src/s390/sysv.S +0 -325
  272. data/ext/ffi_c/libffi/src/sh/ffi.c +0 -717
  273. data/ext/ffi_c/libffi/src/sh/ffitarget.h +0 -54
  274. data/ext/ffi_c/libffi/src/sh/sysv.S +0 -850
  275. data/ext/ffi_c/libffi/src/sh64/ffi.c +0 -469
  276. data/ext/ffi_c/libffi/src/sh64/ffitarget.h +0 -58
  277. data/ext/ffi_c/libffi/src/sh64/sysv.S +0 -539
  278. data/ext/ffi_c/libffi/src/sparc/ffi.c +0 -468
  279. data/ext/ffi_c/libffi/src/sparc/ffi64.c +0 -624
  280. data/ext/ffi_c/libffi/src/sparc/ffitarget.h +0 -81
  281. data/ext/ffi_c/libffi/src/sparc/internal.h +0 -26
  282. data/ext/ffi_c/libffi/src/sparc/v8.S +0 -443
  283. data/ext/ffi_c/libffi/src/sparc/v9.S +0 -440
  284. data/ext/ffi_c/libffi/src/tile/ffi.c +0 -355
  285. data/ext/ffi_c/libffi/src/tile/ffitarget.h +0 -65
  286. data/ext/ffi_c/libffi/src/tile/tile.S +0 -360
  287. data/ext/ffi_c/libffi/src/tramp.c +0 -716
  288. data/ext/ffi_c/libffi/src/types.c +0 -108
  289. data/ext/ffi_c/libffi/src/vax/elfbsd.S +0 -195
  290. data/ext/ffi_c/libffi/src/vax/ffi.c +0 -276
  291. data/ext/ffi_c/libffi/src/vax/ffitarget.h +0 -49
  292. data/ext/ffi_c/libffi/src/wasm32/ffi.c +0 -934
  293. data/ext/ffi_c/libffi/src/wasm32/ffitarget.h +0 -62
  294. data/ext/ffi_c/libffi/src/x86/asmnames.h +0 -30
  295. data/ext/ffi_c/libffi/src/x86/ffi.c +0 -832
  296. data/ext/ffi_c/libffi/src/x86/ffi64.c +0 -950
  297. data/ext/ffi_c/libffi/src/x86/ffitarget.h +0 -164
  298. data/ext/ffi_c/libffi/src/x86/ffiw64.c +0 -361
  299. data/ext/ffi_c/libffi/src/x86/internal.h +0 -43
  300. data/ext/ffi_c/libffi/src/x86/internal64.h +0 -36
  301. data/ext/ffi_c/libffi/src/x86/sysv.S +0 -1272
  302. data/ext/ffi_c/libffi/src/x86/sysv_intel.S +0 -998
  303. data/ext/ffi_c/libffi/src/x86/unix64.S +0 -711
  304. data/ext/ffi_c/libffi/src/x86/win64.S +0 -254
  305. data/ext/ffi_c/libffi/src/x86/win64_intel.S +0 -238
  306. data/ext/ffi_c/libffi/src/xtensa/ffi.c +0 -306
  307. data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +0 -57
  308. data/ext/ffi_c/libffi/src/xtensa/sysv.S +0 -268
  309. data/ext/ffi_c/libffi/stamp-h.in +0 -1
  310. data/ext/ffi_c/libffi/testsuite/Makefile.am +0 -135
  311. data/ext/ffi_c/libffi/testsuite/Makefile.in +0 -664
  312. data/ext/ffi_c/libffi/testsuite/config/default.exp +0 -1
  313. data/ext/ffi_c/libffi/testsuite/emscripten/build-tests.sh +0 -54
  314. data/ext/ffi_c/libffi/testsuite/emscripten/build.sh +0 -63
  315. data/ext/ffi_c/libffi/testsuite/emscripten/conftest.py +0 -80
  316. data/ext/ffi_c/libffi/testsuite/emscripten/node-tests.sh +0 -48
  317. data/ext/ffi_c/libffi/testsuite/emscripten/test.html +0 -7
  318. data/ext/ffi_c/libffi/testsuite/emscripten/test_libffi.py +0 -51
  319. data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +0 -682
  320. data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +0 -283
  321. data/ext/ffi_c/libffi/testsuite/lib/wrapper.exp +0 -45
  322. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/Makefile +0 -28
  323. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/README +0 -78
  324. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/alignof.h +0 -50
  325. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/bhaible.exp +0 -63
  326. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +0 -1746
  327. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-callback.c +0 -2885
  328. data/ext/ffi_c/libffi/testsuite/libffi.bhaible/testcases.c +0 -747
  329. data/ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c +0 -46
  330. data/ext/ffi_c/libffi/testsuite/libffi.call/align_stdcall.c +0 -46
  331. data/ext/ffi_c/libffi/testsuite/libffi.call/bpo_38748.c +0 -41
  332. data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +0 -54
  333. data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +0 -26
  334. data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +0 -163
  335. data/ext/ffi_c/libffi/testsuite/libffi.call/float.c +0 -59
  336. data/ext/ffi_c/libffi/testsuite/libffi.call/float1.c +0 -60
  337. data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +0 -61
  338. data/ext/ffi_c/libffi/testsuite/libffi.call/float3.c +0 -74
  339. data/ext/ffi_c/libffi/testsuite/libffi.call/float4.c +0 -62
  340. data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +0 -110
  341. data/ext/ffi_c/libffi/testsuite/libffi.call/many.c +0 -59
  342. data/ext/ffi_c/libffi/testsuite/libffi.call/many2.c +0 -57
  343. data/ext/ffi_c/libffi/testsuite/libffi.call/many_double.c +0 -70
  344. data/ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c +0 -78
  345. data/ext/ffi_c/libffi/testsuite/libffi.call/negint.c +0 -52
  346. data/ext/ffi_c/libffi/testsuite/libffi.call/offsets.c +0 -46
  347. data/ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c +0 -127
  348. data/ext/ffi_c/libffi/testsuite/libffi.call/promotion.c +0 -59
  349. data/ext/ffi_c/libffi/testsuite/libffi.call/pyobjc_tc.c +0 -114
  350. data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c +0 -36
  351. data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl1.c +0 -43
  352. data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl2.c +0 -42
  353. data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl.c +0 -35
  354. data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl1.c +0 -36
  355. data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl2.c +0 -49
  356. data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl3.c +0 -42
  357. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ldl.c +0 -34
  358. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c +0 -41
  359. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +0 -48
  360. data/ext/ffi_c/libffi/testsuite/libffi.call/return_sc.c +0 -36
  361. data/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +0 -42
  362. data/ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c +0 -38
  363. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +0 -42
  364. data/ext/ffi_c/libffi/testsuite/libffi.call/s55.c +0 -60
  365. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +0 -43
  366. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +0 -49
  367. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +0 -49
  368. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +0 -55
  369. data/ext/ffi_c/libffi/testsuite/libffi.call/struct1.c +0 -67
  370. data/ext/ffi_c/libffi/testsuite/libffi.call/struct10.c +0 -57
  371. data/ext/ffi_c/libffi/testsuite/libffi.call/struct2.c +0 -67
  372. data/ext/ffi_c/libffi/testsuite/libffi.call/struct3.c +0 -60
  373. data/ext/ffi_c/libffi/testsuite/libffi.call/struct4.c +0 -64
  374. data/ext/ffi_c/libffi/testsuite/libffi.call/struct5.c +0 -66
  375. data/ext/ffi_c/libffi/testsuite/libffi.call/struct6.c +0 -64
  376. data/ext/ffi_c/libffi/testsuite/libffi.call/struct7.c +0 -74
  377. data/ext/ffi_c/libffi/testsuite/libffi.call/struct8.c +0 -81
  378. data/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c +0 -68
  379. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_2.c +0 -63
  380. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3.c +0 -65
  381. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3f.c +0 -65
  382. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4.c +0 -67
  383. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4f.c +0 -67
  384. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_big.c +0 -93
  385. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_small.c +0 -61
  386. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_return_2H.c +0 -63
  387. data/ext/ffi_c/libffi/testsuite/libffi.call/struct_return_8H.c +0 -90
  388. data/ext/ffi_c/libffi/testsuite/libffi.call/uninitialized.c +0 -61
  389. data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +0 -78
  390. data/ext/ffi_c/libffi/testsuite/libffi.call/va_2.c +0 -220
  391. data/ext/ffi_c/libffi/testsuite/libffi.call/va_3.c +0 -154
  392. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +0 -134
  393. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +0 -134
  394. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +0 -140
  395. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp +0 -67
  396. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn0.c +0 -90
  397. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn1.c +0 -83
  398. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn2.c +0 -83
  399. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn3.c +0 -102
  400. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn4.c +0 -91
  401. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn5.c +0 -94
  402. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn6.c +0 -92
  403. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_loc_fn0.c +0 -96
  404. data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_simple.c +0 -61
  405. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_12byte.c +0 -112
  406. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_16byte.c +0 -117
  407. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_18byte.c +0 -120
  408. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_19byte.c +0 -131
  409. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_1_1byte.c +0 -93
  410. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte.c +0 -109
  411. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte1.c +0 -113
  412. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_24byte.c +0 -145
  413. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_2byte.c +0 -103
  414. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3_1byte.c +0 -114
  415. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte1.c +0 -103
  416. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte2.c +0 -103
  417. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3float.c +0 -113
  418. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4_1byte.c +0 -120
  419. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4byte.c +0 -103
  420. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5_1_byte.c +0 -137
  421. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5byte.c +0 -116
  422. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_64byte.c +0 -148
  423. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6_1_byte.c +0 -140
  424. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6byte.c +0 -121
  425. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7_1_byte.c +0 -155
  426. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7byte.c +0 -121
  427. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_8byte.c +0 -102
  428. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte1.c +0 -103
  429. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte2.c +0 -103
  430. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_double.c +0 -111
  431. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_float.c +0 -109
  432. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble.c +0 -111
  433. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split.c +0 -147
  434. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split2.c +0 -152
  435. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_pointer.c +0 -113
  436. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint16.c +0 -108
  437. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint32.c +0 -106
  438. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint64.c +0 -109
  439. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint16.c +0 -108
  440. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint32.c +0 -109
  441. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint64.c +0 -111
  442. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_dbls_struct.c +0 -68
  443. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double.c +0 -43
  444. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double_va.c +0 -69
  445. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_float.c +0 -46
  446. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble.c +0 -115
  447. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble_va.c +0 -80
  448. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_args.c +0 -70
  449. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_float_double.c +0 -55
  450. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_schar.c +0 -78
  451. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshort.c +0 -79
  452. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshortchar.c +0 -94
  453. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_uchar.c +0 -99
  454. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushort.c +0 -78
  455. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushortchar.c +0 -94
  456. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer.c +0 -79
  457. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer_stack.c +0 -152
  458. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_schar.c +0 -47
  459. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sint.c +0 -44
  460. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sshort.c +0 -45
  461. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_struct_va1.c +0 -125
  462. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar.c +0 -45
  463. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint.c +0 -47
  464. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint_va.c +0 -49
  465. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulong_va.c +0 -49
  466. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulonglong.c +0 -49
  467. data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort.c +0 -46
  468. data/ext/ffi_c/libffi/testsuite/libffi.closures/err_bad_abi.c +0 -36
  469. data/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +0 -1
  470. data/ext/ffi_c/libffi/testsuite/libffi.closures/huge_struct.c +0 -343
  471. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct.c +0 -175
  472. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct1.c +0 -161
  473. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct10.c +0 -146
  474. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct11.c +0 -137
  475. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct12.c +0 -86
  476. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct13.c +0 -115
  477. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct2.c +0 -119
  478. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct3.c +0 -120
  479. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct4.c +0 -120
  480. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct5.c +0 -121
  481. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct6.c +0 -142
  482. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct7.c +0 -120
  483. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct8.c +0 -142
  484. data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct9.c +0 -142
  485. data/ext/ffi_c/libffi/testsuite/libffi.closures/problem1.c +0 -90
  486. data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs1.c +0 -86
  487. data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs2.c +0 -102
  488. data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs3.c +0 -101
  489. data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_large.c +0 -145
  490. data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_large2.c +0 -148
  491. data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium.c +0 -124
  492. data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium2.c +0 -125
  493. data/ext/ffi_c/libffi/testsuite/libffi.closures/testclosure.c +0 -75
  494. data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest.cc +0 -118
  495. data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest_ffi_call.cc +0 -55
  496. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc +0 -91
  497. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c +0 -10
  498. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c +0 -10
  499. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_longdouble.c +0 -10
  500. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex.inc +0 -42
  501. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_double.c +0 -10
  502. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_float.c +0 -10
  503. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_longdouble.c +0 -10
  504. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct.inc +0 -71
  505. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_double.c +0 -10
  506. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_float.c +0 -10
  507. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_longdouble.c +0 -10
  508. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va.inc +0 -80
  509. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_double.c +0 -10
  510. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_float.c +0 -16
  511. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_longdouble.c +0 -10
  512. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.exp +0 -36
  513. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.inc +0 -51
  514. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_double.inc +0 -7
  515. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_float.inc +0 -7
  516. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_longdouble.inc +0 -7
  517. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_double.c +0 -10
  518. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_float.c +0 -10
  519. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_int.c +0 -86
  520. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_longdouble.c +0 -10
  521. data/ext/ffi_c/libffi/testsuite/libffi.complex/ffitest.h +0 -1
  522. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex.inc +0 -78
  523. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_double.c +0 -10
  524. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_float.c +0 -10
  525. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_longdouble.c +0 -10
  526. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex.inc +0 -37
  527. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1.inc +0 -41
  528. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_double.c +0 -10
  529. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_float.c +0 -10
  530. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_longdouble.c +0 -10
  531. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2.inc +0 -44
  532. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_double.c +0 -10
  533. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_float.c +0 -10
  534. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_longdouble.c +0 -10
  535. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_double.c +0 -10
  536. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_float.c +0 -10
  537. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_longdouble.c +0 -10
  538. data/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c +0 -34
  539. data/ext/ffi_c/libffi/testsuite/libffi.go/closure1.c +0 -28
  540. data/ext/ffi_c/libffi/testsuite/libffi.go/ffitest.h +0 -1
  541. data/ext/ffi_c/libffi/testsuite/libffi.go/go.exp +0 -36
  542. data/ext/ffi_c/libffi/testsuite/libffi.go/static-chain.h +0 -19
  543. data/ext/ffi_c/libffi.bsd.mk +0 -40
  544. data/ext/ffi_c/libffi.darwin.mk +0 -105
  545. data/ext/ffi_c/libffi.gnu.mk +0 -32
  546. data/ext/ffi_c/libffi.mk +0 -18
  547. data/ext/ffi_c/libffi.vc.mk +0 -26
  548. data/ext/ffi_c/libffi.vc64.mk +0 -26
  549. data/ext/ffi_c/rbffi.h +0 -55
  550. data/ext/ffi_c/rbffi_endian.h +0 -59
@@ -1,682 +0,0 @@
1
- # Copyright (C) 2003, 2005, 2008, 2009, 2010, 2011, 2014, 2019, 2022 Free Software Foundation, Inc.
2
-
3
- # This program is free software; you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation; either version 3 of the License, or
6
- # (at your option) any later version.
7
- #
8
- # This program is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
- #
13
- # You should have received a copy of the GNU General Public License
14
- # along with this program; see the file COPYING3. If not see
15
- # <http://www.gnu.org/licenses/>.
16
-
17
- proc load_gcc_lib { filename } {
18
- global srcdir
19
- load_file $srcdir/lib/$filename
20
- }
21
-
22
- load_lib dg.exp
23
- load_lib libgloss.exp
24
- load_gcc_lib target-libpath.exp
25
- load_gcc_lib wrapper.exp
26
-
27
- proc check_effective_target_gccbug { } {
28
- global has_gccbug
29
- return $has_gccbug
30
- }
31
-
32
- # Return 1 if the target matches the effective target 'arg', 0 otherwise.
33
- # This can be used with any check_* proc that takes no argument and
34
- # returns only 1 or 0. It could be used with check_* procs that take
35
- # arguments with keywords that pass particular arguments.
36
-
37
- proc is-effective-target { arg } {
38
- global et_index
39
- set selected 0
40
- if { ![info exists et_index] } {
41
- # Initialize the effective target index that is used in some
42
- # check_effective_target_* procs.
43
- set et_index 0
44
- }
45
- if { [info procs check_effective_target_${arg}] != [list] } {
46
- set selected [check_effective_target_${arg}]
47
- } else {
48
- error "unknown effective target keyword `$arg'"
49
- }
50
- verbose "is-effective-target: $arg $selected" 2
51
- return $selected
52
- }
53
-
54
- proc is-effective-target-keyword { arg } {
55
- if { [info procs check_effective_target_${arg}] != [list] } {
56
- return 1
57
- } else {
58
- return 0
59
- }
60
- }
61
-
62
- # Intercept the call to the DejaGnu version of dg-process-target to
63
- # support use of an effective-target keyword in place of a list of
64
- # target triplets to xfail or skip a test.
65
- #
66
- # The argument to dg-process-target is the keyword "target" or "xfail"
67
- # followed by a selector:
68
- # target-triplet-1 ...
69
- # effective-target-keyword
70
- # selector-expression
71
- #
72
- # For a target list the result is "S" if the target is selected, "N" otherwise.
73
- # For an xfail list the result is "F" if the target is affected, "P" otherwise.
74
-
75
- # In contexts that allow either "target" or "xfail" the argument can be
76
- # target selector1 xfail selector2
77
- # which returns "N" if selector1 is not selected, otherwise the result of
78
- # "xfail selector2".
79
- #
80
- # A selector expression appears within curly braces and uses a single logical
81
- # operator: !, &&, or ||. An operand is another selector expression, an
82
- # effective-target keyword, or a list of target triplets within quotes or
83
- # curly braces.
84
-
85
- if { [info procs saved-dg-process-target] == [list] } {
86
- rename dg-process-target saved-dg-process-target
87
-
88
- # Evaluate an operand within a selector expression.
89
- proc selector_opd { op } {
90
- set selector "target"
91
- lappend selector $op
92
- set answer [ expr { [dg-process-target $selector] == "S" } ]
93
- verbose "selector_opd: `$op' $answer" 2
94
- return $answer
95
- }
96
-
97
- # Evaluate a target triplet list within a selector expression.
98
- # Unlike other operands, this needs to be expanded from a list to
99
- # the same string as "target".
100
- proc selector_list { op } {
101
- set selector "target [join $op]"
102
- set answer [ expr { [dg-process-target $selector] == "S" } ]
103
- verbose "selector_list: `$op' $answer" 2
104
- return $answer
105
- }
106
-
107
- # Evaluate a selector expression.
108
- proc selector_expression { exp } {
109
- if { [llength $exp] == 2 } {
110
- if [string match "!" [lindex $exp 0]] {
111
- set op1 [lindex $exp 1]
112
- set answer [expr { ! [selector_opd $op1] }]
113
- } else {
114
- # Assume it's a list of target triplets.
115
- set answer [selector_list $exp]
116
- }
117
- } elseif { [llength $exp] == 3 } {
118
- set op1 [lindex $exp 0]
119
- set opr [lindex $exp 1]
120
- set op2 [lindex $exp 2]
121
- if [string match "&&" $opr] {
122
- set answer [expr { [selector_opd $op1] && [selector_opd $op2] }]
123
- } elseif [string match "||" $opr] {
124
- set answer [expr { [selector_opd $op1] || [selector_opd $op2] }]
125
- } else {
126
- # Assume it's a list of target triplets.
127
- set answer [selector_list $exp]
128
- }
129
- } else {
130
- # Assume it's a list of target triplets.
131
- set answer [selector_list $exp]
132
- }
133
-
134
- verbose "selector_expression: `$exp' $answer" 2
135
- return $answer
136
- }
137
-
138
- # Evaluate "target selector" or "xfail selector".
139
-
140
- proc dg-process-target-1 { args } {
141
- verbose "dg-process-target-1: `$args'" 2
142
-
143
- # Extract the 'what' keyword from the argument list.
144
- set selector [string trim [lindex $args 0]]
145
- if [regexp "^xfail " $selector] {
146
- set what "xfail"
147
- } elseif [regexp "^target " $selector] {
148
- set what "target"
149
- } else {
150
- error "syntax error in target selector \"$selector\""
151
- }
152
-
153
- # Extract the rest of the list, which might be a keyword.
154
- regsub "^${what}" $selector "" rest
155
- set rest [string trim $rest]
156
-
157
- if [is-effective-target-keyword $rest] {
158
- # The selector is an effective target keyword.
159
- if [is-effective-target $rest] {
160
- return [expr { $what == "xfail" ? "F" : "S" }]
161
- } else {
162
- return [expr { $what == "xfail" ? "P" : "N" }]
163
- }
164
- }
165
-
166
- if [string match "{*}" $rest] {
167
- if [selector_expression [lindex $rest 0]] {
168
- return [expr { $what == "xfail" ? "F" : "S" }]
169
- } else {
170
- return [expr { $what == "xfail" ? "P" : "N" }]
171
- }
172
- }
173
-
174
- # The selector is not an effective-target keyword, so process
175
- # the list of target triplets.
176
- return [saved-dg-process-target $selector]
177
- }
178
-
179
- # Intercept calls to the DejaGnu function. In addition to
180
- # processing "target selector" or "xfail selector", handle
181
- # "target selector1 xfail selector2".
182
-
183
- proc dg-process-target { args } {
184
- verbose "replacement dg-process-target: `$args'" 2
185
-
186
- set selector [string trim [lindex $args 0]]
187
-
188
- # If the argument list contains both 'target' and 'xfail',
189
- # process 'target' and, if that succeeds, process 'xfail'.
190
- if [regexp "^target .* xfail .*" $selector] {
191
- set xfail_index [string first "xfail" $selector]
192
- set xfail_selector [string range $selector $xfail_index end]
193
- set target_selector [string range $selector 0 [expr $xfail_index-1]]
194
- set target_selector [string trim $target_selector]
195
- if { [dg-process-target-1 $target_selector] == "N" } {
196
- return "N"
197
- }
198
- return [dg-process-target-1 $xfail_selector]
199
-
200
- }
201
- return [dg-process-target-1 $selector]
202
- }
203
- }
204
-
205
- # Define libffi callbacks for dg.exp.
206
-
207
- proc libffi-dg-test-1 { target_compile prog do_what extra_tool_flags } {
208
-
209
- # To get all \n in dg-output test strings to match printf output
210
- # in a system that outputs it as \015\012 (i.e. not just \012), we
211
- # need to change all \n into \r?\n. As there is no dejagnu flag
212
- # or hook to do that, we simply change the text being tested.
213
- # Unfortunately, we have to know that the variable is called
214
- # dg-output-text and lives in the caller of libffi-dg-test, which
215
- # is two calls up. Overriding proc dg-output would be longer and
216
- # would necessarily have the same assumption.
217
- upvar 2 dg-output-text output_match
218
-
219
- if { [llength $output_match] > 1 } {
220
- regsub -all "\n" [lindex $output_match 1] "\r?\n" x
221
- set output_match [lreplace $output_match 1 1 $x]
222
- }
223
-
224
- if { [ istarget "wasm32-*-*" ] } {
225
- # emscripten will get confused if told to build as .exe
226
- set exec_suffix ""
227
- } else {
228
- set exec_suffix ".exe"
229
- }
230
-
231
- # Set up the compiler flags, based on what we're going to do.
232
-
233
- set options [list]
234
- switch $do_what {
235
- "compile" {
236
- set compile_type "assembly"
237
- set output_file "[file rootname [file tail $prog]].s"
238
- }
239
- "link" {
240
- set compile_type "executable"
241
- set output_file "[file rootname [file tail $prog]]$exec_suffix"
242
- # The following line is needed for targets like the i960 where
243
- # the default output file is b.out. Sigh.
244
- }
245
- "run" {
246
- set compile_type "executable"
247
- # FIXME: "./" is to cope with "." not being in $PATH.
248
- # Should this be handled elsewhere?
249
- # YES.
250
- set output_file "./[file rootname [file tail $prog]]$exec_suffix"
251
- # This is the only place where we care if an executable was
252
- # created or not. If it was, dg.exp will try to run it.
253
- remote_file build delete $output_file;
254
- }
255
- default {
256
- perror "$do_what: not a valid dg-do keyword"
257
- return ""
258
- }
259
- }
260
-
261
- if { $extra_tool_flags != "" } {
262
- lappend options "additional_flags=$extra_tool_flags"
263
- }
264
-
265
- set comp_output [libffi_target_compile "$prog" "$output_file" "$compile_type" $options];
266
-
267
-
268
- return [list $comp_output $output_file]
269
- }
270
-
271
-
272
- proc libffi-dg-test { prog do_what extra_tool_flags } {
273
- return [libffi-dg-test-1 target_compile $prog $do_what $extra_tool_flags]
274
- }
275
-
276
- proc libffi-dg-prune { target_triplet text } {
277
- # We get this with some qemu emulated systems (eg. ppc64le-linux-gnu)
278
- regsub -all "(^|\n)\[^\n\]*unable to perform all requested operations" $text "" text
279
- # We get this from sparc64 linux systems
280
- regsub -all "(^|\n)\[^\n\]*warning: .* has a LOAD segment with RWX permissions" $text "" text
281
- # Ignore Emscripten INFO messages
282
- regsub -all "(^|\n)(cache|shared):INFO:\[^\n\]*" $text "" text
283
- return $text
284
- }
285
-
286
- proc libffi-init { args } {
287
- global gluefile wrap_flags;
288
- global srcdir
289
- global blddirffi
290
- global objdir
291
- global TOOL_OPTIONS
292
- global tool
293
- global libffi_include
294
- global libffi_link_flags
295
- global tool_root_dir
296
- global ld_library_path
297
- global compiler_vendor
298
-
299
- if ![info exists blddirffi] {
300
- set blddirffi [pwd]/..
301
- }
302
-
303
- verbose "libffi $blddirffi"
304
-
305
- # Which compiler are we building with?
306
- if { [string match $compiler_vendor "gnu"] } {
307
- set gccdir [lookfor_file $tool_root_dir gcc/libgcc.a]
308
- if {$gccdir != ""} {
309
- set gccdir [file dirname $gccdir]
310
- }
311
- verbose "gccdir $gccdir"
312
-
313
- set ld_library_path "."
314
- append ld_library_path ":${gccdir}"
315
-
316
- set compiler "${gccdir}/xgcc"
317
- if { [is_remote host] == 0 && [which $compiler] != 0 } {
318
- foreach i "[exec $compiler --print-multi-lib]" {
319
- set mldir ""
320
- regexp -- "\[a-z0-9=_/\.-\]*;" $i mldir
321
- set mldir [string trimright $mldir "\;@"]
322
- if { "$mldir" == "." } {
323
- continue
324
- }
325
- if { [llength [glob -nocomplain ${gccdir}/${mldir}/libgcc_s*.so.*]] >= 1 } {
326
- append ld_library_path ":${gccdir}/${mldir}"
327
- }
328
- }
329
- }
330
- }
331
-
332
- # add the library path for libffi.
333
- append ld_library_path ":${blddirffi}/.libs"
334
-
335
- verbose "ld_library_path: $ld_library_path"
336
-
337
- # Point to the Libffi headers in libffi.
338
- set libffi_include "${blddirffi}/include"
339
- verbose "libffi_include $libffi_include"
340
-
341
- set libffi_dir "${blddirffi}/.libs"
342
- verbose "libffi_dir $libffi_dir"
343
- if { $libffi_dir != "" } {
344
- set libffi_dir [file dirname ${libffi_dir}]
345
- set libffi_link_flags "-L${libffi_dir}/.libs"
346
- }
347
-
348
- set_ld_library_path_env_vars
349
- libffi_maybe_build_wrapper "${objdir}/testglue.o"
350
- }
351
-
352
- proc libffi_exit { } {
353
- global gluefile;
354
-
355
- if [info exists gluefile] {
356
- file_on_build delete $gluefile;
357
- unset gluefile;
358
- }
359
- }
360
-
361
- proc libffi_target_compile { source dest type options } {
362
- global gluefile wrap_flags;
363
- global srcdir
364
- global blddirffi
365
- global TOOL_OPTIONS
366
- global libffi_link_flags
367
- global libffi_include
368
- global target_triplet
369
- global compiler_vendor
370
-
371
- if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
372
- lappend options "libs=${gluefile}"
373
- lappend options "ldflags=$wrap_flags"
374
- }
375
-
376
- # TOOL_OPTIONS must come first, so that it doesn't override testcase
377
- # specific options.
378
- if [info exists TOOL_OPTIONS] {
379
- lappend options "additional_flags=$TOOL_OPTIONS"
380
- }
381
-
382
- # search for ffi_mips.h in srcdir, too
383
- lappend options "additional_flags=-I${libffi_include} -I${srcdir}/../include -I${libffi_include}/.."
384
- lappend options "additional_flags=${libffi_link_flags}"
385
-
386
- # Darwin needs a stack execution allowed flag.
387
-
388
- if { [istarget "*-*-darwin9*"] || [istarget "*-*-darwin1*"]
389
- || [istarget "*-*-darwin2*"] } {
390
- # lappend options "additional_flags=-Wl,-allow_stack_execute"
391
- lappend options "additional_flags=-Wno-unused-command-line-argument"
392
- lappend options "additional_flags=-Wl,-search_paths_first"
393
- }
394
-
395
- # If you're building the compiler with --prefix set to a place
396
- # where it's not yet installed, then the linker won't be able to
397
- # find the libgcc used by libffi.dylib. We could pass the
398
- # -dylib_file option, but that's complicated, and it's much easier
399
- # to just make the linker find libgcc using -L options.
400
- if { [string match "*-*-darwin*" $target_triplet] } {
401
- lappend options "libs= -shared-libgcc"
402
- }
403
-
404
- if { [string match "*-*-openbsd*" $target_triplet] } {
405
- lappend options "libs= -lpthread"
406
- }
407
-
408
- lappend options "libs= -lffi"
409
-
410
- if { ![string match "*android*" $target_triplet] } {
411
-
412
- if { [string match "aarch64*-*-linux*" $target_triplet] } {
413
- lappend options "libs= -lpthread"
414
- }
415
-
416
- # this may be required for g++, but just confused clang.
417
- if { [string match "*.cc" $source] } {
418
- lappend options "c++"
419
- if { [string match "*-*-darwin*" $target_triplet] } {
420
- lappend options "libs= -lc++"
421
- }
422
- }
423
-
424
- if { [string match "arc*-*-linux*" $target_triplet] } {
425
- lappend options "libs= -lpthread"
426
- }
427
- }
428
-
429
- # emscripten emits this warning while building the feature test
430
- # which causes it to be seen as unsupported.
431
- if { [string match "wasm32-*" $target_triplet] } {
432
- lappend options "additional_flags=-Wno-unused-command-line-argument"
433
- }
434
-
435
- verbose "options: $options"
436
- return [target_compile $source $dest $type $options]
437
- }
438
-
439
- # TEST should be a preprocessor condition. Returns true if it holds.
440
- proc libffi_feature_test { test } {
441
- set src "ffitest[pid].c"
442
-
443
- set f [open $src "w"]
444
- puts $f "#include <ffi.h>"
445
- puts $f $test
446
- puts $f "/* OK */"
447
- puts $f "#else"
448
- puts $f "# error Failed $test"
449
- puts $f "#endif"
450
- close $f
451
-
452
- set lines [libffi_target_compile $src /dev/null assembly ""]
453
- file delete $src
454
-
455
- return [string match "" $lines]
456
- }
457
-
458
- # Utility routines.
459
-
460
- #
461
- # search_for -- looks for a string match in a file
462
- #
463
- proc search_for { file pattern } {
464
- set fd [open $file r]
465
- while { [gets $fd cur_line]>=0 } {
466
- if [string match "*$pattern*" $cur_line] then {
467
- close $fd
468
- return 1
469
- }
470
- }
471
- close $fd
472
- return 0
473
- }
474
-
475
- # Modified dg-runtest that can cycle through a list of optimization options
476
- # as c-torture does.
477
- proc libffi-dg-runtest { testcases default-extra-flags } {
478
- global runtests
479
-
480
- foreach test $testcases {
481
- # If we're only testing specific files and this isn't one of
482
- # them, skip it.
483
- if ![runtest_file_p $runtests $test] {
484
- continue
485
- }
486
-
487
- # Look for a loop within the source code - if we don't find one,
488
- # don't pass -funroll[-all]-loops.
489
- global torture_with_loops torture_without_loops
490
- if [expr [search_for $test "for*("]+[search_for $test "while*("]] {
491
- set option_list $torture_with_loops
492
- } else {
493
- set option_list $torture_without_loops
494
- }
495
-
496
- set nshort [file tail [file dirname $test]]/[file tail $test]
497
-
498
- foreach flags $option_list {
499
- verbose "Testing $nshort, $flags" 1
500
- dg-test $test $flags ${default-extra-flags}
501
- }
502
- }
503
- }
504
-
505
- proc run-many-tests { testcases extra_flags } {
506
- global compiler_vendor
507
- global has_gccbug
508
- global env
509
- switch $compiler_vendor {
510
- "clang" {
511
- set common "-W -Wall"
512
- if [info exists env(LIBFFI_TEST_OPTIMIZATION)] {
513
- set optimizations [ list $env(LIBFFI_TEST_OPTIMIZATION) ]
514
- } else {
515
- set optimizations { "-O0" "-O2" }
516
- }
517
- }
518
- "gnu" {
519
- set common "-W -Wall -Wno-psabi"
520
- if [info exists env(LIBFFI_TEST_OPTIMIZATION)] {
521
- set optimizations [ list $env(LIBFFI_TEST_OPTIMIZATION) ]
522
- } else {
523
- set optimizations { "-O0" "-O2" }
524
- }
525
- }
526
- default {
527
- # Assume we are using the vendor compiler.
528
- set common ""
529
- if [info exists env(LIBFFI_TEST_OPTIMIZATION)] {
530
- set optimizations [ list $env(LIBFFI_TEST_OPTIMIZATION) ]
531
- } else {
532
- set optimizations { "" }
533
- }
534
- }
535
- }
536
-
537
- info exists env(LD_LIBRARY_PATH)
538
-
539
- set targetabis { "" }
540
- if [string match $compiler_vendor "gnu"] {
541
- if [libffi_feature_test "#ifdef __i386__"] {
542
- set targetabis {
543
- ""
544
- "-DABI_NUM=FFI_STDCALL -DABI_ATTR=__STDCALL__"
545
- "-DABI_NUM=FFI_THISCALL -DABI_ATTR=__THISCALL__"
546
- "-DABI_NUM=FFI_FASTCALL -DABI_ATTR=__FASTCALL__"
547
- }
548
- } elseif { [istarget "x86_64-*-*"] \
549
- && [libffi_feature_test "#if !defined __ILP32__ \
550
- && !defined __i386__"] } {
551
- set targetabis {
552
- ""
553
- "-DABI_NUM=FFI_GNUW64 -DABI_ATTR=__MSABI__"
554
- }
555
- }
556
- }
557
-
558
- set common [ concat $common $extra_flags ]
559
- foreach test $testcases {
560
- set testname [file tail $test]
561
- if [search_for $test "ABI_NUM"] {
562
- set abis $targetabis
563
- } else {
564
- set abis { "" }
565
- }
566
- foreach opt $optimizations {
567
- foreach abi $abis {
568
- set options [concat $common $opt $abi]
569
- set has_gccbug false;
570
- if { [string match $compiler_vendor "gnu"] \
571
- && [string match "*MSABI*" $abi] \
572
- && ( ( [string match "*DGTEST=57 *" $common] \
573
- && [string match "*call.c*" $testname] ) \
574
- || ( [string match "*DGTEST=54 *" $common] \
575
- && [string match "*callback*" $testname] ) \
576
- || [string match "*DGTEST=55 *" $common] \
577
- || [string match "*DGTEST=56 *" $common] ) } then {
578
- if [libffi_feature_test "#if (__GNUC__ < 9) || ((__GNUC__ == 9) && (__GNUC_MINOR__ < 3))"] {
579
- set has_gccbug true;
580
- }
581
- }
582
- verbose "Testing $testname, $options" 1
583
- verbose "has_gccbug = $has_gccbug" 1
584
- dg-test $test $options ""
585
- }
586
- }
587
- }
588
- }
589
-
590
- # Like check_conditional_xfail, but callable from a dg test.
591
-
592
- proc dg-xfail-if { args } {
593
- set args [lreplace $args 0 0]
594
- set selector "target [join [lindex $args 1]]"
595
- if { [dg-process-target $selector] == "S" } {
596
- global compiler_conditional_xfail_data
597
- set compiler_conditional_xfail_data $args
598
- }
599
- }
600
-
601
- proc check-flags { args } {
602
-
603
- # The args are within another list; pull them out.
604
- set args [lindex $args 0]
605
-
606
- # The next two arguments are optional. If they were not specified,
607
- # use the defaults.
608
- if { [llength $args] == 2 } {
609
- lappend $args [list "*"]
610
- }
611
- if { [llength $args] == 3 } {
612
- lappend $args [list ""]
613
- }
614
-
615
- # If the option strings are the defaults, or the same as the
616
- # defaults, there is no need to call check_conditional_xfail to
617
- # compare them to the actual options.
618
- if { [string compare [lindex $args 2] "*"] == 0
619
- && [string compare [lindex $args 3] "" ] == 0 } {
620
- set result 1
621
- } else {
622
- # The target list might be an effective-target keyword, so replace
623
- # the original list with "*-*-*", since we already know it matches.
624
- set result [check_conditional_xfail [lreplace $args 1 1 "*-*-*"]]
625
- }
626
-
627
- return $result
628
- }
629
-
630
- proc dg-skip-if { args } {
631
- # Verify the number of arguments. The last two are optional.
632
- set args [lreplace $args 0 0]
633
- if { [llength $args] < 2 || [llength $args] > 4 } {
634
- error "dg-skip-if 2: need 2, 3, or 4 arguments"
635
- }
636
-
637
- # Don't bother if we're already skipping the test.
638
- upvar dg-do-what dg-do-what
639
- if { [lindex ${dg-do-what} 1] == "N" } {
640
- return
641
- }
642
-
643
- set selector [list target [lindex $args 1]]
644
- if { [dg-process-target $selector] == "S" } {
645
- if [check-flags $args] {
646
- upvar dg-do-what dg-do-what
647
- set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
648
- }
649
- }
650
- }
651
-
652
- # We need to make sure that additional_files and additional_sources
653
- # are both cleared out after every test. It is not enough to clear
654
- # them out *before* the next test run because gcc-target-compile gets
655
- # run directly from some .exp files (outside of any test). (Those
656
- # uses should eventually be eliminated.)
657
-
658
- # Because the DG framework doesn't provide a hook that is run at the
659
- # end of a test, we must replace dg-test with a wrapper.
660
-
661
- if { [info procs saved-dg-test] == [list] } {
662
- rename dg-test saved-dg-test
663
-
664
- proc dg-test { args } {
665
- global additional_files
666
- global additional_sources
667
- global errorInfo
668
-
669
- if { [ catch { eval saved-dg-test $args } errmsg ] } {
670
- set saved_info $errorInfo
671
- set additional_files ""
672
- set additional_sources ""
673
- error $errmsg $saved_info
674
- }
675
- set additional_files ""
676
- set additional_sources ""
677
- }
678
- }
679
-
680
- # Local Variables:
681
- # tcl-indent-level:4
682
- # End: