Commit 73789120 by Alan Mishchenko

Misc changes.

parent 3f6bb881
...@@ -360,7 +360,9 @@ int Abc_NamStrFind( Abc_Nam_t * p, char * pStr ) ...@@ -360,7 +360,9 @@ int Abc_NamStrFind( Abc_Nam_t * p, char * pStr )
int Abc_NamStrFindOrAdd( Abc_Nam_t * p, char * pStr, int * pfFound ) int Abc_NamStrFindOrAdd( Abc_Nam_t * p, char * pStr, int * pfFound )
{ {
int iHandleNew; int iHandleNew;
int *piPlace = Abc_NamStrHashFind( p, pStr ); int *piPlace;
assert( pStr[0] != '\\' || pStr[strlen(pStr)-1] == ' ' );
piPlace = Abc_NamStrHashFind( p, pStr );
if ( *piPlace ) if ( *piPlace )
{ {
if ( pfFound ) if ( pfFound )
......
...@@ -60,6 +60,7 @@ extern int Abc_NamStrFindOrAdd( Abc_Nam_t * p, char * pStr, int * pf ...@@ -60,6 +60,7 @@ extern int Abc_NamStrFindOrAdd( Abc_Nam_t * p, char * pStr, int * pf
extern char * Abc_NamStr( Abc_Nam_t * p, int id ); extern char * Abc_NamStr( Abc_Nam_t * p, int id );
extern Vec_Int_t * Abc_NamComputeIdMap( Abc_Nam_t * p1, Abc_Nam_t * p2 ); extern Vec_Int_t * Abc_NamComputeIdMap( Abc_Nam_t * p1, Abc_Nam_t * p2 );
extern int Abc_NamReportCommon( Vec_Int_t * vNameIds1, Abc_Nam_t * p1, Abc_Nam_t * p2 ); extern int Abc_NamReportCommon( Vec_Int_t * vNameIds1, Abc_Nam_t * p1, Abc_Nam_t * p2 );
extern char * Abc_NamReportUnique( Vec_Int_t * vNameIds1, Abc_Nam_t * p1, Abc_Nam_t * p2 );
ABC_NAMESPACE_HEADER_END ABC_NAMESPACE_HEADER_END
......
...@@ -259,22 +259,10 @@ static inline Vec_Int_t * Vec_IntDupArray( Vec_Int_t * pVec ) ...@@ -259,22 +259,10 @@ static inline Vec_Int_t * Vec_IntDupArray( Vec_Int_t * pVec )
***********************************************************************/ ***********************************************************************/
static inline void Vec_IntErase( Vec_Int_t * p ) static inline void Vec_IntErase( Vec_Int_t * p )
{ {
p->pArray = NULL; ABC_FREE( p->pArray );
p->nSize = 0; p->nSize = 0;
p->nCap = 0; p->nCap = 0;
} }
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
static inline void Vec_IntFree( Vec_Int_t * p ) static inline void Vec_IntFree( Vec_Int_t * p )
{ {
ABC_FREE( p->pArray ); ABC_FREE( p->pArray );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment