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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +42 -0
- data/Gemfile +9 -2
- data/README.md +1 -1
- data/Rakefile +17 -5
- data/lib/ffi/autopointer.rb +1 -9
- data/lib/ffi/dynamic_library.rb +34 -5
- data/lib/ffi/enum.rb +0 -1
- data/lib/ffi/function.rb +1 -1
- data/lib/ffi/io.rb +2 -2
- data/lib/ffi/library.rb +23 -23
- data/lib/ffi/platform/aarch64-linux/types.conf +74 -3
- data/lib/ffi/pointer.rb +6 -6
- data/lib/ffi/struct.rb +4 -4
- data/lib/ffi/struct_layout.rb +2 -2
- data/lib/ffi/struct_layout_builder.rb +8 -8
- data/lib/ffi/types.rb +51 -49
- data/lib/ffi/version.rb +1 -1
- data/sig/ffi/abstract_memory.rbs +165 -0
- data/sig/ffi/auto_pointer.rbs +27 -0
- data/sig/ffi/buffer.rbs +18 -0
- data/sig/ffi/data_converter.rbs +10 -0
- data/sig/ffi/dynamic_library.rbs +9 -0
- data/sig/ffi/enum.rbs +38 -0
- data/sig/ffi/function.rbs +39 -0
- data/sig/ffi/library.rbs +42 -0
- data/sig/ffi/native_type.rbs +86 -0
- data/sig/ffi/pointer.rbs +42 -0
- data/sig/ffi/struct.rbs +76 -0
- data/sig/ffi/struct_by_reference.rbs +11 -0
- data/sig/ffi/struct_by_value.rbs +7 -0
- data/sig/ffi/struct_layout.rbs +9 -0
- data/sig/ffi/struct_layout_builder.rbs +5 -0
- data/sig/ffi/type.rbs +39 -0
- data/sig/ffi.rbs +26 -0
- data.tar.gz.sig +0 -0
- metadata +34 -532
- metadata.gz.sig +0 -0
- data/ext/ffi_c/AbstractMemory.c +0 -1128
- data/ext/ffi_c/AbstractMemory.h +0 -176
- data/ext/ffi_c/ArrayType.c +0 -198
- data/ext/ffi_c/ArrayType.h +0 -60
- data/ext/ffi_c/Buffer.c +0 -417
- data/ext/ffi_c/Call.c +0 -498
- data/ext/ffi_c/Call.h +0 -107
- data/ext/ffi_c/ClosurePool.c +0 -333
- data/ext/ffi_c/ClosurePool.h +0 -59
- data/ext/ffi_c/DynamicLibrary.c +0 -397
- data/ext/ffi_c/DynamicLibrary.h +0 -98
- data/ext/ffi_c/Function.c +0 -1063
- data/ext/ffi_c/Function.h +0 -84
- data/ext/ffi_c/FunctionInfo.c +0 -322
- data/ext/ffi_c/LastError.c +0 -243
- data/ext/ffi_c/LastError.h +0 -47
- data/ext/ffi_c/LongDouble.c +0 -65
- data/ext/ffi_c/LongDouble.h +0 -47
- data/ext/ffi_c/MappedType.c +0 -211
- data/ext/ffi_c/MappedType.h +0 -57
- data/ext/ffi_c/MemoryPointer.c +0 -219
- data/ext/ffi_c/MemoryPointer.h +0 -49
- data/ext/ffi_c/MethodHandle.c +0 -350
- data/ext/ffi_c/MethodHandle.h +0 -56
- data/ext/ffi_c/Platform.c +0 -78
- data/ext/ffi_c/Platform.h +0 -45
- data/ext/ffi_c/Pointer.c +0 -546
- data/ext/ffi_c/Pointer.h +0 -60
- data/ext/ffi_c/Struct.c +0 -897
- data/ext/ffi_c/Struct.h +0 -115
- data/ext/ffi_c/StructByValue.c +0 -177
- data/ext/ffi_c/StructByValue.h +0 -55
- data/ext/ffi_c/StructLayout.c +0 -769
- data/ext/ffi_c/Thread.c +0 -129
- data/ext/ffi_c/Thread.h +0 -76
- data/ext/ffi_c/Type.c +0 -447
- data/ext/ffi_c/Type.h +0 -63
- data/ext/ffi_c/Types.c +0 -138
- data/ext/ffi_c/Types.h +0 -88
- data/ext/ffi_c/Variadic.c +0 -345
- data/ext/ffi_c/compat.h +0 -82
- data/ext/ffi_c/extconf.rb +0 -115
- data/ext/ffi_c/ffi.c +0 -97
- data/ext/ffi_c/libffi/.appveyor/site.exp +0 -16
- data/ext/ffi_c/libffi/.appveyor/unix-noexec.exp +0 -7
- data/ext/ffi_c/libffi/.appveyor.yml +0 -84
- data/ext/ffi_c/libffi/.ci/ar-lib +0 -270
- data/ext/ffi_c/libffi/.ci/bfin-sim.exp +0 -58
- data/ext/ffi_c/libffi/.ci/build-cross-in-container.sh +0 -18
- data/ext/ffi_c/libffi/.ci/build-in-container.sh +0 -10
- data/ext/ffi_c/libffi/.ci/build.sh +0 -124
- data/ext/ffi_c/libffi/.ci/compile +0 -351
- data/ext/ffi_c/libffi/.ci/install.sh +0 -78
- data/ext/ffi_c/libffi/.ci/m32r-sim.exp +0 -58
- data/ext/ffi_c/libffi/.ci/moxie-sim.exp +0 -60
- data/ext/ffi_c/libffi/.ci/msvs-detect +0 -1103
- data/ext/ffi_c/libffi/.ci/or1k-sim.exp +0 -58
- data/ext/ffi_c/libffi/.ci/powerpc-eabisim.exp +0 -58
- data/ext/ffi_c/libffi/.ci/site.exp +0 -29
- data/ext/ffi_c/libffi/.ci/wine-sim.exp +0 -55
- data/ext/ffi_c/libffi/.circleci/config.yml +0 -156
- data/ext/ffi_c/libffi/.gitattributes +0 -4
- data/ext/ffi_c/libffi/.github/issue_template.md +0 -10
- data/ext/ffi_c/libffi/.github/workflows/build.yml +0 -460
- data/ext/ffi_c/libffi/.github/workflows/emscripten.yml +0 -171
- data/ext/ffi_c/libffi/.gitignore +0 -46
- data/ext/ffi_c/libffi/ChangeLog.old +0 -7407
- data/ext/ffi_c/libffi/LICENSE +0 -21
- data/ext/ffi_c/libffi/LICENSE-BUILDTOOLS +0 -353
- data/ext/ffi_c/libffi/Makefile.am +0 -157
- data/ext/ffi_c/libffi/Makefile.in +0 -2127
- data/ext/ffi_c/libffi/README.md +0 -526
- data/ext/ffi_c/libffi/acinclude.m4 +0 -377
- data/ext/ffi_c/libffi/autogen.sh +0 -2
- data/ext/ffi_c/libffi/compile +0 -348
- data/ext/ffi_c/libffi/config.guess +0 -1754
- data/ext/ffi_c/libffi/config.sub +0 -1892
- data/ext/ffi_c/libffi/configure +0 -22791
- data/ext/ffi_c/libffi/configure.ac +0 -451
- data/ext/ffi_c/libffi/configure.host +0 -337
- data/ext/ffi_c/libffi/doc/Makefile.am +0 -3
- data/ext/ffi_c/libffi/doc/Makefile.in +0 -818
- data/ext/ffi_c/libffi/doc/libffi.texi +0 -1046
- data/ext/ffi_c/libffi/doc/version.texi +0 -4
- data/ext/ffi_c/libffi/fficonfig.h.in +0 -188
- data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +0 -312
- data/ext/ffi_c/libffi/include/Makefile.am +0 -9
- data/ext/ffi_c/libffi/include/Makefile.in +0 -609
- data/ext/ffi_c/libffi/include/ffi.h.in +0 -527
- data/ext/ffi_c/libffi/include/ffi_cfi.h +0 -76
- data/ext/ffi_c/libffi/include/ffi_common.h +0 -182
- data/ext/ffi_c/libffi/include/tramp.h +0 -45
- data/ext/ffi_c/libffi/install-sh +0 -541
- data/ext/ffi_c/libffi/libffi.map.in +0 -76
- data/ext/ffi_c/libffi/libffi.pc.in +0 -11
- data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +0 -997
- data/ext/ffi_c/libffi/libtool-ldflags +0 -106
- data/ext/ffi_c/libffi/libtool-version +0 -29
- data/ext/ffi_c/libffi/ltmain.sh +0 -11448
- data/ext/ffi_c/libffi/m4/asmcfi.m4 +0 -13
- data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +0 -50
- data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +0 -198
- data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +0 -158
- data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +0 -53
- data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +0 -119
- data/ext/ffi_c/libffi/m4/ax_configure_args.m4 +0 -49
- data/ext/ffi_c/libffi/m4/ax_enable_builddir.m4 +0 -302
- data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +0 -267
- data/ext/ffi_c/libffi/m4/ax_gcc_x86_cpuid.m4 +0 -89
- data/ext/ffi_c/libffi/m4/ax_prepend_flag.m4 +0 -51
- data/ext/ffi_c/libffi/m4/ax_require_defined.m4 +0 -37
- data/ext/ffi_c/libffi/make_sunver.pl +0 -333
- data/ext/ffi_c/libffi/man/Makefile.am +0 -8
- data/ext/ffi_c/libffi/man/Makefile.in +0 -565
- data/ext/ffi_c/libffi/man/ffi.3 +0 -41
- data/ext/ffi_c/libffi/man/ffi_call.3 +0 -103
- data/ext/ffi_c/libffi/man/ffi_prep_cif.3 +0 -68
- data/ext/ffi_c/libffi/man/ffi_prep_cif_var.3 +0 -73
- data/ext/ffi_c/libffi/missing +0 -215
- data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.sln +0 -33
- data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj +0 -130
- data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.filters +0 -57
- data/ext/ffi_c/libffi/msvc_build/aarch64/Ffi_staticLib.vcxproj.user +0 -4
- data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h +0 -511
- data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/fficonfig.h +0 -219
- data/ext/ffi_c/libffi/msvcc.sh +0 -353
- data/ext/ffi_c/libffi/src/aarch64/ffi.c +0 -1129
- data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +0 -97
- data/ext/ffi_c/libffi/src/aarch64/internal.h +0 -100
- data/ext/ffi_c/libffi/src/aarch64/sysv.S +0 -543
- data/ext/ffi_c/libffi/src/aarch64/win64_armasm.S +0 -506
- data/ext/ffi_c/libffi/src/alpha/ffi.c +0 -521
- data/ext/ffi_c/libffi/src/alpha/ffitarget.h +0 -57
- data/ext/ffi_c/libffi/src/alpha/internal.h +0 -23
- data/ext/ffi_c/libffi/src/alpha/osf.S +0 -282
- data/ext/ffi_c/libffi/src/arc/arcompact.S +0 -210
- data/ext/ffi_c/libffi/src/arc/ffi.c +0 -443
- data/ext/ffi_c/libffi/src/arc/ffitarget.h +0 -67
- data/ext/ffi_c/libffi/src/arm/ffi.c +0 -921
- data/ext/ffi_c/libffi/src/arm/ffitarget.h +0 -89
- data/ext/ffi_c/libffi/src/arm/internal.h +0 -17
- data/ext/ffi_c/libffi/src/arm/sysv.S +0 -456
- data/ext/ffi_c/libffi/src/arm/sysv_msvc_arm32.S +0 -311
- data/ext/ffi_c/libffi/src/avr32/ffi.c +0 -423
- data/ext/ffi_c/libffi/src/avr32/ffitarget.h +0 -55
- data/ext/ffi_c/libffi/src/avr32/sysv.S +0 -208
- data/ext/ffi_c/libffi/src/bfin/ffi.c +0 -196
- data/ext/ffi_c/libffi/src/bfin/ffitarget.h +0 -43
- data/ext/ffi_c/libffi/src/bfin/sysv.S +0 -179
- data/ext/ffi_c/libffi/src/closures.c +0 -1107
- data/ext/ffi_c/libffi/src/cris/ffi.c +0 -386
- data/ext/ffi_c/libffi/src/cris/ffitarget.h +0 -56
- data/ext/ffi_c/libffi/src/cris/sysv.S +0 -215
- data/ext/ffi_c/libffi/src/csky/ffi.c +0 -395
- data/ext/ffi_c/libffi/src/csky/ffitarget.h +0 -63
- data/ext/ffi_c/libffi/src/csky/sysv.S +0 -371
- data/ext/ffi_c/libffi/src/debug.c +0 -64
- data/ext/ffi_c/libffi/src/dlmalloc.c +0 -5171
- data/ext/ffi_c/libffi/src/frv/eabi.S +0 -128
- data/ext/ffi_c/libffi/src/frv/ffi.c +0 -292
- data/ext/ffi_c/libffi/src/frv/ffitarget.h +0 -62
- data/ext/ffi_c/libffi/src/ia64/ffi.c +0 -616
- data/ext/ffi_c/libffi/src/ia64/ffitarget.h +0 -56
- data/ext/ffi_c/libffi/src/ia64/ia64_flags.h +0 -40
- data/ext/ffi_c/libffi/src/ia64/unix.S +0 -585
- data/ext/ffi_c/libffi/src/java_raw_api.c +0 -374
- data/ext/ffi_c/libffi/src/kvx/asm.h +0 -5
- data/ext/ffi_c/libffi/src/kvx/ffi.c +0 -273
- data/ext/ffi_c/libffi/src/kvx/ffitarget.h +0 -75
- data/ext/ffi_c/libffi/src/kvx/sysv.S +0 -127
- data/ext/ffi_c/libffi/src/loongarch64/ffi.c +0 -621
- data/ext/ffi_c/libffi/src/loongarch64/ffitarget.h +0 -82
- data/ext/ffi_c/libffi/src/loongarch64/sysv.S +0 -327
- data/ext/ffi_c/libffi/src/m32r/ffi.c +0 -249
- data/ext/ffi_c/libffi/src/m32r/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/m32r/sysv.S +0 -121
- data/ext/ffi_c/libffi/src/m68k/ffi.c +0 -362
- data/ext/ffi_c/libffi/src/m68k/ffitarget.h +0 -54
- data/ext/ffi_c/libffi/src/m68k/sysv.S +0 -357
- data/ext/ffi_c/libffi/src/m88k/ffi.c +0 -400
- data/ext/ffi_c/libffi/src/m88k/ffitarget.h +0 -49
- data/ext/ffi_c/libffi/src/m88k/obsd.S +0 -209
- data/ext/ffi_c/libffi/src/metag/ffi.c +0 -330
- data/ext/ffi_c/libffi/src/metag/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/metag/sysv.S +0 -311
- data/ext/ffi_c/libffi/src/microblaze/ffi.c +0 -321
- data/ext/ffi_c/libffi/src/microblaze/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/microblaze/sysv.S +0 -302
- data/ext/ffi_c/libffi/src/mips/ffi.c +0 -1309
- data/ext/ffi_c/libffi/src/mips/ffitarget.h +0 -251
- data/ext/ffi_c/libffi/src/mips/n32.S +0 -772
- data/ext/ffi_c/libffi/src/mips/o32.S +0 -561
- data/ext/ffi_c/libffi/src/moxie/eabi.S +0 -101
- data/ext/ffi_c/libffi/src/moxie/ffi.c +0 -310
- data/ext/ffi_c/libffi/src/moxie/ffitarget.h +0 -52
- data/ext/ffi_c/libffi/src/nios2/ffi.c +0 -304
- data/ext/ffi_c/libffi/src/nios2/ffitarget.h +0 -52
- data/ext/ffi_c/libffi/src/nios2/sysv.S +0 -136
- data/ext/ffi_c/libffi/src/or1k/ffi.c +0 -341
- data/ext/ffi_c/libffi/src/or1k/ffitarget.h +0 -58
- data/ext/ffi_c/libffi/src/or1k/sysv.S +0 -107
- data/ext/ffi_c/libffi/src/pa/ffi.c +0 -673
- data/ext/ffi_c/libffi/src/pa/ffi64.c +0 -614
- data/ext/ffi_c/libffi/src/pa/ffitarget.h +0 -94
- data/ext/ffi_c/libffi/src/pa/hpux32.S +0 -417
- data/ext/ffi_c/libffi/src/pa/hpux64.S +0 -681
- data/ext/ffi_c/libffi/src/pa/linux.S +0 -427
- data/ext/ffi_c/libffi/src/powerpc/aix.S +0 -566
- data/ext/ffi_c/libffi/src/powerpc/aix_closure.S +0 -694
- data/ext/ffi_c/libffi/src/powerpc/asm.h +0 -125
- data/ext/ffi_c/libffi/src/powerpc/darwin.S +0 -378
- data/ext/ffi_c/libffi/src/powerpc/darwin_closure.S +0 -571
- data/ext/ffi_c/libffi/src/powerpc/ffi.c +0 -175
- data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +0 -1452
- data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +0 -1153
- data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +0 -105
- data/ext/ffi_c/libffi/src/powerpc/ffi_sysv.c +0 -923
- data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +0 -204
- data/ext/ffi_c/libffi/src/powerpc/linux64.S +0 -293
- data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +0 -566
- data/ext/ffi_c/libffi/src/powerpc/ppc_closure.S +0 -397
- data/ext/ffi_c/libffi/src/powerpc/sysv.S +0 -173
- data/ext/ffi_c/libffi/src/powerpc/t-aix +0 -5
- data/ext/ffi_c/libffi/src/prep_cif.c +0 -283
- data/ext/ffi_c/libffi/src/raw_api.c +0 -267
- data/ext/ffi_c/libffi/src/riscv/ffi.c +0 -514
- data/ext/ffi_c/libffi/src/riscv/ffitarget.h +0 -69
- data/ext/ffi_c/libffi/src/riscv/sysv.S +0 -293
- data/ext/ffi_c/libffi/src/s390/ffi.c +0 -756
- data/ext/ffi_c/libffi/src/s390/ffitarget.h +0 -70
- data/ext/ffi_c/libffi/src/s390/internal.h +0 -11
- data/ext/ffi_c/libffi/src/s390/sysv.S +0 -325
- data/ext/ffi_c/libffi/src/sh/ffi.c +0 -717
- data/ext/ffi_c/libffi/src/sh/ffitarget.h +0 -54
- data/ext/ffi_c/libffi/src/sh/sysv.S +0 -850
- data/ext/ffi_c/libffi/src/sh64/ffi.c +0 -469
- data/ext/ffi_c/libffi/src/sh64/ffitarget.h +0 -58
- data/ext/ffi_c/libffi/src/sh64/sysv.S +0 -539
- data/ext/ffi_c/libffi/src/sparc/ffi.c +0 -468
- data/ext/ffi_c/libffi/src/sparc/ffi64.c +0 -624
- data/ext/ffi_c/libffi/src/sparc/ffitarget.h +0 -81
- data/ext/ffi_c/libffi/src/sparc/internal.h +0 -26
- data/ext/ffi_c/libffi/src/sparc/v8.S +0 -443
- data/ext/ffi_c/libffi/src/sparc/v9.S +0 -440
- data/ext/ffi_c/libffi/src/tile/ffi.c +0 -355
- data/ext/ffi_c/libffi/src/tile/ffitarget.h +0 -65
- data/ext/ffi_c/libffi/src/tile/tile.S +0 -360
- data/ext/ffi_c/libffi/src/tramp.c +0 -716
- data/ext/ffi_c/libffi/src/types.c +0 -108
- data/ext/ffi_c/libffi/src/vax/elfbsd.S +0 -195
- data/ext/ffi_c/libffi/src/vax/ffi.c +0 -276
- data/ext/ffi_c/libffi/src/vax/ffitarget.h +0 -49
- data/ext/ffi_c/libffi/src/wasm32/ffi.c +0 -934
- data/ext/ffi_c/libffi/src/wasm32/ffitarget.h +0 -62
- data/ext/ffi_c/libffi/src/x86/asmnames.h +0 -30
- data/ext/ffi_c/libffi/src/x86/ffi.c +0 -832
- data/ext/ffi_c/libffi/src/x86/ffi64.c +0 -950
- data/ext/ffi_c/libffi/src/x86/ffitarget.h +0 -164
- data/ext/ffi_c/libffi/src/x86/ffiw64.c +0 -361
- data/ext/ffi_c/libffi/src/x86/internal.h +0 -43
- data/ext/ffi_c/libffi/src/x86/internal64.h +0 -36
- data/ext/ffi_c/libffi/src/x86/sysv.S +0 -1272
- data/ext/ffi_c/libffi/src/x86/sysv_intel.S +0 -998
- data/ext/ffi_c/libffi/src/x86/unix64.S +0 -711
- data/ext/ffi_c/libffi/src/x86/win64.S +0 -254
- data/ext/ffi_c/libffi/src/x86/win64_intel.S +0 -238
- data/ext/ffi_c/libffi/src/xtensa/ffi.c +0 -306
- data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +0 -57
- data/ext/ffi_c/libffi/src/xtensa/sysv.S +0 -268
- data/ext/ffi_c/libffi/stamp-h.in +0 -1
- data/ext/ffi_c/libffi/testsuite/Makefile.am +0 -135
- data/ext/ffi_c/libffi/testsuite/Makefile.in +0 -664
- data/ext/ffi_c/libffi/testsuite/config/default.exp +0 -1
- data/ext/ffi_c/libffi/testsuite/emscripten/build-tests.sh +0 -54
- data/ext/ffi_c/libffi/testsuite/emscripten/build.sh +0 -63
- data/ext/ffi_c/libffi/testsuite/emscripten/conftest.py +0 -80
- data/ext/ffi_c/libffi/testsuite/emscripten/node-tests.sh +0 -48
- data/ext/ffi_c/libffi/testsuite/emscripten/test.html +0 -7
- data/ext/ffi_c/libffi/testsuite/emscripten/test_libffi.py +0 -51
- data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +0 -682
- data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +0 -283
- data/ext/ffi_c/libffi/testsuite/lib/wrapper.exp +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/Makefile +0 -28
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/README +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/alignof.h +0 -50
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/bhaible.exp +0 -63
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +0 -1746
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-callback.c +0 -2885
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/testcases.c +0 -747
- data/ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/align_stdcall.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/bpo_38748.c +0 -41
- data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +0 -54
- data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +0 -26
- data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +0 -163
- data/ext/ffi_c/libffi/testsuite/libffi.call/float.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/float1.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/float3.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/float4.c +0 -62
- data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +0 -110
- data/ext/ffi_c/libffi/testsuite/libffi.call/many.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/many2.c +0 -57
- data/ext/ffi_c/libffi/testsuite/libffi.call/many_double.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.call/negint.c +0 -52
- data/ext/ffi_c/libffi/testsuite/libffi.call/offsets.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c +0 -127
- data/ext/ffi_c/libffi/testsuite/libffi.call/promotion.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/pyobjc_tc.c +0 -114
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl1.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl2.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl.c +0 -35
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl1.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl2.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl3.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ldl.c +0 -34
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c +0 -41
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +0 -48
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_sc.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/s55.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct1.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct10.c +0 -57
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct2.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct3.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct4.c +0 -64
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct5.c +0 -66
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct6.c +0 -64
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct7.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct8.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c +0 -68
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_2.c +0 -63
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3.c +0 -65
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_3f.c +0 -65
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_4f.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_big.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_by_value_small.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_return_2H.c +0 -63
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct_return_8H.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/uninitialized.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_2.c +0 -220
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_3.c +0 -154
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +0 -134
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +0 -134
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +0 -140
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn0.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn1.c +0 -83
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn2.c +0 -83
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn3.c +0 -102
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn4.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn5.c +0 -94
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn6.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_loc_fn0.c +0 -96
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_simple.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_12byte.c +0 -112
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_16byte.c +0 -117
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_18byte.c +0 -120
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_19byte.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_1_1byte.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte.c +0 -109
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte1.c +0 -113
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_24byte.c +0 -145
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_2byte.c +0 -103
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3_1byte.c +0 -114
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte1.c +0 -103
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte2.c +0 -103
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3float.c +0 -113
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4_1byte.c +0 -120
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4byte.c +0 -103
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5_1_byte.c +0 -137
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5byte.c +0 -116
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_64byte.c +0 -148
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6_1_byte.c +0 -140
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6byte.c +0 -121
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7_1_byte.c +0 -155
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7byte.c +0 -121
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_8byte.c +0 -102
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte1.c +0 -103
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte2.c +0 -103
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_double.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_float.c +0 -109
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split.c +0 -147
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split2.c +0 -152
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_pointer.c +0 -113
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint16.c +0 -108
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint32.c +0 -106
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint64.c +0 -109
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint16.c +0 -108
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint32.c +0 -109
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint64.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_dbls_struct.c +0 -68
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double_va.c +0 -69
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_float.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble.c +0 -115
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble_va.c +0 -80
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_args.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_float_double.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_schar.c +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshort.c +0 -79
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshortchar.c +0 -94
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_uchar.c +0 -99
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushort.c +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushortchar.c +0 -94
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer.c +0 -79
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer_stack.c +0 -152
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_schar.c +0 -47
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sint.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sshort.c +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_struct_va1.c +0 -125
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar.c +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint.c +0 -47
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint_va.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulong_va.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulonglong.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.closures/err_bad_abi.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +0 -1
- data/ext/ffi_c/libffi/testsuite/libffi.closures/huge_struct.c +0 -343
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct.c +0 -175
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct1.c +0 -161
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct10.c +0 -146
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct11.c +0 -137
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct12.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct13.c +0 -115
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct2.c +0 -119
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct3.c +0 -120
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct4.c +0 -120
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct5.c +0 -121
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct6.c +0 -142
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct7.c +0 -120
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct8.c +0 -142
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct9.c +0 -142
- data/ext/ffi_c/libffi/testsuite/libffi.closures/problem1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs1.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs2.c +0 -102
- data/ext/ffi_c/libffi/testsuite/libffi.closures/single_entry_structs3.c +0 -101
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_large.c +0 -145
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_large2.c +0 -148
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium.c +0 -124
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium2.c +0 -125
- data/ext/ffi_c/libffi/testsuite/libffi.closures/testclosure.c +0 -75
- data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest.cc +0 -118
- data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest_ffi_call.cc +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex.inc +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct.inc +0 -71
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va.inc +0 -80
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_float.c +0 -16
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.exp +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.inc +0 -51
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_double.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_float.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_longdouble.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_int.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/ffitest.h +0 -1
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex.inc +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex.inc +0 -37
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1.inc +0 -41
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2.inc +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c +0 -34
- data/ext/ffi_c/libffi/testsuite/libffi.go/closure1.c +0 -28
- data/ext/ffi_c/libffi/testsuite/libffi.go/ffitest.h +0 -1
- data/ext/ffi_c/libffi/testsuite/libffi.go/go.exp +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.go/static-chain.h +0 -19
- data/ext/ffi_c/libffi.bsd.mk +0 -40
- data/ext/ffi_c/libffi.darwin.mk +0 -105
- data/ext/ffi_c/libffi.gnu.mk +0 -32
- data/ext/ffi_c/libffi.mk +0 -18
- data/ext/ffi_c/libffi.vc.mk +0 -26
- data/ext/ffi_c/libffi.vc64.mk +0 -26
- data/ext/ffi_c/rbffi.h +0 -55
- data/ext/ffi_c/rbffi_endian.h +0 -59
data/ext/ffi_c/extconf.rb
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
if RUBY_ENGINE == 'ruby' || RUBY_ENGINE == 'rbx'
|
|
4
|
-
require 'mkmf'
|
|
5
|
-
require 'rbconfig'
|
|
6
|
-
|
|
7
|
-
def system_libffi_usable?
|
|
8
|
-
# We need pkg_config or ffi.h
|
|
9
|
-
libffi_ok = pkg_config("libffi") ||
|
|
10
|
-
have_header("ffi.h") ||
|
|
11
|
-
find_header("ffi.h", "/usr/local/include", "/usr/include/ffi",
|
|
12
|
-
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi",
|
|
13
|
-
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi") ||
|
|
14
|
-
(find_header("ffi.h", `xcrun --sdk macosx --show-sdk-path`.strip + "/usr/include/ffi") rescue false)
|
|
15
|
-
|
|
16
|
-
# Ensure we can link to ffi_prep_closure_loc
|
|
17
|
-
libffi_ok &&= have_library("ffi", "ffi_prep_closure_loc", [ "ffi.h" ]) ||
|
|
18
|
-
have_library("libffi", "ffi_prep_closure_loc", [ "ffi.h" ]) ||
|
|
19
|
-
have_library("libffi-8", "ffi_prep_closure_loc", [ "ffi.h" ])
|
|
20
|
-
|
|
21
|
-
if RbConfig::CONFIG['host_os'] =~ /mswin/
|
|
22
|
-
have_library('libffi_convenience')
|
|
23
|
-
have_library('shlwapi')
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
libffi_ok
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
dir_config("ffi_c")
|
|
30
|
-
|
|
31
|
-
# recent versions of ruby add restrictive ansi and warning flags on a whim - kill them all
|
|
32
|
-
$warnflags = ''
|
|
33
|
-
$CFLAGS.gsub!(/[\s+]-ansi/, '')
|
|
34
|
-
$CFLAGS.gsub!(/[\s+]-std=[^\s]+/, '')
|
|
35
|
-
# solaris 10 needs -c99 for <stdbool.h>
|
|
36
|
-
$CFLAGS << " -g -std=c99" if RbConfig::CONFIG['host_os'] =~ /solaris(!?2\.11)/
|
|
37
|
-
if enable_config("debug")
|
|
38
|
-
$CPPFLAGS += " #{RbConfig::CONFIG["debugflags"]}"
|
|
39
|
-
$LDFLAGS += " #{RbConfig::CONFIG["debugflags"]}"
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# Check whether we use system libffi
|
|
43
|
-
system_libffi = enable_config('system-libffi', :try)
|
|
44
|
-
|
|
45
|
-
if system_libffi == :try
|
|
46
|
-
system_libffi = ENV['RUBY_CC_VERSION'].nil? && system_libffi_usable?
|
|
47
|
-
elsif system_libffi
|
|
48
|
-
abort "system libffi is not usable" unless system_libffi_usable?
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
if system_libffi
|
|
52
|
-
have_func('ffi_prep_cif_var')
|
|
53
|
-
$defs << "-DHAVE_RAW_API" if have_func("ffi_raw_call") && have_func("ffi_prep_raw_closure")
|
|
54
|
-
else
|
|
55
|
-
$defs << "-DHAVE_FFI_PREP_CIF_VAR"
|
|
56
|
-
$defs << "-DUSE_INTERNAL_LIBFFI"
|
|
57
|
-
|
|
58
|
-
# Ensure libffi symbols aren't exported when using static libffi.
|
|
59
|
-
# This is to avoid interference with other gems like fiddle.
|
|
60
|
-
# See https://github.com/ffi/ffi/issues/835
|
|
61
|
-
append_ldflags "-Wl,--exclude-libs,ALL"
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
have_func 'rb_gc_mark_movable' # since ruby-2.7
|
|
65
|
-
|
|
66
|
-
# Some linux archs need explicit linking to pthread, see https://github.com/ffi/ffi/issues/893
|
|
67
|
-
append_ldflags "-pthread"
|
|
68
|
-
|
|
69
|
-
ffi_alloc_default = RbConfig::CONFIG['host_os'] =~ /darwin/i && RbConfig::CONFIG['host'] =~ /arm|aarch64/i
|
|
70
|
-
ffi_alloc_default = ffi_alloc_default || RbConfig::CONFIG['host'] =~ /hppa/i
|
|
71
|
-
if enable_config('libffi-alloc', ffi_alloc_default)
|
|
72
|
-
$defs << "-DUSE_FFI_ALLOC"
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
$defs << "-DHAVE_EXTCONF_H" if $defs.empty? # needed so create_header works
|
|
76
|
-
|
|
77
|
-
create_header
|
|
78
|
-
create_makefile("ffi_c")
|
|
79
|
-
|
|
80
|
-
unless system_libffi
|
|
81
|
-
File.open("Makefile", "a") do |mf|
|
|
82
|
-
if enable_config("debug")
|
|
83
|
-
mf.puts "LIBFFI_DEBUG=--enable-debug CPPFLAGS='#{RbConfig::CONFIG["debugflags"]}' LDFLAGS='#{RbConfig::CONFIG["debugflags"]}'"
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
if RbConfig::CONFIG['host_alias'] == "i386-w64-mingw32"
|
|
87
|
-
host = "i686-w64-mingw32" # Work around host name without matching compiler name in rake-compiler-dock-1.3.0 on platform x86-mingw32
|
|
88
|
-
elsif RbConfig::CONFIG.has_key?("host_alias")
|
|
89
|
-
host = RbConfig::CONFIG['host_alias']
|
|
90
|
-
end
|
|
91
|
-
mf.puts "LIBFFI_HOST=--host=#{host}" if host
|
|
92
|
-
|
|
93
|
-
if RbConfig::CONFIG['host_os'] =~ /darwin/i
|
|
94
|
-
if RbConfig::CONFIG['host'] =~ /arm|aarch64/i
|
|
95
|
-
mf.puts "LIBFFI_HOST=--host=aarch64-apple-#{RbConfig::CONFIG['host_os']}"
|
|
96
|
-
end
|
|
97
|
-
mf.puts "include ${srcdir}/libffi.darwin.mk"
|
|
98
|
-
elsif RbConfig::CONFIG['host_os'] =~ /bsd/i
|
|
99
|
-
mf.puts '.include "${srcdir}/libffi.bsd.mk"'
|
|
100
|
-
elsif RbConfig::CONFIG['host_os'] =~ /mswin64/i
|
|
101
|
-
mf.puts '!include $(srcdir)/libffi.vc64.mk'
|
|
102
|
-
elsif RbConfig::CONFIG['host_os'] =~ /mswin32/i
|
|
103
|
-
mf.puts '!include $(srcdir)/libffi.vc.mk'
|
|
104
|
-
else
|
|
105
|
-
mf.puts "include ${srcdir}/libffi.mk"
|
|
106
|
-
end
|
|
107
|
-
end
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
else
|
|
111
|
-
File.open("Makefile", "w") do |mf|
|
|
112
|
-
mf.puts "# Dummy makefile for non-mri rubies"
|
|
113
|
-
mf.puts "all install::\n"
|
|
114
|
-
end
|
|
115
|
-
end
|
data/ext/ffi_c/ffi.c
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2008, 2009, Wayne Meissner
|
|
3
|
-
* Copyright (C) 2009 Luc Heinrich <luc@honk-honk.com>
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) 2008-2013, Ruby FFI project contributors
|
|
6
|
-
* All rights reserved.
|
|
7
|
-
*
|
|
8
|
-
* Redistribution and use in source and binary forms, with or without
|
|
9
|
-
* modification, are permitted provided that the following conditions are met:
|
|
10
|
-
* * Redistributions of source code must retain the above copyright
|
|
11
|
-
* notice, this list of conditions and the following disclaimer.
|
|
12
|
-
* * Redistributions in binary form must reproduce the above copyright
|
|
13
|
-
* notice, this list of conditions and the following disclaimer in the
|
|
14
|
-
* documentation and/or other materials provided with the distribution.
|
|
15
|
-
* * Neither the name of the Ruby FFI project nor the
|
|
16
|
-
* names of its contributors may be used to endorse or promote products
|
|
17
|
-
* derived from this software without specific prior written permission.
|
|
18
|
-
*
|
|
19
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
20
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
21
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
-
* DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
|
23
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
24
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
25
|
-
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
26
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
27
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
28
|
-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
#include <sys/types.h>
|
|
32
|
-
#include <stdio.h>
|
|
33
|
-
#include <ruby.h>
|
|
34
|
-
|
|
35
|
-
#include <ffi.h>
|
|
36
|
-
|
|
37
|
-
#include "rbffi.h"
|
|
38
|
-
#include "AbstractMemory.h"
|
|
39
|
-
#include "Pointer.h"
|
|
40
|
-
#include "MemoryPointer.h"
|
|
41
|
-
#include "Struct.h"
|
|
42
|
-
#include "StructByValue.h"
|
|
43
|
-
#include "DynamicLibrary.h"
|
|
44
|
-
#include "Platform.h"
|
|
45
|
-
#include "Types.h"
|
|
46
|
-
#include "LastError.h"
|
|
47
|
-
#include "Function.h"
|
|
48
|
-
#include "ClosurePool.h"
|
|
49
|
-
#include "MethodHandle.h"
|
|
50
|
-
#include "Call.h"
|
|
51
|
-
#include "ArrayType.h"
|
|
52
|
-
#include "MappedType.h"
|
|
53
|
-
|
|
54
|
-
void Init_ffi_c(void);
|
|
55
|
-
|
|
56
|
-
VALUE rbffi_FFIModule = Qnil;
|
|
57
|
-
|
|
58
|
-
static VALUE moduleFFI = Qnil;
|
|
59
|
-
|
|
60
|
-
void
|
|
61
|
-
Init_ffi_c(void)
|
|
62
|
-
{
|
|
63
|
-
#ifdef HAVE_RB_EXT_RACTOR_SAFE
|
|
64
|
-
rb_ext_ractor_safe(1);
|
|
65
|
-
#endif
|
|
66
|
-
|
|
67
|
-
/*
|
|
68
|
-
* Document-module: FFI
|
|
69
|
-
*
|
|
70
|
-
* This module embbed type constants from {FFI::NativeType}.
|
|
71
|
-
*/
|
|
72
|
-
rbffi_FFIModule = moduleFFI = rb_define_module("FFI");
|
|
73
|
-
rb_global_variable(&rbffi_FFIModule);
|
|
74
|
-
|
|
75
|
-
rbffi_Thread_Init(rbffi_FFIModule);
|
|
76
|
-
|
|
77
|
-
/* FFI::Type needs to be initialized before most other classes */
|
|
78
|
-
rbffi_Type_Init(moduleFFI);
|
|
79
|
-
|
|
80
|
-
rbffi_ArrayType_Init(moduleFFI);
|
|
81
|
-
rbffi_LastError_Init(moduleFFI);
|
|
82
|
-
rbffi_Call_Init(moduleFFI);
|
|
83
|
-
rbffi_ClosurePool_Init(moduleFFI);
|
|
84
|
-
rbffi_MethodHandle_Init(moduleFFI);
|
|
85
|
-
rbffi_Platform_Init(moduleFFI);
|
|
86
|
-
rbffi_AbstractMemory_Init(moduleFFI);
|
|
87
|
-
rbffi_Pointer_Init(moduleFFI);
|
|
88
|
-
rbffi_Function_Init(moduleFFI);
|
|
89
|
-
rbffi_MemoryPointer_Init(moduleFFI);
|
|
90
|
-
rbffi_Buffer_Init(moduleFFI);
|
|
91
|
-
rbffi_StructByValue_Init(moduleFFI);
|
|
92
|
-
rbffi_Struct_Init(moduleFFI);
|
|
93
|
-
rbffi_DynamicLibrary_Init(moduleFFI);
|
|
94
|
-
rbffi_Variadic_Init(moduleFFI);
|
|
95
|
-
rbffi_Types_Init(moduleFFI);
|
|
96
|
-
rbffi_MappedType_Init(moduleFFI);
|
|
97
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Copyright (C) 2021 Anthony Green
|
|
2
|
-
|
|
3
|
-
lappend boards_dir $::env(SITEDIR)
|
|
4
|
-
|
|
5
|
-
verbose "Global Config File: target_triplet is $target_triplet" 1
|
|
6
|
-
global target_list
|
|
7
|
-
|
|
8
|
-
case "$target_triplet" in {
|
|
9
|
-
{ "aarch*cygwin*" } {
|
|
10
|
-
set target_list "unix-noexec"
|
|
11
|
-
}
|
|
12
|
-
{ "arm*cygwin*" } {
|
|
13
|
-
set target_list "unix-noexec"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
shallow_clone: true
|
|
2
|
-
|
|
3
|
-
# We're currently only testing libffi built with Microsoft's
|
|
4
|
-
# tools.
|
|
5
|
-
# This matrix should be expanded to include at least:
|
|
6
|
-
# 32- and 64-bit gcc/cygwin
|
|
7
|
-
# 32- and 64-bit gcc/mingw
|
|
8
|
-
# 32- and 64-bit clang/mingw
|
|
9
|
-
# and perhaps more.
|
|
10
|
-
|
|
11
|
-
image: Visual Studio 2017
|
|
12
|
-
platform:
|
|
13
|
-
- x64
|
|
14
|
-
- x86
|
|
15
|
-
- arm
|
|
16
|
-
- arm64
|
|
17
|
-
|
|
18
|
-
configuration:
|
|
19
|
-
- Debug
|
|
20
|
-
- Release
|
|
21
|
-
|
|
22
|
-
environment:
|
|
23
|
-
global:
|
|
24
|
-
CYG_ROOT: C:/cygwin64
|
|
25
|
-
CYG_CACHE: C:/cygwin64/var/cache/setup
|
|
26
|
-
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
|
|
27
|
-
VSVER: 15
|
|
28
|
-
matrix:
|
|
29
|
-
- SHARED_ARG: "--enable-shared --disable-static"
|
|
30
|
-
- SHARED_ARG: "--enable-static --disable-shared"
|
|
31
|
-
|
|
32
|
-
install:
|
|
33
|
-
- ps: >-
|
|
34
|
-
If ($env:Platform -Match "x86") {
|
|
35
|
-
$env:VCVARS_PLATFORM="x86"
|
|
36
|
-
$env:BUILD="i686-pc-cygwin"
|
|
37
|
-
$env:HOST="i686-pc-cygwin"
|
|
38
|
-
$env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh"
|
|
39
|
-
$env:SRC_ARCHITECTURE="x86"
|
|
40
|
-
} ElseIf ($env:Platform -Match "arm64") {
|
|
41
|
-
$env:VCVARS_PLATFORM="x86_arm64"
|
|
42
|
-
$env:BUILD="i686-pc-cygwin"
|
|
43
|
-
$env:HOST="aarch64-w64-cygwin"
|
|
44
|
-
$env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh -marm64"
|
|
45
|
-
$env:SRC_ARCHITECTURE="aarch64"
|
|
46
|
-
} ElseIf ($env:Platform -Match "arm") {
|
|
47
|
-
$env:VCVARS_PLATFORM="x86_arm"
|
|
48
|
-
$env:BUILD="i686-pc-cygwin"
|
|
49
|
-
$env:HOST="arm-w32-cygwin"
|
|
50
|
-
$env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh -marm"
|
|
51
|
-
$env:SRC_ARCHITECTURE="arm"
|
|
52
|
-
} Else {
|
|
53
|
-
$env:VCVARS_PLATFORM="amd64"
|
|
54
|
-
$env:BUILD="x86_64-w64-cygwin"
|
|
55
|
-
$env:HOST="x86_64-w64-cygwin"
|
|
56
|
-
$env:MSVCC="/cygdrive/c/projects/libffi/msvcc.sh -m64"
|
|
57
|
-
$env:SRC_ARCHITECTURE="x86"
|
|
58
|
-
}
|
|
59
|
-
If ($env:Configuration -Match "Debug") {
|
|
60
|
-
$env:DEBUG_ARG="--enable-debug"
|
|
61
|
-
} Else {
|
|
62
|
-
$env:DEBUG_ARG="--disable-debug"
|
|
63
|
-
}
|
|
64
|
-
- 'appveyor DownloadFile https://cygwin.com/setup-x86_64.exe -FileName setup.exe'
|
|
65
|
-
- 'setup.exe -qgnNdO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" -P dejagnu -P autoconf -P automake -P libtool'
|
|
66
|
-
- '%CYG_ROOT%/bin/bash -lc "cygcheck -dc cygwin"'
|
|
67
|
-
- echo call VsDevCmd to set VS150COMNTOOLS
|
|
68
|
-
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
|
|
69
|
-
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
|
|
70
|
-
- echo "Using Visual Studio %VSVER%.0 at %VSCOMNTOOLS%"
|
|
71
|
-
- call "%VSCOMNTOOLS%..\..\vc\Auxiliary\Build\vcvarsall.bat" %VCVARS_PLATFORM%
|
|
72
|
-
|
|
73
|
-
build_script:
|
|
74
|
-
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; ./autogen.sh)"
|
|
75
|
-
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; ./configure CC='%MSVCC%' CXX='%MSVCC%' LD='link' CPP='cl -nologo -EP' CXXCPP='cl -nologo -EP' CPPFLAGS='-DFFI_BUILDING_DLL' AR='/cygdrive/c/projects/libffi/.travis/ar-lib lib' NM='dumpbin -symbols' STRIP=':' --build=$BUILD --host=$HOST $DEBUG_ARG $SHARED_ARG)"
|
|
76
|
-
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; cp src/%SRC_ARCHITECTURE%/ffitarget.h include)"
|
|
77
|
-
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; make)"
|
|
78
|
-
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; cp $HOST/.libs/libffi.lib $HOST/testsuite/libffi-8.lib || true)"
|
|
79
|
-
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; cp `find . -name 'libffi-?.dll'` $HOST/testsuite/ || true)"
|
|
80
|
-
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; TERM=none make check RUNTESTFLAGS='-v -v -v -v --target '$HOST DEJAGNU=$PWD/.appveyor/site.exp SITEDIR=$PWD/.appveyor)"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
on_finish:
|
|
84
|
-
- c:\cygwin64\bin\sh -lc "(cd $OLDPWD; cat `find ./ -name libffi.log`)"
|
data/ext/ffi_c/libffi/.ci/ar-lib
DELETED
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
#! /bin/sh
|
|
2
|
-
# Wrapper for Microsoft lib.exe
|
|
3
|
-
|
|
4
|
-
me=ar-lib
|
|
5
|
-
scriptversion=2012-03-01.08; # UTC
|
|
6
|
-
|
|
7
|
-
# Copyright (C) 2010-2018 Free Software Foundation, Inc.
|
|
8
|
-
# Written by Peter Rosin <peda@lysator.liu.se>.
|
|
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 <https://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
|
-
# This file is maintained in Automake, please report
|
|
29
|
-
# bugs to <bug-automake@gnu.org> or send patches to
|
|
30
|
-
# <automake-patches@gnu.org>.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# func_error message
|
|
34
|
-
func_error ()
|
|
35
|
-
{
|
|
36
|
-
echo "$me: $1" 1>&2
|
|
37
|
-
exit 1
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
file_conv=
|
|
41
|
-
|
|
42
|
-
# func_file_conv build_file
|
|
43
|
-
# Convert a $build file to $host form and store it in $file
|
|
44
|
-
# Currently only supports Windows hosts.
|
|
45
|
-
func_file_conv ()
|
|
46
|
-
{
|
|
47
|
-
file=$1
|
|
48
|
-
case $file in
|
|
49
|
-
/ | /[!/]*) # absolute file, and not a UNC file
|
|
50
|
-
if test -z "$file_conv"; then
|
|
51
|
-
# lazily determine how to convert abs files
|
|
52
|
-
case `uname -s` in
|
|
53
|
-
MINGW*)
|
|
54
|
-
file_conv=mingw
|
|
55
|
-
;;
|
|
56
|
-
CYGWIN*)
|
|
57
|
-
file_conv=cygwin
|
|
58
|
-
;;
|
|
59
|
-
*)
|
|
60
|
-
file_conv=wine
|
|
61
|
-
;;
|
|
62
|
-
esac
|
|
63
|
-
fi
|
|
64
|
-
case $file_conv in
|
|
65
|
-
mingw)
|
|
66
|
-
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
|
|
67
|
-
;;
|
|
68
|
-
cygwin)
|
|
69
|
-
file=`cygpath -m "$file" || echo "$file"`
|
|
70
|
-
;;
|
|
71
|
-
wine)
|
|
72
|
-
file=`winepath -w "$file" || echo "$file"`
|
|
73
|
-
;;
|
|
74
|
-
esac
|
|
75
|
-
;;
|
|
76
|
-
esac
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
# func_at_file at_file operation archive
|
|
80
|
-
# Iterate over all members in AT_FILE performing OPERATION on ARCHIVE
|
|
81
|
-
# for each of them.
|
|
82
|
-
# When interpreting the content of the @FILE, do NOT use func_file_conv,
|
|
83
|
-
# since the user would need to supply preconverted file names to
|
|
84
|
-
# binutils ar, at least for MinGW.
|
|
85
|
-
func_at_file ()
|
|
86
|
-
{
|
|
87
|
-
operation=$2
|
|
88
|
-
archive=$3
|
|
89
|
-
at_file_contents=`cat "$1"`
|
|
90
|
-
eval set x "$at_file_contents"
|
|
91
|
-
shift
|
|
92
|
-
|
|
93
|
-
for member
|
|
94
|
-
do
|
|
95
|
-
$AR -NOLOGO $operation:"$member" "$archive" || exit $?
|
|
96
|
-
done
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
case $1 in
|
|
100
|
-
'')
|
|
101
|
-
func_error "no command. Try '$0 --help' for more information."
|
|
102
|
-
;;
|
|
103
|
-
-h | --h*)
|
|
104
|
-
cat <<EOF
|
|
105
|
-
Usage: $me [--help] [--version] PROGRAM ACTION ARCHIVE [MEMBER...]
|
|
106
|
-
|
|
107
|
-
Members may be specified in a file named with @FILE.
|
|
108
|
-
EOF
|
|
109
|
-
exit $?
|
|
110
|
-
;;
|
|
111
|
-
-v | --v*)
|
|
112
|
-
echo "$me, version $scriptversion"
|
|
113
|
-
exit $?
|
|
114
|
-
;;
|
|
115
|
-
esac
|
|
116
|
-
|
|
117
|
-
if test $# -lt 3; then
|
|
118
|
-
func_error "you must specify a program, an action and an archive"
|
|
119
|
-
fi
|
|
120
|
-
|
|
121
|
-
AR=$1
|
|
122
|
-
shift
|
|
123
|
-
while :
|
|
124
|
-
do
|
|
125
|
-
if test $# -lt 2; then
|
|
126
|
-
func_error "you must specify a program, an action and an archive"
|
|
127
|
-
fi
|
|
128
|
-
case $1 in
|
|
129
|
-
-lib | -LIB \
|
|
130
|
-
| -ltcg | -LTCG \
|
|
131
|
-
| -machine* | -MACHINE* \
|
|
132
|
-
| -subsystem* | -SUBSYSTEM* \
|
|
133
|
-
| -verbose | -VERBOSE \
|
|
134
|
-
| -wx* | -WX* )
|
|
135
|
-
AR="$AR $1"
|
|
136
|
-
shift
|
|
137
|
-
;;
|
|
138
|
-
*)
|
|
139
|
-
action=$1
|
|
140
|
-
shift
|
|
141
|
-
break
|
|
142
|
-
;;
|
|
143
|
-
esac
|
|
144
|
-
done
|
|
145
|
-
orig_archive=$1
|
|
146
|
-
shift
|
|
147
|
-
func_file_conv "$orig_archive"
|
|
148
|
-
archive=$file
|
|
149
|
-
|
|
150
|
-
# strip leading dash in $action
|
|
151
|
-
action=${action#-}
|
|
152
|
-
|
|
153
|
-
delete=
|
|
154
|
-
extract=
|
|
155
|
-
list=
|
|
156
|
-
quick=
|
|
157
|
-
replace=
|
|
158
|
-
index=
|
|
159
|
-
create=
|
|
160
|
-
|
|
161
|
-
while test -n "$action"
|
|
162
|
-
do
|
|
163
|
-
case $action in
|
|
164
|
-
d*) delete=yes ;;
|
|
165
|
-
x*) extract=yes ;;
|
|
166
|
-
t*) list=yes ;;
|
|
167
|
-
q*) quick=yes ;;
|
|
168
|
-
r*) replace=yes ;;
|
|
169
|
-
s*) index=yes ;;
|
|
170
|
-
S*) ;; # the index is always updated implicitly
|
|
171
|
-
c*) create=yes ;;
|
|
172
|
-
u*) ;; # TODO: don't ignore the update modifier
|
|
173
|
-
v*) ;; # TODO: don't ignore the verbose modifier
|
|
174
|
-
*)
|
|
175
|
-
func_error "unknown action specified"
|
|
176
|
-
;;
|
|
177
|
-
esac
|
|
178
|
-
action=${action#?}
|
|
179
|
-
done
|
|
180
|
-
|
|
181
|
-
case $delete$extract$list$quick$replace,$index in
|
|
182
|
-
yes,* | ,yes)
|
|
183
|
-
;;
|
|
184
|
-
yesyes*)
|
|
185
|
-
func_error "more than one action specified"
|
|
186
|
-
;;
|
|
187
|
-
*)
|
|
188
|
-
func_error "no action specified"
|
|
189
|
-
;;
|
|
190
|
-
esac
|
|
191
|
-
|
|
192
|
-
if test -n "$delete"; then
|
|
193
|
-
if test ! -f "$orig_archive"; then
|
|
194
|
-
func_error "archive not found"
|
|
195
|
-
fi
|
|
196
|
-
for member
|
|
197
|
-
do
|
|
198
|
-
case $1 in
|
|
199
|
-
@*)
|
|
200
|
-
func_at_file "${1#@}" -REMOVE "$archive"
|
|
201
|
-
;;
|
|
202
|
-
*)
|
|
203
|
-
func_file_conv "$1"
|
|
204
|
-
$AR -NOLOGO -REMOVE:"$file" "$archive" || exit $?
|
|
205
|
-
;;
|
|
206
|
-
esac
|
|
207
|
-
done
|
|
208
|
-
|
|
209
|
-
elif test -n "$extract"; then
|
|
210
|
-
if test ! -f "$orig_archive"; then
|
|
211
|
-
func_error "archive not found"
|
|
212
|
-
fi
|
|
213
|
-
if test $# -gt 0; then
|
|
214
|
-
for member
|
|
215
|
-
do
|
|
216
|
-
case $1 in
|
|
217
|
-
@*)
|
|
218
|
-
func_at_file "${1#@}" -EXTRACT "$archive"
|
|
219
|
-
;;
|
|
220
|
-
*)
|
|
221
|
-
func_file_conv "$1"
|
|
222
|
-
$AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $?
|
|
223
|
-
;;
|
|
224
|
-
esac
|
|
225
|
-
done
|
|
226
|
-
else
|
|
227
|
-
$AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member
|
|
228
|
-
do
|
|
229
|
-
$AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
|
|
230
|
-
done
|
|
231
|
-
fi
|
|
232
|
-
|
|
233
|
-
elif test -n "$quick$replace"; then
|
|
234
|
-
if test ! -f "$orig_archive"; then
|
|
235
|
-
if test -z "$create"; then
|
|
236
|
-
echo "$me: creating $orig_archive"
|
|
237
|
-
fi
|
|
238
|
-
orig_archive=
|
|
239
|
-
else
|
|
240
|
-
orig_archive=$archive
|
|
241
|
-
fi
|
|
242
|
-
|
|
243
|
-
for member
|
|
244
|
-
do
|
|
245
|
-
case $1 in
|
|
246
|
-
@*)
|
|
247
|
-
func_file_conv "${1#@}"
|
|
248
|
-
set x "$@" "@$file"
|
|
249
|
-
;;
|
|
250
|
-
*)
|
|
251
|
-
func_file_conv "$1"
|
|
252
|
-
set x "$@" "$file"
|
|
253
|
-
;;
|
|
254
|
-
esac
|
|
255
|
-
shift
|
|
256
|
-
shift
|
|
257
|
-
done
|
|
258
|
-
|
|
259
|
-
if test -n "$orig_archive"; then
|
|
260
|
-
$AR -NOLOGO -OUT:"$archive" "$orig_archive" "$@" || exit $?
|
|
261
|
-
else
|
|
262
|
-
$AR -NOLOGO -OUT:"$archive" "$@" || exit $?
|
|
263
|
-
fi
|
|
264
|
-
|
|
265
|
-
elif test -n "$list"; then
|
|
266
|
-
if test ! -f "$orig_archive"; then
|
|
267
|
-
func_error "archive not found"
|
|
268
|
-
fi
|
|
269
|
-
$AR -NOLOGO -LIST "$archive" || exit $?
|
|
270
|
-
fi
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# Copyright (C) 2010, 2019 Free Software Foundation, Inc.
|
|
2
|
-
#
|
|
3
|
-
# This file is part of DejaGnu.
|
|
4
|
-
#
|
|
5
|
-
# DejaGnu is free software; you can redistribute it and/or modify it
|
|
6
|
-
# under the terms of the GNU General Public License as published by
|
|
7
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
8
|
-
# (at your option) any later version.
|
|
9
|
-
#
|
|
10
|
-
# DejaGnu is distributed in the hope that it will be useful, but
|
|
11
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
-
# General Public License for more details.
|
|
14
|
-
#
|
|
15
|
-
# You should have received a copy of the GNU General Public License
|
|
16
|
-
# along with DejaGnu; if not, write to the Free Software Foundation,
|
|
17
|
-
# Inc., 51 Franklin Street, Fifth Floor, MA 02110, USA.
|
|
18
|
-
|
|
19
|
-
# This is a list of toolchains that are supported on this board.
|
|
20
|
-
set_board_info target_install {bfin-elf}
|
|
21
|
-
|
|
22
|
-
# Load the generic configuration for this board. This will define a basic set
|
|
23
|
-
# of routines needed by the tool to communicate with the board.
|
|
24
|
-
load_generic_config "sim"
|
|
25
|
-
|
|
26
|
-
# basic-sim.exp is a basic description for the standard Cygnus simulator.
|
|
27
|
-
load_base_board_description "basic-sim"
|
|
28
|
-
|
|
29
|
-
# "bfin" is the name of the sim subdir in devo/sim.
|
|
30
|
-
setup_sim bfin
|
|
31
|
-
|
|
32
|
-
# No multilib options needed by default.
|
|
33
|
-
process_multilib_options ""
|
|
34
|
-
|
|
35
|
-
# We only support newlib on this target. We assume that all multilib
|
|
36
|
-
# options have been specified before we get here.
|
|
37
|
-
|
|
38
|
-
set_board_info compiler "[find_gcc]"
|
|
39
|
-
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
|
|
40
|
-
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
|
|
41
|
-
|
|
42
|
-
# Configuration settings for testsuites
|
|
43
|
-
set_board_info noargs 1
|
|
44
|
-
set_board_info gdb,nosignals 1
|
|
45
|
-
set_board_info gdb,noresults 1
|
|
46
|
-
set_board_info gdb,cannot_call_functions 1
|
|
47
|
-
set_board_info gdb,skip_float_tests 1
|
|
48
|
-
set_board_info gdb,can_reverse 1
|
|
49
|
-
set_board_info gdb,use_precord 1
|
|
50
|
-
|
|
51
|
-
# More time is needed
|
|
52
|
-
set_board_info gcc,timeout 800
|
|
53
|
-
set_board_info gdb,timeout 60
|
|
54
|
-
|
|
55
|
-
# Used by a few gcc.c-torture testcases to delimit how large the stack can
|
|
56
|
-
# be.
|
|
57
|
-
set_board_info gcc,stack_size 5000
|
|
58
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -x
|
|
3
|
-
|
|
4
|
-
cd /opt
|
|
5
|
-
|
|
6
|
-
echo $PATH
|
|
7
|
-
export PATH=/usr/local/bin:$PATH
|
|
8
|
-
echo $PATH
|
|
9
|
-
|
|
10
|
-
export DEJAGNU=$(pwd)/.ci/site.exp
|
|
11
|
-
echo $DEJAGNU
|
|
12
|
-
ls -l $DEJAGNU
|
|
13
|
-
pwd
|
|
14
|
-
find .
|
|
15
|
-
./configure --host=${HOST} || cat */config.log
|
|
16
|
-
make
|
|
17
|
-
make dist
|
|
18
|
-
BOARDSDIR=$(pwd)/.ci make check RUNTESTFLAGS="-a $RUNTESTFLAGS" || true
|