- Timestamp:
- Mar 9, 2009, 3:41:26 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090215
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psastro/src/psastroVersion.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090215
- Property svn:mergeinfo changed
/branches/eam_branches/eam_branch_20090303 (added) merged: 23158,23175-23181,23202-23210,23220-23225 /trunk merged: 23211-23219,23226-23238
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090215/psastro/src/psastroVersion.c
r23199 r23239 10 10 #include "psastroInternal.h" 11 11 12 psString psastroVersion(void)13 {14 12 #ifndef PSASTRO_VERSION 15 13 #error "PSASTRO_VERSION is not set" … … 18 16 #error "PSASTRO_BRANCH is not set" 19 17 #endif 20 return psStringCopy(PSASTRO_BRANCH "@" PSASTRO_VERSION); 18 #ifndef PSASTRO_SOURCE 19 #error "PSASTRO_SOURCE is not set" 20 #endif 21 22 #define xstr(s) str(s) 23 #define str(s) #s 24 25 psString psastroVersion(void) 26 { 27 char *value = NULL; 28 psStringAppend(&value, "%s@%s", xstr(PSASTRO_BRANCH), xstr(PSASTRO_VERSION)); 29 return value; 21 30 } 22 31 23 32 psString psastroSource(void) 24 33 { 25 #ifndef PSASTRO_SOURCE 26 #error "PSASTRO_SOURCE is not set" 27 #endif 28 return psStringCopy(PSASTRO_SOURCE); 34 return psStringCopy(xstr(PSASTRO_SOURCE)); 29 35 } 30 36
Note:
See TracChangeset
for help on using the changeset viewer.
