Changeset 23272
- Timestamp:
- Mar 11, 2009, 11:46:17 AM (17 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 4 edited
-
camera/pmFPAfile.c (modified) (2 diffs)
-
camera/pmFPAfile.h (modified) (1 diff)
-
camera/pmFPAfileIO.c (modified) (1 diff)
-
config/pmConfigRun.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAfile.c
r22699 r23272 50 50 51 51 psFree (file->filename); 52 psFree (file->origname); 52 53 psFree (file->extname); 53 54 … … 88 89 89 90 file->filename = NULL; 91 file->origname = NULL; 90 92 file->extname = NULL; 91 93 -
trunk/psModules/src/camera/pmFPAfile.h
r21363 r23272 91 91 char *name; // the name of the rule (useful for debugging / tracing) 92 92 char *filename; // the current name of an active file 93 char *origname; // the original name (before mangling) of an active file 93 94 char *extname; // the current name of an active file extension 94 95 -
trunk/psModules/src/camera/pmFPAfileIO.c
r23244 r23272 740 740 // apply filename mangling rules (file://, path://, neb://) 741 741 bool create = file->mode == PM_FPA_MODE_WRITE ? true : false; 742 psString tmpName = pmConfigConvertFilename(file->filename, config, create, false);743 if (! tmpName) {742 psString realName = pmConfigConvertFilename(file->filename, config, create, false); 743 if (!realName) { 744 744 psError(PS_ERR_IO, false, "failed to determine real name from template for %s\n", file->filename); 745 745 return false; 746 746 } 747 psFree (file->filename); 748 file->filename = tmpName; 747 psFree(file->origname); 748 file->origname = file->filename; 749 file->filename = realName; 749 750 750 751 switch (file->type) { -
trunk/psModules/src/config/pmConfigRun.c
r23268 r23272 51 51 52 52 const char *name = file->name; // Name of symbolic file 53 const char *value = file-> filename; // Value of symbolic file: the filename53 const char *value = file->origname ? file->origname : file->filename; // The file (system) name 54 54 55 55 psString regex = NULL; // Regular expression for iteration
Note:
See TracChangeset
for help on using the changeset viewer.
