lib: banner purge + WHY-only comment sweep (rule 8)
Every // ---- section banner dies (132 -> 0): names carry the WHAT. Narration deleted (filename restatements, run-with lines, what-the- next-line-does); every ref/hare cite, task cite, divergence, ABI/ layout contract, and ownership qualifier kept (borrowed-view lines restored where the sweep over-cut). Comment-only proven: all 442 walk-workdir .s and 32 import-probe .s byte-identical before/after; libbyteid 56-roster all-ID.
This commit is contained in:
@@ -2,14 +2,6 @@
|
||||
// (ref/hare/shlex/{split.ha,escape.ha}) using ww byte-indexed cursors
|
||||
// in place of Hare's strings::iterator.
|
||||
//
|
||||
// Surface today:
|
||||
//
|
||||
// shlex.syntaxerr — !void; bad shell syntax
|
||||
// shlex.strerror(syntaxerr) — "Invalid shell syntax"
|
||||
// shlex.split(in: str) — tokenize; returns ([]str | syntaxerr)
|
||||
// shlex.quote(io.stream, s) — write `s` shell-quoted to a sink
|
||||
// shlex.quotestr(s: str) str — quote into a fresh str
|
||||
//
|
||||
// Owning model: split() returns a fresh `[]str` of strings.dup'd
|
||||
// elements; release with [[strings.freeall]] (Hare's natural disposer
|
||||
// shape). quotestr() returns an os.alloc'd str; release via
|
||||
@@ -227,7 +219,6 @@ export fn split(in: str) ([]str | syntaxerr) = {
|
||||
dirty = true;
|
||||
|
||||
if (r == ' ' || r == '\t' || r == '\n') {
|
||||
// Collapse a run of whitespace.
|
||||
let inner: bool = true;
|
||||
for (inner) {
|
||||
if (pos >= in.len) { inner = false; }
|
||||
|
||||
Reference in New Issue
Block a user