model_server/dd/src/moved_from_xref.cxx
//  This function only inserts *certain* information about the module, not the whole thing
//    According to Trung, the rest of the information has already been updated on the
//    fly, while the person was editing.
This function only inserts *certain* information about the module, not the whole thing
According to Trung, the rest of the information has already been updated on the
fly, while the person was editing.
This function only inserts * certain * information about the module not the whole thing According to Trung the rest of the information has already been updated on the fly while the person was editing .
void XrefTable_insert_module(XrefTable *that, app *sh, int)
{
  Initialize(XrefTable_insert_module(app*,int));
  that->make_room(250000);	
  Xref* xr =  last_Xref = that->get_Xref();
  if (sh == 0) return;
  xrefSymbol *file_sym = that->lookup_module(sh->get_filename());
  if (file_sym == 0)
    file_sym = that->insert_symbol(sh);
  if (!file_sym) return;
    file_sym->add_link(is_defined_in, file_sym, xr);
  that->add_link(file_sym, is_including, sh); 
  that->add_link(file_sym, included_by, sh);  
  char const *fn = sh->get_phys_name();
  if ((char const *) fn) 
	file_sym->set_last_mod_date(get_last_modified_date(fn),that);
  file_sym->set_language(checked_cast(app, sh)->get_language(), that);  
  return;
}
void XrefTable_insert_module ( XrefTable * that , app * sh , int ) { Initialize ( XrefTable_insert_module ( app * , int ) ) ; that -> make_room ( 250000 ) ; Xref * xr = last_Xref = that -> get_Xref ( ) ; if ( sh == 0 ) return ; xrefSymbol * file_sym = that -> lookup_module ( sh -> get_filename ( ) ) ; if ( file_sym == 0 ) file_sym = that -> insert_symbol ( sh ) ; if ( ! file_sym ) return ; file_sym -> add_link ( is_defined_in , file_sym , xr ) ; that -> add_link ( file_sym , is_including , sh ) ; that -> add_link ( file_sym , included_by , sh ) ; char const * fn = sh -> get_phys_name ( ) ; if ( ( char const * ) fn ) file_sym -> set_last_mod_date ( get_last_modified_date ( fn ) , that ) ; file_sym -> set_language ( checked_cast ( app , sh ) -> get_language ( ) , that ) ; return ; }
This function only inserts *certain* information about the module, not the whole thing
According to Trung, the rest of the information has already been updated on the
fly, while the person was editing.
This function only inserts * certain * information about the module not the whole thing According to Trung the rest of the information has already been updated on the fly while the person was editing .
// move the table if not big enough for this addition // clean up any unreferenced xrefEntry values, anywhere // dealing with file first // add many links // add many links