From 24495b0419cb43daa6a0adcccfde63853d5bd2dd Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Fri, 1 May 2020 13:38:59 -0400 Subject: #if no longer creates a block --- parse.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index 4031170..3780b40 100644 --- a/parse.c +++ b/parse.c @@ -2869,14 +2869,9 @@ static void fprint_stmt(FILE *out, Statement *s) { } break; case STMT_INCLUDE: { Include *i = s->inc; - if (s->flags & STMT_TYPED) { - arr_foreach(i->stmts, Statement, sub) - fprint_stmt(out, sub); - } else { - fprintf(out, "#include "); - fprint_expr(out, &i->filename); - fprintf(out, ";\n"); - } + fprintf(out, "#include "); + fprint_expr(out, &i->filename); + fprintf(out, ";\n"); } break; case STMT_MESSAGE: { Message *m = s->message; @@ -2909,6 +2904,10 @@ static void fprint_stmt(FILE *out, Statement *s) { fprint_expr(out, &s->use->expr); fprintf(out, ";\n"); break; + case STMT_INLINE_BLOCK: + arr_foreach(s->inline_block, Statement, sub) + fprint_stmt(out, sub); + break; } } -- cgit v1.2.3