cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit ce589372cbe52399760cf85c46b183caeb17fd45
parent 4ea975dc7ac54d33492a88b9cc15dd717023800e
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 18 Mar 2020 15:50:27 -0700

expr: Slight simplification in function call parsing

Diffstat:
Mexpr.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 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)