Changeset 23143 for trunk/ppStack/src/ppStackVersion.c
- Timestamp:
- Mar 3, 2009, 3:55:15 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackVersion.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackVersion.c
r18419 r23143 10 10 #include "ppStack.h" 11 11 12 static const char *cvsTag = "$Name: not supported by cvs2svn $";// CVS tag name13 14 12 psString ppStackVersion(void) 15 13 { 16 psString version = NULL; // Version, to return 17 psStringAppend(&version, "%s-%s",PACKAGE_NAME,PACKAGE_VERSION); 18 return version; 14 #ifndef PPSTACK_VERSION 15 #error "PPSTACK_VERSION is not set" 16 #endif 17 #ifndef PPSTACK_BRANCH 18 #error "PPSTACK_BRANCH is not set" 19 #endif 20 return psStringCopy(PPSTACK_BRANCH "@" PPSTACK_VERSION); 21 } 22 23 psString ppStackSource(void) 24 { 25 #ifndef PPSTACK_SOURCE 26 #error "PPSTACK_SOURCE is not set" 27 #endif 28 return psStringCopy(PPSTACK_SOURCE); 19 29 } 20 30 21 31 psString ppStackVersionLong(void) 22 32 { 23 psString version = ppStackVersion(); // Version, to return 24 psString tag = psStringStripCVS(cvsTag, "Name"); // CVS tag 25 psStringAppend(&version, " (cvs tag %s) %s, %s", tag, __DATE__, __TIME__); 26 psFree(tag); 33 psString version = ppStackVersion(); // Version, to return 34 psString source = ppStackSource(); // Source 35 36 psStringPrepend(&version, "ppStack "); 37 psStringAppend(&version, " from %s, built %s, %s", source, __DATE__, __TIME__); 38 psFree(source); 39 40 #ifdef __OPTIMIZE__ 41 psStringAppend(&version, " optimised"); 42 #else 43 psStringAppend(&version, " unoptimised"); 44 #endif 45 27 46 return version; 28 } 47 }; 29 48 30 49
Note:
See TracChangeset
for help on using the changeset viewer.
