Changeset 35 for trunk/src/kmk/suff.c


Ignore:
Timestamp:
Mar 18, 2003, 4:58:49 AM (22 years ago)
Author:
bird
Message:

emx is kind of working again...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/suff.c

    r25 r35  
    137137    struct _Src     *parent;    /* The Src for which this is a source */
    138138    GNode           *node;      /* The node describing the file */
    139     int             children;   /* Count of existing children (so we don't free
     139    int             children;   /* Count of existing children (so we don't efree
    140140                                 * this thing too early or never nuke it) */
    141141#ifdef DEBUG_SRC
     
    359359    Lst_Destroy (s->searchPath, Dir_Destroy);
    360360
    361     free ((Address)s->name);
    362     free ((Address)s);
     361    efree ((Address)s->name);
     362    efree ((Address)s);
    363363}
    364364
     
    614614         * New specification for transformation rule. Just nuke the old list
    615615         * of commands so they can be filled in again... We don't actually
    616          * free the commands themselves, because a given command can be
     616         * efree the commands themselves, because a given command can be
    617617         * attached to several different transformations.
    618618         */
     
    905905
    906906    Var_Set(".INCLUDES", ptr = Dir_MakeFlags("-I", inIncludes), VAR_GLOBAL);
    907     free(ptr);
     907    efree(ptr);
    908908    Var_Set(".LIBS", ptr = Dir_MakeFlags("-L", inLibs), VAR_GLOBAL);
    909     free(ptr);
     909    efree(ptr);
    910910
    911911    Lst_Destroy(inIncludes, Dir_Destroy);
     
    10811081 *
    10821082 * Side Effects:
    1083  *      The memory is free'd.
     1083 *      The memory is efree'd.
    10841084 *----------------------------------------------------------------------
    10851085 */
     
    11051105        s = (Src *) Lst_Datum (ln);
    11061106        if (s->children == 0) {
    1107             free ((Address)s->file);
     1107            efree ((Address)s->file);
    11081108            if (!s->parent)
    1109                 free((Address)s->pref);
     1109                efree((Address)s->pref);
    11101110            else {
    11111111#ifdef DEBUG_SRC
     
    11171117            }
    11181118#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);
    11201120            Lst_Destroy(s->cp, NOFREE);
    11211121#endif
    11221122            Lst_Remove(l, ln);
    1123             free ((Address)s);
     1123            efree ((Address)s);
    11241124            t |= 1;
    11251125            Lst_Close(l);
     
    11871187            printf("remove %x from %x\n", s, srcs);
    11881188#endif
    1189             free(ptr);
     1189            efree(ptr);
    11901190            break;
    11911191        }
     
    12681268                     * Hot Damn! Create a new Src structure to describe
    12691269                     * this transformation (making sure to duplicate the
    1270                      * source node's name so Suff_FindDeps can free it
     1270                     * source node's name so Suff_FindDeps can efree it
    12711271                     * again (ick)), and return the new structure.
    12721272                     */
     
    14011401
    14021402                        if (doFree) {
    1403                             free(junk);
     1403                            efree(junk);
    14041404                        }
    14051405                    } else if (*cp == '\\' && *cp != '\0') {
     
    14441444             * Free the result
    14451445             */
    1446             free((char *)cp);
     1446            efree((char *)cp);
    14471447        }
    14481448        /*
     
    16031603    tname = str_concat(s->name, t->name, 0);
    16041604    ln = Lst_Find(transforms, (ClientData)tname, SuffGNHasNameP);
    1605     free(tname);
     1605    efree(tname);
    16061606
    16071607    if (ln == NILLNODE) {
     
    23542354 *
    23552355 * Side Effects:
    2356  *      The memory is free'd.
     2356 *      The memory is efree'd.
    23572357 *----------------------------------------------------------------------
    23582358 */
Note: See TracChangeset for help on using the changeset viewer.