ww: rename streq_local -> streqlocal
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user