Changeset 753 for trunk/archive/pslib/src/Utils/error.c
- Timestamp:
- May 20, 2004, 6:12:37 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/src/Utils/error.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/src/Utils/error.c
r707 r753 76 76 int psError(const char *name, // category of code that caused the error 77 77 psErrorCode code, // code of error (equivalent to errno) 78 psErrorStatus status,// is this a new error?78 int new, // is this a new error? 79 79 const char *fmt, ...) // format and possible extra arguments 80 80 { 81 if (code == PS_ERR_NONE || status == PS_NEW_ERROR) { // free old error stack81 if (code == PS_ERR_NONE || new) { // free old error stack 82 82 errStack *eptr = errorStack; 83 83 … … 99 99 100 100 va_start(ap, fmt); 101 p _psLogVMsg(name, PS_LOG_ERROR, fmt, ap);101 psLogMsgV(name, PS_LOG_ERROR, fmt, ap); 102 102 va_end(ap); 103 103 } … … 210 210 } 211 211 212 psError VStackPrint(fd, fmt, ap);212 psErrorStackPrintV(fd, fmt, ap); 213 213 214 214 if (fmt != NULL) { … … 217 217 } 218 218 219 void psError VStackPrint(FILE *fd, // write to this file descriptor219 void psErrorStackPrintV(FILE *fd, // write to this file descriptor 220 220 const char *fmt,// format for any header information; may be NULL 221 221 va_list ap) // arguments for format
Note:
See TracChangeset
for help on using the changeset viewer.
