Changeset 3085 for trunk/psLib/src/collections/psList.c
- Timestamp:
- Jan 24, 2005, 3:04:17 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psList.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psList.c
r3082 r3085 6 6 * @author Robert Daniel DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-01-25 0 0:12:12$8 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-01-25 01:04:17 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 495 495 psPtr psListGetNext(psListIterator* iterator) 496 496 { 497 if (iterator == NULL || iterator->cursor == NULL) { 497 if (iterator == NULL ) { 498 return NULL; 499 } 500 if (( iterator->cursor == NULL) && (iterator->offEnd)) { 501 return NULL; 502 } 503 if ( (iterator->cursor == NULL) && (!iterator->offEnd)) { 504 iterator->cursor = iterator->list->head; 505 iterator->index = 0; 498 506 return NULL; 499 507 } … … 512 520 psPtr psListGetPrevious(psListIterator* iterator) 513 521 { 514 if ( (iterator == NULL ) || ((iterator->cursor == NULL) && (!iterator->offEnd)) ) { 522 if (iterator == NULL ) { 523 return NULL; 524 } 525 if ((iterator->cursor == NULL) && (!iterator->offEnd)) { 526 psLogMsg(__func__,PS_LOG_WARN,"Attempt to get previous with itertator cursor NULL and offEnd false"); 515 527 return NULL; 516 528 }
Note:
See TracChangeset
for help on using the changeset viewer.
