Exemplo n.º 1
0
STATIC BOOLEAN freeSuffix( void *node, void *ptr )
/************************************************/
{
    SUFFIX  *suffix = node;
    CREATOR *creator;
    CREATOR *creator_next;

    (void)ptr; // Unused
    FreeSafe( suffix->node.name );
    freePathRing( suffix->pathring );

    for( creator = suffix->creator; creator != NULL; creator = creator_next ) {
        creator_next = creator->next;
        FreeSList( creator->slist );
        FreeSafe( creator );
    }

    FreeSafe( suffix );

    return( FALSE );
}
Exemplo n.º 2
0
STATIC BOOLEAN freeSuffix( void *node, void *ptr )
/************************************************/
{
    SUFFIX  *suf = node;
    CREATOR *ccur;
    CREATOR *cwalk;

    (void)ptr; // Unused
    FreeSafe( suf->node.name );
    freePathRing( suf->first );

    cwalk = suf->creator;
    while( cwalk != NULL ) {
        ccur = cwalk;
        cwalk = cwalk->next;
        KillTarget( ccur->cretarg->node.name );
        FreeSafe( ccur );
    }

    FreeSafe( suf );

    return( FALSE );
}