model_server/xref/src/xrefSymbol.h.cxx
// True if no date for symbol in pmod file, or if physical file is newer
True if no date for symbol in pmod file, or if physical file is newer
True if no date for symbol in pmod file or if physical file is newer
int xrefSymbol::is_newer(char const *filename, XrefTable* Xr)
{
  Initialize(xrefSymbol::is_newer);
  time_t last_mod_date =  get_last_mod_date(Xr);
  if(last_mod_date == 0) return 1;
  char fname[MAXPATHLEN];
  fileCache_realpath(filename, fname);
#ifdef _WIN32
  return (last_mod_date + 2) < get_last_modified_date(fname);
#else
  return last_mod_date < get_last_modified_date(fname);
#endif
}
int xrefSymbol :: is_newer ( char const * filename , XrefTable * Xr ) { Initialize ( xrefSymbol :: is_newer ) ; time_t last_mod_date = get_last_mod_date ( Xr ) ; if ( last_mod_date == 0 ) return 1 ; char fname [ MAXPATHLEN ] ; fileCache_realpath ( filename , fname ) ; #ifdef _WIN32 return ( last_mod_date + 2 ) < get_last_modified_date ( fname ) ; #else return last_mod_date < get_last_modified_date ( fname ) ; #endif }
True if no date for symbol in pmod file, or if physical file is newer
True if no date for symbol in pmod file or if physical file is newer
// File time on windows FAT partitions saved with 2 sek precision only // we need to handle this