Changeset 8337 for trunk/ppStats/src/ppStats.c
- Timestamp:
- Aug 14, 2006, 4:55:08 PM (20 years ago)
- Location:
- trunk/ppStats
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStats
- Property svn:ignore
-
old new 10 10 install-sh 11 11 missing 12 config.guess 13 config.sub 14 libtool 15 ltmain.sh 16 ppStats.pc
-
- Property svn:ignore
-
trunk/ppStats/src
- Property svn:ignore
-
old new 2 2 Makefile 3 3 Makefile.in 4 .libs 5 *.lo 6 *.la 4 7 ppStats
-
- Property svn:ignore
-
trunk/ppStats/src/ppStats.c
r7902 r8337 5 5 #include "ppStats.h" 6 6 7 int main(int argc, char *argv[]) 7 psMetadata *ppStats(psMetadata *out, // Output metadata 8 pmFPA *fpa, // FPA for which to get statistics 9 pmConfig *config // Configuration 10 ) 8 11 { 12 // Get the options, open the files 13 ppStatsData *data = ppStatsSetupFromRecipe(NULL, config); 9 14 10 psLibInit(NULL); 11 psTimerStart(TIMERNAME); 12 13 // Parse the configuration and arguments 14 pmConfig *config = pmConfigRead(&argc, argv); 15 16 // Get the options, open the files 17 ppStatsData *data = ppStatsSetup(config); 15 if (data->fpa) { 16 psFree(data->fpa); 17 } 18 data->fpa = psMemIncrRefCounter(fpa); 18 19 19 20 // Go through the FPA and do the hard work 20 ppStatsLoop(data, config);21 out = ppStatsLoop(out, data, config); 21 22 22 23 psFree(data); 23 psFree(config);24 pmConceptsDone();25 pmConfigDone();26 psLibFinalize();27 24 28 return EXIT_SUCCESS;25 return out; 29 26 }
Note:
See TracChangeset
for help on using the changeset viewer.
