diff --git a/lib/ww/parse/expr.ww b/lib/ww/parse/expr.ww index bd7bb298..513379d6 100644 --- a/lib/ww/parse/expr.ww +++ b/lib/ww/parse/expr.ww @@ -4,9 +4,9 @@ use os; use mem; use tok; -// streq_local — str-to-str compare. Inlined here to avoid a cross- +// streqlocal — str-to-str compare. Inlined here to avoid a cross- // module `use sym;` for one call site. -fn streq_local(a: str, b: str) bool = { +fn streqlocal(a: str, b: str) bool = { if (a.len != b.len) { return false; }; let i: i32 = 0; for (i < a.len) { @@ -224,8 +224,8 @@ fn parsepostfix(p: *parser, lhs: *node) *node = { // not a regular expression. Special-case at the parser. let is_typeop: i32 = 0; if (cur.kind == N_IDENT) { - if (streq_local(cur.str, "size")) { is_typeop = 1; }; - if (streq_local(cur.str, "align")) { is_typeop = 1; }; + if (streqlocal(cur.str, "size")) { is_typeop = 1; }; + if (streqlocal(cur.str, "align")) { is_typeop = 1; }; }; if (is_typeop != 0) { n.list = parsetype(p); diff --git a/selfhost/cmd/w6c/main.combined.ww b/selfhost/cmd/w6c/main.combined.ww index ff8fd48c..82628b5e 100644 --- a/selfhost/cmd/w6c/main.combined.ww +++ b/selfhost/cmd/w6c/main.combined.ww @@ -1974,9 +1974,9 @@ use os; use mem; use tok; -// streq_local — str-to-str compare. Inlined here to avoid a cross- +// streqlocal — str-to-str compare. Inlined here to avoid a cross- // module `use sym;` for one call site. -fn streq_local(a: str, b: str) bool = { +fn streqlocal(a: str, b: str) bool = { if (a.len != b.len) { return false; }; let i: i32 = 0; for (i < a.len) { @@ -2194,8 +2194,8 @@ fn parsepostfix(p: *parser, lhs: *node) *node = { // not a regular expression. Special-case at the parser. let is_typeop: i32 = 0; if (cur.kind == N_IDENT) { - if (streq_local(cur.str, "size")) { is_typeop = 1; }; - if (streq_local(cur.str, "align")) { is_typeop = 1; }; + if (streqlocal(cur.str, "size")) { is_typeop = 1; }; + if (streqlocal(cur.str, "align")) { is_typeop = 1; }; }; if (is_typeop != 0) { n.list = parsetype(p); diff --git a/selfhost/cmd/wwdump/main.combined.ww b/selfhost/cmd/wwdump/main.combined.ww index b51f2f85..9d976adb 100644 --- a/selfhost/cmd/wwdump/main.combined.ww +++ b/selfhost/cmd/wwdump/main.combined.ww @@ -1974,9 +1974,9 @@ use os; use mem; use tok; -// streq_local — str-to-str compare. Inlined here to avoid a cross- +// streqlocal — str-to-str compare. Inlined here to avoid a cross- // module `use sym;` for one call site. -fn streq_local(a: str, b: str) bool = { +fn streqlocal(a: str, b: str) bool = { if (a.len != b.len) { return false; }; let i: i32 = 0; for (i < a.len) { @@ -2194,8 +2194,8 @@ fn parsepostfix(p: *parser, lhs: *node) *node = { // not a regular expression. Special-case at the parser. let is_typeop: i32 = 0; if (cur.kind == N_IDENT) { - if (streq_local(cur.str, "size")) { is_typeop = 1; }; - if (streq_local(cur.str, "align")) { is_typeop = 1; }; + if (streqlocal(cur.str, "size")) { is_typeop = 1; }; + if (streqlocal(cur.str, "align")) { is_typeop = 1; }; }; if (is_typeop != 0) { n.list = parsetype(p);