aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-03-18 15:50:27 -0700
committerMichael Forney <mforney@mforney.org>2020-03-18 15:50:33 -0700
commitce589372cbe52399760cf85c46b183caeb17fd45 (patch)
tree126c38fe30fec339ee6dba6dbe71a7bf1a213a40
parent4ea975dc7ac54d33492a88b9cc15dd717023800e (diff)
downloadcproc-ce589372cbe52399760cf85c46b183caeb17fd45.tar.xz
expr: Slight simplification in function call parsing
-rw-r--r--expr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/expr.c b/expr.c
index 8b00b67..4762d7a 100644
--- a/expr.c
+++ b/expr.c
@@ -707,9 +707,7 @@ postfixexpr(struct scope *s, struct expr *r)
e->call.nargs = 0;
p = t->func.params;
end = &e->call.args;
- for (;;) {
- if (tok.kind == TRPAREN)
- break;
+ while (tok.kind != TRPAREN) {
if (e->call.args)
expect(TCOMMA, "or ')' after function call argument");
if (!p && !t->func.isvararg && t->func.paraminfo)