ba13940b96823a2744075b3619eb3784595d4ac7
Faithful ref/hare/path/buffer.ha port of the buffer-mutating ops. isroot widened *buffer->(*buffer|str) (existing callers ptr-ident-widen); abs str-arm strings.hasprefix(p,sepstr) (rides #154); local lifts Hare's `static let buf` to a module-private [MAX]u8 index-write (no ww static-append, regex.ww:1177). Three documented respells (never silent): split binds each (str|void) elem to an ident before return (#22b); peek binds split() to a local (#48); local's index-write. parent via appendnorm + frombytes. Tests mirror Hare's pop() @test 1:1 (stack.ha:147) + table-driven abs/isroot/local/parent rows off a local buffer. cstage-first; wwstage str-arms ride deferred #146 (path stays M_WWREJECT). lib/path non-embedded (no combined.ww regen). Completes the c3 stage of the path arc.
lib/path: #153 c3 buffer-ops — abs/isroot-widen/local/parent/split/pop/peek faithful port, table-driven @test (cstage)
wcc: #152 let-initializer scope — defer the binding's localfind link past its own init (both stages)
Description
No description provided
Languages
C
89.4%
Python
7.2%
Makefile
2.3%
Shell
0.8%
Assembly
0.3%