(file) Return to jsoc_version.h CVS log (file) (dir) Up to [Development] / JSOC / base

Diff for /JSOC/base/jsoc_version.h between version 1.6 and 1.74

version 1.6, 2008/03/05 18:09:49 version 1.74, 2013/10/03 14:11:56
Line 13 
Line 13 
  
 #define JSOC_VERSION_INCL 1 #define JSOC_VERSION_INCL 1
  
 #define jsoc_version "V4R1X"  #define jsoc_version "V8R1"
 #define jsoc_vers_num (-401)  #define jsoc_vers_num (801)
   
   
   static inline const char *jsoc_getversion(char *verstr, int size, int *isdev)
   {
       char *vers = strdup(jsoc_version);
       char *pc = NULL;
       int len = strlen(jsoc_version);
   
       if (vers)
       {
           if (isdev)
           {
               *isdev = 0;
           }
   
           if ((pc = strchr(vers, 'R')) != NULL)
           {
               *pc = '\0';
           }
   
           if (jsoc_version[len - 1] == 'X')
           {
               if (isdev)
               {
                   *isdev = 1;
               }
   
               vers[len - 1] = '\0';
           }
   
           snprintf(verstr, size, "%s.%s", vers + 1, pc + 1);
   
           free(vers);
       }
       else
       {
           fprintf(stderr, "Out of memory.\n");
       }
   
       return jsoc_version;
   }
  
 #endif #endif
  


Legend:
Removed from v.1.6  
changed lines
  Added in v.1.74

Karen Tian
Powered by
ViewCVS 0.9.4