void type_term() { type *tn; param_t *pn; int i; for (i = 0; i < arraysize(tstypes); i++) { type *t = tsptr2types[i]; if (t) { assert(!(t->Tty & (mTYconst | mTYvolatile | mTYimmutable | mTYshared))); assert(!(t->Tflags)); assert(!(t->Tmangle)); type_free(t); } type_free(tstypes[i]); } type_free(tsclib); type_free(tspvoid); type_free(tspcvoid); type_free(tsjlib); #if TX86 type_free(tstrace); #endif while (type_list) { tn = type_list->Tnext; #if TX86 mem_ffree(type_list); #else MEM_PH_FREE(type_list); #endif type_list = tn; } while (param_list) { pn = param_list->Pnext; #if TX86 mem_ffree(param_list); #else MEM_PH_FREE(param_list); #endif param_list = pn; } #ifdef DEBUG dbg_printf("Max # of types = %d\n",type_max); if (type_num != 0) dbg_printf("type_num = %d\n",type_num); /* assert(type_num == 0);*/ #endif }
void code_term() { #if TERMCODE code *cn; int count = 0; while (code_list) { cn = code_next(code_list); mem_ffree(code_list); code_list = cn; count++; } #ifdef DEBUG printf("Max # of codes = %d\n",count); #endif #else #ifdef DEBUG int count = 0; for (code *cn = code_list; cn; cn = code_next(cn)) count++; printf("Max # of codes = %d\n",count); #endif #endif }
void dt_term() { #if 0 && TERMCODE dt_t *dtn; while (dt_freelist) { dtn = dt_freelist->DTnext; mem_ffree(dt_freelist); dt_freelist = dtn; } #endif }