accomodate empty type table in 6l.
R=r
DELTA=10 (2 added, 8 deleted, 0 changed)
OCL=18601
CL=18605
prog->to.sym = all[i];
}
s->value = PtrSize*n;
+ if(n == 0)
+ s->value = 1; // must have non-zero size or 6l complains
// emit count
s = lookup("ngotypesigs", 0);
// TODO(rsc): Cache these by type string.
Sigt *sigt;
- // Must be pointer in order for alg, width to be right.
- if(type == nil || type->len == 0 || type->str[0] != '*') {
- // TODO(rsc): What to do here?
- prints("bad unreflect type: ");
- sys·printstring(type);
- prints("\n");
- throw("unreflect");
- }
sigt = mal(2*sizeof sigt[0]);
sigt[0].name = mal(type->len + 1);
mcpy(sigt[0].name, type->str, type->len);