summaryrefslogtreecommitdiff
path: root/muse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-09-17 13:48:46 -0400
committerOri Bernstein <ori@eigenstate.org>2014-09-17 13:48:46 -0400
commitd2a198f1959af5023bbc893fe396bb2f08262a61 (patch)
tree8b582e627e48b1024f0d046db9d5bc3fd7efd5be /muse
parent7c284022867d6a453b72e90235c8a86ce13fcccc (diff)
downloadmc-d2a198f1959af5023bbc893fe396bb2f08262a61.tar.gz
Add support for 'pkglocal' keyword.
pkglocal makes the export only available within the package.
Diffstat (limited to 'muse')
-rw-r--r--muse/muse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/muse/muse.c b/muse/muse.c
index ca96593..74220df 100644
--- a/muse/muse.c
+++ b/muse/muse.c
@@ -59,6 +59,7 @@ static void genuse(char *path)
yyparse();
infer(file);
+ tagexports(file->file.exports, 0);
if (outfile) {
p = outfile;
} else {
@@ -131,6 +132,7 @@ int main(int argc, char **argv)
for (i = optind; i < argc; i++)
mergeuse(argv[i]);
infer(file);
+ tagexports(file->file.exports, 1);
f = fopen(outfile, "w");
writeuse(f, file);
fclose(f);