w6a: replace private streq with strings.compare (Wave-2 hand-rolled->lib)
This commit is contained in:
@@ -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 })!;
|
||||
|
||||
Reference in New Issue
Block a user