Changeset 10292 for trunk/psphot/src/psphotVersion.c
- Timestamp:
- Nov 29, 2006, 1:12:04 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotVersion.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotVersion.c
r9270 r10292 1 # include "psphot.h" 1 #ifdef HAVE_CONFIG_H 2 #include <config.h> 3 #endif 2 4 5 #include <stdio.h> 6 #include <pslib.h> 7 #include <psmodules.h> 8 #include "psphot.h" 9 10 static const char *cvsTag = "$Name: not supported by cvs2svn $";// CVS tag name 11 12 psString psphotVersion(void) 13 { 14 psString version = NULL; // Version, to return 15 psStringAppend(&version, "%s-%s",PACKAGE_NAME,PACKAGE_VERSION); 16 return version; 17 } 18 19 psString psphotVersionLong(void) 20 { 21 psString version = psphotVersion(); // Version, to return 22 psString tag = psStringStripCVS(cvsTag, "Name"); // CVS tag 23 psStringAppend(&version, " (cvs tag %s) %s, %s", tag, __DATE__, __TIME__); 24 psFree(tag); 25 return version; 26 } 27 28 // Defined by RHL; leaving for backwards compatibility. 3 29 const char *psphotCVSName(void) { 4 static char *name = "$Name: not supported by cvs2svn $"; 5 return(name); 30 return cvsTag; 6 31 }
Note:
See TracChangeset
for help on using the changeset viewer.
