Ignore:
Timestamp:
Nov 16, 1999, 2:24:45 PM (26 years ago)
Author:
ansari
Message:

fichier numero de version - Reza 16/11/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/peidainit.cc

    r285 r578  
    77#include "peidainit.h"
    88#include "ndatablock.h"
     9#include "sversion.h"
    910
    1011// ---  Classe d'initialisation de PEIDA++, (PPersistMgr en particulier)
     
    5152
    5253  // si var env PEIDA_NOPRTVER definie pas de print
    53   if(!getenv("PEIDA_NOPRTVER")) PrintPeidaVersion();
     54  if(!getenv("SOPHYA_NOPRTVER")) PrintPeidaVersion();
    5455}
    5556
     
    6869double PeidaInitiator::Version(bool fgprt)
    6970{
    70 if (fgprt)  PrintPeidaVersion();
    71 return(PeidaVersion());
     71if (fgprt) {
     72  char* compiler;
     73  #ifdef __GNUG__
     74  compiler = "gcc " __VERSION__;
     75  #endif
     76  #ifdef __DECCXX
     77  compiler = "cxx " ;
     78  #endif
     79  #ifdef __aCC__
     80  compiler = const_cast<char *>("HP-aCC ") ;
     81  #endif
     82  #ifdef __KCC__
     83  compiler = const_cast<char *>("KCC ") ;
     84  #endif
     85  #ifdef __SGICC__
     86  compiler = const_cast<char *>("SGI-CC ") ;
     87  #endif
     88  fprintf(stderr,"SOPHYA Version %4.1f Revision %d (%s) -- %s %s %s\n",
     89          SOPHYA_VERSION, SOPHYA_REVISION, SOPHYA_TAG,
     90          __DATE__, __TIME__, compiler);
     91}
     92return(SOPHYA_VERSION + (SOPHYA_REVISION/1000.));
    7293}
    7394 
Note: See TracChangeset for help on using the changeset viewer.