Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for compile with GCC 7.3 (Ubuntu 18.04) #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Abc/map,mapper,mapperLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
Revision [$Id: mapperLib.c,v 1.6 2005/01/23 06:59:44 alanmi Exp $]

***********************************************************************/
#define _DEFAULT_SOURCE
#define _BSD_SOURCE

#ifndef WIN32
Expand Down Expand Up @@ -168,9 +169,9 @@ void Map_SuperLibFree( Map_SuperLib_t * p )
{
if ( p == NULL ) return;
if ( p->pGenlib )
{
if ( p->pGenlib != Abc_FrameReadLibGen() )
Mio_LibraryDelete( p->pGenlib );
{
if ( p->pGenlib != Abc_FrameReadLibGen() )
Mio_LibraryDelete( p->pGenlib );
p->pGenlib = NULL;
}
if ( p->tTableC )
Expand Down Expand Up @@ -202,17 +203,17 @@ int Map_SuperLibDeriveFromGenlib( Mio_Library_t * pLib, int fVerbose )
Vec_Str_t * vStr;
char * pFileName;
if ( pLib == NULL )
return 0;
return 0;

// compute supergates
vStr = Super_PrecomputeStr( pLib, 5, 1, 100000000, 10000000, 10000000, 100, 1, 0 );
if ( vStr == NULL )
return 0;
return 0;

// create supergate library
pFileName = Extra_FileNameGenericAppend( Mio_LibraryReadName(pLib), ".super" );
pLibSuper = Map_SuperLibCreate( pLib, vStr, pFileName, NULL, 1, 0 );
Vec_StrFree( vStr );
Vec_StrFree( vStr );

// replace the library
Map_SuperLibFree( (Map_SuperLib_t *)Abc_FrameReadLibSuper() );
Expand Down
Loading