Changeset 2273 for trunk/psLib/src/collections/psList.c
- Timestamp:
- Nov 3, 2004, 3:05:00 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psList.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psList.c
r2204 r2273 6 6 * @author Robert Daniel DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-1 0-27 00:57:31$8 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-11-04 01:04:57 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 136 136 137 137 if (position == NULL) { 138 psError(__func__, "%s failed to move cursor to specified location (%d)", __func__, location); 138 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 139 "Failed to move cursor to specified location (%d)", location); 139 140 position = list->head; // since we no list->size != 0, this must be non-NULL 140 141 } … … 173 174 174 175 if (list == NULL) { 175 psError( __func__, "list parameter found to be NULL in %s", __func__);176 psError(PS_ERR_BAD_PARAMETER_NULL, true, "list parameter found to be NULL."); 176 177 return false; 177 178 } … … 194 195 195 196 if (location == PS_LIST_UNKNOWN) { 196 psError( __func__, "Failed to find item in given psList.");197 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Failed to find item in given psList."); 197 198 pthread_mutex_unlock(&list->lock) 198 199 ; … … 206 207 207 208 if (elem == NULL) { 208 psError(__func__, "Couldn't position to given index (%d) to remove element from list.", location); 209 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 210 "Couldn't position to given index (%d) to remove element from list.", location); 209 211 pthread_mutex_unlock(&list->lock) 210 212 ; … … 257 259 258 260 if (list == NULL) { 259 psError(__func__, "Unexpected null pointer for psList parameter (%s:%d).", __FILE__, __LINE__); 261 psError(PS_ERR_BAD_PARAMETER_NULL, true, 262 "Unexpected null pointer for psList parameter."); 260 263 return; 261 264 } … … 314 317 default: 315 318 if (where <= PS_LIST_HEAD) { // bascially same as PS_LIST_UNKNOWN above 316 psError(__func__, "Can't move to an unknown position. Not moving the iterator position."); 319 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 320 "Can't move to an unknown position. Not moving the iterator position."); 317 321 } else { 318 322 cursor = listGetIterator(list);
Note:
See TracChangeset
for help on using the changeset viewer.
