summaryrefslogtreecommitdiff
path: root/parse/export.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-06-28 03:24:57 -0700
committerOri Bernstein <ori@markovcorp.com>2017-06-28 10:59:54 -0700
commit567766b0cb773c76a9ec0d16246bd27b4a46b851 (patch)
tree47da5cff2284f691083c6b8445ded0047a174e85 /parse/export.c
parent6f5af8562ed5547ddaeb15ba7ed4a334318ca53f (diff)
downloadmc-567766b0cb773c76a9ec0d16246bd27b4a46b851.tar.gz
Remove unused memb from Trait and rename funcs -> proto
These are prototype declarations that must be implemented by the impl (not necessarily functions), so proto seems like a better name.
Diffstat (limited to 'parse/export.c')
-rw-r--r--parse/export.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/parse/export.c b/parse/export.c
index efe4650..0c9be87 100644
--- a/parse/export.c
+++ b/parse/export.c
@@ -60,10 +60,8 @@ static void tagtrait(Stab *st, Trait *tr, int ingeneric, int hidelocal)
tagtype(st, tr->param, ingeneric, hidelocal);
for (i = 0; i < tr->naux; i++)
tagtype(st, tr->aux[i], ingeneric, hidelocal);
- for (i = 0; i < tr->nmemb; i++)
- tagnode(st, tr->memb[i], ingeneric, hidelocal);
- for (i = 0; i < tr->nfuncs; i++)
- tagnode(st, tr->funcs[i], ingeneric, hidelocal);
+ for (i = 0; i < tr->nproto; i++)
+ tagnode(st, tr->proto[i], ingeneric, hidelocal);
}
static void tagtype(Stab *st, Type *t, int ingeneric, int hidelocal)
@@ -261,13 +259,9 @@ void tagexports(Node *file, int hidelocal)
tr->param->vis = tr->vis;
for (i = 0; i < tr->naux; i++)
tr->aux[i]->vis = tr->vis;
- for (i = 0; i < tr->nmemb; i++) {
- tr->memb[i]->decl.vis = tr->vis;
- tagnode(st, tr->memb[i], 0, hidelocal);
- }
- for (i = 0; i < tr->nfuncs; i++) {
- tr->funcs[i]->decl.vis = tr->vis;
- tagnode(st, tr->funcs[i], 0, hidelocal);
+ for (i = 0; i < tr->nproto; i++) {
+ tr->proto[i]->decl.vis = tr->vis;
+ tagnode(st, tr->proto[i], 0, hidelocal);
}
}
free(k);