void dump_stmt_label(const stmt *s, dump *ctx) { dump_desc_stmt_newline(ctx, "label", s, 0); dump_printf_indent(ctx, 0, " %s\n", s->bits.lbl.spel); dump_inc(ctx); dump_stmt(s->lhs, ctx); dump_dec(ctx); }
void dump_stmt_goto(const stmt *s, dump *ctx) { if(s->expr){ dump_desc_stmt(ctx, "computed-goto", s); dump_inc(ctx); dump_expr(s->expr, ctx); dump_dec(ctx); }else{ dump_desc_stmt_newline(ctx, "goto", s, 0); dump_printf_indent(ctx, 0, " %s\n", s->bits.lbl.spel); } }
void dump_desc_stmt(dump *ctx, const char *desc, const struct stmt *s) { dump_desc_stmt_newline(ctx, desc, s, 1); }