void BISetSrcFile( void ) { //=================== // Set Current Source Line char *name; if( _GenerateBrInfo() ) { if ( !( ProgSw & PS_FATAL_ERROR ) && CurrFile ) { name = BIMKFullPath( CurrFile->name ); DWSetFile( cBIId, name ); DWDeclFile( cBIId, name ); DWLineNum( cBIId, DW_LN_DEFAULT, CurrFile->rec, 0, 0 ); DWDeclPos( cBIId, CurrFile->rec, 0 ); } } }
extern void DFLineNum( cue_state *state, offset lc ){ /*******************************************************/ char *fname; if( NeedBaseSet() ){ back_handle bck; bck = MakeLabel(); OutLabel( bck->lbl ); DWLineAddr( Client, (dw_sym_handle)bck, lc ); #if _TARGET & ( _TARG_IAPX86 | _TARG_80386 ) if( _IsntTargetModel( FLAT_MODEL ) ) { DWLineSeg( Client, (dw_sym_handle)bck ); } #endif BEFreeBack( bck ); } if( state->fno != CurrFNo ){ fname = SrcFNoFind( state->fno ); DWSetFile( Client, fname ); CurrFNo = state->fno; } DWLineNum( Client, DW_LN_STMT, state->line, state->col, lc ); }