Changeset 23229 for trunk/ppArith/src/ppArithVersion.c
- Timestamp:
- Mar 8, 2009, 4:50:46 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppArith/src/ppArithVersion.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/eam_branches/eam_branch_20090303 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ppArith/src/ppArithVersion.c
r23195 r23229 22 22 #include "ppArith.h" 23 23 24 psString ppArithVersion(void)25 {26 24 #ifndef PPARITH_VERSION 27 25 #error "PPARITH_VERSION is not set" … … 30 28 #error "PPARITH_BRANCH is not set" 31 29 #endif 32 return psStringCopy(PPARITH_BRANCH "@" PPARITH_VERSION); 30 #ifndef PPARITH_SOURCE 31 #error "PPARITH_SOURCE is not set" 32 #endif 33 34 #define xstr(s) str(s) 35 #define str(s) #s 36 37 psString ppArithVersion(void) 38 { 39 char *value = NULL; 40 psStringAppend(&value, "%s@%s", xstr(PPARITH_BRANCH), xstr(PPARITH_VERSION)); 41 return value; 33 42 } 34 43 35 44 psString ppArithSource(void) 36 45 { 37 #ifndef PPARITH_SOURCE 38 #error "PPARITH_SOURCE is not set" 39 #endif 40 return psStringCopy(PPARITH_SOURCE); 46 return psStringCopy(xstr(PPARITH_SOURCE)); 41 47 } 42 48
Note:
See TracChangeset
for help on using the changeset viewer.
