Changeset 18033 for trunk/psModules/src/camera/pmFPAfileDefine.c
- Timestamp:
- Jun 9, 2008, 1:53:19 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAfileDefine.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfileDefine.c
r17988 r18033 21 21 22 22 #include "pmConcepts.h" 23 24 # define FPA_TEST_ASSERT(A){ \ 25 assert(A->format == NULL); \ 26 assert(A->formatName == NULL); \ 27 assert(A->filerule == NULL); \ 28 assert(A->filesrc == NULL); } 23 29 24 30 // Parse an option from a metadata, returning the appropriate integer value … … 511 517 return NULL; 512 518 } 519 psFree (file->filerule); // this is set in pmFPAfileDefineInput 513 520 file->format = format; 514 521 file->formatName = formatName; 515 516 // adjust the rules to identify these files in the file->names data517 522 file->filerule = psStringCopy("@FILES"); 518 523 file->filesrc = psStringCopy("{CHIP.NAME}.{CELL.NAME}"); 524 // we use the above rules to identify these files in the file->names data 519 525 520 526 file->fileLevel = pmFPAPHULevel(format); … … 655 661 656 662 // define the rule to identify these files in the file->names data 663 FPA_TEST_ASSERT (file); 657 664 psFree (file->filerule); 658 665 psFree (file->filesrc); … … 825 832 return NULL; 826 833 } 834 FPA_TEST_ASSERT (file); 827 835 file->format = format; 828 836 file->formatName = formatName; 829 830 // adjust the rules to identify these files in the file->names data831 837 file->filerule = psStringCopy ("@FILES"); 832 838 file->filesrc = psStringCopy ("{CHIP.NAME}.{CELL.NAME}"); 839 // adjust the above rules to identify these files in the file->names data 833 840 834 841 file->fileLevel = pmFPAPHULevel(format);
Note:
See TracChangeset
for help on using the changeset viewer.
