IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 14, 2004, 10:01:52 AM (22 years ago)
Author:
desonia
Message:

Updated files in src/collections to use new psError functionality. Also
cleaned up the code where needed, removing unnecessary error conditions,
etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psError.c

    r1696 r1807  
    1010 *  @author Eric Van Alst, MHPCC
    1111 *   
    12  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-09-07 19:05:07 $
     12 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-09-14 20:01:52 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    9696    va_list argPtr;             // variable list arguement pointer
    9797
    98     // Get the variable list parameters to pass to logging function
    99     va_start(argPtr, fmt);
    100 
    101     // Call logging function with PS_LOG_ERROR level
    102     psLogMsgV(name, PS_LOG_ERROR, fmt, argPtr);
    103 
    10498    if (new) {
    10599        psErrorClear();
    106100    }
    107101
     102    // Get the variable list parameters to pass to logging function
     103    va_start(argPtr, fmt);
     104
    108105    vsnprintf(errMsg,1024,fmt,argPtr);
    109106    err = psErrAlloc(name,code,errMsg);
    110107    pushErrorStack(err);
     108
     109    // Call logging function with PS_LOG_ERROR level
     110    psLogMsg(name, PS_LOG_ERROR, errMsg);
    111111
    112112    // Clean up stack after variable argument has been used
     
    116116}
    117117
    118 const psErr* psErrorGet(int which)
     118psErr* psErrorGet(int which)
    119119{
    120120    psErr* result;
     
    134134}
    135135
    136 const psErr* psErrorLast(void)
     136psErr* psErrorLast(void)
    137137{
    138138    return psErrorGet(0);
Note: See TracChangeset for help on using the changeset viewer.