mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-04 08:33:58 +02:00
Version abc90408
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user