Changeset 6500 for trunk/psLib/src/types
- Timestamp:
- Feb 27, 2006, 4:53:03 PM (20 years ago)
- Location:
- trunk/psLib/src/types
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psArray.c
r6484 r6500 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.4 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-02-2 4 23:43:15$11 * @version $Revision: 1.43 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-02-28 02:53:03 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 241 241 return psMemIncrRefCounter(array->data[position]); 242 242 } 243 244 long psArrayLength(const psArray *array) 245 { 246 if ( !psMemCheckArray((psArray*)array) ) { 247 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 248 "Error: Specified array is not a valid psArray \n"); 249 return -1; 250 } 251 return (array->n); 252 } 253 -
trunk/psLib/src/types/psArray.h
r5530 r6500 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $14 * @date $Date: 200 5-11-16 23:06:35$13 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-02-28 02:53:03 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 160 160 ); 161 161 162 /** Get the number of elements in use from a specified psArray. (array.n) 163 * 164 * @return long: The number of elements in use. 165 */ 166 long psArrayLength( 167 const psArray *array ///< input psArray 168 ); 169 162 170 /// @} 163 171 -
trunk/psLib/src/types/psList.c
r6425 r6500 6 6 * @author Robert Daniel DeSonia, MHPCC 7 7 * 8 * @version $Revision: 1.4 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-02- 14 00:09:27$8 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-02-28 02:53:03 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 621 621 } 622 622 623 long psListLength(const psList *list) 624 { 625 if ( !psMemCheckList((psList*)list) ) { 626 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 627 "Error: Specified list is not a valid psList \n"); 628 return -1; 629 } 630 return (list->n); 631 } 632 633 -
trunk/psLib/src/types/psList.h
r6425 r6500 7 7 * @ingroup LinkedList 8 8 * 9 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-02- 14 00:09:27$9 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-02-28 02:53:03 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 232 232 ); 233 233 234 /** Get the number of elements in use from a specified psList. (list.n) 235 * 236 * @return long: The number of elements in use. 237 */ 238 long psListLength( 239 const psList *list ///< input psList 240 ); 241 242 234 243 /// @} End of DataGroup Functions 235 244 -
trunk/psLib/src/types/psPixels.c
r5530 r6500 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $10 * @date $Date: 200 5-11-16 23:06:35$9 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-02-28 02:53:03 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 65 65 out->data = NULL; 66 66 } 67 out->n = nalloc;67 out->n = 0; 68 68 P_PSPIXELS_SET_NALLOC(out,nalloc); 69 69 … … 409 409 } 410 410 411 long psPixelsLength(const psPixels *pixels) 412 { 413 if ( !psMemCheckPixels((psPixels*)pixels) ) { 414 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 415 "Error: Specified pixels is not a valid psPixels \n"); 416 return -1; 417 } 418 return (pixels->n); 419 } 420 -
trunk/psLib/src/types/psPixels.h
r6230 r6500 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-0 1-28 01:31:44$9 * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-02-28 02:53:03 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 185 185 ); 186 186 187 /** Get the number of elements in use from a specified psPixels. (pixels.n) 188 * 189 * @return long: The number of elements in use. 190 */ 191 long psPixelsLength( 192 const psPixels *pixels ///< input psPixels 193 ); 194 187 195 #endif // #ifndef PS_PIXELS_H
Note:
See TracChangeset
for help on using the changeset viewer.
