ffi 1.9.18 → 1.9.21

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ffi might be problematic. Click here for more details.

Files changed (366) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/Rakefile +14 -3
  4. data/ext/ffi_c/AbstractMemory.c +6 -1
  5. data/ext/ffi_c/Platform.c +10 -2
  6. data/ext/ffi_c/extconf.rb +7 -2
  7. data/ext/ffi_c/libffi.bsd.mk +9 -3
  8. data/ext/ffi_c/libffi.darwin.mk +14 -4
  9. data/ext/ffi_c/libffi.gnu.mk +2 -1
  10. data/ext/ffi_c/libffi.mk +9 -4
  11. data/ext/ffi_c/libffi/ChangeLog.libffi +2 -2
  12. data/ext/ffi_c/libffi/{ChangeLog → ChangeLog.libffi-3.1} +1402 -2
  13. data/ext/ffi_c/libffi/ChangeLog.v1 +1 -1
  14. data/ext/ffi_c/libffi/LICENSE +1 -1
  15. data/ext/ffi_c/libffi/Makefile.am +166 -157
  16. data/ext/ffi_c/libffi/README +164 -52
  17. data/ext/ffi_c/libffi/acinclude.m4 +381 -0
  18. data/ext/ffi_c/libffi/autogen.sh +2 -0
  19. data/ext/ffi_c/libffi/configure.ac +148 -256
  20. data/ext/ffi_c/libffi/configure.host +265 -4
  21. data/ext/ffi_c/libffi/doc/Makefile.am +3 -0
  22. data/ext/ffi_c/libffi/doc/libffi.texi +430 -45
  23. data/ext/ffi_c/libffi/doc/version.texi +4 -4
  24. data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +207 -0
  25. data/ext/ffi_c/libffi/include/Makefile.am +3 -3
  26. data/ext/ffi_c/libffi/include/ffi.h.in +107 -50
  27. data/ext/ffi_c/libffi/include/ffi_cfi.h +55 -0
  28. data/ext/ffi_c/libffi/include/ffi_common.h +32 -11
  29. data/ext/ffi_c/libffi/libffi.map.in +80 -0
  30. data/ext/ffi_c/libffi/libffi.pc.in +3 -2
  31. data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +637 -0
  32. data/ext/ffi_c/libffi/libtool-ldflags +106 -0
  33. data/ext/ffi_c/libffi/libtool-version +1 -1
  34. data/ext/ffi_c/libffi/m4/asmcfi.m4 +13 -0
  35. data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +69 -0
  36. data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +13 -8
  37. data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +31 -104
  38. data/ext/ffi_c/libffi/m4/{ax_check_compiler_flags.m4 → ax_check_compile_flag.m4} +30 -34
  39. data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +32 -11
  40. data/ext/ffi_c/libffi/m4/ax_enable_builddir.m4 +6 -5
  41. data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +31 -21
  42. data/ext/ffi_c/libffi/man/Makefile.am +2 -2
  43. data/ext/ffi_c/libffi/man/ffi.3 +10 -0
  44. data/ext/ffi_c/libffi/man/ffi_prep_cif.3 +6 -4
  45. data/ext/ffi_c/libffi/man/ffi_prep_cif_var.3 +73 -0
  46. data/ext/ffi_c/libffi/msvcc.sh +72 -9
  47. data/ext/ffi_c/libffi/src/aarch64/ffi.c +941 -0
  48. data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +81 -0
  49. data/ext/ffi_c/libffi/src/aarch64/internal.h +67 -0
  50. data/ext/ffi_c/libffi/src/aarch64/sysv.S +438 -0
  51. data/ext/ffi_c/libffi/src/alpha/ffi.c +335 -98
  52. data/ext/ffi_c/libffi/src/alpha/ffitarget.h +10 -1
  53. data/ext/ffi_c/libffi/src/alpha/internal.h +23 -0
  54. data/ext/ffi_c/libffi/src/alpha/osf.S +161 -266
  55. data/ext/ffi_c/libffi/src/arc/arcompact.S +135 -0
  56. data/ext/ffi_c/libffi/src/arc/ffi.c +266 -0
  57. data/ext/ffi_c/libffi/src/arc/ffitarget.h +53 -0
  58. data/ext/ffi_c/libffi/src/arm/ffi.c +597 -517
  59. data/ext/ffi_c/libffi/src/arm/ffitarget.h +24 -7
  60. data/ext/ffi_c/libffi/src/arm/internal.h +7 -0
  61. data/ext/ffi_c/libffi/src/arm/sysv.S +303 -417
  62. data/ext/ffi_c/libffi/src/avr32/ffitarget.h +6 -1
  63. data/ext/ffi_c/libffi/src/bfin/ffi.c +196 -0
  64. data/ext/ffi_c/libffi/src/bfin/ffitarget.h +43 -0
  65. data/ext/ffi_c/libffi/src/bfin/sysv.S +179 -0
  66. data/ext/ffi_c/libffi/src/closures.c +319 -44
  67. data/ext/ffi_c/libffi/src/cris/ffi.c +10 -7
  68. data/ext/ffi_c/libffi/src/cris/ffitarget.h +6 -1
  69. data/ext/ffi_c/libffi/src/debug.c +6 -1
  70. data/ext/ffi_c/libffi/src/dlmalloc.c +16 -11
  71. data/ext/ffi_c/libffi/src/frv/ffi.c +1 -1
  72. data/ext/ffi_c/libffi/src/frv/ffitarget.h +6 -1
  73. data/ext/ffi_c/libffi/src/ia64/ffi.c +11 -7
  74. data/ext/ffi_c/libffi/src/ia64/ffitarget.h +6 -1
  75. data/ext/ffi_c/libffi/src/java_raw_api.c +23 -5
  76. data/ext/ffi_c/libffi/src/m32r/ffi.c +1 -1
  77. data/ext/ffi_c/libffi/src/m32r/ffitarget.h +6 -1
  78. data/ext/ffi_c/libffi/src/m68k/ffi.c +87 -13
  79. data/ext/ffi_c/libffi/src/m68k/ffitarget.h +6 -1
  80. data/ext/ffi_c/libffi/src/m68k/sysv.S +119 -32
  81. data/ext/ffi_c/libffi/src/m88k/ffi.c +400 -0
  82. data/ext/ffi_c/libffi/src/m88k/ffitarget.h +49 -0
  83. data/ext/ffi_c/libffi/src/m88k/obsd.S +209 -0
  84. data/ext/ffi_c/libffi/src/metag/ffi.c +330 -0
  85. data/ext/ffi_c/libffi/{fficonfig.hw → src/metag/ffitarget.h} +22 -26
  86. data/ext/ffi_c/libffi/src/metag/sysv.S +311 -0
  87. data/ext/ffi_c/libffi/src/microblaze/ffi.c +321 -0
  88. data/ext/ffi_c/libffi/src/microblaze/ffitarget.h +53 -0
  89. data/ext/ffi_c/libffi/src/microblaze/sysv.S +302 -0
  90. data/ext/ffi_c/libffi/src/mips/ffi.c +95 -28
  91. data/ext/ffi_c/libffi/src/mips/ffitarget.h +9 -2
  92. data/ext/ffi_c/libffi/src/mips/n32.S +126 -56
  93. data/ext/ffi_c/libffi/src/mips/o32.S +148 -27
  94. data/ext/ffi_c/libffi/src/moxie/eabi.S +55 -82
  95. data/ext/ffi_c/libffi/src/moxie/ffi.c +40 -44
  96. data/ext/ffi_c/libffi/src/moxie/ffitarget.h +52 -0
  97. data/ext/ffi_c/libffi/src/nios2/ffi.c +304 -0
  98. data/ext/ffi_c/libffi/src/nios2/ffitarget.h +52 -0
  99. data/ext/ffi_c/libffi/src/nios2/sysv.S +136 -0
  100. data/ext/ffi_c/libffi/src/or1k/ffi.c +328 -0
  101. data/ext/ffi_c/libffi/src/or1k/ffitarget.h +58 -0
  102. data/ext/ffi_c/libffi/src/or1k/sysv.S +107 -0
  103. data/ext/ffi_c/libffi/src/pa/ffitarget.h +8 -1
  104. data/ext/ffi_c/libffi/src/powerpc/aix.S +6 -6
  105. data/ext/ffi_c/libffi/src/powerpc/aix_closure.S +3 -1
  106. data/ext/ffi_c/libffi/src/powerpc/asm.h +2 -2
  107. data/ext/ffi_c/libffi/src/powerpc/darwin.S +2 -7
  108. data/ext/ffi_c/libffi/src/powerpc/darwin_closure.S +22 -26
  109. data/ext/ffi_c/libffi/src/powerpc/ffi.c +103 -1378
  110. data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +25 -25
  111. data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +945 -0
  112. data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +94 -0
  113. data/ext/ffi_c/libffi/src/powerpc/ffi_sysv.c +923 -0
  114. data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +100 -44
  115. data/ext/ffi_c/libffi/src/powerpc/linux64.S +100 -59
  116. data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +360 -108
  117. data/ext/ffi_c/libffi/src/powerpc/ppc_closure.S +138 -68
  118. data/ext/ffi_c/libffi/src/powerpc/sysv.S +68 -112
  119. data/ext/ffi_c/libffi/src/prep_cif.c +108 -24
  120. data/ext/ffi_c/libffi/src/raw_api.c +18 -5
  121. data/ext/ffi_c/libffi/src/s390/ffi.c +294 -318
  122. data/ext/ffi_c/libffi/src/s390/ffitarget.h +9 -1
  123. data/ext/ffi_c/libffi/src/s390/internal.h +11 -0
  124. data/ext/ffi_c/libffi/src/s390/sysv.S +257 -366
  125. data/ext/ffi_c/libffi/src/sh/ffi.c +4 -3
  126. data/ext/ffi_c/libffi/src/sh/ffitarget.h +6 -1
  127. data/ext/ffi_c/libffi/src/sh64/ffi.c +3 -2
  128. data/ext/ffi_c/libffi/src/sh64/ffitarget.h +6 -1
  129. data/ext/ffi_c/libffi/src/sparc/ffi.c +326 -527
  130. data/ext/ffi_c/libffi/src/sparc/ffi64.c +608 -0
  131. data/ext/ffi_c/libffi/src/sparc/ffitarget.h +20 -7
  132. data/ext/ffi_c/libffi/src/sparc/internal.h +26 -0
  133. data/ext/ffi_c/libffi/src/sparc/v8.S +364 -234
  134. data/ext/ffi_c/libffi/src/sparc/v9.S +340 -207
  135. data/ext/ffi_c/libffi/src/tile/ffi.c +355 -0
  136. data/ext/ffi_c/libffi/src/tile/ffitarget.h +65 -0
  137. data/ext/ffi_c/libffi/src/tile/tile.S +360 -0
  138. data/ext/ffi_c/libffi/src/types.c +43 -14
  139. data/ext/ffi_c/libffi/src/vax/elfbsd.S +195 -0
  140. data/ext/ffi_c/libffi/src/vax/ffi.c +276 -0
  141. data/ext/ffi_c/libffi/src/vax/ffitarget.h +49 -0
  142. data/ext/ffi_c/libffi/src/x86/asmnames.h +30 -0
  143. data/ext/ffi_c/libffi/src/x86/ffi.c +589 -500
  144. data/ext/ffi_c/libffi/src/x86/ffi64.c +338 -116
  145. data/ext/ffi_c/libffi/src/x86/ffitarget.h +55 -35
  146. data/ext/ffi_c/libffi/src/x86/ffiw64.c +287 -0
  147. data/ext/ffi_c/libffi/src/x86/internal.h +29 -0
  148. data/ext/ffi_c/libffi/src/x86/internal64.h +22 -0
  149. data/ext/ffi_c/libffi/src/x86/sysv.S +975 -400
  150. data/ext/ffi_c/libffi/src/x86/unix64.S +398 -299
  151. data/ext/ffi_c/libffi/src/x86/win64.S +222 -458
  152. data/ext/ffi_c/libffi/src/x86/win64_intel.S +237 -0
  153. data/ext/ffi_c/libffi/src/xtensa/ffi.c +298 -0
  154. data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +53 -0
  155. data/ext/ffi_c/libffi/src/xtensa/sysv.S +253 -0
  156. data/ext/ffi_c/libffi/stamp-h.in +1 -0
  157. data/ext/ffi_c/libffi/testsuite/Makefile.am +78 -73
  158. data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +120 -25
  159. data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +21 -1
  160. data/ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c +46 -0
  161. data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +4 -6
  162. data/ext/ffi_c/libffi/testsuite/libffi.call/{closure_stdcall.c → closure_simple.c} +7 -16
  163. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_12byte.c +4 -4
  164. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_16byte.c +4 -4
  165. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_18byte.c +4 -4
  166. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_19byte.c +4 -4
  167. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_1_1byte.c +4 -4
  168. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte.c +4 -4
  169. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte1.c +4 -4
  170. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_24byte.c +5 -5
  171. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_2byte.c +4 -4
  172. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3_1byte.c +4 -4
  173. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte1.c +4 -4
  174. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte2.c +4 -4
  175. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_4_1byte.c +4 -4
  176. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_4byte.c +4 -4
  177. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_5_1_byte.c +4 -4
  178. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_5byte.c +4 -4
  179. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_64byte.c +5 -5
  180. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_6_1_byte.c +4 -4
  181. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_6byte.c +4 -4
  182. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_7_1_byte.c +4 -4
  183. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_7byte.c +4 -4
  184. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_8byte.c +4 -4
  185. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte1.c +4 -4
  186. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte2.c +4 -4
  187. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_double.c +4 -4
  188. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_float.c +4 -4
  189. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble.c +4 -4
  190. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split.c +4 -6
  191. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split2.c +4 -6
  192. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_pointer.c +4 -4
  193. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint16.c +4 -4
  194. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint32.c +4 -4
  195. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint64.c +4 -4
  196. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint16.c +4 -4
  197. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint32.c +4 -4
  198. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint64.c +4 -4
  199. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_dbls_struct.c +4 -4
  200. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_double_va.c +10 -9
  201. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble.c +3 -3
  202. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble_va.c +10 -9
  203. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_args.c +70 -0
  204. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_float_double.c +55 -0
  205. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer.c +1 -1
  206. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer_stack.c +11 -9
  207. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_struct_va1.c +114 -0
  208. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar_va.c +44 -0
  209. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uint_va.c +45 -0
  210. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulong_va.c +45 -0
  211. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulonglong.c +5 -5
  212. data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort_va.c +44 -0
  213. data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +2 -2
  214. data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +23 -40
  215. data/ext/ffi_c/libffi/testsuite/libffi.call/float1.c +3 -1
  216. data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +6 -4
  217. data/ext/ffi_c/libffi/testsuite/libffi.call/float3.c +4 -2
  218. data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +107 -0
  219. data/ext/ffi_c/libffi/testsuite/libffi.call/huge_struct.c +18 -19
  220. data/ext/ffi_c/libffi/testsuite/libffi.call/many.c +6 -16
  221. data/ext/ffi_c/libffi/testsuite/libffi.call/many2.c +57 -0
  222. data/ext/ffi_c/libffi/testsuite/libffi.call/many_double.c +70 -0
  223. data/ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c +78 -0
  224. data/ext/ffi_c/libffi/testsuite/libffi.call/negint.c +0 -1
  225. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c +6 -6
  226. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct1.c +8 -8
  227. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct10.c +6 -6
  228. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct11.c +121 -0
  229. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct2.c +5 -5
  230. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct3.c +5 -5
  231. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c +5 -5
  232. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct5.c +5 -5
  233. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct6.c +6 -6
  234. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct7.c +5 -5
  235. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct8.c +6 -6
  236. data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct9.c +6 -6
  237. data/ext/ffi_c/libffi/testsuite/libffi.call/offsets.c +46 -0
  238. data/ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c +127 -0
  239. data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c +1 -0
  240. data/ext/ffi_c/libffi/testsuite/libffi.call/return_ldl.c +1 -1
  241. data/ext/ffi_c/libffi/testsuite/libffi.call/return_sc.c +1 -1
  242. data/ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c +1 -1
  243. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_large.c +7 -7
  244. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_large2.c +7 -7
  245. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium.c +5 -5
  246. data/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium2.c +5 -5
  247. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +2 -2
  248. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +49 -0
  249. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +49 -0
  250. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +55 -0
  251. data/ext/ffi_c/libffi/testsuite/libffi.call/struct1.c +9 -7
  252. data/ext/ffi_c/libffi/testsuite/libffi.call/struct2.c +7 -7
  253. data/ext/ffi_c/libffi/testsuite/libffi.call/struct3.c +7 -6
  254. data/ext/ffi_c/libffi/testsuite/libffi.call/struct4.c +9 -8
  255. data/ext/ffi_c/libffi/testsuite/libffi.call/struct5.c +9 -8
  256. data/ext/ffi_c/libffi/testsuite/libffi.call/struct6.c +9 -9
  257. data/ext/ffi_c/libffi/testsuite/libffi.call/struct7.c +9 -9
  258. data/ext/ffi_c/libffi/testsuite/libffi.call/struct8.c +9 -8
  259. data/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c +9 -8
  260. data/ext/ffi_c/libffi/testsuite/libffi.call/testclosure.c +2 -2
  261. data/ext/ffi_c/libffi/testsuite/libffi.call/uninitialized.c +61 -0
  262. data/ext/ffi_c/libffi/testsuite/{libffi.special → libffi.call}/unwindtest.cc +3 -10
  263. data/ext/ffi_c/libffi/testsuite/{libffi.special → libffi.call}/unwindtest_ffi_call.cc +2 -1
  264. data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +196 -0
  265. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +121 -0
  266. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +123 -0
  267. data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +125 -0
  268. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc +91 -0
  269. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c +10 -0
  270. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c +10 -0
  271. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_longdouble.c +10 -0
  272. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex.inc +42 -0
  273. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_double.c +10 -0
  274. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_float.c +10 -0
  275. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_longdouble.c +10 -0
  276. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct.inc +71 -0
  277. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_double.c +10 -0
  278. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_float.c +10 -0
  279. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_longdouble.c +10 -0
  280. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va.inc +80 -0
  281. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_double.c +10 -0
  282. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_float.c +16 -0
  283. data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_longdouble.c +10 -0
  284. data/ext/ffi_c/libffi/testsuite/{libffi.special/special.exp → libffi.complex/complex.exp} +9 -8
  285. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.inc +51 -0
  286. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_double.inc +7 -0
  287. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_float.inc +7 -0
  288. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_longdouble.inc +7 -0
  289. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_double.c +10 -0
  290. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_float.c +10 -0
  291. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_int.c +86 -0
  292. data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_longdouble.c +10 -0
  293. data/ext/ffi_c/libffi/testsuite/libffi.complex/ffitest.h +1 -0
  294. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex.inc +78 -0
  295. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_double.c +10 -0
  296. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_float.c +10 -0
  297. data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_longdouble.c +10 -0
  298. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex.inc +37 -0
  299. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1.inc +41 -0
  300. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_double.c +10 -0
  301. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_float.c +10 -0
  302. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_longdouble.c +10 -0
  303. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2.inc +44 -0
  304. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_double.c +10 -0
  305. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_float.c +10 -0
  306. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_longdouble.c +10 -0
  307. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_double.c +10 -0
  308. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_float.c +10 -0
  309. data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_longdouble.c +10 -0
  310. data/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c +34 -0
  311. data/ext/ffi_c/libffi/testsuite/libffi.go/closure1.c +28 -0
  312. data/ext/ffi_c/libffi/testsuite/libffi.go/ffitest.h +1 -0
  313. data/ext/ffi_c/libffi/testsuite/libffi.go/go.exp +36 -0
  314. data/ext/ffi_c/libffi/testsuite/libffi.go/static-chain.h +19 -0
  315. data/ffi.gemspec +2 -2
  316. data/lib/ffi/enum.rb +124 -0
  317. data/lib/ffi/library.rb +65 -13
  318. data/lib/ffi/platform.rb +7 -2
  319. data/lib/ffi/platform/sparc64-linux/types.conf +102 -0
  320. data/lib/ffi/platform/x86_64-windows/types.conf +113 -20
  321. data/lib/ffi/pointer.rb +1 -0
  322. data/lib/ffi/struct.rb +0 -2
  323. data/lib/ffi/version.rb +1 -1
  324. data/spec/ffi/bitmask_spec.rb +575 -0
  325. data/spec/ffi/fixtures/BitmaskTest.c +51 -0
  326. data/spec/ffi/rbx/memory_pointer_spec.rb +4 -0
  327. data/spec/ffi/struct_spec.rb +0 -4
  328. metadata +143 -51
  329. data/ext/ffi_c/libffi/Makefile.in +0 -1820
  330. data/ext/ffi_c/libffi/Makefile.vc +0 -141
  331. data/ext/ffi_c/libffi/Makefile.vc64 +0 -141
  332. data/ext/ffi_c/libffi/aclocal.m4 +0 -1873
  333. data/ext/ffi_c/libffi/build-ios.sh +0 -67
  334. data/ext/ffi_c/libffi/compile +0 -143
  335. data/ext/ffi_c/libffi/config.guess +0 -1501
  336. data/ext/ffi_c/libffi/config.sub +0 -1705
  337. data/ext/ffi_c/libffi/configure +0 -17191
  338. data/ext/ffi_c/libffi/depcomp +0 -630
  339. data/ext/ffi_c/libffi/doc/libffi.info +0 -593
  340. data/ext/ffi_c/libffi/doc/stamp-vti +0 -4
  341. data/ext/ffi_c/libffi/fficonfig.h.in +0 -199
  342. data/ext/ffi_c/libffi/include/Makefile.in +0 -487
  343. data/ext/ffi_c/libffi/include/ffi.h.vc +0 -427
  344. data/ext/ffi_c/libffi/include/ffi.h.vc64 +0 -427
  345. data/ext/ffi_c/libffi/install-sh +0 -520
  346. data/ext/ffi_c/libffi/ltmain.sh +0 -9636
  347. data/ext/ffi_c/libffi/m4/libtool.m4 +0 -7831
  348. data/ext/ffi_c/libffi/m4/ltoptions.m4 +0 -369
  349. data/ext/ffi_c/libffi/m4/ltsugar.m4 +0 -123
  350. data/ext/ffi_c/libffi/m4/ltversion.m4 +0 -23
  351. data/ext/ffi_c/libffi/m4/lt~obsolete.m4 +0 -98
  352. data/ext/ffi_c/libffi/man/Makefile.in +0 -466
  353. data/ext/ffi_c/libffi/mdate-sh +0 -201
  354. data/ext/ffi_c/libffi/missing +0 -376
  355. data/ext/ffi_c/libffi/src/arm/gentramp.sh +0 -118
  356. data/ext/ffi_c/libffi/src/arm/trampoline.S +0 -4450
  357. data/ext/ffi_c/libffi/src/x86/darwin.S +0 -444
  358. data/ext/ffi_c/libffi/src/x86/darwin64.S +0 -416
  359. data/ext/ffi_c/libffi/src/x86/freebsd.S +0 -458
  360. data/ext/ffi_c/libffi/src/x86/win32.S +0 -1065
  361. data/ext/ffi_c/libffi/testsuite/Makefile.in +0 -500
  362. data/ext/ffi_c/libffi/testsuite/lib/libffi-dg.exp +0 -300
  363. data/ext/ffi_c/libffi/testsuite/libffi.call/many_win32.c +0 -63
  364. data/ext/ffi_c/libffi/testsuite/libffi.call/strlen_win32.c +0 -44
  365. data/ext/ffi_c/libffi/testsuite/libffi.special/ffitestcxx.h +0 -96
  366. data/ext/ffi_c/libffi/texinfo.tex +0 -7210
@@ -1,201 +0,0 @@
1
- #!/bin/sh
2
- # Get modification time of a file or directory and pretty-print it.
3
-
4
- scriptversion=2005-06-29.22
5
-
6
- # Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005 Free Software
7
- # Foundation, Inc.
8
- # written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
9
- #
10
- # This program is free software; you can redistribute it and/or modify
11
- # it under the terms of the GNU General Public License as published by
12
- # the Free Software Foundation; either version 2, or (at your option)
13
- # any later version.
14
- #
15
- # This program is distributed in the hope that it will be useful,
16
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- # GNU General Public License for more details.
19
- #
20
- # You should have received a copy of the GNU General Public License
21
- # along with this program; if not, write to the Free Software Foundation,
22
- # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
-
24
- # As a special exception to the GNU General Public License, if you
25
- # distribute this file as part of a program that contains a
26
- # configuration script generated by Autoconf, you may include it under
27
- # the same distribution terms that you use for the rest of that program.
28
-
29
- # This file is maintained in Automake, please report
30
- # bugs to <bug-automake@gnu.org> or send patches to
31
- # <automake-patches@gnu.org>.
32
-
33
- case $1 in
34
- '')
35
- echo "$0: No file. Try \`$0 --help' for more information." 1>&2
36
- exit 1;
37
- ;;
38
- -h | --h*)
39
- cat <<\EOF
40
- Usage: mdate-sh [--help] [--version] FILE
41
-
42
- Pretty-print the modification time of FILE.
43
-
44
- Report bugs to <bug-automake@gnu.org>.
45
- EOF
46
- exit $?
47
- ;;
48
- -v | --v*)
49
- echo "mdate-sh $scriptversion"
50
- exit $?
51
- ;;
52
- esac
53
-
54
- # Prevent date giving response in another language.
55
- LANG=C
56
- export LANG
57
- LC_ALL=C
58
- export LC_ALL
59
- LC_TIME=C
60
- export LC_TIME
61
-
62
- # GNU ls changes its time format in response to the TIME_STYLE
63
- # variable. Since we cannot assume `unset' works, revert this
64
- # variable to its documented default.
65
- if test "${TIME_STYLE+set}" = set; then
66
- TIME_STYLE=posix-long-iso
67
- export TIME_STYLE
68
- fi
69
-
70
- save_arg1=$1
71
-
72
- # Find out how to get the extended ls output of a file or directory.
73
- if ls -L /dev/null 1>/dev/null 2>&1; then
74
- ls_command='ls -L -l -d'
75
- else
76
- ls_command='ls -l -d'
77
- fi
78
-
79
- # A `ls -l' line looks as follows on OS/2.
80
- # drwxrwx--- 0 Aug 11 2001 foo
81
- # This differs from Unix, which adds ownership information.
82
- # drwxrwx--- 2 root root 4096 Aug 11 2001 foo
83
- #
84
- # To find the date, we split the line on spaces and iterate on words
85
- # until we find a month. This cannot work with files whose owner is a
86
- # user named `Jan', or `Feb', etc. However, it's unlikely that `/'
87
- # will be owned by a user whose name is a month. So we first look at
88
- # the extended ls output of the root directory to decide how many
89
- # words should be skipped to get the date.
90
-
91
- # On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below.
92
- set x`ls -l -d /`
93
-
94
- # Find which argument is the month.
95
- month=
96
- command=
97
- until test $month
98
- do
99
- shift
100
- # Add another shift to the command.
101
- command="$command shift;"
102
- case $1 in
103
- Jan) month=January; nummonth=1;;
104
- Feb) month=February; nummonth=2;;
105
- Mar) month=March; nummonth=3;;
106
- Apr) month=April; nummonth=4;;
107
- May) month=May; nummonth=5;;
108
- Jun) month=June; nummonth=6;;
109
- Jul) month=July; nummonth=7;;
110
- Aug) month=August; nummonth=8;;
111
- Sep) month=September; nummonth=9;;
112
- Oct) month=October; nummonth=10;;
113
- Nov) month=November; nummonth=11;;
114
- Dec) month=December; nummonth=12;;
115
- esac
116
- done
117
-
118
- # Get the extended ls output of the file or directory.
119
- set dummy x`eval "$ls_command \"\$save_arg1\""`
120
-
121
- # Remove all preceding arguments
122
- eval $command
123
-
124
- # Because of the dummy argument above, month is in $2.
125
- #
126
- # On a POSIX system, we should have
127
- #
128
- # $# = 5
129
- # $1 = file size
130
- # $2 = month
131
- # $3 = day
132
- # $4 = year or time
133
- # $5 = filename
134
- #
135
- # On Darwin 7.7.0 and 7.6.0, we have
136
- #
137
- # $# = 4
138
- # $1 = day
139
- # $2 = month
140
- # $3 = year or time
141
- # $4 = filename
142
-
143
- # Get the month.
144
- case $2 in
145
- Jan) month=January; nummonth=1;;
146
- Feb) month=February; nummonth=2;;
147
- Mar) month=March; nummonth=3;;
148
- Apr) month=April; nummonth=4;;
149
- May) month=May; nummonth=5;;
150
- Jun) month=June; nummonth=6;;
151
- Jul) month=July; nummonth=7;;
152
- Aug) month=August; nummonth=8;;
153
- Sep) month=September; nummonth=9;;
154
- Oct) month=October; nummonth=10;;
155
- Nov) month=November; nummonth=11;;
156
- Dec) month=December; nummonth=12;;
157
- esac
158
-
159
- case $3 in
160
- ???*) day=$1;;
161
- *) day=$3; shift;;
162
- esac
163
-
164
- # Here we have to deal with the problem that the ls output gives either
165
- # the time of day or the year.
166
- case $3 in
167
- *:*) set `date`; eval year=\$$#
168
- case $2 in
169
- Jan) nummonthtod=1;;
170
- Feb) nummonthtod=2;;
171
- Mar) nummonthtod=3;;
172
- Apr) nummonthtod=4;;
173
- May) nummonthtod=5;;
174
- Jun) nummonthtod=6;;
175
- Jul) nummonthtod=7;;
176
- Aug) nummonthtod=8;;
177
- Sep) nummonthtod=9;;
178
- Oct) nummonthtod=10;;
179
- Nov) nummonthtod=11;;
180
- Dec) nummonthtod=12;;
181
- esac
182
- # For the first six month of the year the time notation can also
183
- # be used for files modified in the last year.
184
- if (expr $nummonth \> $nummonthtod) > /dev/null;
185
- then
186
- year=`expr $year - 1`
187
- fi;;
188
- *) year=$3;;
189
- esac
190
-
191
- # The result.
192
- echo $day $month $year
193
-
194
- # Local Variables:
195
- # mode: shell-script
196
- # sh-indentation: 2
197
- # eval: (add-hook 'write-file-hooks 'time-stamp)
198
- # time-stamp-start: "scriptversion="
199
- # time-stamp-format: "%:y-%02m-%02d.%02H"
200
- # time-stamp-end: "$"
201
- # End:
@@ -1,376 +0,0 @@
1
- #! /bin/sh
2
- # Common stub for a few missing GNU programs while installing.
3
-
4
- scriptversion=2009-04-28.21; # UTC
5
-
6
- # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
7
- # 2008, 2009 Free Software Foundation, Inc.
8
- # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
9
-
10
- # This program is free software; you can redistribute it and/or modify
11
- # it under the terms of the GNU General Public License as published by
12
- # the Free Software Foundation; either version 2, or (at your option)
13
- # any later version.
14
-
15
- # This program is distributed in the hope that it will be useful,
16
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- # GNU General Public License for more details.
19
-
20
- # You should have received a copy of the GNU General Public License
21
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
22
-
23
- # As a special exception to the GNU General Public License, if you
24
- # distribute this file as part of a program that contains a
25
- # configuration script generated by Autoconf, you may include it under
26
- # the same distribution terms that you use for the rest of that program.
27
-
28
- if test $# -eq 0; then
29
- echo 1>&2 "Try \`$0 --help' for more information"
30
- exit 1
31
- fi
32
-
33
- run=:
34
- sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
35
- sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
36
-
37
- # In the cases where this matters, `missing' is being run in the
38
- # srcdir already.
39
- if test -f configure.ac; then
40
- configure_ac=configure.ac
41
- else
42
- configure_ac=configure.in
43
- fi
44
-
45
- msg="missing on your system"
46
-
47
- case $1 in
48
- --run)
49
- # Try to run requested program, and just exit if it succeeds.
50
- run=
51
- shift
52
- "$@" && exit 0
53
- # Exit code 63 means version mismatch. This often happens
54
- # when the user try to use an ancient version of a tool on
55
- # a file that requires a minimum version. In this case we
56
- # we should proceed has if the program had been absent, or
57
- # if --run hadn't been passed.
58
- if test $? = 63; then
59
- run=:
60
- msg="probably too old"
61
- fi
62
- ;;
63
-
64
- -h|--h|--he|--hel|--help)
65
- echo "\
66
- $0 [OPTION]... PROGRAM [ARGUMENT]...
67
-
68
- Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
69
- error status if there is no known handling for PROGRAM.
70
-
71
- Options:
72
- -h, --help display this help and exit
73
- -v, --version output version information and exit
74
- --run try to run the given command, and emulate it if it fails
75
-
76
- Supported PROGRAM values:
77
- aclocal touch file \`aclocal.m4'
78
- autoconf touch file \`configure'
79
- autoheader touch file \`config.h.in'
80
- autom4te touch the output file, or create a stub one
81
- automake touch all \`Makefile.in' files
82
- bison create \`y.tab.[ch]', if possible, from existing .[ch]
83
- flex create \`lex.yy.c', if possible, from existing .c
84
- help2man touch the output file
85
- lex create \`lex.yy.c', if possible, from existing .c
86
- makeinfo touch the output file
87
- tar try tar, gnutar, gtar, then tar without non-portable flags
88
- yacc create \`y.tab.[ch]', if possible, from existing .[ch]
89
-
90
- Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
91
- \`g' are ignored when checking the name.
92
-
93
- Send bug reports to <bug-automake@gnu.org>."
94
- exit $?
95
- ;;
96
-
97
- -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
98
- echo "missing $scriptversion (GNU Automake)"
99
- exit $?
100
- ;;
101
-
102
- -*)
103
- echo 1>&2 "$0: Unknown \`$1' option"
104
- echo 1>&2 "Try \`$0 --help' for more information"
105
- exit 1
106
- ;;
107
-
108
- esac
109
-
110
- # normalize program name to check for.
111
- program=`echo "$1" | sed '
112
- s/^gnu-//; t
113
- s/^gnu//; t
114
- s/^g//; t'`
115
-
116
- # Now exit if we have it, but it failed. Also exit now if we
117
- # don't have it and --version was passed (most likely to detect
118
- # the program). This is about non-GNU programs, so use $1 not
119
- # $program.
120
- case $1 in
121
- lex*|yacc*)
122
- # Not GNU programs, they don't have --version.
123
- ;;
124
-
125
- tar*)
126
- if test -n "$run"; then
127
- echo 1>&2 "ERROR: \`tar' requires --run"
128
- exit 1
129
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
130
- exit 1
131
- fi
132
- ;;
133
-
134
- *)
135
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
136
- # We have it, but it failed.
137
- exit 1
138
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
139
- # Could not run --version or --help. This is probably someone
140
- # running `$TOOL --version' or `$TOOL --help' to check whether
141
- # $TOOL exists and not knowing $TOOL uses missing.
142
- exit 1
143
- fi
144
- ;;
145
- esac
146
-
147
- # If it does not exist, or fails to run (possibly an outdated version),
148
- # try to emulate it.
149
- case $program in
150
- aclocal*)
151
- echo 1>&2 "\
152
- WARNING: \`$1' is $msg. You should only need it if
153
- you modified \`acinclude.m4' or \`${configure_ac}'. You might want
154
- to install the \`Automake' and \`Perl' packages. Grab them from
155
- any GNU archive site."
156
- touch aclocal.m4
157
- ;;
158
-
159
- autoconf*)
160
- echo 1>&2 "\
161
- WARNING: \`$1' is $msg. You should only need it if
162
- you modified \`${configure_ac}'. You might want to install the
163
- \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
164
- archive site."
165
- touch configure
166
- ;;
167
-
168
- autoheader*)
169
- echo 1>&2 "\
170
- WARNING: \`$1' is $msg. You should only need it if
171
- you modified \`acconfig.h' or \`${configure_ac}'. You might want
172
- to install the \`Autoconf' and \`GNU m4' packages. Grab them
173
- from any GNU archive site."
174
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
175
- test -z "$files" && files="config.h"
176
- touch_files=
177
- for f in $files; do
178
- case $f in
179
- *:*) touch_files="$touch_files "`echo "$f" |
180
- sed -e 's/^[^:]*://' -e 's/:.*//'`;;
181
- *) touch_files="$touch_files $f.in";;
182
- esac
183
- done
184
- touch $touch_files
185
- ;;
186
-
187
- automake*)
188
- echo 1>&2 "\
189
- WARNING: \`$1' is $msg. You should only need it if
190
- you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
191
- You might want to install the \`Automake' and \`Perl' packages.
192
- Grab them from any GNU archive site."
193
- find . -type f -name Makefile.am -print |
194
- sed 's/\.am$/.in/' |
195
- while read f; do touch "$f"; done
196
- ;;
197
-
198
- autom4te*)
199
- echo 1>&2 "\
200
- WARNING: \`$1' is needed, but is $msg.
201
- You might have modified some files without having the
202
- proper tools for further handling them.
203
- You can get \`$1' as part of \`Autoconf' from any GNU
204
- archive site."
205
-
206
- file=`echo "$*" | sed -n "$sed_output"`
207
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
208
- if test -f "$file"; then
209
- touch $file
210
- else
211
- test -z "$file" || exec >$file
212
- echo "#! /bin/sh"
213
- echo "# Created by GNU Automake missing as a replacement of"
214
- echo "# $ $@"
215
- echo "exit 0"
216
- chmod +x $file
217
- exit 1
218
- fi
219
- ;;
220
-
221
- bison*|yacc*)
222
- echo 1>&2 "\
223
- WARNING: \`$1' $msg. You should only need it if
224
- you modified a \`.y' file. You may need the \`Bison' package
225
- in order for those modifications to take effect. You can get
226
- \`Bison' from any GNU archive site."
227
- rm -f y.tab.c y.tab.h
228
- if test $# -ne 1; then
229
- eval LASTARG="\${$#}"
230
- case $LASTARG in
231
- *.y)
232
- SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
233
- if test -f "$SRCFILE"; then
234
- cp "$SRCFILE" y.tab.c
235
- fi
236
- SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
237
- if test -f "$SRCFILE"; then
238
- cp "$SRCFILE" y.tab.h
239
- fi
240
- ;;
241
- esac
242
- fi
243
- if test ! -f y.tab.h; then
244
- echo >y.tab.h
245
- fi
246
- if test ! -f y.tab.c; then
247
- echo 'main() { return 0; }' >y.tab.c
248
- fi
249
- ;;
250
-
251
- lex*|flex*)
252
- echo 1>&2 "\
253
- WARNING: \`$1' is $msg. You should only need it if
254
- you modified a \`.l' file. You may need the \`Flex' package
255
- in order for those modifications to take effect. You can get
256
- \`Flex' from any GNU archive site."
257
- rm -f lex.yy.c
258
- if test $# -ne 1; then
259
- eval LASTARG="\${$#}"
260
- case $LASTARG in
261
- *.l)
262
- SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
263
- if test -f "$SRCFILE"; then
264
- cp "$SRCFILE" lex.yy.c
265
- fi
266
- ;;
267
- esac
268
- fi
269
- if test ! -f lex.yy.c; then
270
- echo 'main() { return 0; }' >lex.yy.c
271
- fi
272
- ;;
273
-
274
- help2man*)
275
- echo 1>&2 "\
276
- WARNING: \`$1' is $msg. You should only need it if
277
- you modified a dependency of a manual page. You may need the
278
- \`Help2man' package in order for those modifications to take
279
- effect. You can get \`Help2man' from any GNU archive site."
280
-
281
- file=`echo "$*" | sed -n "$sed_output"`
282
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
283
- if test -f "$file"; then
284
- touch $file
285
- else
286
- test -z "$file" || exec >$file
287
- echo ".ab help2man is required to generate this page"
288
- exit $?
289
- fi
290
- ;;
291
-
292
- makeinfo*)
293
- echo 1>&2 "\
294
- WARNING: \`$1' is $msg. You should only need it if
295
- you modified a \`.texi' or \`.texinfo' file, or any other file
296
- indirectly affecting the aspect of the manual. The spurious
297
- call might also be the consequence of using a buggy \`make' (AIX,
298
- DU, IRIX). You might want to install the \`Texinfo' package or
299
- the \`GNU make' package. Grab either from any GNU archive site."
300
- # The file to touch is that specified with -o ...
301
- file=`echo "$*" | sed -n "$sed_output"`
302
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
303
- if test -z "$file"; then
304
- # ... or it is the one specified with @setfilename ...
305
- infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
306
- file=`sed -n '
307
- /^@setfilename/{
308
- s/.* \([^ ]*\) *$/\1/
309
- p
310
- q
311
- }' $infile`
312
- # ... or it is derived from the source name (dir/f.texi becomes f.info)
313
- test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
314
- fi
315
- # If the file does not exist, the user really needs makeinfo;
316
- # let's fail without touching anything.
317
- test -f $file || exit 1
318
- touch $file
319
- ;;
320
-
321
- tar*)
322
- shift
323
-
324
- # We have already tried tar in the generic part.
325
- # Look for gnutar/gtar before invocation to avoid ugly error
326
- # messages.
327
- if (gnutar --version > /dev/null 2>&1); then
328
- gnutar "$@" && exit 0
329
- fi
330
- if (gtar --version > /dev/null 2>&1); then
331
- gtar "$@" && exit 0
332
- fi
333
- firstarg="$1"
334
- if shift; then
335
- case $firstarg in
336
- *o*)
337
- firstarg=`echo "$firstarg" | sed s/o//`
338
- tar "$firstarg" "$@" && exit 0
339
- ;;
340
- esac
341
- case $firstarg in
342
- *h*)
343
- firstarg=`echo "$firstarg" | sed s/h//`
344
- tar "$firstarg" "$@" && exit 0
345
- ;;
346
- esac
347
- fi
348
-
349
- echo 1>&2 "\
350
- WARNING: I can't seem to be able to run \`tar' with the given arguments.
351
- You may want to install GNU tar or Free paxutils, or check the
352
- command line arguments."
353
- exit 1
354
- ;;
355
-
356
- *)
357
- echo 1>&2 "\
358
- WARNING: \`$1' is needed, and is $msg.
359
- You might have modified some files without having the
360
- proper tools for further handling them. Check the \`README' file,
361
- it often tells you about the needed prerequisites for installing
362
- this package. You may also peek at any GNU archive site, in case
363
- some other package would contain this missing \`$1' program."
364
- exit 1
365
- ;;
366
- esac
367
-
368
- exit 0
369
-
370
- # Local variables:
371
- # eval: (add-hook 'write-file-hooks 'time-stamp)
372
- # time-stamp-start: "scriptversion="
373
- # time-stamp-format: "%:y-%02m-%02d.%02H"
374
- # time-stamp-time-zone: "UTC"
375
- # time-stamp-end: "; # UTC"
376
- # End: