summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-05-01 13:38:59 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-05-01 13:38:59 -0400
commit24495b0419cb43daa6a0adcccfde63853d5bd2dd (patch)
treefa2c09a48b95a824ae0c47a39cf671e04a840b74 /parse.c
parent58a57d7d4602833e8bfd5af61b3707587a7a5cb8 (diff)
#if no longer creates a block
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;
}
}