b2/: move parts dumping from lang.y to boom.c and make optional (-dc)

This commit is contained in:
Werner Almesberger
2012-06-02 05:49:22 -03:00
parent 22412764d9
commit f09e4b21fa
2 changed files with 3 additions and 1 deletions
+3
View File
@@ -87,6 +87,9 @@ static void dump(const char *s)
{
while (*s) {
switch (*s) {
case 'c':
parts_dump(stderr);
break;
case 'h':
dump_hierarchy(hierarchy);
break;
-1
View File
@@ -418,7 +418,6 @@ characteristics:
| part characteristics
{
part_finalize($1, &hierarchy);
part_dump(stderr, $1);
}
;