shithub: mc

Download patch

ref: a7328b247486910e1bc21eee2e52b8452948f010
parent: f2cc5d160e3b61ac3c3d6c1b4c09222264af035a
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Feb 25 20:04:10 EST 2016

Use same criteria for generating types on plan9 and linux.

--- a/6/genp9.c
+++ b/6/genp9.c
@@ -472,7 +472,7 @@
 	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);