stubdb.c

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 826 行 · 第 1/2 页

C
826
字号
extern void DUIWndDebug()
{
    // switch to the debugger screen
}
extern void DUIShowLogWindow()
{
    // bring up the log window, cause some printout is coming
}
extern int DUIGetMonitorType()
{
    // stub for old UI
    return( 1 );
}
extern int DUIScreenSizeY()
{
    // stub for old UI
    return( 0 );
}
extern int DUIScreenSizeX()
{
    // stub for old UI
    return( 0 );
}
extern void DUIArrowCursor()
{
    // we're about to suicide, so restore the cursor to normal
}
bool DUIAskIfAsynchOk()
{
    // we're about to try to replay across an asynchronous event.  Ask user
    return( FALSE );
}
extern void DUIFlushKeys()
{
    // we're about to suicide - clear the keyboard typeahead
}
extern void DUIPlayDead( bool dead )
{
    // the app is about to run - make the debugger play dead
}
extern void DUISysEnd( bool pause )
{
    // done calling system();
}
extern void DUISysStart()
{
    // about to call system();
}
extern void DUIRingBell()
{
    // ring ring (error)
}
extern int DUIDisambiguate( ambig_info *ambig, int count )
{
    // the expression processor detected an ambiguous symbol.  Ask user which one
    return( 0 );
}
extern void *DUIHourGlass( void *x )
{
    return( x );
}
void ProcAccel()
{
    // stub for old UI
    FlushEOC();
}
void ProcCapture()
{
    // stub for old UI
    FlushEOC();
}
void ProcDisplay()
{
    // stub for old UI
    FlushEOC();
}
void ProcFont()
{
    // stub for old UI
    FlushEOC();
}
void ProcHelp()
{
    // stub for old UI
    FlushEOC();
}
void ProcInternal()
{
    // stub for old UI
    FlushEOC();
}
void ProcPaint()
{
    // stub for old UI
    FlushEOC();
}
void ProcView()
{
    // stub for old UI
    FlushEOC();
}
void ProcWindow()
{
    // stub for old UI
    FlushEOC();
}
void ProcConfigFile()
{
    // called when main config file processed
    FlushEOC();
}
void ConfigDisp()
{
    // stub for old UI
}
void ConfigFont()
{
    // stub for old UI
}
void ConfigPaint()
{
    // stub for old UI
}
extern void DClickSet()
{
    // stub for old UI
    FlushEOC();
}
extern void DClickConf()
{
    // stub for old UI
}
extern void InputSet()
{
    // stub for old UI
    FlushEOC();
}
extern void InputConf()
{
    // stub for old UI
}
extern void MacroSet()
{
    // stub for old UI
    FlushEOC();
}
extern void MacroConf()
{
    // stub for old UI
}
extern  void    FiniMacros()
{
    // stub for old UI
}
int TabIntervalGet()
{
    // stub for old UI
    return( 0 );
}
void TabIntervalSet( int new )
{
    // stub for old UI
}
extern void TabSet()
{
    // stub for old UI
    FlushEOC();
}
extern void TabConf()
{
    // stub for old UI
}
extern void SearchSet()
{
    // stub for old UI
    FlushEOC();
}
extern void SearchConf()
{
    // stub for old UI
}
extern void FingClose()
{
    // open a splash page
}
extern void FingOpen()
{
    // close the splash page
}
extern void AsmChangeOptions()
{
    // assembly window options changed
}
extern void RegChangeOptions()
{
    // reg window options changed
}
extern void VarChangeOptions()
{
    // var window options changed
}
extern void FuncChangeOptions()
{
    // func window options changed
}
extern void GlobChangeOptions()
{
    // glob window options changed
}
extern void ModChangeOptions()
{
    // mod window options changed
}
extern void WndVarInspect(char*buff)
{
}
extern void *WndAsmInspect(address addr)
{
    // used by examine/assembly command
    int         i;
    char        buff[256];
    mad_disasm_data     *dd;

    _AllocA( dd, MADDisasmDataSize() );
    for( i = 0; i < 10; ++i ) {
        MADDisasm( dd, &addr, 0 );
        MADDisasmFormat( dd, MDP_ALL, CurrRadix, sizeof( buff ), buff );
        InsMemRef( dd );
        printf( "%-40s%s\n", buff, TxtBuff );
    }
    return( NULL );
}
extern void *WndSrcInspect( address addr )
{
    // used by examine/source command
    return( NULL );
}
extern void WndMemInspect( address addr, char *next, unsigned len,
                           mad_type_handle type )
{
    // used by examine/byte/word/etc command
}
extern void WndIOInspect(address*addr,mad_type_handle type)
{
    // used by examine/iobyte/ioword/etc command
}
extern void GraphicDisplay()
{
    // used by print/window command
}
extern void VarUnMapScopes()
{
    // unmap variable scopes - prog about to restart
}
extern void VarReMapScopes()
{
    // remap variable scopes - prog about to restart
}
extern void VarFreeScopes()
{
    // free variable scope info
}
extern void SetLastExe( char *name )
{
    // remember last exe debugged name
}
extern void CaptureError()
{
    // error in capture command (stub)
}
extern void DUIProcPendingPaint(void)
{
    // a paint command was issued - update the screen (stub)
}
void VarSaveWndToScope( void *wnd )
{
}
void VarRestoreWndFromScope( void *wnd )
{
}
void PopErrBox( char *buff )
{
    MessageBox( (HWND) NULL, buff, LIT( Debugger_Startup_Error ),
            MB_OK | MB_ICONHAND | MB_SYSTEMMODAL );
}
void KillDebugger( int ret_code )
{
    ExitProcess( ret_code );
}

void DUIEnterCriticalSection()
{
}

void DUIExitCriticalSection()
{
}

void DUIInitLiterals()
{
}

void DUIFiniLiterals()
{
}

bool DUIGetSourceLine( cue_handle *ch, char *buff, unsigned len )
{
    void        *viewhndl;

    viewhndl = OpenSrcFile( ch );
    if( viewhndl == NULL ) return( FALSE );
    buff[ FReadLine( viewhndl, CueLine( ch ), 0, buff, len )] = '\0';
    FDoneSource( viewhndl );
    return( TRUE );
}

bool DUIIsDBCS()
{
    return( FALSE );
}

extern int EnvLkup( char *src, char *dst, int );
int DUIEnvLkup( char *src, char *dst, int max_len )
{
    return( EnvLkup( src, dst, max_len ) );
}

void DUIDirty()
{
}


void StartupErr( char *err )
/**************************/
{
    printf( "Fatal error: %s", err );
    exit( 1 );
}

void DUISrcOrAsmInspect( address addr )
{
}

void DUIAddrInspect( address addr )
{
}

extern void RemovePoint( void *bp );
extern void DUIRemoveBreak( void *bp )
/***********************************/
{
    RemovePoint( bp );
}

extern void SetMADMenuItems( void )
/**********************************/
{
}

extern void FPUChangeOptions( void )
/**********************************/
{
}

extern void MMXChangeOptions( void )
/**********************************/
{
}

extern void XMMChangeOptions( void )
/**********************************/
{
}

bool DUIImageLoaded( image_entry *image, bool load,
                     bool already_stopping, bool *force_stop )
/************************************************************/
{
    char buff[256];

    already_stopping=already_stopping;
    force_stop= force_stop;
    if( load ) {
        sprintf( buff, "%s '%s'", LIT( DLL_Loaded ), image->image_name );
    } else {
        sprintf( buff, "%s '%s'", LIT( DLL_UnLoaded ), image->image_name );
    }
    DUIDlgTxt( buff );
    return( FALSE );
}

void DUICopySize( void *cookie, long size )
/***************************/
{
    size = size;
    cookie = cookie;
}

void DUICopyCopied( void *cookie, long size )
/*****************************/
{
    size = size;
    cookie = cookie;
}

bool DUICopyCancelled( void * cookie )
/************************************/
{
    cookie = cookie;
    return( FALSE );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?