model_server/dd/src/moved_from_xref.cxx
// the return app is not in ready form for normal usage
// only intended for smt_ast
// harazdous to your health
// potentially hazardous
// problematic if some .h file is not included by any one
the return app is not in ready form for normal usage
only intended for smt_ast
harazdous to your health
potentially hazardous
problematic if some .h file is not included by any one
the return app is not in ready form for normal usage only intended for smt_ast harazdous to your health potentially hazardous problematic if some . h file is not included by any one
app* XREF_get_files_including(char const *fn)
{
  Initialize(XREF_get_files_including);
  symbolArr bs;
  symbolArr as;
  xrefSymbol* fs;
  int bs_len = lookup_all_file_symbol(as, fn);
  int i;
  for (i = 0; i < bs_len; ++i){
    fs = (xrefSymbol*) as[i];
    if (fs->get_link(included_by, bs))
      break;
  }
  symbolArr processed;
  symbolArr leafs;
  bs_len = bs.size();
  for (i = 0; i < bs_len; ++i) {
    fs = (xrefSymbol*) bs[i];
    if (processed.includes(fs))
      continue;
    else
      processed.insert_last(fs);
    if (bs_len == fs->get_link(included_by, bs)){
      app *nh = get_app_for_file_sym(fs);
      if (nh) {
	if (is_forgiving())
	  return nh;
	if (!db_get_bit_forgive(nh->get_phys_name()))
	  return nh;
      }
    }
    else
      bs_len = bs.size();
  }
  return 0;
}
app * XREF_get_files_including ( char const * fn ) { Initialize ( XREF_get_files_including ) ; symbolArr bs ; symbolArr as ; xrefSymbol * fs ; int bs_len = lookup_all_file_symbol ( as , fn ) ; int i ; for ( i = 0 ; i < bs_len ; ++ i ) { fs = ( xrefSymbol * ) as [ i ] ; if ( fs -> get_link ( included_by , bs ) ) break ; } symbolArr processed ; symbolArr leafs ; bs_len = bs . size ( ) ; for ( i = 0 ; i < bs_len ; ++ i ) { fs = ( xrefSymbol * ) bs [ i ] ; if ( processed . includes ( fs ) ) continue ; else processed . insert_last ( fs ) ; if ( bs_len == fs -> get_link ( included_by , bs ) ) { app * nh = get_app_for_file_sym ( fs ) ; if ( nh ) { if ( is_forgiving ( ) ) return nh ; if ( ! db_get_bit_forgive ( nh -> get_phys_name ( ) ) ) return nh ; } } else bs_len = bs . size ( ) ; } return 0 ; }
the return app is not in ready form for normal usage
only intended for smt_ast
harazdous to your health
potentially hazardous
problematic if some .h file is not included by any one
the return app is not in ready form for normal usage only intended for smt_ast harazdous to your health potentially hazardous problematic if some . h file is not included by any one