summaryrefslogtreecommitdiff
path: root/parse/specialize.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-11-05 21:27:14 -0800
committerOri Bernstein <ori@eigenstate.org>2017-11-05 21:27:14 -0800
commit4e018273cd06542a0605cebd840dbcb8b14ad906 (patch)
tree830242438ff43f1e5ae18841a5b99249c67b4452 /parse/specialize.c
parent547d6b96e5536f97d161e0a6544344534af3bde2 (diff)
downloadmc-4e018273cd06542a0605cebd840dbcb8b14ad906.tar.gz
Accept the globalness of file.
Diffstat (limited to 'parse/specialize.c')
-rw-r--r--parse/specialize.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse/specialize.c b/parse/specialize.c
index c5d4a59..74af0e9 100644
--- a/parse/specialize.c
+++ b/parse/specialize.c
@@ -233,7 +233,7 @@ fixup(Node *n)
if (n->expr.op == Ovar) {
ns = curstab();
if (n->expr.args[0]->name.ns)
- ns = getns(file, n->expr.args[0]->name.ns);
+ ns = getns(n->expr.args[0]->name.ns);
if (!ns)
fatal(n, "No namespace %s\n", n->expr.args[0]->name.ns);
d = getdcl(ns, n->expr.args[0]);
@@ -513,7 +513,7 @@ specializedcl(Node *gnode, Type *param, Type *to, Node **name)
n = genericname(gnode, param, to);
*name = n;
if (n->name.ns)
- st = getns(file, n->name.ns);
+ st = getns(n->name.ns);
else
st = file->file.globls;
if (!st)
@@ -603,7 +603,7 @@ callinit(Node *block, Node *init, Type *tyvoid, Type *tyvoidfn)
}
void
-geninit(Node *file)
+geninit(void)
{
Node *name, *decl, *func, *block, *init;
Type *tyvoid, *tyvoidfn;