diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-05-01 13:38:59 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-05-01 13:38:59 -0400 |
commit | 24495b0419cb43daa6a0adcccfde63853d5bd2dd (patch) | |
tree | fa2c09a48b95a824ae0c47a39cf671e04a840b74 /parse.c | |
parent | 58a57d7d4602833e8bfd5af61b3707587a7a5cb8 (diff) |
#if no longer creates a block
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -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; } } |