IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 9, 2009, 10:16:54 PM (17 years ago)
Author:
Paul Price
Message:

Making version information not dependent upon running configure, but on make.

Location:
trunk/psLib/src/sys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys

    • Property svn:ignore
      •  

        old new  
        1111*.bbg
        1212*.da
         13psVersionDefinitions.h
  • trunk/psLib/src/sys/psConfigure.c

    r23229 r23793  
    4444#include "psMemory.h"
    4545
     46#include "psVersionDefinitions.h"
     47
    4648static char *memCheckName = NULL;       // Filename to which to write results of mem check
    4749static FILE *memCheckFile = NULL;       // File to which to write results of mem check
     
    5759#endif
    5860
    59 #define xstr(s) str(s)
    60 #define str(s) #s
    61 
    6261psString psLibVersion(void)
    6362{
    6463    char *value = NULL;
    65     psStringAppend(&value, "%s@%s", xstr(PSLIB_BRANCH), xstr(PSLIB_VERSION));
     64    psStringAppend(&value, "%s@%s", PSLIB_BRANCH, PSLIB_VERSION);
    6665    return value;
    6766}
     
    6968psString psLibSource(void)
    7069{
    71     return psStringCopy(xstr(PSLIB_SOURCE));
     70    return psStringCopy(PSLIB_SOURCE);
    7271}
    7372
Note: See TracChangeset for help on using the changeset viewer.