diff options
Diffstat (limited to 'src/base/main')
-rw-r--r-- | src/base/main/main.h | 1 | ||||
-rw-r--r-- | src/base/main/mainFrame.c | 2 | ||||
-rw-r--r-- | src/base/main/mainInt.h | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/base/main/main.h b/src/base/main/main.h index 611d9593..c1abc54f 100644 --- a/src/base/main/main.h +++ b/src/base/main/main.h @@ -104,6 +104,7 @@ extern ABC_DLL void * Abc_FrameReadManDd(); extern ABC_DLL void * Abc_FrameReadManDec(); extern ABC_DLL char * Abc_FrameReadFlag( char * pFlag ); extern ABC_DLL int Abc_FrameIsFlagEnabled( char * pFlag ); +extern ABC_DLL int Abc_FrameIsBatchMode(); extern ABC_DLL int Abc_FrameIsBridgeMode(); extern ABC_DLL void Abc_FrameSetBridgeMode(); diff --git a/src/base/main/mainFrame.c b/src/base/main/mainFrame.c index 50edb858..296bf7c2 100644 --- a/src/base/main/mainFrame.c +++ b/src/base/main/mainFrame.c @@ -79,6 +79,8 @@ void Abc_FrameSetFlag( char * pFlag, char * pValue ) { Cmd_FlagUpdateVal void Abc_FrameSetCex( Abc_Cex_t * pCex ) { ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->pCex = pCex; } void Abc_FrameSetNFrames( int nFrames ) { ABC_FREE( s_GlobalFrame->pCex ); s_GlobalFrame->nFrames = nFrames; } +int Abc_FrameIsBatchMode() { return s_GlobalFrame ? s_GlobalFrame->fBatchMode : 0; } + int Abc_FrameIsBridgeMode() { return s_GlobalFrame ? s_GlobalFrame->fBridgeMode : 0; } void Abc_FrameSetBridgeMode() { if ( s_GlobalFrame ) s_GlobalFrame->fBridgeMode = 1; } diff --git a/src/base/main/mainInt.h b/src/base/main/mainInt.h index a16d7f2e..aef02ba9 100644 --- a/src/base/main/mainInt.h +++ b/src/base/main/mainInt.h @@ -69,8 +69,8 @@ struct Abc_Frame_t_ Abc_Ntk_t * pNtkBestArea; // the current network int nSteps; // the counter of different network processed int fAutoexac; // marks the autoexec mode - int fBatchMode; // are we invoked in batch mode? - int fBridgeMode; // are we invoked in bridge mode? + int fBatchMode; // batch mode flag + int fBridgeMode; // bridge mode flag // output streams FILE * Out; FILE * Err; |