[qfcc] Dump compound init expressions

I finally really needed to see what was in one.
This commit is contained in:
Bill Currie 2025-02-16 12:16:39 +09:00
parent b67eb518e5
commit 192b42737a

View file

@ -803,7 +803,14 @@ static void
print_compound (dstring_t *dstr, const expr_t *e, int level, int id, const expr_t *next)
{
int indent = level * 2 + 2;
dasprintf (dstr, "%*se_%p [label=\"compound init\"];\n", indent, "", e);
for (auto ele = e->compound.head; ele; ele = ele->next) {
_print_expr (dstr, ele->expr, level, id, next);
}
for (auto ele = e->compound.head; ele; ele = ele->next) {
dasprintf (dstr, "%*se_%p -> \"e_%p\";\n", indent, "", e,
ele->expr);
}
dasprintf (dstr, "%*se_%p [label=\"= { }\"];\n", indent, "", e);
}
static void