scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit e06a619d7769dc7e2081c1ede01949991041b3a5
parent 9b896cb060677c0ffdcceb8d0f93684dca16b017
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  7 Jan 2016 12:53:44 +0100

Move expect() in arguments()

This change makes the code more simetric.

Diffstat:
cc1/expr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -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); }