summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-02-26 01:04:10 -0800
committerOri Bernstein <ori@eigenstate.org>2016-02-26 01:04:10 -0800
commita7328b247486910e1bc21eee2e52b8452948f010 (patch)
tree005e2ebab2c7cd91fe51c105966f1b88510f112f /6
parentf2cc5d160e3b61ac3c3d6c1b4c09222264af035a (diff)
downloadmc-a7328b247486910e1bc21eee2e52b8452948f010.tar.gz
Use same criteria for generating types on plan9 and linux.
Diffstat (limited to '6')
-rw-r--r--6/genp9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/genp9.c b/6/genp9.c
index d61cc83..d4c9e98 100644
--- a/6/genp9.c
+++ b/6/genp9.c
@@ -472,7 +472,7 @@ void genp9(Node *file, char *out)
for (i = 0; i < nfn; i++)
genfunc(fd, fn[i], globls, strtab);
for (i = 0; i < ntypes; i++)
- if (types[i]->isreflect && !types[i]->isimport)
+ if (types[i]->isreflect && (!types[i]->isimport || types[i]->ishidden))
gentype(fd, types[i]);
fprintf(fd, "\n");
genstrings(fd, strtab);