diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-10-03 21:49:18 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-10-03 21:49:18 -0700 |
commit | 56d3d7cd22f761004139a0512681eac57e638cfc (patch) | |
tree | 524b94bee7e1dfbdf14c8ff1dbba271a97abaf13 /src/misc/util/abc_global.h | |
parent | 63c95405439b464f6d801e68c15f767bc6336637 (diff) | |
download | abc-56d3d7cd22f761004139a0512681eac57e638cfc.tar.gz abc-56d3d7cd22f761004139a0512681eac57e638cfc.tar.bz2 abc-56d3d7cd22f761004139a0512681eac57e638cfc.zip |
C++ portability changes.
Diffstat (limited to 'src/misc/util/abc_global.h')
-rw-r--r-- | src/misc/util/abc_global.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/misc/util/abc_global.h b/src/misc/util/abc_global.h index 997c026e..03474a04 100644 --- a/src/misc/util/abc_global.h +++ b/src/misc/util/abc_global.h @@ -264,6 +264,12 @@ enum Abc_VerbLevel ABC_VERBOSE = 2 }; +// string printing +extern char * vnsprintf(const char* format, va_list args); +extern char * nsprintf(const char* format, ...); +extern int Gia_ManToBridgeText( FILE * pFile, int Size, unsigned char * pBuffer ); + +// misc printing procedures static inline void Abc_Print( int level, const char * format, ... ) { extern ABC_DLL int Abc_FrameIsBridgeMode(); @@ -275,8 +281,6 @@ static inline void Abc_Print( int level, const char * format, ... ) va_start( args, format ); if ( Abc_FrameIsBridgeMode() ) { - extern int Gia_ManToBridgeText( FILE * pFile, int Size, unsigned char * pBuffer ); - extern char * vnsprintf(const char* format, va_list args); char * tmp = vnsprintf( format, args ); Gia_ManToBridgeText( stdout, strlen(tmp), (unsigned char*)tmp ); free( tmp ); @@ -362,9 +366,6 @@ extern void Abc_QuickSort3( word * pData, int nSize, int fDecrease ); extern void Abc_QuickSortCostData( int * pCosts, int nSize, int fDecrease, word * pData, int * pResult ); extern int * Abc_QuickSortCost( int * pCosts, int nSize, int fDecrease ); -// string printing -extern char * vnsprintf(const char* format, va_list args); -extern char * nsprintf(const char* format, ...); ABC_NAMESPACE_HEADER_END |