Replacement for the type.c file already on here