typemap
struct typemap *tp;
int typemap[TZ_MAX_TYPES];
typemap[i] = writetype[i] ? thistypecnt++ : 0;
uc = typemap[types[i]];