STAILQ_FOREACH(cur, headp, link) {
printf("***SECTION***\n");
- section_print(cur);
+ section_print(cur, 1);
}
}
}
void
-section_print(const section *sect)
+section_print(const section *sect, int print_bcs)
{
printf(" type=");
switch (sect->type) {
break;
}
- printf(" Bytecodes:\n");
- bcs_print(§->bc);
+ if (print_bcs) {
+ printf(" Bytecodes:\n");
+ bcs_print(§->bc);
+ }
}
void section_delete(/*@only@*/ section *sect);
-void section_print(const section *sect);
+void section_print(const section *sect, int print_bcs);
#endif
case SYM_LABEL:
printf("_Label_\nSection:");
if (sym->value.label.sect)
- section_print(sym->value.label.sect);
+ section_print(sym->value.label.sect, 0);
else
printf(" (none)\n");
if (!sym->value.label.bc)
STAILQ_FOREACH(cur, headp, link) {
printf("***SECTION***\n");
- section_print(cur);
+ section_print(cur, 1);
}
}
}
void
-section_print(const section *sect)
+section_print(const section *sect, int print_bcs)
{
printf(" type=");
switch (sect->type) {
break;
}
- printf(" Bytecodes:\n");
- bcs_print(§->bc);
+ if (print_bcs) {
+ printf(" Bytecodes:\n");
+ bcs_print(§->bc);
+ }
}
void section_delete(/*@only@*/ section *sect);
-void section_print(const section *sect);
+void section_print(const section *sect, int print_bcs);
#endif
case SYM_LABEL:
printf("_Label_\nSection:");
if (sym->value.label.sect)
- section_print(sym->value.label.sect);
+ section_print(sym->value.label.sect, 0);
else
printf(" (none)\n");
if (!sym->value.label.bc)