zig/lib/std/c
Evan Haas ccdb81fb31 Improve handling of C compiler intrinsics in translate-c
C compiler intrinsics can only appear as part of a function call. When called
they are implicitly cast to a function pointer; treat this as a non-null
pointer so that it emits as a regular Zig function call.

Put `pub usingnamespace @import("std").c.builtins;` at the top of translated
C files so that they will have access to builtin functions defined there.

Fixes #6707
2020-12-22 23:59:30 +02:00
..
ast.zig move std.SegmentedList to the std-lib-orphanage 2020-11-30 13:04:26 -07:00
builtins.zig Improve handling of C compiler intrinsics in translate-c 2020-12-22 23:59:30 +02:00
darwin.zig Merge pull request #6385 from LemonBoy/callocator 2020-11-18 20:16:57 -08:00
dragonfly.zig Implement a fallback mechanism for posix_memalign 2020-11-05 16:10:15 +01:00
emscripten.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
freebsd.zig Implement a fallback mechanism for posix_memalign 2020-11-05 16:10:15 +01:00
fuchsia.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
haiku.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
hermit.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
linux.zig std.crypto.random: introduce fork safety 2020-12-18 15:54:01 -07:00
minix.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
netbsd.zig Implement a fallback mechanism for posix_memalign 2020-11-05 16:10:15 +01:00
openbsd.zig small fixes and zig fmt 2020-12-09 13:54:26 +02:00
parse.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
solaris.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
tokenizer.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
windows.zig Implement a fallback mechanism for posix_memalign 2020-11-05 16:10:15 +01:00