diff options
Diffstat (limited to 'awkgram.y')
-rw-r--r-- | awkgram.y | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -828,7 +828,7 @@ non_compound_stmt } else { if (do_optimize > 1 && $3->lasti->opcode == Op_func_call - && STREQ($3->lasti->func_name, in_function) + && strcmp($3->lasti->func_name, in_function) == 0 ) { /* Do tail recursion optimization. Tail * call without a return value is recognized @@ -3831,7 +3831,6 @@ parms_shadow(INSTRUCTION *pc, int *shadow) return 0; } - /* valinfo --- dump var info */ void @@ -3931,8 +3930,7 @@ mk_function(INSTRUCTION *fi, INSTRUCTION *def) for (t = def->nexti; t->nexti != def->lasti; t = t->nexti) ; if (t->opcode == Op_func_call - && STREQ(t->func_name, thisfunc->vname) - ) + && strcmp(t->func_name, thisfunc->vname) == 0) (t + 1)->tail_call = TRUE; } @@ -4215,7 +4213,7 @@ variable(int location, char *name, NODETYPE type) */ return install_symbol(name, type); } - if (STREQ(name, dv->name)) { + if (strcmp(name, dv->name) == 0) { r = (*dv->load_func)(); break; } |