- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/psModules
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/psModules merged eligible /branches/eam_branches/stackphot.20100406/psModules 27623-27653 /branches/pap_delete/psModules 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/psModules/src/camera/pmFPAfile.c
r23746 r27840 22 22 static int fileNum = 0; // Number of file 23 23 24 static bool fpaFileFreeStrict = true; // Strict checking when file has been freed? 25 26 bool pmFPAfileFreeSetStrict(bool new) 27 { 28 bool old = fpaFileFreeStrict; // Old value, to return 29 fpaFileFreeStrict = new; 30 return old; 31 } 32 24 33 static void pmFPAfileFree(pmFPAfile *file) 25 34 { … … 27 36 return; 28 37 } 38 39 psAssert(!fpaFileFreeStrict || file->fits == NULL, "File %s wasn't closed.", file->name); 29 40 30 41 psTrace ("pmFPAfileFree", 5, "freeing %s\n", file->name); … … 40 51 psFree (file->name); 41 52 42 if (file->fits != NULL) {43 psFitsClose (file->fits);44 }45 53 psFree(file->compression); 46 54 psFree(file->options); … … 103 111 file->save = false; 104 112 105 file->index = fileNum++; 113 file->fileIndex = fileNum++; 114 file->fileID = 0; 106 115 107 116 file->imageId = 0; … … 364 373 // Number of the file in list 365 374 psString num = NULL; // Number to use 366 psStringAppend(&num, "%d", file-> index);375 psStringAppend(&num, "%d", file->fileIndex); 367 376 psStringSubstitute(&newRule, num, "{FILE.INDEX}"); 377 psFree(num); 378 } 379 380 if (strstr(newRule, "{FILE.ID}")) { 381 // Number of the file in list 382 psString num = NULL; // Number to use 383 psStringAppend(&num, "%03d", file->fileID); 384 psStringSubstitute(&newRule, num, "{FILE.ID}"); 368 385 psFree(num); 369 386 } … … 519 536 if (!strcasecmp(type, "SUBKERNEL")) { 520 537 return PM_FPA_FILE_SUBKERNEL; 538 } 539 if (!strcasecmp(type, "PATTERN")) { 540 return PM_FPA_FILE_PATTERN; 521 541 } 522 542 … … 563 583 case PM_FPA_FILE_SUBKERNEL: 564 584 return ("SUBKERNEL"); 585 case PM_FPA_FILE_PATTERN: 586 return "PATTERN"; 565 587 default: 566 588 return ("NONE"); … … 625 647 psFree(iter); 626 648 627 ps Error(PS_ERR_BAD_PARAMETER_VALUE, true, "Unable to find instance %d of file %s", num, name);649 psLogMsg("psModules.camera", PS_LOG_MINUTIA, "Unable to find instance %d of file %s", num, name); 628 650 return NULL; 629 651 }
Note:
See TracChangeset
for help on using the changeset viewer.
