Changeset 23806 for trunk/pswarp/src/pswarpVersion.c
- Timestamp:
- Apr 9, 2009, 10:57:59 PM (17 years ago)
- Location:
- trunk/pswarp/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pswarpVersion.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/src
- Property svn:ignore
-
old new 13 13 config.h.in 14 14 stamp-h1 15 pswarpVersionDefinitions.h
-
- Property svn:ignore
-
trunk/pswarp/src/pswarpVersion.c
r23595 r23806 20 20 #include <ppStats.h> 21 21 22 psString pswarpVersion(void) 23 { 22 #include "pswarp.h" 23 #include "pswarpVersionDefinitions.h" 24 24 25 #ifndef PSWARP_VERSION 25 26 #error "PSWARP_VERSION is not set" … … 28 29 #error "PSWARP_BRANCH is not set" 29 30 #endif 30 return psStringCopy(PSWARP_BRANCH "@" PSWARP_VERSION); 31 #ifndef PSWARP_SOURCE 32 #error "PSWARP_SOURCE is not set" 33 #endif 34 35 psString pswarpVersion(void) 36 { 37 char *value = NULL; 38 psStringAppend(&value, "%s@%s", PSWARP_BRANCH, PSWARP_VERSION); 39 return value; 31 40 } 32 41 33 42 psString pswarpSource(void) 34 43 { 35 #ifndef PSWARP_SOURCE36 #error "PSWARP_SOURCE is not set"37 #endif38 44 return psStringCopy(PSWARP_SOURCE); 39 45 }
Note:
See TracChangeset
for help on using the changeset viewer.
