From 3467f27c4c0d44f5bb2a09d93a96c71a4c0eeccc Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Mon, 27 Jan 2020 13:01:36 -0500 Subject: fixed #include scoping problems --- scope.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scope.c') diff --git a/scope.c b/scope.c index 0a05bae..1b116b7 100644 --- a/scope.c +++ b/scope.c @@ -75,6 +75,8 @@ static void block_exit(Block *b, Statement *stmts) { if (stmt->kind == STMT_DECL) { Declaration *decl = &stmt->decl; remove_ident_decls(b, decl); + } else if (stmt->kind == STMT_INCLUDE) { + block_exit(b, stmt->inc.stmts); } } } -- cgit v1.2.3