static void init( // PROGRAM INITIALIZATION void ) { CPPLIBDATA( dtreg_vfptrs )[ DTRG_FUN ] = &fun_vftable; }
static void init( // PROGRAM INITIALIZATION void ) { CPPLIBDATA( dtreg_vfptrs )[ DTRG_STATIC_INITLS ] = &ls_vftable; }
// 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 )