version 1.17, 2008/09/03 16:21:48
|
version 1.30, 2009/10/09 18:52:03
|
|
|
| |
#define JSOC_VERSION_INCL 1 | #define JSOC_VERSION_INCL 1 |
| |
#define jsoc_version "V4R6" |
#define jsoc_version "V5R5" |
#define jsoc_vers_num (406) |
#define jsoc_vers_num (505) |
|
|
|
|
|
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 (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); |
|
|
|
return jsoc_version; |
|
} |
| |
#endif | #endif |
| |