mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-08 03:46:07 +02:00
Version abc90408
This commit is contained in:
@@ -309,7 +309,7 @@ static inline void Hash_FltFree( Hash_Flt_t *p ) {
|
||||
int bin;
|
||||
Hash_Flt_Entry_t *pEntry;
|
||||
|
||||
// ABC_FREE bins
|
||||
// free bins
|
||||
for(bin = 0; bin < p->nBins; bin++) {
|
||||
pEntry = p->pArray[bin];
|
||||
while(pEntry) {
|
||||
@@ -318,7 +318,7 @@ static inline void Hash_FltFree( Hash_Flt_t *p ) {
|
||||
}
|
||||
}
|
||||
|
||||
// ABC_FREE hash
|
||||
// free hash
|
||||
ABC_FREE( p->pArray );
|
||||
ABC_FREE( p );
|
||||
}
|
||||
|
||||
@@ -272,7 +272,7 @@ static inline void Hash_IntFree( Hash_Int_t *p ) {
|
||||
int bin;
|
||||
Hash_Int_Entry_t *pEntry, *pTemp;
|
||||
|
||||
// ABC_FREE bins
|
||||
// free bins
|
||||
for(bin = 0; bin < p->nBins; bin++) {
|
||||
pEntry = p->pArray[bin];
|
||||
while(pEntry) {
|
||||
@@ -282,7 +282,7 @@ static inline void Hash_IntFree( Hash_Int_t *p ) {
|
||||
}
|
||||
}
|
||||
|
||||
// ABC_FREE hash
|
||||
// free hash
|
||||
ABC_FREE( p->pArray );
|
||||
ABC_FREE( p );
|
||||
}
|
||||
|
||||
@@ -310,7 +310,7 @@ static inline void Hash_PtrFree( Hash_Ptr_t *p ) {
|
||||
int bin;
|
||||
Hash_Ptr_Entry_t *pEntry;
|
||||
|
||||
// ABC_FREE bins
|
||||
// free bins
|
||||
for(bin = 0; bin < p->nBins; bin++) {
|
||||
pEntry = p->pArray[bin];
|
||||
while(pEntry) {
|
||||
@@ -319,7 +319,7 @@ static inline void Hash_PtrFree( Hash_Ptr_t *p ) {
|
||||
}
|
||||
}
|
||||
|
||||
// ABC_FREE hash
|
||||
// free hash
|
||||
ABC_FREE( p->pArray );
|
||||
ABC_FREE( p );
|
||||
}
|
||||
|
||||
@@ -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