Exemple #1
0
static void fini(               // module completion
    INITFINI* defn )
{
    defn = defn;
    CarveDestroy( carve_patch_se );
    CarveDestroy( carve_ctor_flag );
    CarveDestroy( carve_temp_entry );
    PstkClose( &stack_new_ctors );
}
Exemple #2
0
static void extraRptFini(       // COMPLETION FOR EXTRA REPORTING
    INITFINI* defn )            // - definition
{
    defn = defn;
    CarveDestroy( carveRPTREG_CTR );
    CarveDestroy( carveRPTREG_AVG );
    CarveDestroy( carveRPTREG_TAB );
    CarveDestroy( carveRPTREG_TIT );
}
Exemple #3
0
static void rewriteFini( INITFINI* defn )
{
    defn = defn;
    RewriteFree( currRewrite );
    currRewrite = NULL;
    DbgStmt( CarveVerifyAllGone( carveREWRITE, "REWRITE" ) );
    DbgStmt( CarveVerifyAllGone( carveREWRITE_TOKENS, "REWRITE_TOKENS" ) );
    DbgStmt( CarveVerifyAllGone( carveSRCFILE_HANDLE, "SRCFILE_HANDLE" ) );
    CarveDestroy( carveREWRITE );
    CarveDestroy( carveREWRITE_TOKENS );
    CarveDestroy( carveSRCFILE_HANDLE );
}
Exemple #4
0
void FiniHandles( dw_client cli )
{
    handle_blk *                cur;
    handle_blk *                next;

    _Assert(  cli->handles.forward == 0 );
    for( cur = cli->handles.block_head[0]; cur != NULL; cur = next ) {
        next = cur->next[0];
        CLIFree( cli, cur );
    }
    CarveDestroy( cli, cli->handles.extra_carver );
    CarveDestroy( cli, cli->handles.chain_carver );
}
Exemple #5
0
static void fini(               // COMPLETION
    INITFINI* defn )            // - definition
{
    /* unused parameters */ (void)defn;

    CarveDestroy( carveSYMBOL_LOCN );
}
Exemple #6
0
static void typeCompareFini(    // COMPLETION
    INITFINI* defn )            // - definition
{
    defn = defn;
    DbgStmt( CarveVerifyAllGone( carveTC_DATA, "TC_DATA" ) );
    CarveDestroy( carveTC_DATA );
}
Exemple #7
0
static void fini(               // module completion
    INITFINI* defn )
{
    defn = defn;
    RingCarveFree( carver_cdtors, &ring_cdtors );
    CarveDestroy( carver_cdtors );
}
Exemple #8
0
static void rtnGenFini(         // COMPLETE ROUTINE GENERATION
    INITFINI* defn )            // - definition
{
    /* unused parameters */ (void)defn;

    CarveDestroy( carveRTN_GEN );
}
Exemple #9
0
static void fini(               // CGBKCOND COMPLETION
    INITFINI* defn )            // - definition
{
    defn = defn;
    PstkClose( &stack_cond_blks );
    CarveDestroy( carveInfo );
}
Exemple #10
0
static void typeSigFini(        // COMPLETION OF TYPE SIGNATURING
    INITFINI* defn )            // - definition
{
    /* unused parameters */ (void)defn;

    CarveDestroy( carveTYPE_SIG );
}
Exemple #11
0
static void throwFini(          // COMPLETE CGBKTHRW
    INITFINI* defn )            // - definition
{
    /* unused parameters */ (void)defn;

    CarveDestroy( carveTHROW_RO );
}
Exemple #12
0
static void conPoolsFini(       // COMPLETE CONSTANT POOLS
    INITFINI* defn )            // - definition
{

    defn = defn;
    CarveDestroy( carvePOOL_CON );
}
Exemple #13
0
static void fini(               // CGBKCOND COMPLETION
    INITFINI* defn )            // - definition
{
    /* unused parameters */ (void)defn;

    PstkClose( &stack_cond_blks );
    CarveDestroy( carveInfo );
}
Exemple #14
0
static void linkageFini( INITFINI* defn )
{
    defn = defn;
    while( nestedLinkages != NULL ) {
        LinkagePop();
    }
    DbgStmt( CarveVerifyAllGone( carveSTACK, "linkage STACK" ) );
    CarveDestroy( carveSTACK );
}
Exemple #15
0
static void brinfSrcDestroy     // DESTROY ALL DATA
    ( void )
{
    CarveDestroy( carvePpIns );
    VstkClose( &open_src );
    ins_queue = NULL;
    cursor.src_file = NULL;
    cursor.line = 0;
    cursor.column = 0;
}
Exemple #16
0
static void ioSuppFini(         // FINALIZE IO SUPPORT
    INITFINI* defn )            // - definition
{
    defn = defn;
    if( temphandle != -1 ) {
        close( temphandle );
        if( tempname != NULL ) {
            remove( tempname );
        }
    }
    while( NULL != buffers ) {
        freeBuffer( buffers );
    }
    CarveDestroy( carve_buf );
    CMemFree( FNameBuf );
}
Exemple #17
0
static void brinfMacFini        // COMPLETION
    ( INITFINI* defn )          // - definition
{
    defn = defn;
    if( 0 != carveMacVals ) {
        MACVALUE* curr;
        RingIterBeg( values, curr ) {
            switch( curr->type ) {
              case MVT_DEFINED :
              case MVT_UNDEFED :
              { void* temp = curr->defin;
                curr->defin = NULL;
                CMemFree( temp );   // same format for undef'ed
              } break;
            }
        } RingIterEnd( curr );
        CarveDestroy( carveMacVals );
        carveMacVals = 0;
        VstkClose( &undefs );
    }
Exemple #18
0
void CanSFini( void ) {
/*******************/
    symb_handle cur;
    symb_handle next;

    cur = cansHead;
    if( cur != NULL ) {
        do {
            next = CanSFwd( cur );
            switch( cur->class ) {
            case CANS_CHANGE_SEG:
                CanADestroyHdl( cur->d.cseg.seg );
                break;
            case CANS_MEM_LOC:
                CanADestroyHdl( cur->d.memloc.mem_hdl );
                break;
            }
            cur = next;
        } while( cur != cansHead );
        cansHead = CANS_NULL;
    }
    CarveDestroy( myCarver );
}
Exemple #19
0
static void cgrfFini(           // COMPLETION OF CALL GRAPHING INFO.
    CALLGRAPH *ctl )            // - control information
{
    CarveDestroy( ctl->carve_nodes );
    CarveDestroy( ctl->carve_edges );
}
Exemple #20
0
void ThrowCnvFini(              // THROW CONVERSIONS: COMPLETION
    THROW_CNV_CTL *ctl )        // - control area
{
    CarveDestroy( ctl->carver );
}
Exemple #21
0
static void fini(               // COMPLETION
    INITFINI* defn )            // - definition
{
    defn = defn;
    CarveDestroy( carveFunRepository );
}
Exemple #22
0
void FixFini( void ) {
/******************/
    CarveDestroy( myCarver );
}
Exemple #23
0
static void throwFini(          // COMPLETE CGBKTHRW
    INITFINI* defn )            // - definition
{
    defn = defn;
    CarveDestroy( carveTHROW_RO );
}
Exemple #24
0
static void fini(               // COMPLETION
    INITFINI* defn )            // - definition
{
    defn = defn;
    CarveDestroy( carve_gen );
}
Exemple #25
0
static void typeSigFini(        // COMPLETION OF TYPE SIGNATURING
    INITFINI* defn )            // - definition
{
    defn = defn;
    CarveDestroy( carveTYPE_SIG );
}
void OmfFixFini( void )
/*********************/
{
    CarveDestroy( myCarver );
}