model_server/xref/src/xrefSymbol.h.cxx
//  note:  date of zero is not allowed;  it probably came from
//      a nonexistent file name. Exception is made for -pmoddiff type
//      operations, which can deal with a pset having no source file.
date of zero is not allowed;  it probably came from
a nonexistent file name. Exception is made for -pmoddiff type
operations, which can deal with a pset having no source file.
date of zero is not allowed ; it probably came from a nonexistent file name . Exception is made for - pmoddiff type operations which can deal with a pset having no source file .
void xrefSymbol::set_last_mod_date(time_t date, XrefTable* Xr)
{
    Initialize(xrefSymbol::set_last_mod_date);
    if (!date) {
#ifdef _PSET_DEBUG
    cout << "%%%error - attempt to set date to zero in " 
	<< this->get_name(Xr) << endl;
    IF(1) ;
#endif
	return;
    }
    if (Xr->my_Xref && Xr->my_Xref->get_home_flag() == 0) return;
    int i=10;		
    while (get_last_mod_date(Xr) && i--) {
	rm_link(lt_lmd,0, Xr);
	rm_link(lt_lmdhigh,0, Xr);
    }
    add_link(lt_lmd,     date & datemask, Xr);
    add_link(lt_lmdhigh, ((unsigned long)date) >> dateshift, Xr);
#ifdef _PSET_DEBUG
    IF (get_last_mod_date(Xr) != date);
#endif
}
void xrefSymbol :: set_last_mod_date ( time_t date , XrefTable * Xr ) { Initialize ( xrefSymbol :: set_last_mod_date ) ; if ( ! date ) { #ifdef _PSET_DEBUG cout << " " << this -> get_name ( Xr ) << endl ; IF ( 1 ) ; #endif return ; } if ( Xr -> my_Xref && Xr -> my_Xref -> get_home_flag ( ) == 0 ) return ; int i = 10 ; while ( get_last_mod_date ( Xr ) && i -- ) { rm_link ( lt_lmd , 0 , Xr ) ; rm_link ( lt_lmdhigh , 0 , Xr ) ; } add_link ( lt_lmd , date & datemask , Xr ) ; add_link ( lt_lmdhigh , ( ( unsigned long ) date ) >> dateshift , Xr ) ; #ifdef _PSET_DEBUG IF ( get_last_mod_date ( Xr ) != date ) ; #endif }
note:  date of zero is not allowed;  it probably came from
a nonexistent file name.
note : date of zero is not allowed ; it probably came from a nonexistent file name .
// Set the lmd/lmdhigh links for the symbol.  Date is in the  //   usual Unix format, seconds since 1970. // (to avoid any risk of infinite loop)