@zigc/lib 0.16.0-test.1 → 0.17.0-dev.131
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.
- package/LICENSE +19 -0
- package/c/fcntl.zig +6 -1
- package/c/inttypes.zig +0 -10
- package/c/math.zig +138 -114
- package/c/pthread.zig +57 -0
- package/c/search.zig +1 -27
- package/c/stdlib/drand48.zig +0 -57
- package/c/stdlib.zig +0 -100
- package/c/string.zig +20 -7
- package/c/strings.zig +0 -38
- package/c/stropts.zig +17 -0
- package/c/unistd.zig +27 -26
- package/c/wchar.zig +10 -0
- package/c.zig +3 -2
- package/compiler/aro/aro/Attribute/names.zig +604 -589
- package/compiler/aro/aro/Attribute.zig +202 -116
- package/compiler/aro/aro/Builtins/common.zig +874 -863
- package/compiler/aro/aro/Builtins/eval.zig +15 -7
- package/compiler/aro/aro/Builtins.zig +0 -1
- package/compiler/aro/aro/CodeGen.zig +8 -7
- package/compiler/aro/aro/Compilation.zig +137 -111
- package/compiler/aro/aro/Diagnostics.zig +21 -17
- package/compiler/aro/aro/Driver/GCCDetector.zig +635 -0
- package/compiler/aro/aro/Driver.zig +138 -63
- package/compiler/aro/aro/LangOpts.zig +12 -2
- package/compiler/aro/aro/Parser/Diagnostic.zig +79 -19
- package/compiler/aro/aro/Parser.zig +352 -153
- package/compiler/aro/aro/Pragma.zig +3 -2
- package/compiler/aro/aro/Preprocessor/Diagnostic.zig +21 -0
- package/compiler/aro/aro/Preprocessor.zig +136 -62
- package/compiler/aro/aro/Target.zig +17 -12
- package/compiler/aro/aro/Tokenizer.zig +31 -14
- package/compiler/aro/aro/Toolchain.zig +4 -7
- package/compiler/aro/aro/Tree.zig +178 -148
- package/compiler/aro/aro/TypeStore.zig +82 -24
- package/compiler/aro/aro/Value.zig +13 -17
- package/compiler/aro/aro/features.zig +1 -0
- package/compiler/aro/aro/pragmas/message.zig +3 -2
- package/compiler/aro/aro/pragmas/once.zig +0 -1
- package/compiler/aro/aro/record_layout.zig +3 -3
- package/compiler/aro/aro/text_literal.zig +3 -2
- package/compiler/aro/assembly_backend/x86_64.zig +7 -8
- package/compiler/aro/backend/Assembly.zig +1 -2
- package/compiler/aro/backend/Interner.zig +2 -2
- package/compiler/aro/backend/Ir.zig +100 -92
- package/compiler/aro/include/ptrcheck.h +49 -0
- package/compiler/aro/main.zig +26 -10
- package/compiler/build_runner.zig +1 -2
- package/compiler/objdump.zig +93 -0
- package/compiler/reduce/Walk.zig +7 -7
- package/compiler/reduce.zig +5 -1
- package/compiler/resinator/compile.zig +2 -2
- package/compiler/resinator/main.zig +7 -1
- package/compiler/resinator/preprocess.zig +1 -3
- package/compiler/std-docs.zig +8 -1
- package/compiler/test_runner.zig +194 -62
- package/compiler/translate-c/MacroTranslator.zig +80 -11
- package/compiler/translate-c/PatternList.zig +1 -9
- package/compiler/translate-c/Scope.zig +43 -6
- package/compiler/translate-c/Translator.zig +369 -127
- package/compiler/translate-c/ast.zig +19 -11
- package/compiler/translate-c/main.zig +76 -17
- package/compiler_rt/cos.zig +140 -53
- package/compiler_rt/divmodei4.zig +40 -17
- package/compiler_rt/exp.zig +1 -6
- package/compiler_rt/exp2.zig +1 -6
- package/compiler_rt/exp_f128.zig +377 -0
- package/compiler_rt/fabs.zig +0 -2
- package/compiler_rt/fma.zig +0 -2
- package/compiler_rt/fmax.zig +0 -2
- package/compiler_rt/fmin.zig +0 -2
- package/compiler_rt/fmod.zig +0 -2
- package/compiler_rt/limb64.zig +1127 -0
- package/compiler_rt/log.zig +0 -2
- package/compiler_rt/log10.zig +0 -2
- package/compiler_rt/log2.zig +0 -2
- package/compiler_rt/long_double.zig +37 -0
- package/compiler_rt/mulXi3.zig +1 -1
- package/compiler_rt/mulo.zig +6 -1
- package/compiler_rt/rem_pio2l.zig +173 -0
- package/compiler_rt/round.zig +0 -2
- package/compiler_rt/sin.zig +139 -56
- package/compiler_rt/sincos.zig +277 -72
- package/compiler_rt/sqrt.zig +0 -2
- package/compiler_rt/ssp.zig +1 -1
- package/compiler_rt/tan.zig +117 -48
- package/compiler_rt/trig.zig +256 -6
- package/compiler_rt/trunc.zig +0 -2
- package/compiler_rt/udivmodei4.zig +28 -0
- package/compiler_rt.zig +2 -0
- package/fuzzer.zig +857 -307
- package/libc/musl/arch/mipsn32/syscall_arch.h +35 -32
- package/libc/musl/src/math/pow.c +343 -0
- package/package.json +1 -1
- package/std/Build/Cache.zig +6 -6
- package/std/Build/Fuzz.zig +6 -19
- package/std/Build/Module.zig +1 -1
- package/std/Build/Step/CheckObject.zig +3 -3
- package/std/Build/Step/Compile.zig +18 -1
- package/std/Build/Step/ConfigHeader.zig +49 -33
- package/std/Build/Step/InstallArtifact.zig +18 -0
- package/std/Build/Step/Run.zig +538 -89
- package/std/Build/Step/TranslateC.zig +0 -6
- package/std/Build/Step.zig +10 -19
- package/std/Build/WebServer.zig +31 -19
- package/std/Build/abi.zig +47 -11
- package/std/Build.zig +17 -17
- package/std/Io/Dir.zig +7 -2
- package/std/Io/Dispatch.zig +5 -13
- package/std/Io/File/Reader.zig +3 -1
- package/std/Io/File/Writer.zig +8 -6
- package/std/Io/File.zig +1 -0
- package/std/Io/Kqueue.zig +2 -2
- package/std/Io/Reader.zig +8 -9
- package/std/Io/Semaphore.zig +112 -17
- package/std/Io/Terminal.zig +1 -1
- package/std/Io/Threaded.zig +352 -180
- package/std/Io/Uring.zig +15 -16
- package/std/Io/Writer.zig +46 -42
- package/std/Io/net.zig +11 -11
- package/std/Io.zig +1052 -20
- package/std/SemanticVersion.zig +1 -1
- package/std/Target/Query.zig +2 -2
- package/std/Target.zig +53 -7
- package/std/Thread.zig +8 -3
- package/std/array_hash_map.zig +105 -573
- package/std/array_list.zig +22 -31
- package/std/bit_set.zig +22 -6
- package/std/builtin/assembly.zig +68 -0
- package/std/builtin.zig +4 -0
- package/std/c/haiku.zig +3 -0
- package/std/c/serenity.zig +1 -6
- package/std/c.zig +106 -24
- package/std/compress/flate/Compress.zig +3 -3
- package/std/compress/flate/Decompress.zig +2 -3
- package/std/compress/zstd/Decompress.zig +2 -4
- package/std/crypto/Certificate/Bundle.zig +15 -1
- package/std/crypto/Certificate.zig +13 -1
- package/std/crypto/ascon.zig +75 -33
- package/std/crypto/codecs/asn1/Oid.zig +12 -1
- package/std/crypto/codecs/asn1.zig +33 -18
- package/std/crypto/codecs/base64_hex_ct.zig +16 -8
- package/std/crypto/ml_kem.zig +2 -9
- package/std/crypto/tls/Client.zig +79 -4
- package/std/crypto/tls.zig +1 -1
- package/std/crypto.zig +1 -0
- package/std/debug/Dwarf.zig +29 -9
- package/std/debug/Info.zig +4 -0
- package/std/debug/MachOFile.zig +46 -8
- package/std/debug/Pdb.zig +540 -37
- package/std/debug/SelfInfo/Elf.zig +19 -18
- package/std/debug/SelfInfo/MachO.zig +18 -7
- package/std/debug/SelfInfo/Windows.zig +138 -36
- package/std/debug.zig +181 -66
- package/std/enums.zig +25 -19
- package/std/fmt.zig +8 -3
- package/std/fs/path.zig +6 -4
- package/std/heap/ArenaAllocator.zig +145 -154
- package/std/heap/BufferFirstAllocator.zig +165 -0
- package/std/heap/debug_allocator.zig +7 -7
- package/std/heap.zig +2 -126
- package/std/http/Client.zig +31 -30
- package/std/http.zig +14 -13
- package/std/json/Scanner.zig +2 -2
- package/std/json/Stringify.zig +3 -3
- package/std/json/dynamic.zig +4 -4
- package/std/math/big/int.zig +16 -17
- package/std/mem/Allocator.zig +4 -5
- package/std/mem.zig +48 -0
- package/std/os/emscripten.zig +2 -18
- package/std/os/linux/IoUring.zig +2 -0
- package/std/os/linux/aarch64.zig +41 -12
- package/std/os/linux/arc.zig +173 -0
- package/std/os/linux/arm.zig +41 -12
- package/std/os/linux/hexagon.zig +33 -11
- package/std/os/linux/loongarch32.zig +41 -13
- package/std/os/linux/loongarch64.zig +41 -12
- package/std/os/linux/m68k.zig +41 -13
- package/std/os/linux/mips.zig +67 -36
- package/std/os/linux/mips64.zig +60 -29
- package/std/os/linux/mipsn32.zig +60 -29
- package/std/os/linux/or1k.zig +41 -12
- package/std/os/linux/powerpc.zig +41 -12
- package/std/os/linux/powerpc64.zig +41 -12
- package/std/os/linux/riscv32.zig +41 -12
- package/std/os/linux/riscv64.zig +41 -12
- package/std/os/linux/s390x.zig +44 -7
- package/std/os/linux/sparc64.zig +83 -52
- package/std/os/linux/thumb.zig +52 -36
- package/std/os/linux/x32.zig +41 -12
- package/std/os/linux/x86.zig +42 -13
- package/std/os/linux/x86_64.zig +41 -12
- package/std/os/linux.zig +419 -438
- package/std/os/uefi/tables/boot_services.zig +9 -8
- package/std/os/windows.zig +2 -2
- package/std/os.zig +41 -0
- package/std/pdb.zig +143 -4
- package/std/posix.zig +6 -12
- package/std/priority_dequeue.zig +13 -12
- package/std/priority_queue.zig +5 -4
- package/std/process/Child.zig +1 -1
- package/std/process/Environ.zig +1 -1
- package/std/process.zig +1 -1
- package/std/sort.zig +3 -3
- package/std/start.zig +17 -4
- package/std/std.zig +19 -6
- package/std/testing/FailingAllocator.zig +4 -4
- package/std/testing/Smith.zig +37 -2
- package/std/zig/Ast/Render.zig +187 -459
- package/std/zig/Ast.zig +0 -4
- package/std/zig/AstGen.zig +86 -103
- package/std/zig/AstRlAnnotate.zig +0 -11
- package/std/zig/AstSmith.zig +2602 -0
- package/std/zig/BuiltinFn.zig +0 -32
- package/std/zig/Client.zig +8 -3
- package/std/zig/LibCInstallation.zig +4 -3
- package/std/zig/Parse.zig +90 -81
- package/std/zig/Server.zig +26 -0
- package/std/zig/WindowsSdk.zig +13 -13
- package/std/zig/Zir.zig +66 -62
- package/std/zig/ZonGen.zig +6 -5
- package/std/zig/c_translation/helpers.zig +14 -9
- package/std/zig/llvm/Builder.zig +119 -60
- package/std/zig/system.zig +20 -4
- package/std/zig/tokenizer.zig +2 -1
- package/std/zig.zig +7 -10
- package/std/zip.zig +5 -5
- package/zig.h +340 -1
- package/compiler/aro/aro/Driver/Filesystem.zig +0 -241
- package/libc/mingw/complex/cabs.c +0 -48
- package/libc/mingw/complex/cabsf.c +0 -48
- package/libc/mingw/complex/cacos.c +0 -50
- package/libc/mingw/complex/cacosf.c +0 -50
- package/libc/mingw/complex/carg.c +0 -48
- package/libc/mingw/complex/cargf.c +0 -48
- package/libc/mingw/complex/casin.c +0 -50
- package/libc/mingw/complex/casinf.c +0 -50
- package/libc/mingw/complex/catan.c +0 -50
- package/libc/mingw/complex/catanf.c +0 -50
- package/libc/mingw/complex/ccos.c +0 -50
- package/libc/mingw/complex/ccosf.c +0 -50
- package/libc/mingw/complex/cexp.c +0 -48
- package/libc/mingw/complex/cexpf.c +0 -48
- package/libc/mingw/complex/cimag.c +0 -48
- package/libc/mingw/complex/cimagf.c +0 -48
- package/libc/mingw/complex/clog.c +0 -48
- package/libc/mingw/complex/clog10.c +0 -49
- package/libc/mingw/complex/clog10f.c +0 -49
- package/libc/mingw/complex/clogf.c +0 -48
- package/libc/mingw/complex/conj.c +0 -48
- package/libc/mingw/complex/conjf.c +0 -48
- package/libc/mingw/complex/cpow.c +0 -48
- package/libc/mingw/complex/cpowf.c +0 -48
- package/libc/mingw/complex/cproj.c +0 -48
- package/libc/mingw/complex/cprojf.c +0 -48
- package/libc/mingw/complex/creal.c +0 -48
- package/libc/mingw/complex/crealf.c +0 -48
- package/libc/mingw/complex/csin.c +0 -50
- package/libc/mingw/complex/csinf.c +0 -50
- package/libc/mingw/complex/csqrt.c +0 -48
- package/libc/mingw/complex/csqrtf.c +0 -48
- package/libc/mingw/complex/ctan.c +0 -50
- package/libc/mingw/complex/ctanf.c +0 -50
- package/libc/mingw/math/arm/s_rint.c +0 -86
- package/libc/mingw/math/arm/s_rintf.c +0 -51
- package/libc/mingw/math/arm/sincos.S +0 -30
- package/libc/mingw/math/arm-common/sincosl.c +0 -13
- package/libc/mingw/math/arm64/rint.c +0 -12
- package/libc/mingw/math/arm64/rintf.c +0 -12
- package/libc/mingw/math/arm64/sincos.S +0 -32
- package/libc/mingw/math/bsd_private_base.h +0 -148
- package/libc/mingw/math/fdiml.c +0 -24
- package/libc/mingw/math/frexpf.c +0 -13
- package/libc/mingw/math/frexpl.c +0 -71
- package/libc/mingw/math/x86/acosf.c +0 -29
- package/libc/mingw/math/x86/atanf.c +0 -23
- package/libc/mingw/math/x86/atanl.c +0 -18
- package/libc/mingw/math/x86/cos.def.h +0 -65
- package/libc/mingw/math/x86/cosl.c +0 -46
- package/libc/mingw/math/x86/cosl_internal.S +0 -55
- package/libc/mingw/math/x86/ldexp.c +0 -23
- package/libc/mingw/math/x86/scalbn.S +0 -41
- package/libc/mingw/math/x86/scalbnf.S +0 -40
- package/libc/mingw/math/x86/sin.def.h +0 -65
- package/libc/mingw/math/x86/sinl.c +0 -46
- package/libc/mingw/math/x86/sinl_internal.S +0 -58
- package/libc/mingw/math/x86/tanl.S +0 -62
- package/libc/mingw/misc/btowc.c +0 -28
- package/libc/mingw/misc/wcstof.c +0 -66
- package/libc/mingw/misc/wcstoimax.c +0 -132
- package/libc/mingw/misc/wcstoumax.c +0 -126
- package/libc/mingw/misc/wctob.c +0 -29
- package/libc/mingw/misc/winbs_uint64.c +0 -6
- package/libc/mingw/misc/winbs_ulong.c +0 -6
- package/libc/mingw/misc/winbs_ushort.c +0 -6
- package/libc/mingw/stdio/_Exit.c +0 -10
- package/libc/mingw/stdio/_findfirst64i32.c +0 -21
- package/libc/mingw/stdio/_findnext64i32.c +0 -21
- package/libc/mingw/stdio/_fstat64i32.c +0 -37
- package/libc/mingw/stdio/_stat64i32.c +0 -37
- package/libc/mingw/stdio/_wfindfirst64i32.c +0 -21
- package/libc/mingw/stdio/_wfindnext64i32.c +0 -21
- package/libc/mingw/stdio/_wstat64i32.c +0 -37
- package/libc/mingw/winpthreads/spinlock.c +0 -82
- package/libc/musl/src/legacy/isastream.c +0 -7
- package/libc/musl/src/legacy/valloc.c +0 -8
- package/libc/musl/src/linux/tee.c +0 -8
- package/libc/musl/src/math/__cosl.c +0 -96
- package/libc/musl/src/math/__sinl.c +0 -78
- package/libc/musl/src/math/__tanl.c +0 -143
- package/libc/musl/src/math/aarch64/lrint.c +0 -10
- package/libc/musl/src/math/aarch64/lrintf.c +0 -10
- package/libc/musl/src/math/aarch64/rintf.c +0 -7
- package/libc/musl/src/math/cosl.c +0 -39
- package/libc/musl/src/math/fdim.c +0 -10
- package/libc/musl/src/math/fdimf.c +0 -10
- package/libc/musl/src/math/fdiml.c +0 -18
- package/libc/musl/src/math/finite.c +0 -7
- package/libc/musl/src/math/finitef.c +0 -7
- package/libc/musl/src/math/frexp.c +0 -23
- package/libc/musl/src/math/frexpf.c +0 -23
- package/libc/musl/src/math/frexpl.c +0 -29
- package/libc/musl/src/math/i386/lrint.c +0 -8
- package/libc/musl/src/math/i386/lrintf.c +0 -8
- package/libc/musl/src/math/i386/rintf.c +0 -7
- package/libc/musl/src/math/lrint.c +0 -72
- package/libc/musl/src/math/lrintf.c +0 -8
- package/libc/musl/src/math/powerpc64/lrint.c +0 -16
- package/libc/musl/src/math/powerpc64/lrintf.c +0 -16
- package/libc/musl/src/math/rintf.c +0 -30
- package/libc/musl/src/math/s390x/rintf.c +0 -15
- package/libc/musl/src/math/sincosl.c +0 -60
- package/libc/musl/src/math/sinl.c +0 -41
- package/libc/musl/src/math/tanl.c +0 -29
- package/libc/musl/src/math/x32/lrint.s +0 -5
- package/libc/musl/src/math/x32/lrintf.s +0 -5
- package/libc/musl/src/math/x86_64/lrint.c +0 -8
- package/libc/musl/src/math/x86_64/lrintf.c +0 -8
- package/libc/musl/src/string/strdup.c +0 -10
- package/libc/musl/src/string/strndup.c +0 -12
- package/libc/musl/src/string/wcsdup.c +0 -10
- package/libc/musl/src/thread/pthread_spin_destroy.c +0 -6
- package/libc/musl/src/thread/pthread_spin_init.c +0 -6
- package/libc/musl/src/thread/pthread_spin_lock.c +0 -8
- package/libc/musl/src/thread/pthread_spin_trylock.c +0 -7
- package/libc/musl/src/thread/pthread_spin_unlock.c +0 -7
- package/libc/musl/src/unistd/dup2.c +0 -20
- package/libc/musl/src/unistd/dup3.c +0 -26
- package/libc/wasi/libc-bottom-half/sources/reallocarray.c +0 -14
- package/libc/wasi/thread-stub/pthread_spin_lock.c +0 -8
- package/libc/wasi/thread-stub/pthread_spin_trylock.c +0 -8
- package/libc/wasi/thread-stub/pthread_spin_unlock.c +0 -7
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
const builtin = @import("builtin");
|
|
2
|
-
const is_windows = builtin.os.tag == .windows;
|
|
3
|
-
|
|
4
|
-
const std = @import("std");
|
|
5
|
-
const Io = std.Io;
|
|
6
|
-
const mem = std.std.mem;
|
|
7
|
-
|
|
8
|
-
fn readFileFake(entries: []const Filesystem.Entry, path: []const u8, buf: []u8) ?[]const u8 {
|
|
9
|
-
@branchHint(.cold);
|
|
10
|
-
for (entries) |entry| {
|
|
11
|
-
if (mem.eql(u8, entry.path, path)) {
|
|
12
|
-
const len = @min(entry.contents.len, buf.len);
|
|
13
|
-
@memcpy(buf[0..len], entry.contents[0..len]);
|
|
14
|
-
return buf[0..len];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
fn findProgramByNameFake(entries: []const Filesystem.Entry, name: []const u8, path: ?[]const u8, buf: []u8) ?[]const u8 {
|
|
21
|
-
@branchHint(.cold);
|
|
22
|
-
if (mem.indexOfScalar(u8, name, '/') != null) {
|
|
23
|
-
@memcpy(buf[0..name.len], name);
|
|
24
|
-
return buf[0..name.len];
|
|
25
|
-
}
|
|
26
|
-
const path_env = path orelse return null;
|
|
27
|
-
var fib = std.heap.FixedBufferAllocator.init(buf);
|
|
28
|
-
|
|
29
|
-
var it = mem.tokenizeScalar(u8, path_env, std.fs.path.delimiter);
|
|
30
|
-
while (it.next()) |path_dir| {
|
|
31
|
-
defer fib.reset();
|
|
32
|
-
const full_path = std.fs.path.join(fib.allocator(), &.{ path_dir, name }) catch continue;
|
|
33
|
-
if (canExecuteFake(entries, full_path)) return full_path;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
fn canExecuteFake(entries: []const Filesystem.Entry, path: []const u8) bool {
|
|
40
|
-
@branchHint(.cold);
|
|
41
|
-
for (entries) |entry| {
|
|
42
|
-
if (mem.eql(u8, entry.path, path)) {
|
|
43
|
-
return entry.executable;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return false;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
fn existsFake(entries: []const Filesystem.Entry, path: []const u8) bool {
|
|
50
|
-
@branchHint(.cold);
|
|
51
|
-
var buf: [std.fs.max_path_bytes]u8 = undefined;
|
|
52
|
-
var fib = std.heap.FixedBufferAllocator.init(&buf);
|
|
53
|
-
const resolved = std.fs.path.resolvePosix(fib.allocator(), &.{path}) catch return false;
|
|
54
|
-
for (entries) |entry| {
|
|
55
|
-
if (mem.eql(u8, entry.path, resolved)) return true;
|
|
56
|
-
}
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
fn canExecutePosix(io: Io, path: []const u8) bool {
|
|
61
|
-
Io.Dir.accessAbsolute(io, path, .{ .execute = true }) catch return false;
|
|
62
|
-
// Todo: ensure path is not a directory
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/// TODO
|
|
67
|
-
fn canExecuteWindows(path: []const u8) bool {
|
|
68
|
-
_ = path;
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/// TODO
|
|
73
|
-
fn findProgramByNameWindows(allocator: std.mem.Allocator, name: []const u8, path: ?[]const u8, buf: []u8) ?[]const u8 {
|
|
74
|
-
_ = path;
|
|
75
|
-
_ = buf;
|
|
76
|
-
_ = name;
|
|
77
|
-
_ = allocator;
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/// TODO: does WASI need special handling?
|
|
82
|
-
fn findProgramByNamePosix(name: []const u8, path: ?[]const u8, buf: []u8) ?[]const u8 {
|
|
83
|
-
if (mem.indexOfScalar(u8, name, '/') != null) {
|
|
84
|
-
@memcpy(buf[0..name.len], name);
|
|
85
|
-
return buf[0..name.len];
|
|
86
|
-
}
|
|
87
|
-
const path_env = path orelse return null;
|
|
88
|
-
var fib = std.heap.FixedBufferAllocator.init(buf);
|
|
89
|
-
|
|
90
|
-
var it = mem.tokenizeScalar(u8, path_env, std.fs.path.delimiter);
|
|
91
|
-
while (it.next()) |path_dir| {
|
|
92
|
-
defer fib.reset();
|
|
93
|
-
const full_path = std.fs.path.join(fib.allocator(), &.{ path_dir, name }) catch continue;
|
|
94
|
-
if (canExecutePosix(full_path)) return full_path;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return null;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
pub const Filesystem = union(enum) {
|
|
101
|
-
real: std.Io.Dir,
|
|
102
|
-
fake: []const Entry,
|
|
103
|
-
|
|
104
|
-
const Entry = struct {
|
|
105
|
-
path: []const u8,
|
|
106
|
-
contents: []const u8 = "",
|
|
107
|
-
executable: bool = false,
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
const FakeDir = struct {
|
|
111
|
-
entries: []const Entry,
|
|
112
|
-
path: []const u8,
|
|
113
|
-
|
|
114
|
-
fn iterate(self: FakeDir) FakeDir.Iterator {
|
|
115
|
-
return .{
|
|
116
|
-
.entries = self.entries,
|
|
117
|
-
.base = self.path,
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const Iterator = struct {
|
|
122
|
-
entries: []const Entry,
|
|
123
|
-
base: []const u8,
|
|
124
|
-
i: usize = 0,
|
|
125
|
-
|
|
126
|
-
fn next(self: *@This()) !?std.Io.Dir.Entry {
|
|
127
|
-
while (self.i < self.entries.len) {
|
|
128
|
-
const entry = self.entries[self.i];
|
|
129
|
-
self.i += 1;
|
|
130
|
-
if (entry.path.len == self.base.len) continue;
|
|
131
|
-
if (std.mem.startsWith(u8, entry.path, self.base)) {
|
|
132
|
-
const remaining = entry.path[self.base.len + 1 ..];
|
|
133
|
-
if (std.mem.indexOfScalar(u8, remaining, std.fs.path.sep) != null) continue;
|
|
134
|
-
const extension = std.fs.path.extension(remaining);
|
|
135
|
-
const kind: std.Io.Dir.Entry.Kind = if (extension.len == 0) .directory else .file;
|
|
136
|
-
return .{ .name = remaining, .kind = kind };
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
return null;
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
const Dir = union(enum) {
|
|
145
|
-
dir: std.Io.Dir,
|
|
146
|
-
fake: FakeDir,
|
|
147
|
-
|
|
148
|
-
pub fn iterate(self: Dir) Iterator {
|
|
149
|
-
return switch (self) {
|
|
150
|
-
.dir => |dir| .{ .iterator = dir.iterate() },
|
|
151
|
-
.fake => |fake| .{ .fake = fake.iterate() },
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
pub fn close(self: *Dir, io: Io) void {
|
|
156
|
-
switch (self.*) {
|
|
157
|
-
.dir => |*d| d.close(io),
|
|
158
|
-
.fake => {},
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
const Iterator = union(enum) {
|
|
164
|
-
iterator: std.Io.Dir.Iterator,
|
|
165
|
-
fake: FakeDir.Iterator,
|
|
166
|
-
|
|
167
|
-
pub fn next(self: *Iterator) std.Io.Dir.Iterator.Error!?std.Io.Dir.Entry {
|
|
168
|
-
return switch (self.*) {
|
|
169
|
-
.iterator => |*it| it.next(),
|
|
170
|
-
.fake => |*it| it.next(),
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
pub fn exists(fs: Filesystem, io: Io, path: []const u8) bool {
|
|
176
|
-
switch (fs) {
|
|
177
|
-
.real => |cwd| {
|
|
178
|
-
cwd.access(io, path, .{}) catch return false;
|
|
179
|
-
return true;
|
|
180
|
-
},
|
|
181
|
-
.fake => |paths| return existsFake(paths, path),
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
pub fn joinedExists(fs: Filesystem, parts: []const []const u8) bool {
|
|
186
|
-
var buf: [std.fs.max_path_bytes]u8 = undefined;
|
|
187
|
-
var fib = std.heap.FixedBufferAllocator.init(&buf);
|
|
188
|
-
const joined = std.fs.path.join(fib.allocator(), parts) catch return false;
|
|
189
|
-
return fs.exists(joined);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
pub fn canExecute(fs: Filesystem, path: []const u8) bool {
|
|
193
|
-
return switch (fs) {
|
|
194
|
-
.real => if (is_windows) canExecuteWindows(path) else canExecutePosix(path),
|
|
195
|
-
.fake => |entries| canExecuteFake(entries, path),
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/// Search for an executable named `name` using platform-specific logic
|
|
200
|
-
/// If it's found, write the full path to `buf` and return a slice of it
|
|
201
|
-
/// Otherwise retun null
|
|
202
|
-
pub fn findProgramByName(fs: Filesystem, allocator: std.mem.Allocator, name: []const u8, path: ?[]const u8, buf: []u8) ?[]const u8 {
|
|
203
|
-
std.debug.assert(name.len > 0);
|
|
204
|
-
return switch (fs) {
|
|
205
|
-
.real => if (is_windows) findProgramByNameWindows(allocator, name, path, buf) else findProgramByNamePosix(name, path, buf),
|
|
206
|
-
.fake => |entries| findProgramByNameFake(entries, name, path, buf),
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/// Read the file at `path` into `buf`.
|
|
211
|
-
/// Returns null if any errors are encountered
|
|
212
|
-
/// Otherwise returns a slice of `buf`. If the file is larger than `buf` partial contents are returned
|
|
213
|
-
pub fn readFile(fs: Filesystem, io: Io, path: []const u8, buf: []u8) ?[]const u8 {
|
|
214
|
-
return switch (fs) {
|
|
215
|
-
.real => |cwd| {
|
|
216
|
-
const file = cwd.openFile(io, path, .{}) catch return null;
|
|
217
|
-
defer file.close(io);
|
|
218
|
-
|
|
219
|
-
const bytes_read = file.readAll(buf) catch return null;
|
|
220
|
-
return buf[0..bytes_read];
|
|
221
|
-
},
|
|
222
|
-
.fake => |entries| readFileFake(entries, path, buf),
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
pub fn openDir(fs: Filesystem, io: Io, dir_name: []const u8) std.Io.Dir.OpenError!Dir {
|
|
227
|
-
return switch (fs) {
|
|
228
|
-
.real => |cwd| .{ .dir = try cwd.openDir(io, dir_name, .{ .access_sub_paths = false, .iterate = true }) },
|
|
229
|
-
.fake => |entries| .{ .fake = .{ .entries = entries, .path = dir_name } },
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
test "Fake filesystem" {
|
|
235
|
-
const fs: Filesystem = .{ .fake = &.{
|
|
236
|
-
.{ .path = "/usr/bin" },
|
|
237
|
-
} };
|
|
238
|
-
try std.testing.expect(fs.exists("/usr/bin"));
|
|
239
|
-
try std.testing.expect(fs.exists("/usr/bin/foo/.."));
|
|
240
|
-
try std.testing.expect(!fs.exists("/usr/bin/bar"));
|
|
241
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* double version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_DOUBLE 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
#include "cabs.def.h"
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* Float version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_FLOAT 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
#include "cabs.def.h"
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* double version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_DOUBLE 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
|
|
49
|
-
#include "cacosh.def.h"
|
|
50
|
-
#include "cacos.def.h"
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* Float version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_FLOAT 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
|
|
49
|
-
#include "cacosh.def.h"
|
|
50
|
-
#include "cacos.def.h"
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* double version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_DOUBLE 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
#include "carg.def.h"
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* Float version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_FLOAT 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
#include "carg.def.h"
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* double version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_DOUBLE 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
|
|
49
|
-
#include "casinh.def.h"
|
|
50
|
-
#include "casin.def.h"
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
This Software is provided under the Zope Public License (ZPL) Version 2.1.
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2009, 2010 by the mingw-w64 project
|
|
5
|
-
|
|
6
|
-
See the AUTHORS file for the list of contributors to the mingw-w64 project.
|
|
7
|
-
|
|
8
|
-
This license has been certified as open source. It has also been designated
|
|
9
|
-
as GPL compatible by the Free Software Foundation (FSF).
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
1. Redistributions in source code must retain the accompanying copyright
|
|
15
|
-
notice, this list of conditions, and the following disclaimer.
|
|
16
|
-
2. Redistributions in binary form must reproduce the accompanying
|
|
17
|
-
copyright notice, this list of conditions, and the following disclaimer
|
|
18
|
-
in the documentation and/or other materials provided with the
|
|
19
|
-
distribution.
|
|
20
|
-
3. Names of the copyright holders must not be used to endorse or promote
|
|
21
|
-
products derived from this software without prior written permission
|
|
22
|
-
from the copyright holders.
|
|
23
|
-
4. The right to distribute this software or to use it for any purpose does
|
|
24
|
-
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
|
25
|
-
the copyright holders. Use of them is covered by separate agreement
|
|
26
|
-
with the copyright holders.
|
|
27
|
-
5. If any files are modified, you must cause the modified files to carry
|
|
28
|
-
prominent notices stating that you changed the files and the date of
|
|
29
|
-
any change.
|
|
30
|
-
|
|
31
|
-
Disclaimer
|
|
32
|
-
|
|
33
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
|
34
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
35
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
|
36
|
-
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
37
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
38
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
|
39
|
-
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
40
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
41
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
42
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/* Float version of the functions. */
|
|
46
|
-
#define _NEW_COMPLEX_FLOAT 1
|
|
47
|
-
#include "complex_internal.h"
|
|
48
|
-
|
|
49
|
-
#include "casinh.def.h"
|
|
50
|
-
#include "casin.def.h"
|