From 931e5882b1e7517fd5087481c6c1b32a04333149 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sun, 15 Sep 2013 18:28:29 -0700 Subject: Infrastructure to support full Liberty format and unitification of library representations. --- src/map/scl/sclLiberty.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/map/scl/sclLiberty.c') diff --git a/src/map/scl/sclLiberty.c b/src/map/scl/sclLiberty.c index 4b98f7ef..e4b14405 100644 --- a/src/map/scl/sclLiberty.c +++ b/src/map/scl/sclLiberty.c @@ -19,6 +19,8 @@ ***********************************************************************/ #include "sclLib.h" +#include "misc/st/st.h" +#include "map/mio/mio.h" ABC_NAMESPACE_IMPL_START @@ -476,7 +478,8 @@ char * Scl_LibertyFileContents( char * pFileName, int nContents ) { FILE * pFile = fopen( pFileName, "rb" ); char * pContents = ABC_ALLOC( char, nContents+1 ); - int RetValue = fread( pContents, nContents, 1, pFile ); + int RetValue; + RetValue = fread( pContents, nContents, 1, pFile ); fclose( pFile ); pContents[nContents] = 0; return pContents; @@ -1240,7 +1243,6 @@ Vec_Str_t * Scl_LibertyReadSclStr( Scl_Tree_t * p, int fVerbose, int fVeryVerbos // output pins Scl_ItemForEachChildName( p, pCell, pPin, "pin" ) { - extern Vec_Wrd_t * Mio_ParseFormulaTruth( char * pFormInit, char ** ppVarNames, int nVars ); if ( !Scl_LibertyReadPinFormula(p, pPin) ) // skip input pin continue; assert( Scl_LibertyReadPinDirection(p, pPin) == 1 ); -- cgit v1.2.3