Index: trunk/psLib/src/sysUtils/psError.h
===================================================================
--- trunk/psLib/src/sysUtils/psError.h	(revision 2273)
+++ trunk/psLib/src/sysUtils/psError.h	(revision 2972)
@@ -12,6 +12,6 @@
  *  @author Eric Van Alst, MHPCC
  *
- *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-11-04 01:05:00 $
+ *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-01-13 19:50:45 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -42,8 +42,8 @@
 /** Get a error from the error stack
  *
- *  Previous errors on the stack are returned by psErrorGet (a value of 0 
+ *  Previous errors on the stack are returned by psErrorGet (a value of 0
  *  passed to psErrorGet is equivalent to a call to psErrorLast).
  *
- *  if no error is at the which position, a non-NULL psErr is returned with 
+ *  if no error is at the which position, a non-NULL psErr is returned with
  *  code PS_ERR_NONE.
  *
@@ -56,5 +56,5 @@
 /** Get last error put on the error stack
  *
- *  The last error reported is available from psErrorLast; if no errors are 
+ *  The last error reported is available from psErrorLast; if no errors are
  *  current, a non-NULL psErr is returned with code PS_ERR_NONE.
  *
@@ -70,9 +70,15 @@
 void psErrorClear(void);
 
+/** Get the error stack depth
+ *
+ *  @return psS32   The number of items on the error stack
+ */
+psS32 psErrorGetStackSize();
+
 /** Prints error stack to specified open file descriptor
  *
- *  The entire error stack may be printed to an open file descriptor by 
- *  calling psErrorStackPrint; if and only if there are current errors, the 
- *  printf-style string fmt is first printed to the file descriptor fd. In 
+ *  The entire error stack may be printed to an open file descriptor by
+ *  calling psErrorStackPrint; if and only if there are current errors, the
+ *  printf-style string fmt is first printed to the file descriptor fd. In
  *  this printout, error codes are replaced by their string equivalents.
  *
@@ -86,7 +92,7 @@
 /** Prints error stack to specified open file descriptor
  *
- *  The entire error stack may be printed to an open file descriptor by 
- *  calling psErrorStackPrintV; if and only if there are current errors, the 
- *  vprintf-style string fmt is first printed to the file descriptor fd. In 
+ *  The entire error stack may be printed to an open file descriptor by
+ *  calling psErrorStackPrintV; if and only if there are current errors, the
+ *  vprintf-style string fmt is first printed to the file descriptor fd. In
  *  this printout, error codes are replaced by their string equivalents.
  *
