shithub: mc

Download patch

ref: 9f7256a2c8174fc94b8ceafa13b0a7960083edc1
parent: 4ec65693a851c2c8d06e2eb2bb281105d006f474
author: Ori Bernstein <[email protected]>
date: Thu Jan 3 20:05:05 EST 2013

Fix formatting of dumps.

    The symtab was interspersed with the arguments. Oops.

--- a/parse/dump.c
+++ b/parse/dump.c
@@ -199,11 +199,11 @@
             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: