w6a: replace private streq with strings.compare (Wave-2 hand-rolled->lib)

This commit is contained in:
2026-06-03 03:33:09 +09:00
parent af87ff4f31
commit 05609dcc34
3 changed files with 8 additions and 30 deletions

View File

@@ -156,12 +156,10 @@ export fn init(a: *asm_, file: str, src: *u8, len: u64) void = {
a.errs = 0;
};
// `streq(str,str)` lives in asm.ww — same bundle, single definition.
export fn intern(a: *asm_, name: str) *asym = {
let s: *asym = a.syms;
for (s != nil) {
if (streq(s.name, name)) { return s; };
if (strings.compare(s.name, name) == 0) { return s; };
s = s.snext;
};
let n: *asym = alloc(asym { name = name, snext = a.syms })!;