IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18063


Ignore:
Timestamp:
Jun 10, 2008, 10:58:28 AM (18 years ago)
Author:
jhoblitt
Message:

update pmConfigConvertFilename() API

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubLoop.c

    r17784 r18063  
    2424    FILE *statsFile = NULL;             // File stream for statistics
    2525    if (statsName && strlen(statsName) > 0) {
    26         psString resolved = pmConfigConvertFilename(statsName, config, true); // Resolved filename
     26        psString resolved = pmConfigConvertFilename(statsName, config, true, false); // Resolved filename
    2727        statsFile = fopen(resolved, "w");
    2828        if (!statsFile) {
  • trunk/psModules/src/camera/pmFPA_MANAPLOT.c

    r12696 r18063  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2007-03-30 21:12:56 $
     7 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2008-06-10 20:58:28 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    142142    psString tmpName;
    143143    tmpName = pmFPAfileNameFromRule (file->filextra, file, view);
    144     psString input = pmConfigConvertFilename (tmpName, config, create);
     144    psString input = pmConfigConvertFilename (tmpName, config, create, false);
    145145    psFree (tmpName);
    146146
    147147    tmpName = pmFPAfileNameFromRule (file->filerule, file, view);
    148     psString output = pmConfigConvertFilename (tmpName, config, create);
     148    psString output = pmConfigConvertFilename (tmpName, config, create, false);
    149149    psFree (tmpName);
    150150
    151151    tmpName = pmFPAfileNameFromRule (file->extname, file, view);
    152     psString script = pmConfigConvertFilename (tmpName, config, create);
     152    psString script = pmConfigConvertFilename (tmpName, config, create, false);
    153153    psFree (tmpName);
    154154
  • trunk/psModules/test/config/tap_pmConfig.c

    r15986 r18063  
    2020 * XXXX: Must determine what to do with NULL arguments, then test it.
    2121 *
    22  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    23  *  @date $Date: 2008-01-02 20:49:09 $
     22 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     23 *  @date $Date: 2008-06-10 20:58:28 $
    2424 *
    2525 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    998998        pmConfig *config = pmConfigAlloc();
    999999        bool create = false;
    1000         bool rc = pmConfigConvertFilename(NULL, (const pmConfig *) config, create);
     1000        bool rc = pmConfigConvertFilename(NULL, (const pmConfig *) config, create, false);
    10011001        ok(rc == false, "pmConfigConvertFilename() returned FALSE with NULL filename pointer");
    10021002        psErr *tmpErr = psErrorLast();
     
    10161016        pmConfig *config = pmConfigAlloc();
    10171017        bool create = false;
    1018         bool rc = pmConfigConvertFilename(name, NULL, create);
     1018        bool rc = pmConfigConvertFilename(name, NULL, create, false);
    10191019        ok(rc == false, "pmConfigConvertFilename() returned FALSE with NULL config pointer");
    10201020        psErr *tmpErr = psErrorLast();
     
    10511051        ok(rc == true, "pmConfigFileRead() was successful");
    10521052        bool create = false;
    1053         psString tmpStr = pmConfigConvertFilename(filename, (const pmConfig *) config, create);
     1053        psString tmpStr = pmConfigConvertFilename(filename, (const pmConfig *) config, create, false);
    10541054        ok(NULL == tmpStr, "pmConfigConvertFilename() returned NULL with create==FALSE");
    10551055        create = true;
    1056         tmpStr = pmConfigConvertFilename(filename, (const pmConfig *) config, create);
     1056        tmpStr = pmConfigConvertFilename(filename, (const pmConfig *) config, create, false);
    10571057        ok(tmpStr != NULL, "pmConfigConvertFilename() returned non-NULL with create==TRUE");
    10581058        ok(!strcmp(tmpStr, "/JUNK"), "pmConfigConvertFilename() returned correct filename (%s)", tmpStr);
Note: See TracChangeset for help on using the changeset viewer.