IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 11, 2006, 5:16:51 PM (20 years ago)
Author:
jhoblitt
Message:

change lockErrorStack mutex to be static
add errorStackKeyInitialized global
add errorStack_key global
remove errorStack global
remove errorStackSize global
add prototypes at the top of the file for all static functions
add psErrorStackAlloc()
add psErrorStackFree()
add psFreeWrapper()
add psErrorStackGet() - accesses/initialized the error stack in thread local data and change all psErr* functions to access the error stack via this function
remove all mutex spins except from psErrorStackGet()
change psErrorStackPush() to call psAbort() when the stack is full
rename pushErrorStack() -> psErrorStackPush()
change errFree() to use psStringCopy instead of strcpy() & psAlloc()
rename errFree() -> psErrFree()
change p_psWarning() to use MAX_STRING_LENGTH instead of inline size values
change psErrorGet()'s which param from psS32 -> int for consistency
change psErrorGetStackSize() to return int instead of unsigned int for consitency
rename the rather silly use of 'lcv' as a loop index variable to be just 'i'

File:
1 edited

Legend:

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

    r8627 r8792  
    1212 *  @author Eric Van Alst, MHPCC
    1313 *
    14  *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-08-26 04:34:28 $
     14 *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-09-12 03:16:51 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5353 */
    5454psErr* psErrorGet(
    55     psS32 which                          ///< position in the error stack. 0 is last error on stack.
     55    int which                          ///< position in the error stack. 0 is last error on stack.
    5656);
    5757
     
    8080/** Get the error stack depth
    8181 *
    82  *  @return psS32  The number of items on the error stack
    83  */
    84 unsigned int psErrorGetStackSize();
     82 *  @return int The number of items on the error stack
     83 */
     84int psErrorGetStackSize();
    8585
    8686/** Prints error stack to specified open file descriptor
Note: See TracChangeset for help on using the changeset viewer.