Changeset 4316 for trunk/psLib/src/types
- Timestamp:
- Jun 17, 2005, 5:13:02 PM (21 years ago)
- Location:
- trunk/psLib/src/types
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psList.c
r4312 r4316 6 6 * @author Robert Daniel DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.3 6$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-06-18 0 0:53:32$8 * @version $Revision: 1.37 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-18 03:13:01 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 149 149 } 150 150 151 psListIterator* psListIteratorAlloc(psList* list, intlocation, bool mutable)151 psListIterator* psListIteratorAlloc(psList* list, long location, bool mutable) 152 152 { 153 153 psListIterator* iter = psAlloc(sizeof(psListIterator)); … … 181 181 } 182 182 183 psBool psListIteratorSet(psListIterator* iterator,184 int location)183 bool psListIteratorSet(psListIterator* iterator, 184 int location) 185 185 { 186 186 if (iterator == NULL) { … … 247 247 } 248 248 249 psBool psListAdd(psList* list, psS32location, psPtr data)249 bool psListAdd(psList* list, long location, psPtr data) 250 250 { 251 251 … … 433 433 } 434 434 435 psBool psListRemove(psList* list,436 psS32location)435 bool psListRemove(psList* list, 436 long location) 437 437 { 438 438 if (list == NULL) { … … 451 451 } 452 452 453 psBool psListRemoveData(psList* list,454 psPtr data)453 bool psListRemoveData(psList* list, 454 psPtr data) 455 455 { 456 456 if (list == NULL) { … … 485 485 } 486 486 487 psPtr psListGet(psList* list, psS32location)487 psPtr psListGet(psList* list, long location) 488 488 { 489 489 if (list == NULL) { … … 564 564 * Convert a psList to/from a psVoidPtrArray 565 565 */ 566 psArray* psListToArray( psList* restrict list)566 psArray* psListToArray(const psList* restrict list) 567 567 { 568 568 psListElem* ptr; -
trunk/psLib/src/types/psList.h
r4312 r4316 7 7 * @ingroup LinkedList 8 8 * 9 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-06-18 0 0:53:32 $9 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-06-18 03:13:02 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 99 99 psListIterator* psListIteratorAlloc( 100 100 psList* list, ///< the psList to iterate with 101 intlocation, ///< the initial starting point.101 long location, ///< the initial starting point. 102 102 ///< This can be a numeric index, PS_LIST_HEAD, or PS_LIST_TAIL. 103 103 bool mutable ///< Is it permissible to modify list? … … 109 109 * @return psBool TRUE if iterator successfully set, otherwise FALSE. 110 110 */ 111 psBool psListIteratorSet(111 bool psListIteratorSet( 112 112 psListIterator* iterator, ///< list iterator 113 113 int location ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL … … 118 118 * @return psBool TRUE if item was successfully added, otherwise FALSE. 119 119 */ 120 psBool psListAdd(120 bool psListAdd( 121 121 psList* list, ///< list to add item to 122 psS32location, ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location.122 long location, ///< index, PS_LIST_HEAD, PS_LIST_TAIL, or numbered location. 123 123 psPtr data ///< data item to add. If NULL, list is not modified. 124 124 ); … … 128 128 * @return psBool TRUE if item was successfully added, otherwise FALSE. 129 129 */ 130 psBool psListAddAfter(131 psListIterator* list,///< list position to add item to130 bool psListAddAfter( 131 psListIterator* iterator, ///< list position to add item to 132 132 psPtr data ///< data item to add. If NULL, list is not modified. 133 133 ); … … 137 137 * @return psBool TRUE if item was successfully added, otherwise FALSE. 138 138 */ 139 psBool psListAddBefore(140 psListIterator* list, ///< list position to add item to139 bool psListAddBefore( 140 psListIterator* iterator, ///< list position to add item to 141 141 psPtr data ///< data item to add. If NULL, list is not modified. 142 142 ); … … 146 146 * @return psBool TRUE if element is successfully removed, otherwise FALSE. 147 147 */ 148 psBool psListRemove(148 bool psListRemove( 149 149 psList* list, ///< list to remove element from 150 psS32location ///< index of item150 long location ///< index of item 151 151 ); 152 152 … … 155 155 * @return psBool TRUE if element is successfully removed, otherwise FALSE. 156 156 */ 157 psBool psListRemoveData(157 bool psListRemoveData( 158 158 psList* list, ///< list to remove element from 159 159 psPtr data ///< data item to find and remove … … 169 169 psPtr psListGet( 170 170 psList* list, ///< list to retrieve element from 171 psS32location ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL171 long location ///< index number, PS_LIST_HEAD, or PS_LIST_TAIL 172 172 ); 173 173 … … 196 196 */ 197 197 psArray* psListToArray( 198 psList* dlist ///< List to convert198 const psList* list ///< List to convert 199 199 ); 200 200
Note:
See TracChangeset
for help on using the changeset viewer.
