vs_integration/src/SocketConnection.cpp
//------------------------------------------------------------------------------------------
// This static function will use mrg_update to map line in the original file into line
// in the modified file
//------------------------------------------------------------------------------------------
This static function will use mrg_update to map line in the original file into line
in the modified file
This static function will use mrg_update to map line in the original file into line in the modified file
int SocketConnection::GetPrivateLine(CString& localfile, CString& basefile,int localline) {
CString diffile;
    if(_access(localfile,04)==-1) return  0;
    if(_access(basefile,04)==-1)  return  0;
    diffile = basefile;
	diffile+=".diff";
	MakeDiff(localfile,basefile,diffile);
	return MapLines(localfile,basefile,diffile,localline);
}
int SocketConnection :: GetPrivateLine ( CString & localfile , CString & basefile , int localline ) { CString diffile ; if ( _access ( localfile , 04 ) == -1 ) return 0 ; if ( _access ( basefile , 04 ) == -1 ) return 0 ; diffile = basefile ; diffile += " " ; MakeDiff ( localfile , basefile , diffile ) ; return MapLines ( localfile , basefile , diffile , localline ) ; }
This static function will use mrg_update to map line in the original file into line
in the modified file
This static function will use mrg_update to map line in the original file into line in the modified file
// First, check if the given files exists. // This function will create diff file which we will need  // to map lines