summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-01-04 01:05:05 -0500
committerOri Bernstein <ori@eigenstate.org>2013-01-04 01:05:05 -0500
commit9f7256a2c8174fc94b8ceafa13b0a7960083edc1 (patch)
tree719f1e55b45c8ef692a753c5494c5c975e3a638e /parse/dump.c
parent4ec65693a851c2c8d06e2eb2bb281105d006f474 (diff)
downloadmc-9f7256a2c8174fc94b8ceafa13b0a7960083edc1.tar.gz
Fix formatting of dumps.
The symtab was interspersed with the arguments. Oops.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/dump.c b/parse/dump.c
index 3267da5..9f72761 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -199,11 +199,11 @@ static void outnode(Node *n, FILE *fd, int depth)
break;
case Nfunc:
fprintf(fd, " (args =\n");
- outstab(n->func.scope, fd, depth + 1);
for (i = 0; i < n->func.nargs; i++)
outnode(n->func.args[i], fd, depth+1);
indent(fd, depth);
fprintf(fd, ")\n");
+ outstab(n->func.scope, fd, depth + 1);
outnode(n->func.body, fd, depth+1);
break;
case Nname: