Changeset 707 for trunk/archive/pslib/src/Utils/error.c
- Timestamp:
- May 17, 2004, 7:53:16 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/src/Utils/error.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/src/Utils/error.c
r567 r707 99 99 100 100 va_start(ap, fmt); 101 p_ps VLogMsg(name, PS_LOG_ERROR, fmt, ap);101 p_psLogVMsg(name, PS_LOG_ERROR, fmt, ap); 102 102 va_end(ap); 103 103 } … … 119 119 * Return the last error; if there is none, return one with code "PS_ERR_NONE" 120 120 */ 121 const psErr *ps LastError(void)122 { 123 return ps GetError(0);121 const psErr *psErrorLast(void) 122 { 123 return psErrorGet(0); 124 124 } 125 125 … … 127 127 * Return specified error (0: last error, 1: previous error, and so on) 128 128 */ 129 const psErr *ps GetError(int which)129 const psErr *psErrorGet(int which) 130 130 { 131 131 static psErr noError = { "", PS_ERR_NONE, "" }; … … 169 169 } 170 170 171 errorStringList[errors[i].code] = errors[i].descrip;171 errorStringList[errors[i].code] = (char *)errors[i].descrip; 172 172 } 173 173 } … … 210 210 } 211 211 212 ps VErrorStackPrint(fd, fmt, ap);212 psErrorVStackPrint(fd, fmt, ap); 213 213 214 214 if (fmt != NULL) { … … 217 217 } 218 218 219 void ps VErrorStackPrint(FILE *fd, // write to this file descriptor219 void psErrorVStackPrint(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.
