- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppSub
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppSub/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppSubKernel 12 ppSubErrorCodes.h 13 ppSubErrorCodes.c 14 ppSubVersionDefinitions.h
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/ppSub/src/ppSub.c
r23352 r24244 28 28 psLibInit(NULL); 29 29 30 ppSubData *data = NULL; // Processing data 30 31 pmConfig *config = pmConfigRead(&argc, argv, PPSUB_RECIPE); // Configuration 31 32 if (!config) { … … 40 41 psErrorStackPrint(stderr, "Error initialising model classes.\n"); 41 42 exitValue = PS_EXIT_PROG_ERROR; 43 psFree(config); 42 44 goto die; 43 45 } … … 46 48 psErrorStackPrint(stderr, "Error initialising psphot.\n"); 47 49 exitValue = PS_EXIT_PROG_ERROR; 50 psFree(config); 48 51 goto die; 49 52 } 50 53 51 if (!ppSubArgumentsSetup(argc, argv, config)) { 54 data = ppSubDataAlloc(config); 55 56 if (!ppSubArguments(argc, argv, data)) { 52 57 psErrorStackPrint(stderr, "Error reading arguments.\n"); 53 58 exitValue = PS_EXIT_CONFIG_ERROR; … … 55 60 } 56 61 57 if (!ppSubCamera( config)) {62 if (!ppSubCamera(data)) { 58 63 psErrorStackPrint(stderr, "Error setting up camera.\n"); 59 64 exitValue = PS_EXIT_CONFIG_ERROR; … … 61 66 } 62 67 63 if (!ppSubArgumentsParse(config)) { 64 psErrorStackPrint(stderr, "Error reading arguments.\n"); 65 exitValue = PS_EXIT_CONFIG_ERROR; 66 goto die; 67 } 68 69 if (!ppSubLoop(config)) { 68 if (!ppSubLoop(data)) { 70 69 psErrorStackPrint(stderr, "Error performing subtraction.\n"); 71 70 exitValue = PS_EXIT_SYS_ERROR; … … 77 76 psTimerStop(); 78 77 78 psFree(data); 79 79 80 pmVisualClose(); //close plot windows, if -visual is set 80 psFree(config);81 81 pmModelClassCleanup(); 82 82 pmConfigDone();
Note:
See TracChangeset
for help on using the changeset viewer.
