summaryrefslogtreecommitdiff
path: root/parse/stab.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-03 22:36:01 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-03 23:27:02 -0700
commit24584aefe1ada81dc018464bdaa012f5a4f73609 (patch)
treeddb555be309e900b1eb1c070f6827aa5802c2b31 /parse/stab.c
parent2a0ea983cd6365e3212abe5a5ce3cf74a554daf9 (diff)
downloadmc-24584aefe1ada81dc018464bdaa012f5a4f73609.tar.gz
Errors are conventionally lowercase.
Diffstat (limited to 'parse/stab.c')
-rw-r--r--parse/stab.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/parse/stab.c b/parse/stab.c
index 605dab3..50a9fca 100644
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -346,7 +346,7 @@ void updatetype(Stab *st, Node *n, Type *t)
td = htget(st->ty, n);
if (!td)
- die("No type %s to update", namestr(n));
+ die("no type %s to update", namestr(n));
td->type = t;
}
@@ -393,7 +393,7 @@ void puttype(Stab *st, Node *n, Type *t)
htput(st->ty, td->name, td);
}
} else if (!mergetype(ty, t)) {
- fatal(n, "Type %s already declared on %s:%d", tystr(ty), fname(ty->loc),
+ fatal(n, "type %s already declared on %s:%d", tystr(ty), fname(ty->loc),
lnum(ty->loc));
}
}
@@ -430,11 +430,11 @@ void puttrait(Stab *st, Node *n, Trait *c)
st = findstab(st, n);
t = gettrait(st, n);
if (t && !mergetrait(t, c))
- fatal(n, "Trait %s already defined on %s:%d",
+ fatal(n, "trait %s already defined on %s:%d",
namestr(n), fname(t->loc), lnum(t->loc));
ty = gettype(st, n);
if (ty)
- fatal(n, "Trait %s defined as a type on %s:%d",
+ fatal(n, "trait %s defined as a type on %s:%d",
namestr(n), fname(ty->loc), lnum(ty->loc));
td = xalloc(sizeof(Traitdefn));
td->loc = n->loc;
@@ -473,7 +473,7 @@ void putimpl(Stab *st, Node *n)
st = findstab(st, n->impl.traitname);
impl = getimpl(st, n);
if (impl && !mergeimpl(impl, n))
- fatal(n, "Trait %s already implemented over %s at %s:%d",
+ fatal(n, "trait %s already implemented over %s at %s:%d",
namestr(n->impl.traitname), tystr(n->impl.type),
fname(n->loc), lnum(n->loc));
/*
@@ -518,7 +518,7 @@ void updatens(Stab *st, char *name)
Tydefn *td;
if (st->name)
- die("Stab %s already has namespace; Can't set to %s", st->name, name);
+ die("stab %s already has namespace; Can't set to %s", st->name, name);
st->name = strdup(name);
htput(file->file.ns, st->name, st);