version 1.41, 2010/08/29 21:52:04
|
version 1.77, 2013/10/03 14:28:23
|
|
|
| |
#define JSOC_VERSION_INCL 1 | #define JSOC_VERSION_INCL 1 |
| |
#define jsoc_version "V5R10X" |
#define jsoc_version "V8R1X" |
#define jsoc_vers_num (-510) |
#define jsoc_vers_num (-801) |
| |
| |
static inline const char *jsoc_getversion(char *verstr, int size, int *isdev) | static inline const char *jsoc_getversion(char *verstr, int size, int *isdev) |
Line 23 static inline const char *jsoc_getversio |
|
Line 23 static inline const char *jsoc_getversio |
|
char *pc = NULL; | char *pc = NULL; |
int len = strlen(jsoc_version); | int len = strlen(jsoc_version); |
| |
|
if (vers) |
|
{ |
if (isdev) | if (isdev) |
{ | { |
*isdev = 0; | *isdev = 0; |
Line 45 static inline const char *jsoc_getversio |
|
Line 47 static inline const char *jsoc_getversio |
|
| |
snprintf(verstr, size, "%s.%s", vers + 1, pc + 1); | snprintf(verstr, size, "%s.%s", vers + 1, pc + 1); |
| |
|
free(vers); |
|
} |
|
else |
|
{ |
|
fprintf(stderr, "Out of memory.\n"); |
|
} |
|
|
return jsoc_version; | return jsoc_version; |
} | } |
| |