diff options
Diffstat (limited to 'sys/cmd/cc/ast.c')
-rw-r--r-- | sys/cmd/cc/ast.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cmd/cc/ast.c b/sys/cmd/cc/ast.c index 4553b96..184ddaf 100644 --- a/sys/cmd/cc/ast.c +++ b/sys/cmd/cc/ast.c @@ -1275,12 +1275,10 @@ Bad: // ----------------------------------------------------------------------- // top level api -void +error parse(Parser *p, Lexer *lx) { Token tok; - p->sp = p->spstk; - while ((tok = peek(p, 0)), tok.kind > Aeof) { if (p->ast.len >= p->ast.cap) { p->ast.cap += 20; @@ -1288,4 +1286,6 @@ parse(Parser *p, Lexer *lx) } p->ast.decls[p->ast.len++] = decl(p, lx); } + + return 0; } |