void BIOutSrcLine( void ) { //=================== // Set Current Source Line if( _GenerateBrInfo() ) { DWLineNum( cBIId, DW_LN_DEFAULT, SrcRecNum, 0, 0 ); DWDeclPos( cBIId, CurrFile->rec, 0 ); } }
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 ); }
static void TestLine( void ) { /* try varying the column */ DWLineNum( Client, DW_LN_STMT, 1, 1, 0 ); DWLineNum( Client, DW_LN_DEFAULT, 1, 5, 6 ); DWLineNum( Client, DW_LN_DEFAULT, 1, 30, 24 ); /* let's start varying the line number */ DWLineNum( Client, DW_LN_STMT, 2, 1, 40 ); DWLineNum( Client, DW_LN_DEFAULT, 3, 1, 50 ); DWLineNum( Client, DW_LN_DEFAULT, 2, 1, 60 ); DWLineNum( Client, DW_LN_STMT, 5, 1, 70 ); DWLineNum( Client, DW_LN_STMT, 10, 1, 80 ); DWLineNum( Client, DW_LN_STMT, 11, 1, 180 ); DWLineNum( Client, DW_LN_STMT, 12, 1, 480 ); DWLineNum( Client, DW_LN_STMT, 25, 1, 480 ); DWLineNum( Client, DW_LN_STMT, 35, 1, 1480 ); }