Ejemplo n.º 1
0
static void init(               // PROGRAM INITIALIZATION
    void )
{
    CPPLIBDATA( dtreg_vfptrs )[ DTRG_FUN ] = &fun_vftable;
}
Ejemplo n.º 2
0
static void init(               // PROGRAM INITIALIZATION
    void )
{
    CPPLIBDATA( dtreg_vfptrs )[ DTRG_STATIC_INITLS ] = &ls_vftable;
}
Ejemplo n.º 3
0
//
static RW_DTREG_ROOT root_entry =// ROOT FS ENTRY
    {   NULL
    ,   &fs_root_handler
    ,   &fs_root_handler
    ,   NULL
    };

#endif


// assumptions: the following have occurred by the time fs_root is
//              invoked:
//
//  (1) fs has been set up by operating system
//  (2) thread-ctl stuff has been set up by CLIB initialization
//  (3) executes only in .EXE (not in .DLL)
//  (4) C++ run-time has not linked any others onto the chain
//


static void fs_root             // ESTABLISH ROOT ENTRY
    ( void )
{
    THREAD_CTL* thr = &_RWD_ThreadData;
    thr->flags.executable = true;
}


extern "C" XI( CPPLIBDATA( init_fs_root ), fs_root, INIT_PRIORITY_RUNTIME+1 )