Version abc90408

This commit is contained in:
Alan Mishchenko
2009-04-08 08:01:00 -07:00
parent e3e2918eb8
commit df6fdd1dff
134 changed files with 1315 additions and 413 deletions
+3 -3
View File
@@ -124,7 +124,7 @@ static inline void * Vec_AttFree( Vec_Att_t * p, int fFreeMan )
void * pMan;
if ( p == NULL )
return NULL;
// ABC_FREE the attributes of objects
// free the attributes of objects
if ( p->pFuncFreeObj )
{
int i;
@@ -132,7 +132,7 @@ static inline void * Vec_AttFree( Vec_Att_t * p, int fFreeMan )
if ( p->pArrayPtr[i] )
p->pFuncFreeObj( p->pMan, p->pArrayPtr[i] );
}
// ABC_FREE the memory manager
// free the memory manager
pMan = fFreeMan? NULL : p->pMan;
if ( p->pMan && fFreeMan )
p->pFuncFreeMan( p->pMan );
@@ -154,7 +154,7 @@ static inline void * Vec_AttFree( Vec_Att_t * p, int fFreeMan )
***********************************************************************/
static inline void Vec_AttClear( Vec_Att_t * p )
{
// ABC_FREE the attributes of objects
// free the attributes of objects
if ( p->pFuncFreeObj )
{
int i;
+2 -2
View File
@@ -785,7 +785,7 @@ static inline void Vec_PtrDoubleSimInfo( Vec_Ptr_t * vInfo )
vInfo->pArray = vInfoNew->pArray;
vInfo->nSize *= 2;
vInfo->nCap *= 2;
// ABC_FREE the old array
// free the old array
vInfoNew->pArray = NULL;
ABC_FREE( vInfoNew );
}
@@ -815,7 +815,7 @@ static inline void Vec_PtrReallocSimInfo( Vec_Ptr_t * vInfo )
// replace the array
ABC_FREE( vInfo->pArray );
vInfo->pArray = vInfoNew->pArray;
// ABC_FREE the old array
// free the old array
vInfoNew->pArray = NULL;
ABC_FREE( vInfoNew );
}