typeid
addtype(struct typetable *types, enum typeid type)
enum typeid *const oldtable = types->table;
enum typeid *newtable;
if ((newtable = malloc(newsize * sizeof(enum typeid))) == NULL)
bcopy(oldtable, newtable, oldsize * sizeof(enum typeid));
newtable = realloc(oldtable, newsize * sizeof(enum typeid));
enum typeid *table; /* table of types */
enum typeid stattable[STATIC_ARG_TBL_SIZE];