Changeset 2273 for trunk/psLib/src/collections/psVector.c
- Timestamp:
- Nov 3, 2004, 3:05:00 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psVector.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psVector.c
r2204 r2273 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-1 0-27 00:57:31$12 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-11-04 01:04:57 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 70 70 71 71 if (in == NULL) { 72 psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorRealloc", 73 PS_ERR_BAD_PARAMETER_NULL, true, 74 PS_ERRORTEXT_psVector_REALLOC_NULL); 72 psError(PS_ERR_BAD_PARAMETER_NULL, true, 73 PS_ERRORTEXT_psVector_REALLOC_NULL); 75 74 return NULL; 76 75 } else if (in->nalloc != nalloc) { // No need to realloc to same size … … 99 98 in->type.dimen != PS_DIMEN_TRANSV) { 100 99 psFree(in); 101 psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorRecycle", 102 PS_ERR_BAD_PARAMETER_TYPE, true, 103 PS_ERRORTEXT_psVector_NOT_A_VECTOR); 100 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 101 PS_ERRORTEXT_psVector_NOT_A_VECTOR); 104 102 return NULL; 105 103 } … … 122 120 { 123 121 if (in == NULL) { 124 psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorSort", 125 PS_ERR_BAD_PARAMETER_NULL, true, 126 PS_ERRORTEXT_psVector_SORT_NULL); 122 psError(PS_ERR_BAD_PARAMETER_NULL, true, 123 PS_ERRORTEXT_psVector_SORT_NULL); 127 124 psFree(out); 128 125 return NULL; … … 183 180 char* typeStr; \ 184 181 PS_TYPE_NAME(typeStr,type); \ 185 psErrorMsg(PS_ERRORNAME_DOMAIN "psImageCopy", \ 186 PS_ERR_BAD_PARAMETER_TYPE, true, \ 187 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, \ 188 typeStr); \ 182 psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ 183 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, \ 184 typeStr); \ 189 185 psFree(out); \ 190 186 } \ … … 209 205 char* typeStr; 210 206 PS_TYPE_NAME(typeStr,type); 211 psErrorMsg(PS_ERRORNAME_DOMAIN "psImageCopy", 212 PS_ERR_BAD_PARAMETER_TYPE, true, 213 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, 214 typeStr); 207 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 208 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, 209 typeStr); 215 210 psFree(out); 216 211 … … 232 227 233 228 if (inVector == NULL) { 234 psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorSort", 235 PS_ERR_BAD_PARAMETER_NULL, true, 236 PS_ERRORTEXT_psVector_SORT_NULL); 229 psError(PS_ERR_BAD_PARAMETER_NULL, true, 230 PS_ERRORTEXT_psVector_SORT_NULL); 237 231 psFree(outVector); 238 232 return NULL; … … 300 294 break; 301 295 default: 302 psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorSort", 303 PS_ERR_BAD_PARAMETER_TYPE, true, 304 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, 305 inType); 296 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 297 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, 298 inType); 306 299 } 307 300 … … 317 310 318 311 if (inVector == NULL) { 319 psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorSortIndex", 320 PS_ERR_BAD_PARAMETER_NULL, true, 321 PS_ERRORTEXT_psVector_SORT_NULL); 312 psError(PS_ERR_BAD_PARAMETER_NULL, true, 313 PS_ERRORTEXT_psVector_SORT_NULL); 322 314 psFree(outVector); 323 315 return NULL; … … 400 392 break; 401 393 default: 402 psErrorMsg(PS_ERRORNAME_DOMAIN "psVectorSortIndex", 403 PS_ERR_BAD_PARAMETER_TYPE, true, 404 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, 405 inType); 394 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 395 PS_ERRORTEXT_psVector_UNSUPPORTED_TYPE, 396 inType); 406 397 } 407 398
Note:
See TracChangeset
for help on using the changeset viewer.
