- Timestamp:
- May 18, 2005, 3:09:57 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_050513/psLib/src/collections/psArray.c
r3933 r3966 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.27.4. 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-05-1 3 22:30:02$11 * @version $Revision: 1.27.4.2 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-05-19 01:09:56 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 88 88 psArray* psArrayAdd(psArray* psArr, 89 89 int delta, 90 psPtr data)90 const psPtr data) 91 91 { 92 92 if (psArr == NULL) { … … 110 110 111 111 psBool psArrayRemove(psArray* psArr, 112 psPtr data)112 const psPtr data) 113 113 { 114 114 psBool success = false; … … 161 161 psBool psArraySet(psArray* in, ///< input array to set element in 162 162 psU32 position, ///< the element position to set 163 void* value) ///< the value to set it to 164 { 165 if (in == NULL) 166 { 163 const void* value) ///< the value to set it to 164 { 165 if (in == NULL) { 167 166 psError(PS_ERR_BAD_PARAMETER_NULL, true, 168 167 PS_ERRORTEXT_psArray_ARRAY_NULL); … … 170 169 } 171 170 172 if (position >= in->nalloc) 173 { 171 if (position >= in->nalloc) { 174 172 psError(PS_ERR_BAD_PARAMETER_NULL, true, 175 173 PS_ERRORTEXT_psArray_POSITION_BEYOND_NALLOC, … … 185 183 186 184 /// Get an element in the array. 187 void* psArrayGet( psArray* in, psU32 position )185 void* psArrayGet(const psArray* in, psU32 position ) 188 186 { 189 187 if (in == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.
