ref: 3034887c19bb86b0551c854758a9f93ee1395815
parent: b05bd318302a3b5043a56479d20261d81bc27012
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jun 26 11:56:35 EDT 2015
Mark visibility correctly on init funcs.
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -452,6 +452,7 @@
dcl = mkdecl(Zloc, name, tyvoidfn);
dcl->decl.isconst = 1;
dcl->decl.isinit = 1;
+ dcl->decl.isextern = 1;
putnsdcl(dcl);
}
return dcl;
@@ -495,6 +496,7 @@
decl->decl.init = mkexpr(Zloc, Olit, func, NULL);
decl->decl.isconst = 1;
decl->decl.type = tyvoidfn;
+ decl->decl.vis = Vishidden;
lappend(&file->file.stmts, &file->file.nstmts, decl);
}