zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 5412f80b3e51fd56c466008eaea3e38704fe5b33 (tree)
parent 9cd2e0ff77dd01a77fc4b7d22cf5f49932b46151
Author: Motiejus <motiejus@jakstys.lt>
Date:   Mon,  2 Mar 2026 16:51:15 +0000

stage0: rename zcuAlloc→zcuInit, zcuDeinit frees struct, clean comments

- zcuAlloc → zcuInit (Init/Deinit pair convention)
- zcuDeinit now frees the struct itself (no separate free() needed)
- Remove zcuFree (redundant after zcuDeinit change)
- Clean zcu.h comments: remove "was:" references, keep Zig origin refs

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>

Diffstat:
Mstage0/zcu.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stage0/zcu.c b/stage0/zcu.c @@ -25,6 +25,6 @@ void zcuDeinit(Zcu* zcu) { } } ipDeinit(&zcu->ip); - // zcuAlloc uses calloc; free the struct itself. + // zcuInit uses calloc; free the struct itself. free(zcu); }