summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2019-02-26 14:07:58 -0800
committerOri Bernstein <ori@markovcorp.com>2019-02-26 14:07:58 -0800
commitd87c0959d85b40fcf60b9c6dd0a2f2111f888b55 (patch)
tree3d9ee97668eda3d4e2656ac069f8575250edc7e2 /mi
parent02201160614e5f25a7a73d86ed26a1f90fa4f5bb (diff)
downloadmc-d87c0959d85b40fcf60b9c6dd0a2f2111f888b55.tar.gz
Accept that `file` isn't a node.
Shrink node sizes, simplify code a bit.
Diffstat (limited to 'mi')
-rw-r--r--mi/cfg.c2
-rw-r--r--mi/flatten.c4
-rw-r--r--mi/match.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/mi/cfg.c b/mi/cfg.c
index e647733..6e9a6ad 100644
--- a/mi/cfg.c
+++ b/mi/cfg.c
@@ -314,7 +314,7 @@ dumpbb(Bb *bb, FILE *fd)
fprintf(fd, "\n");
for (i = 0; i < bb->nnl; i++)
- dump(bb->nl[i], fd);
+ dumpn(bb->nl[i], fd);
fprintf(fd, "\n");
}
diff --git a/mi/flatten.c b/mi/flatten.c
index 813dabd..193e64b 100644
--- a/mi/flatten.c
+++ b/mi/flatten.c
@@ -64,7 +64,7 @@ static void
append(Flattenctx *s, Node *n)
{
if (debugopt['F'])
- dump(n, stdout);
+ dumpn(n, stdout);
lappend(&s->stmts, &s->nstmts, n);
}
@@ -1077,7 +1077,7 @@ flatten(Flattenctx *fc, Node *n)
}
break;
default:
- dump(n, stderr);
+ dumpn(n, stderr);
die("bad node passsed to flatten()");
break;
}
diff --git a/mi/match.c b/mi/match.c
index 7ae1a3b..4061a26 100644
--- a/mi/match.c
+++ b/mi/match.c
@@ -822,7 +822,7 @@ genmatch(Node *m, Node *val, Node ***out, size_t *nout)
if (debugopt['m']) {
dtreedump(stdout, dt);
for (i = 0; i < *nout; i++)
- dump((*out)[i], stdout);
+ dumpn((*out)[i], stdout);
}
}