model_server/xref/src/Xref_util.cxx
// copy lt of sym to this, sym is of different xref presumably
copy lt of sym to this, sym is of different xref presumably
copy lt of sym to this sym is of different xref presumably
void XrefTable::copy_link(xrefSymbol* sym, linkType lt, XrefTable* sym_xrt, xrefSymbol* lt_of)
{
    Initialize(XrefTable::copy_link);
    xrefSymbol* this_sym = insert_symbol(sym, sym_xrt);
    if (lt_of && this_sym) {
        xrefSymbol* this_ts = insert_symbol(lt_of, sym_xrt);
        this_sym->add_link(lt, this_ts,1,this);
        return;
    }
    symbolArr as;
    sym->get_link(lt, as, 1);
    for (int i = 0; i < as.size(); ++i) {
        xrefSymbol* this_ts = insert_symbol((xrefSymbol*) as[i], as[i].get_xref()->get_lxref());
        if (this_sym && this_ts) this_sym->add_link(lt, this_ts,1,this);
    }
}
void XrefTable :: copy_link ( xrefSymbol * sym , linkType lt , XrefTable * sym_xrt , xrefSymbol * lt_of ) { Initialize ( XrefTable :: copy_link ) ; xrefSymbol * this_sym = insert_symbol ( sym , sym_xrt ) ; if ( lt_of && this_sym ) { xrefSymbol * this_ts = insert_symbol ( lt_of , sym_xrt ) ; this_sym -> add_link ( lt , this_ts , 1 , this ) ; return ; } symbolArr as ; sym -> get_link ( lt , as , 1 ) ; for ( int i = 0 ; i < as . size ( ) ; ++ i ) { xrefSymbol * this_ts = insert_symbol ( ( xrefSymbol * ) as [ i ] , as [ i ] . get_xref ( ) -> get_lxref ( ) ) ; if ( this_sym && this_ts ) this_sym -> add_link ( lt , this_ts , 1 , this ) ; } }
copy lt of sym to this, sym is of different xref presumably
copy lt of sym to this sym is of different xref presumably