Sym *s;
if(t == T)
- fatal("reexport: type nil\n");
+ fatal("reexport: type nil");
s = t->sym;
if(s == S/* || s->name[0] == '_'*/) {
n = s->oconst;
if(n == N || n->op != OLITERAL)
- fatal("dumpexportconst: oconst nil: %S\n", s);
+ fatal("dumpexportconst: oconst nil: %S", s);
t = n->type; // may or may not be specified
if(t != T)
switch(n->val.ctype) {
default:
- fatal("dumpexportconst: unknown ctype: %S\n", s);
+ fatal("dumpexportconst: unknown ctype: %S", s);
case CTINT:
case CTSINT:
case CTUINT:
}
if(t->sym != s)
- fatal("dumpexporttype: cross reference: %S\n", s);
+ fatal("dumpexporttype: cross reference: %S", s);
et = t->etype;
switch(et) {
default:
if(et < 0 || et >= nelem(types) || types[et] == T)
- fatal("dumpexporttype: basic type: %S %E\n", s, et);
+ fatal("dumpexporttype: basic type: %S %E", s, et);
/* type 5 */
Bprint(bout, "\ttype %lS %d\n", s, et);
break;
case TFUNC:
for(f=t->type; f!=T; f=f->down) {
if(f->etype != TSTRUCT)
- fatal("dumpexporttype: funct not field: %T\n", f);
+ fatal("dumpexporttype: funct not field: %T", f);
reexport(f);
}
case TINTER:
for(f=t->type; f!=T; f=f->down) {
if(f->etype != TFIELD)
- fatal("dumpexporttype: funct not field: %lT\n", f);
+ fatal("dumpexporttype: funct not field: %lT", f);
reexport(f->type);
}
Sym *s;
if(ss->op != OIMPORT)
- fatal("getimportsym: oops1 %N\n", ss);
+ fatal("getimportsym: oops1 %N", ss);
pkg = ss->psym->name;
s = pkglookup(ss->sym->name, pkg);
s = getimportsym(n);
if(s->otype == T)
- fatal("importlooktype: oops2 %S\n", s);
+ fatal("importlooktype: oops2 %S", s);
return s->otype;
}
Type *t1;
if(t->etype != TFUNC)
- fatal("importfuncnam: not func %T\n", t);
+ fatal("importfuncnam: not func %T", t);
if(t->thistuple > 0) {
t1 = t->type;
et = v->vval;
if(et <= 0 || et >= nelem(types) || types[et] == T)
- fatal("doimport5: bad type index: %E\n", et);
+ fatal("doimport5: bad type index: %E", et);
t = typ(et);
t->sym = S;