summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-10-07 19:22:17 -0400
committerOri Bernstein <ori@eigenstate.org>2014-10-07 19:22:17 -0400
commit6b45f935bd240eb066fe4edd49b8cd0853bc5dd9 (patch)
tree6f379d22a368325442f05122e1c3dcdba905cee5 /parse/dump.c
parentefd6df04602a973f146e93797ffd057ae277f175 (diff)
downloadmc-6b45f935bd240eb066fe4edd49b8cd0853bc5dd9.tar.gz
Add support for storing file ids.
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 7ef6bf3..bbb6697 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -113,7 +113,7 @@ static void outnode(Node *n, FILE *fd, int depth)
findentf(fd, depth, "%s.%zd@%i", nodestr(n->type), n->nid, n->line);
switch(n->type) {
case Nfile:
- fprintf(fd, "(name = %s)\n", n->file.name);
+ fprintf(fd, "(name = %s)\n", n->file.files[0]);
findentf(fd, depth + 1, "Globls:\n");
outstab(n->file.globls, fd, depth + 2);
findentf(fd, depth + 1, "Exports:\n");