Changeset 24244 for branches/cnb_branches/cnb_branch_20090301/ppStats/src
- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 8 edited
- 1 copied
-
. (modified) (1 prop)
-
ppStats/src (modified) (1 prop)
-
ppStats/src/Makefile.am (modified) (1 diff)
-
ppStats/src/ppStatsErrorCodes.dat (modified) (1 diff)
-
ppStats/src/ppStatsErrorCodes.h.in (modified) (1 diff)
-
ppStats/src/ppStatsFromMetadataStats.c (modified) (1 diff)
-
ppStats/src/ppStatsReadout.c (modified) (1 diff)
-
ppStats/src/ppStatsVersion.c (modified) (3 diffs)
-
ppStats/src/ppStatsVersionDefinitions.h.in (copied) (copied from trunk/ppStats/src/ppStatsVersionDefinitions.h.in )
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppStats/src
- Property svn:ignore
-
old new 10 10 config.h.in 11 11 stamp-h1 12 ppStatsVersionDefinitions.h
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/ppStats/src/Makefile.am
r23352 r24244 1 1 lib_LTLIBRARIES = libppStats.la 2 2 3 # PPSTATS_VERSION=`if [ -e ../../VERSION ]; then cat ../../VERSION; else svnversion; fi` 4 # PPSTATS_BRANCH=`if [ -e ../../BRANCH ]; then cat ../../BRANCH; else svn info | sed -n -e '/URL:/ h' -e '/Repository Root:/ { x; H; x; s|Repository Root: \(.*\)\nURL: \1\(.*\)|\2| ; s|^/|| ; s|/[a-zA-Z]*/src.*|| ; p }'; fi` 5 # PPSTATS_SOURCE=`if [ -e ../../SOURCE ]; then cat ../../SOURCE; else svn info | sed -n -e 's/Repository UUID: // p'; fi` 6 # 7 # # Force recompilation of ppStatsVersion.c, since it gets the version information 8 # ppStatsVersion.c: FORCE 9 # touch ppStatsVersion.c 10 # FORCE: ; 3 if HAVE_SVNVERSION 4 PPSTATS_VERSION=`$(SVNVERSION) ..` 5 else 6 PPSTATS_VERSION="UNKNOWN" 7 endif 11 8 12 libppStats_la_CFLAGS = $(PPSTATS_CFLAGS) $(PSMODULE_CFLAGS) $(PSLIB_CFLAGS) -DPPSTATS_VERSION=$(SVN_VERSION) -DPPSTATS_BRANCH=$(SVN_BRANCH) -DPPSTATS_SOURCE=$(SVN_SOURCE) 9 if HAVE_SVN 10 PPSTATS_BRANCH=`$(SVN) info .. | $(SED) -n -e '/URL:/ h' -e '/Repository Root:/ { x; H; x; s|Repository Root: \(.*\)\nURL: \1\(.*\)|\2| ; s|^/|| ; s|/[a-zA-Z]*/src.*|| ; p }'` 11 PPSTATS_SOURCE=`$(SVN) info | $(SED) -n -e 's/Repository UUID: // p'` 12 else 13 PPSTATS_BRANCH="UNKNOWN" 14 PPSTATS_SOURCE="UNKNOWN" 15 endif 16 17 # Force recompilation of ppStatsVersion.c, since it gets the version information 18 ppStatsVersion.c: ppStatsVersionDefinitions.h 19 ppStatsVersionDefinitions.h: ppStatsVersionDefinitions.h.in FORCE 20 -$(RM) ppStatsVersionDefinitions.h 21 $(SED) -e "s|@PPSTATS_VERSION@|\"$(PPSTATS_VERSION)\"|" -e "s|@PPSTATS_BRANCH@|\"$(PPSTATS_BRANCH)\"|" -e "s|@PPSTATS_SOURCE@|\"$(PPSTATS_SOURCE)\"|" ppStatsVersionDefinitions.h.in > ppStatsVersionDefinitions.h 22 FORCE: ; 23 24 libppStats_la_CFLAGS = $(PPSTATS_CFLAGS) $(PSMODULE_CFLAGS) $(PSLIB_CFLAGS) 13 25 libppStats_la_LDFLAGS = $(PPSTATS_LIBS) $(PSMODULE_LIBS) $(PSLIB_LIBS) 14 26 -
branches/cnb_branches/cnb_branch_20090301/ppStats/src/ppStatsErrorCodes.dat
r11259 r24244 2 2 # This file is used to generate ppStatsErrorClasses.h 3 3 # 4 BASE = 400 First value we use; lower values belong to psLib4 BASE = 2000 First value we use; lower values belong to psLib 5 5 # these errors correspond to standard exit conditions 6 6 ARGUMENTS Incorrect arguments -
branches/cnb_branches/cnb_branch_20090301/ppStats/src/ppStatsErrorCodes.h.in
r11259 r24244 9 9 */ 10 10 typedef enum { 11 PPSTATS_ERR_BASE = 512,11 PPSTATS_ERR_BASE = 2000, 12 12 PPSTATS_ERR_${ErrorCode}, 13 13 PPSTATS_ERR_NERROR -
branches/cnb_branches/cnb_branch_20090301/ppStats/src/ppStatsFromMetadataStats.c
r20888 r24244 38 38 39 39 psStats *stats = psStatsAlloc(option); 40 psVectorStats(stats, entry->vector, NULL, NULL, 0); 40 if (!psVectorStats(stats, entry->vector, NULL, NULL, 0)) { 41 psError(PS_ERR_UNKNOWN, false, "failure to measure stats for %s", entry->statistic); 42 continue; 43 } 41 44 42 45 double value; -
branches/cnb_branches/cnb_branch_20090301/ppStats/src/ppStatsReadout.c
r21183 r24244 92 92 } 93 93 if (!psVectorStats(data->stats, sampleValues, NULL, sampleMask, 1)) { 94 psWarning("Unable to perform statistics on readout %s.\n", readoutName);95 psErrorClear(); 96 } 94 psError(PS_ERR_UNKNOWN, false, "failure to measure stats for readout %s", readoutName); 95 } 96 // XXX raise if we get a NAN? psWarning("Unable to perform statistics on readout %s.\n", readoutName); 97 97 psFree(sampleValues); 98 98 psFree(sampleMask); -
branches/cnb_branches/cnb_branch_20090301/ppStats/src/ppStatsVersion.c
r23352 r24244 1 1 #include "ppStatsInternal.h" 2 #include "ppStatsVersionDefinitions.h" 2 3 3 4 #ifndef PPSTATS_VERSION … … 11 12 #endif 12 13 13 #define xstr(s) str(s)14 #define str(s) #s15 16 14 psString ppStatsVersion(void) 17 15 { 18 16 char *value = NULL; 19 psStringAppend(&value, "%s@%s", xstr(PPSTATS_BRANCH), xstr(PPSTATS_VERSION));17 psStringAppend(&value, "%s@%s", PPSTATS_BRANCH, PPSTATS_VERSION); 20 18 return value; 21 19 } … … 23 21 psString ppStatsSource(void) 24 22 { 25 return psStringCopy( xstr(PPSTATS_SOURCE));23 return psStringCopy(PPSTATS_SOURCE); 26 24 } 27 25
Note:
See TracChangeset
for help on using the changeset viewer.
