summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c15
1 files changed, 7 insertions, 8 deletions
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;
}
}