toolchain: banner purge + WHY-only comment sweep (rule 8)
selfhost/, cmd/, internal/ join the tree-wide sweep: every section banner dies (91 selfhost + the cmd C-style dividers -> 0); narration and stale contracts deleted (pre-#22 bundler notes, retired single-PT_LOAD and no-archive claims, superseded ABI tables); every ref/harec/qbe cite, task cite, encoding/ELF contract, and rule-10 twin pointer kept; lost lifetime/rationale lines restored where the sweep over-cut (elf_globals ownership, kwtab linear-scan). Comment- only proven: all five wwstage tool binaries byte-identical across the sweep; test-commit, test-byteid (161+1399, 0 pinned-divergent), and test-bootstrap (fixed point + 991-995 byte-id) all exit 0. The read-through banked 66 latent-bug leads (checkpoint).
This commit is contained in:
@@ -35,11 +35,11 @@ wwi_primary(Node *n)
|
||||
return n && n->imported == 0;
|
||||
}
|
||||
|
||||
/* --- check_exported_type (drew) ------------------------------------- *
|
||||
* Resolve an N_TNAME to its type sym WITHOUT the side effects of
|
||||
* resolve_typename (no on-demand resolve, no double "unknown type"
|
||||
* error). A primitive/keyword resolves to no SK_TYPE → leaf. By the
|
||||
* time the producer runs, check_file has finished and c->cur == c->top.
|
||||
/* check_exported_type (drew): resolve an N_TNAME to its type sym WITHOUT
|
||||
* the side effects of resolve_typename (no on-demand resolve, no double
|
||||
* "unknown type" error). A primitive/keyword resolves to no SK_TYPE →
|
||||
* leaf. By the time the producer runs, check_file has finished and
|
||||
* c->cur == c->top.
|
||||
*/
|
||||
static Sym *
|
||||
wwi_typesym(Checker *c, const char *nm)
|
||||
@@ -141,7 +141,7 @@ wwi_check_decl(Checker *c, Node *d)
|
||||
return bad;
|
||||
}
|
||||
|
||||
/* --- type-expr + const-expr unparser (rob §2.2/§2.4) ---------------- */
|
||||
/* type-expr unparse per rob §2.2; const-expr per rob §2.4. */
|
||||
|
||||
static void wwi_expr(FILE *of, Node *e);
|
||||
static void wwi_type(FILE *of, Node *t);
|
||||
@@ -447,7 +447,7 @@ wwi_decl(FILE *of, Node *d)
|
||||
}
|
||||
}
|
||||
|
||||
/* --- deterministic ordering (rob §3) -------------------------------- */
|
||||
/* deterministic ordering per rob §3. */
|
||||
|
||||
struct declent { Node *d; int idx; };
|
||||
struct useent { const char *path; int idx; };
|
||||
|
||||
Reference in New Issue
Block a user