void destroy_gc(Gc *gc)
{
assert(gc);
+
+ for (size_t i = 0; i < gc->size; ++i) {
+ destroy_expr(gc->exprs[i]);
+ }
+
RETURN_LT0(gc->lt);
}
}
}
}
+
+void gc_inspect(const Gc *gc)
+{
+ for (size_t i = 0; i < gc->size; ++i) {
+ if (gc->exprs[i].type == EXPR_VOID) {
+ printf(".");
+ } else {
+ printf("+");
+ }
+ }
+ printf("\n");
+}