Changeset 2204 for trunk/psLib/src/sysUtils/psErrorCodes.c
- Timestamp:
- Oct 26, 2004, 2:57:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psErrorCodes.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psErrorCodes.c
r2129 r2204 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-10- 14 21:14:58$9 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-10-27 00:57:31 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 59 59 // first, search the static error codes 60 60 61 intn = 0;61 psS32 n = 0; 62 62 while(staticErrorCodes[n].code != PS_ERR_N_ERR_CLASSES && 63 63 staticErrorCodes[n].code != code) { … … 88 88 static void freeErrorDescription(psErrorDescription* err) 89 89 { 90 psFree(( void*)err->description);90 psFree((psPtr)err->description); 91 91 } 92 92 … … 125 125 126 126 void psErrorRegister(const psErrorDescription* errors, 127 intnerror)127 psS32 nerror) 128 128 { 129 129 if (nerror < 1) { … … 143 143 } 144 144 145 for ( inti=0;i<nerror;i++) {145 for (psS32 i=0;i<nerror;i++) { 146 146 psErrorDescription* err = psErrorDescriptionAlloc( 147 147 errors[i].code, errors[i].description); 148 148 p_psMemSetPersistent(err,true); 149 p_psMemSetPersistent(( void*)err->description,true);149 p_psMemSetPersistent((psPtr)err->description,true); 150 150 if (! psListAdd(dynamicErrorCodes, 151 151 PS_LIST_HEAD, … … 162 162 } 163 163 164 bool p_psErrorUnregister(psErrorCode code)164 psBool p_psErrorUnregister(psErrorCode code) 165 165 { 166 166 // Check input argument is non-negative … … 179 179 } 180 180 181 return psListRemove(dynamicErrorCodes,PS_LIST_UNKNOWN,( void*)desc);181 return psListRemove(dynamicErrorCodes,PS_LIST_UNKNOWN,(psPtr)desc); 182 182 }
Note:
See TracChangeset
for help on using the changeset viewer.
