stubdb.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 976 行 · 第 1/2 页
C
976 行
extern void DUIShow( void )
{
// show the main screen - the splash page has been closed
}
extern void DUIWndUser( void )
{
// switch to the program screen
}
extern void DUIWndDebug( void )
{
// switch to the debugger screen
}
extern void DUIShowLogWindow( void )
{
// bring up the log window, cause some printout is coming
}
extern int DUIGetMonitorType( void )
{
// stub for old UI
return( 1 );
}
extern int DUIScreenSizeY( void )
{
// stub for old UI
return( 0 );
}
extern int DUIScreenSizeX( void )
{
// stub for old UI
return( 0 );
}
extern void DUIArrowCursor( void )
{
// we're about to suicide, so restore the cursor to normal
}
bool DUIAskIfAsynchOk( void )
{
// we're about to try to replay across an asynchronous event. Ask user
return( FALSE );
}
extern void DUIFlushKeys( void )
{
// 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( void )
{
// about to call system();
}
extern void DUIRingBell( void )
{
// 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( void )
{
// stub for old UI
FlushEOC();
}
void ProcCapture( void )
{
// stub for old UI
FlushEOC();
}
void ProcDisplay( void )
{
// stub for old UI
FlushEOC();
}
void ProcFont( void )
{
// stub for old UI
FlushEOC();
}
void ProcHelp( void )
{
// stub for old UI
FlushEOC();
}
#ifdef DBG_DBG
void ProcInternal( void )
{
// stub for old UI
FlushEOC();
}
#endif
void ProcPaint( void )
{
// stub for old UI
FlushEOC();
}
void ProcView( void )
{
// stub for old UI
FlushEOC();
}
void ProcWindow( void )
{
// stub for old UI
FlushEOC();
}
void ProcConfigFile( void )
{
// called when main config file processed
FlushEOC();
}
void ConfigDisp( void )
{
// stub for old UI
}
void ConfigFont( void )
{
// stub for old UI
}
void ConfigPaint( void )
{
// stub for old UI
}
extern void DClickSet( void )
{
// stub for old UI
FlushEOC();
}
extern void DClickConf( void )
{
// stub for old UI
}
extern void InputSet( void )
{
// stub for old UI
FlushEOC();
}
extern void InputConf( void )
{
// stub for old UI
}
extern void MacroSet( void )
{
// stub for old UI
FlushEOC();
}
extern void MacroConf( void )
{
// stub for old UI
}
extern void FiniMacros( void )
{
// stub for old UI
}
int TabIntervalGet( void )
{
// stub for old UI
return( 0 );
}
void TabIntervalSet( int new )
{
// stub for old UI
}
extern void TabSet( void )
{
// stub for old UI
FlushEOC();
}
extern void TabConf( void )
{
// stub for old UI
}
extern void SearchSet( void )
{
// stub for old UI
FlushEOC();
}
extern void SearchConf( void )
{
// stub for old UI
}
extern void FingClose( void )
{
// close the splash page
}
extern void FingOpen( void )
{
// open a splash page
}
extern void AsmChangeOptions( void )
{
// assembly window options changed
}
extern void RegChangeOptions( void )
{
// reg window options changed
}
extern void VarChangeOptions( void )
{
// var window options changed
}
extern void FuncChangeOptions( void )
{
// func window options changed
}
extern void GlobChangeOptions( void )
{
// glob window options changed
}
extern void ModChangeOptions( void )
{
// 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( void )
{
// used by print/window command
}
extern void VarUnMapScopes( struct image_entry *img )
{
// unmap variable scopes - prog about to restart
}
extern void VarReMapScopes( struct image_entry *img )
{
// remap variable scopes - prog about to restart
}
extern void VarFreeScopes( void )
{
// free variable scope info
}
extern void SetLastExe( char *name )
{
// remember last exe debugged name
}
extern void CaptureError( void )
{
// 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 )
{
printf( "%s: %s\n", buff, LIT( Debugger_Startup_Error ) );
// MessageBox( (HWND) NULL, buff, LIT( Debugger_Startup_Error ),
// MB_OK | MB_ICONHAND | MB_SYSTEMMODAL );
}
void DUIEnterCriticalSection( void )
{
}
void DUIExitCriticalSection( void )
{
}
void DUIInitLiterals( void )
{
}
void DUIFiniLiterals( void )
{
}
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( void )
{
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 )
{
}
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 );
}
unsigned OnAnotherThread( unsigned(*a)( unsigned, void *, unsigned, void * ), unsigned b, void *c, unsigned d, void *e )
{
return( a( b, c, d, e ) );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?