model_server/xref/src/xrefSymbol.h.cxx
// only work if ref and this are in the same xref
only work if ref and this are in the same xref
only work if ref and this are in the same xref
int xrefSymbol::has_link(linkType lt, xrefSymbol* ref, XrefTable* my_Xr)
{
  Initialize(xrefSymbol::has_link);
  uint s_ind = get_symbol_index();
  Link* lnk = get_start_link(s_ind, my_Xr);
  while (lnk && !last_link(lnk)) {
    if ((lnk->lt() == lt) && (ref->get_symbol_index() == lnk->get_index())) return 1;
    lnk = get_next_link(lnk, s_ind, my_Xr);
  }
  return 0;
}
int xrefSymbol :: has_link ( linkType lt , xrefSymbol * ref , XrefTable * my_Xr ) { Initialize ( xrefSymbol :: has_link ) ; uint s_ind = get_symbol_index ( ) ; Link * lnk = get_start_link ( s_ind , my_Xr ) ; while ( lnk && ! last_link ( lnk ) ) { if ( ( lnk -> lt ( ) == lt ) && ( ref -> get_symbol_index ( ) == lnk -> get_index ( ) ) ) return 1 ; lnk = get_next_link ( lnk , s_ind , my_Xr ) ; } return 0 ; }
only work if ref and this are in the same xref
only work if ref and this are in the same xref