Changeset 12309 for trunk/psLib
- Timestamp:
- Mar 7, 2007, 5:59:12 PM (19 years ago)
- Location:
- trunk/psLib/src/types
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psList.c
r12303 r12309 7 7 * @author Joshua Hoblitt, University of Hawaii 8 8 * 9 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-03-08 0 2:13:31$9 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-03-08 03:59:12 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 294 294 psListElem* cursor = iterator->cursor; 295 295 psList* list = iterator->list; 296 297 if (cursor == NULL && list->head != NULL) { 298 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 299 _("Specified iterator is not valid.")); 300 return false; 301 } 296 302 297 303 psListElem* elem = psAlloc(sizeof(psListElem)); … … 345 351 psListElem* cursor = iterator->cursor; 346 352 psList* list = iterator->list; 353 354 if (cursor == NULL && list->head != NULL) { 355 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 356 _("Specified iterator is not valid.")); 357 return false; 358 } 359 347 360 psListElem* elem = psAlloc(sizeof(psListElem)); 348 361 -
trunk/psLib/src/types/psList.h
r12308 r12309 5 5 * @author Robert Daniel DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.4 4$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-03-08 03:5 1:11$7 * @version $Revision: 1.45 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-03-08 03:59:12 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 284 284 285 285 #define PS_ASSERT_LIST_ITERATOR_NON_NULL(NAME, RVAL) \ 286 if (!(NAME) || !(NAME)->list || !(NAME)->list->iterators || (NAME)->list->n < 0 || \ 287 (!(NAME)->cursor && (NAME)->list->head)) { \ 286 if (!(NAME) || !(NAME)->list || !(NAME)->list->iterators || (NAME)->list->n < 0) { \ 288 287 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 289 288 "Error: List iterator %s or one of its components is NULL.", \
Note:
See TracChangeset
for help on using the changeset viewer.
