IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7300 for trunk/psLib/src/types


Ignore:
Timestamp:
Jun 2, 2006, 11:33:34 AM (20 years ago)
Author:
Paul Price
Message:

Applying patches from RHL.

  • Correctly detect cfitsio 3 (ffdkopn)
  • Add PS_ERR_FITS_BAD
  • Free memory leaks caused by extra columns with FITS tables
  • Report error for singular matrices in LMM
  • Add psErrorCodeLast
  • Write psAbort errors, even if logging is off; flush the file descriptor
  • Useful macro: PS_FILE_LINE
  • Print a newline if the last character of a trace lacks one
  • When moving arguments down, set the vacated slot to NULL (so that original is valid)
  • If nFail is omitted, push an error if appropriate
Location:
trunk/psLib/src/types
Files:
2 edited

Legend:

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

    r7201 r7300  
    77 *  @author David Robbins, MHPCC
    88 *
    9  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-05-25 03:51:33 $
     9 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-06-02 21:33:34 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9696            argv[i] = argv[i+1];
    9797        }
     98        argv[*argc] = NULL;
    9899    } else {
    99100        return false;
  • trunk/psLib/src/types/psMetadataConfig.c

    r7245 r7300  
    1010*  @author Eric Van Alst, MHPCC
    1111*
    12 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-05-30 22:18:39 $
     12*  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-06-02 21:33:34 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    11101110
    11111111    // While loop to parse the file
     1112    psErrorClear();   // so we can call psError(..., false, ...)
    11121113    while(fgets(line, MAX_STRING_LENGTH, fp) != NULL) {
    11131114
     
    11161117        lineCount++;
    11171118
    1118         if(!parseLine(&nestingLevel,parseLevelInfoArray,linePtr,lineCount,(char*)filename,overwrite) &&
    1119                 nFail) {
    1120             (*nFail)++;
     1119        if(!parseLine(&nestingLevel,parseLevelInfoArray,linePtr,lineCount,(char*)filename,overwrite)) {
     1120            if (nFail != NULL) {
     1121                (*nFail)++;
     1122            } else {
     1123                psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Error parsing line: %s", linePtr);
     1124            }
    11211125        }
    11221126    }
Note: See TracChangeset for help on using the changeset viewer.