diff options
author | Yen-Sheng Ho <ysho@berkeley.edu> | 2017-03-03 13:46:32 -0800 |
---|---|---|
committer | Yen-Sheng Ho <ysho@berkeley.edu> | 2017-03-03 13:46:32 -0800 |
commit | 154f4b642d7b383399a3465cc8d365ad09a541e7 (patch) | |
tree | 695e28331e4b291adfcdc5dec34a65721b59ddcd /src/base/cmd/cmdHist.c | |
parent | 40d29e781387fdfbe8fec47e600d57a109fed1d9 (diff) | |
parent | 59f09c10d5389afe0768820ebb6167fdf8b5617b (diff) | |
download | abc-154f4b642d7b383399a3465cc8d365ad09a541e7.tar.gz abc-154f4b642d7b383399a3465cc8d365ad09a541e7.tar.bz2 abc-154f4b642d7b383399a3465cc8d365ad09a541e7.zip |
merge
Diffstat (limited to 'src/base/cmd/cmdHist.c')
-rw-r--r-- | src/base/cmd/cmdHist.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/base/cmd/cmdHist.c b/src/base/cmd/cmdHist.c index d1ff0a9d..36e546a7 100644 --- a/src/base/cmd/cmdHist.c +++ b/src/base/cmd/cmdHist.c @@ -30,6 +30,8 @@ ABC_NAMESPACE_IMPL_START /// DECLARATIONS /// //////////////////////////////////////////////////////////////////////// +#define ABC_USE_HISTORY 1 + //////////////////////////////////////////////////////////////////////// /// FUNCTION DEFINITIONS /// //////////////////////////////////////////////////////////////////////// @@ -99,7 +101,7 @@ void Cmd_HistoryAddCommand( Abc_Frame_t * p, const char * command ) ***********************************************************************/ void Cmd_HistoryRead( Abc_Frame_t * p ) { -#if defined(WIN32) +#if defined(WIN32) && defined(ABC_USE_HISTORY) char Buffer[ABC_MAX_STR]; FILE * pFile; assert( Vec_PtrSize(p->aHistory) == 0 ); @@ -130,7 +132,7 @@ void Cmd_HistoryRead( Abc_Frame_t * p ) ***********************************************************************/ void Cmd_HistoryWrite( Abc_Frame_t * p, int Limit ) { -#if defined(WIN32) +#if defined(WIN32) && defined(ABC_USE_HISTORY) FILE * pFile; char * pStr; int i; @@ -160,7 +162,7 @@ void Cmd_HistoryWrite( Abc_Frame_t * p, int Limit ) ***********************************************************************/ void Cmd_HistoryPrint( Abc_Frame_t * p, int Limit ) { -#if defined(WIN32) +#if defined(WIN32) && defined(ABC_USE_HISTORY) char * pStr; int i; Limit = Abc_MaxInt( 0, Vec_PtrSize(p->aHistory)-Limit ); |