Changeset 12303
- Timestamp:
- Mar 7, 2007, 4:13:31 PM (19 years ago)
- Location:
- trunk/psLib/src/types
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psArray.h
r11701 r12303 10 10 * @author Joshua Hoblitt, University of Hawaii 11 11 * 12 * @version $Revision: 1.4 7$ $Name: not supported by cvs2svn $13 * @date $Date: 2007-0 2-08 03:34:09$12 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2007-03-08 02:13:31 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 242 242 #define PS_ASSERT_ARRAY_NON_NULL(NAME, RETURNVAL) PS_ASSERT_GENERAL_ARRAY_NON_NULL(NAME, return RETURNVAL) 243 243 #define PS_ASSERT_GENERAL_ARRAY_NON_NULL(NAME, CLEANUP) \ 244 if ((NAME) == NULL || (NAME)->data == NULL ) { \244 if ((NAME) == NULL || (NAME)->data == NULL || (NAME)->n < 0) { \ 245 245 psError(PS_ERR_BAD_PARAMETER_NULL, true, \ 246 246 "Unallowable operation: psArray %s or its data is NULL.", \ -
trunk/psLib/src/types/psHash.h
r12289 r12303 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $14 * @date $Date: 2007-03-0 7 02:50:15$13 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2007-03-08 02:13:31 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 114 114 115 115 #define PS_ASSERT_HASH_NON_NULL(NAME, RVAL) \ 116 if (!(NAME) || !(NAME)->buckets || (NAME)->n < =0) { \116 if (!(NAME) || !(NAME)->buckets || (NAME)->n < 0) { \ 117 117 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 118 118 "Error: Hash %s or one of its components is NULL.", \ -
trunk/psLib/src/types/psList.c
r12289 r12303 7 7 * @author Joshua Hoblitt, University of Hawaii 8 8 * 9 * @version $Revision: 1.6 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-03-0 7 02:50:15$9 * @version $Revision: 1.63 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-03-08 02:13:31 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 258 258 PS_ASSERT_PTR_NON_NULL(data, false); 259 259 260 if (location > 0 && location >= (int)list->n) {260 if (location >= list->n) { 261 261 psLogMsg(__func__,PS_LOG_WARN, 262 262 "Specified location, %ld, is beyond the end of the list. " -
trunk/psLib/src/types/psList.h
r12289 r12303 5 5 * @author Robert Daniel DeSonia, MHPCC 6 6 * 7 * @version $Revision: 1.4 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-03-0 7 02:50:15$7 * @version $Revision: 1.42 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-03-08 02:13:31 $ 9 9 * 10 10 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 276 276 277 277 #define PS_ASSERT_LIST_NON_NULL(NAME, RVAL) \ 278 if (!(NAME) || !(NAME)->iterators || (NAME)->n < =0) { \278 if (!(NAME) || !(NAME)->iterators || (NAME)->n < 0) { \ 279 279 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 280 280 "Error: List %s or one of its components is NULL.", \ … … 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 || \286 if (!(NAME) || !(NAME)->list || !(NAME)->list->iterators || (NAME)->list->n < 0 || \ 287 287 (!(NAME)->cursor && (NAME)->list->head) || (NAME)->index <= 0) { \ 288 288 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \
Note:
See TracChangeset
for help on using the changeset viewer.
