- Timestamp:
- Mar 29, 2009, 6:15:31 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
-
branches/cnb_branches/cnb_branch_20090301/psModules
- Property svn:mergeinfo changed
/trunk/psModules merged: 23354,23358,23370,23374,23378,23404-23405,23428,23432,23447,23450-23452,23476,23487,23498,23535,23574,23576-23577,23587
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psModules/src/camera/pmFPAfile.c
r23351 r23594 20 20 #include "pmConceptsCopy.h" 21 21 22 static int fileNum = 0; // Number of file 23 22 24 static void pmFPAfileFree(pmFPAfile *file) 23 25 { … … 56 58 } 57 59 58 pmFPAfile *pmFPAfileAlloc( )60 pmFPAfile *pmFPAfileAlloc(void) 59 61 { 60 62 pmFPAfile *file = psAlloc(sizeof(pmFPAfile)); … … 100 102 101 103 file->save = false; 104 105 file->index = fileNum++; 102 106 103 107 file->imageId = 0; … … 350 354 psStringSubstitute(&newRule, name, "{OUTPUT}"); 351 355 } 356 } 357 358 if (strstr(newRule, "{FILE.INDEX}")) { 359 // Number of the file in list 360 psString num = NULL; // Number to use 361 psStringAppend(&num, "%d", file->index); 362 psStringSubstitute(&newRule, num, "{FILE.INDEX}"); 363 psFree(num); 352 364 } 353 365
Note:
See TracChangeset
for help on using the changeset viewer.
