IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7148


Ignore:
Timestamp:
May 18, 2006, 5:25:26 PM (20 years ago)
Author:
Paul Price
Message:

Making nFail optional in psMetadataConfigParse.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psMetadataConfig.c

    r7013 r7148  
    1010*  @author Eric Van Alst, MHPCC
    1111*
    12 *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-04-30 22:10:38 $
     12*  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-05-19 03:25:26 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    11901190    PS_ASSERT_PTR_NON_NULL(filename,NULL);
    11911191
    1192     // Check for NULL nFail
    1193     PS_ASSERT_PTR_NON_NULL(nFail,NULL);
     1192    // Initialise nFail, if provided
     1193    if (nFail) {
     1194        *nFail = 0;
     1195    }
    11941196
    11951197    // Attempt to open specified file
     
    12241226        lineCount++;
    12251227
    1226         if(!parseLine(&nestingLevel,parseLevelInfoArray,linePtr,lineCount,(char*)filename,overwrite)) {
     1228        if(!parseLine(&nestingLevel,parseLevelInfoArray,linePtr,lineCount,(char*)filename,overwrite) &&
     1229                nFail) {
    12271230            (*nFail)++;
    12281231        }
Note: See TracChangeset for help on using the changeset viewer.