0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Thomas Ives 51efd553ae C backend: Improve lowering of Zig types to C types
1. Changed Zig pointers to functions to be typedef'd so then we can
   treat them the same as other types.

2. Distinguished between const slices (zig_L prefix) and mut slices
   (zig_M prefix).

3. Changed lowering of Zig "const pointers" (e.g. *const u8) to to C
   "pointers to const" (e.g. const char *) rather than C "const
   pointers" (e.g.  char * const)

4. Ensured that all typedefs are "linked" even if the decl doesn't
   require any forward declarations

5. Added test that exercises function pointer type rendering

6. Changed .slice_ptr instruction to allocate pointer local rather than
   a uintptr_t local
History 2021-11-10 12:39:47 -05:00
..
behavior C backend: Improve lowering of Zig types to C types 2021-11-10 12:39:47 -05:00
src migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
stage1/c_abi stage1: Expand SysV C ABI support for small structs 2021-07-28 18:13:17 -04:00
stage2 macho: use start.zig for macOS entrypoint 2021-11-10 11:33:24 -05:00
standalone macho: remove unresolved ref in the correct place 2021-10-24 21:01:04 +02:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig C backend: while, struct tests, better undefined global handling 2021-11-08 14:23:55 -05:00
cases.zig Fix failing tests and windows link dependencies 2021-09-22 14:39:02 -05:00
cli.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
compare_output.zig std.log: simplify to 4 distinct log levels 2021-10-24 15:04:29 -04:00
compile_errors.zig Sat shl neg rhs (#9949) 2021-10-15 13:56:27 -04:00
gen_h.zig run zig fmt on src/ and test/ 2020-10-31 12:21:49 +02:00
run_translated_c.zig translate_c: prevent a while under an if from stealing the else 2021-10-19 13:48:09 -04:00
runtime_safety.zig fix unused variable errors in runtime safety test cases 2021-06-23 10:44:46 -07:00
stack_traces.zig overhaul elf csu (c-runtime startup) logic 2021-05-23 15:38:57 -04:00
standalone.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
tests.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
translate_c.zig translate-c: create inline fn for always_inline 2021-10-20 17:58:30 -04:00