0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Andrew Kelley dfbc063f79
std.mem.Allocator.create replaced with better API
`std.mem.Allocator.createOne` is renamed to `std.mem.Allocator.create`.

The problem with the previous API is that even after copy elision,
the initalization value passed as a parameter would always be a copy.
With the new API, once copy elision is done, initialization
functions can directly initialize allocated memory in place.

Related:
 * #1872
 * #1873
History 2019-02-03 16:13:28 -05:00
..
stage1 Fix slice concatenation 2019-02-02 22:22:00 -05:00
stage2 fix race conditions in self-hosted compiler; add test 2018-07-24 21:28:54 -04:00
standalone New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
assemble_and_link.zig use * for pointer type instead of & 2018-05-31 17:28:07 -04:00
build_examples.zig disable C ABI tests on macos due to LLD deficiency 2018-10-06 00:06:36 -04:00
cli.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
compare_output.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
compile_errors.zig Fix runtime assignment to comptime aggregate field 2019-02-01 17:14:12 -05:00
gen_h.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00
runtime_safety.zig fix @intCast not catching negative numbers to unsigned 2018-11-24 14:36:16 -05:00
tests.zig std.mem.Allocator.create replaced with better API 2019-02-03 16:13:28 -05:00
translate_c.zig New Zig formal grammar (#1685) 2018-11-13 05:08:37 -08:00