[hackers] [scc] Move expect() in arguments() || Roberto E. Vargas Caballero
commit e06a619d7769dc7e2081c1ede01949991041b3a5
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Jan 7 12:53:44 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Jan 7 12:57:11 2016 +0100
Move expect() in arguments()
This change makes the code more simetric.
diff --git a/cc1/expr.c b/cc1/expr.c
index 4f7bf5c..a1aea5d 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -630,10 +630,10 @@ arguments(Node *np)
} while (accept(','));
no_pars:
+ expect(')');
if (n > 0 && *targs != ellipsistype)
errorp("too few arguments in function call");
- expect(')');
return node(OCALL, rettype, np, par);
}
Received on Fri Jan 08 2016 - 13:13:57 CET
This archive was generated by hypermail 2.3.0
: Fri Jan 08 2016 - 13:24:22 CET