summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-07-25 01:11:39 -0400
committerOri Bernstein <ori@eigenstate.org>2012-07-25 01:11:39 -0400
commita143d21397a31766874783b7e008a54928af5da5 (patch)
treecfa34e708862007a355eebd138b2c15a751a541f /parse/dump.c
parentc3298baf19a3e399a7e65f15bd7a8e62dbba89a6 (diff)
downloadmc-a143d21397a31766874783b7e008a54928af5da5.tar.gz
Don't export symbols willy-nilly.
Only export things in the package section, or 'main'.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse/dump.c b/parse/dump.c
index 9a3d391..e03c8b4 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -116,8 +116,8 @@ static void outnode(Node *n, FILE *fd, int depth)
outnode(n->file.stmts[i], fd, depth + 1);
break;
case Ndecl:
- fprintf(fd, "(did = %zd, isconst = %d, isgeneric = %d, isextern = %d\n",
- n->decl.did, n->decl.isconst, n->decl.isgeneric, n->decl.isextern);
+ fprintf(fd, "(did = %zd, isconst = %d, isgeneric = %d, isextern = %d\n, isexport = %d)",
+ n->decl.did, n->decl.isconst, n->decl.isgeneric, n->decl.isextern, n->decl.isexport);
outsym(n, fd, depth + 1);
outnode(n->decl.init, fd, depth + 1);
break;