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:
2026-08-08 21:10:18 +09:00
parent 659e859f34
commit aadc6618f0
90 changed files with 259 additions and 919 deletions

View File

@@ -2,12 +2,6 @@
// fnmatch:: (ref/hare/fnmatch/fnmatch.ha) using ww byte-indexed
// cursors in place of Hare's strings::iterator.
//
// Surface today:
//
// fnmatch.flag — enum i32 bitmask (NONE / PATHNAME /
// NOESCAPE / PERIOD)
// fnmatch.fnmatch(pattern: str, string: str, flags: flag) bool
//
// Matching rules (Hare-spec):
//
// - '?' matches any single byte
@@ -328,7 +322,6 @@ fn fnmatch_internal(pattern: str, string: str, fl: flag) (bool | invalid) = {
let pp: i32 = 0;
let sp: i32 = 0;
// ---- prefix: match up to the first '*' ----------------------
let sawstar: bool = false;
for (!sawstar) {
let scur: i32 = sp;
@@ -361,7 +354,6 @@ fn fnmatch_internal(pattern: str, string: str, fl: flag) (bool | invalid) = {
if (advance) { sp = scur; };
};
// ---- find the tail (token count after the last '*') ---------
let pp_copy: i32 = pp;
let pp_last: i32 = pp;
let pp_last_cnt: i32 = 0;
@@ -398,7 +390,6 @@ fn fnmatch_internal(pattern: str, string: str, fl: flag) (bool | invalid) = {
let tail_pos: i32 = string.len - tail_cnt;
if (tail_pos < sp_copy) { return false; };
// ---- tail: match (from pp) against string[tail_pos..] -------
let ts: i32 = tail_pos;
let tdone: bool = false;
for (!tdone) {
@@ -439,7 +430,6 @@ fn fnmatch_internal(pattern: str, string: str, fl: flag) (bool | invalid) = {
};
};
// ---- middle: greedy match of each star-delimited subpattern --
let mid_pat: str;
mid_pat.ptr = pattern.ptr + (pp_copy: u64);
mid_pat.len = pp_last - pp_copy;
@@ -525,7 +515,6 @@ fn fnmatch_pathname(pattern: str, string: str, fl: flag) (bool | invalid) = {
let final: bool = false;
for (!final) {
segstart_pat = pp;
// Walk pattern until the next '/' (segment break) or end.
let inner: bool = true;
let kind: i32 = 0; // 0 = saw '/', 1 = saw end
for (inner) {