Hojun-Cho
00d88ff9fc
lib: α-batch-2 rt.malloc → alloc([], N)! (path/shlex/fmt/ostest)
Phase 0 #8 second α-batch. 7 sites: lib/path/path.ww `join` ×4,
lib/shlex/shlex.ww `dupstr`, lib/fmt/fmt.ww `asprintf` tight-copy,
lib/os/ostest.ww `test_alloc_free_roundtrip`. Same dup-pilot pattern
(4c07ef0, 47918d3): `alloc([], N)!` + `buf.len = N;` +
`return strings.frombytes(buf);`.
Side effects:
- path/shlex/fmt: import switches `rt` → `strings` (callers now
reference `strings.frombytes`, not `rt.malloc` direct).
- ostest.ww: `import rt;` retained — the alloc builtin lowers to
`CALL malloc(SB)` which resolves via rt's @symbol("rt_malloc")
decl. Other files reach rt transitively via `import strings`;
ostest only imports os, so it needs the explicit rt import.
- shlex stale comment "avoid strings dep" stripped — strings is now
in scope.
Verified make test 132/132 + 995_self_rebuild byte-identity.
Advances #43.
2026-05-21 01:01:13 +09:00
..
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-19 16:19:12 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-19 16:50:02 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-21 01:01:13 +09:00
2026-05-18 18:25:36 +09:00
2026-05-20 02:02:28 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-21 00:35:14 +09:00
2026-05-18 18:25:36 +09:00
2026-05-21 01:01:13 +09:00
2026-05-21 01:01:13 +09:00
2026-05-20 22:11:34 +09:00
2026-05-21 01:01:13 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-21 00:35:14 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-18 18:25:36 +09:00
2026-05-20 15:22:21 +09:00
2026-05-16 00:45:30 +09:00