Changeset 28484 for branches/pap/ppSub/src/ppSubDefineOutput.c
- Timestamp:
- Jun 24, 2010, 2:59:09 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppSub/src/ppSubDefineOutput.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ppSub/src/ppSubDefineOutput.c
r26982 r28484 16 16 17 17 #include <stdio.h> 18 #include <libgen.h> 18 19 #include <pslib.h> 19 20 #include <psmodules.h> … … 71 72 pmFPAfile *refFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.REF"); // Reference file 72 73 pmFPAfile *inFile = psMetadataLookupPtr(NULL, config->files, "PPSUB.INPUT"); // Input file 74 75 // We should be using the GNU version of basename() which doesn't modify its argument, but just in case, 76 // we'll copy the string. 77 psString refName = psStringCopy(refFile->filename); // Filename of reference 78 const char *refBase = basename(refName); // Basename of reference 73 79 psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.REFERENCE", 0, 74 "Subtraction reference", refFile->filename); 80 "Subtraction reference", refBase); 81 psFree(refName); 82 psString inName = psStringCopy(inFile->filename); // Filename of input 83 const char *inBase = basename(inName); // Basename of input 75 84 psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.INPUT", 0, 76 "Subtraction input", inFile->filename); 85 "Subtraction input", inBase); 86 psFree(inName); 87 77 88 ppSubVersionHeader(outHDU->header); 78 79 89 80 90 outRO->analysis = psMetadataCopy(outRO->analysis, analysis);
Note:
See TracChangeset
for help on using the changeset viewer.
