Changeset 9538 for trunk/psLib/src/mathtypes
- Timestamp:
- Oct 13, 2006, 11:13:48 AM (20 years ago)
- Location:
- trunk/psLib/src/mathtypes
- Files:
-
- 3 edited
-
psImage.c (modified) (3 diffs)
-
psScalar.c (modified) (3 diffs)
-
psVector.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r8627 r9538 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.11 4$ $Name: not supported by cvs2svn $12 * @date $Date: 2006- 08-26 04:34:28 $11 * @version $Revision: 1.115 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-10-13 21:13:48 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 43 43 int ref = ptr->refCounter; 44 44 ptr->refCounter = 2; // make sure psFree is not retriggered 45 psArrayRemove (image->parent->children,image);45 psArrayRemoveData(image->parent->children,image); 46 46 ptr->refCounter = ref; // restore previous count (not assuming zero, but should be) 47 47 … … 110 110 bool psMemCheckImage(psPtr ptr) 111 111 { 112 if (!is_psType(ptr)) { 113 return false; 114 } 112 PS_ASSERT_PTR(ptr, false); 115 113 return ( psMemGetDeallocator(ptr) == (psFreeFunc)imageFree ); 116 114 } -
trunk/psLib/src/mathtypes/psScalar.c
r8232 r9538 8 8 * @author Ross Harman, MHPCC 9 9 * 10 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $11 * @date $Date: 2006- 08-08 23:32:23$10 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-10-13 21:13:48 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 19 19 #include "psLogMsg.h" 20 20 #include "psAbort.h" 21 21 #include "psAssert.h" 22 22 23 23 … … 89 89 bool psMemCheckScalar(psPtr ptr) 90 90 { 91 if (!is_psType(ptr)) { 92 return false; 93 } 91 PS_ASSERT_PTR(ptr, NULL); 94 92 return ( psMemGetDeallocator(ptr) == (psFreeFunc)scalarFree ); 95 93 } -
trunk/psLib/src/mathtypes/psVector.c
r8627 r9538 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.8 2$ $Name: not supported by cvs2svn $12 * @date $Date: 2006- 08-26 04:34:28 $11 * @version $Revision: 1.83 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-10-13 21:13:48 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 26 26 #include "psLogMsg.h" 27 27 #include "psCompare.h" 28 28 #include "psAssert.h" 29 29 30 30 … … 63 63 bool psMemCheckVector(psPtr ptr) 64 64 { 65 if (!is_psType(ptr)) { 66 return false; 67 } 65 PS_ASSERT_PTR(ptr, false); 68 66 return ( psMemGetDeallocator(ptr) == (psFreeFunc)vectorFree ); 69 67 }
Note:
See TracChangeset
for help on using the changeset viewer.
