Changeset 35 for trunk/src/kmk/suff.c
- Timestamp:
- Mar 18, 2003, 4:58:49 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/suff.c
r25 r35 137 137 struct _Src *parent; /* The Src for which this is a source */ 138 138 GNode *node; /* The node describing the file */ 139 int children; /* Count of existing children (so we don't free139 int children; /* Count of existing children (so we don't efree 140 140 * this thing too early or never nuke it) */ 141 141 #ifdef DEBUG_SRC … … 359 359 Lst_Destroy (s->searchPath, Dir_Destroy); 360 360 361 free ((Address)s->name);362 free ((Address)s);361 efree ((Address)s->name); 362 efree ((Address)s); 363 363 } 364 364 … … 614 614 * New specification for transformation rule. Just nuke the old list 615 615 * of commands so they can be filled in again... We don't actually 616 * free the commands themselves, because a given command can be616 * efree the commands themselves, because a given command can be 617 617 * attached to several different transformations. 618 618 */ … … 905 905 906 906 Var_Set(".INCLUDES", ptr = Dir_MakeFlags("-I", inIncludes), VAR_GLOBAL); 907 free(ptr);907 efree(ptr); 908 908 Var_Set(".LIBS", ptr = Dir_MakeFlags("-L", inLibs), VAR_GLOBAL); 909 free(ptr);909 efree(ptr); 910 910 911 911 Lst_Destroy(inIncludes, Dir_Destroy); … … 1081 1081 * 1082 1082 * Side Effects: 1083 * The memory is free'd.1083 * The memory is efree'd. 1084 1084 *---------------------------------------------------------------------- 1085 1085 */ … … 1105 1105 s = (Src *) Lst_Datum (ln); 1106 1106 if (s->children == 0) { 1107 free ((Address)s->file);1107 efree ((Address)s->file); 1108 1108 if (!s->parent) 1109 free((Address)s->pref);1109 efree((Address)s->pref); 1110 1110 else { 1111 1111 #ifdef DEBUG_SRC … … 1117 1117 } 1118 1118 #ifdef DEBUG_SRC 1119 printf(" free: [l=%x] p=%x %d\n", l, s, s->children);1119 printf("efree: [l=%x] p=%x %d\n", l, s, s->children); 1120 1120 Lst_Destroy(s->cp, NOFREE); 1121 1121 #endif 1122 1122 Lst_Remove(l, ln); 1123 free ((Address)s);1123 efree ((Address)s); 1124 1124 t |= 1; 1125 1125 Lst_Close(l); … … 1187 1187 printf("remove %x from %x\n", s, srcs); 1188 1188 #endif 1189 free(ptr);1189 efree(ptr); 1190 1190 break; 1191 1191 } … … 1268 1268 * Hot Damn! Create a new Src structure to describe 1269 1269 * this transformation (making sure to duplicate the 1270 * source node's name so Suff_FindDeps can free it1270 * source node's name so Suff_FindDeps can efree it 1271 1271 * again (ick)), and return the new structure. 1272 1272 */ … … 1401 1401 1402 1402 if (doFree) { 1403 free(junk);1403 efree(junk); 1404 1404 } 1405 1405 } else if (*cp == '\\' && *cp != '\0') { … … 1444 1444 * Free the result 1445 1445 */ 1446 free((char *)cp);1446 efree((char *)cp); 1447 1447 } 1448 1448 /* … … 1603 1603 tname = str_concat(s->name, t->name, 0); 1604 1604 ln = Lst_Find(transforms, (ClientData)tname, SuffGNHasNameP); 1605 free(tname);1605 efree(tname); 1606 1606 1607 1607 if (ln == NILLNODE) { … … 2354 2354 * 2355 2355 * Side Effects: 2356 * The memory is free'd.2356 * The memory is efree'd. 2357 2357 *---------------------------------------------------------------------- 2358 2358 */
Note:
See TracChangeset
for help on using the changeset viewer.