summaryrefslogtreecommitdiffstats
path: root/src/base/cmd/cmdHist.c
diff options
context:
space:
mode:
authorMathias Soeken <mathias.soeken@gmail.com>2017-03-03 10:33:59 +0100
committerMathias Soeken <mathias.soeken@gmail.com>2017-03-03 10:33:59 +0100
commitf03871ab22b6c8a487e8fce19ab6b8a540b849f8 (patch)
treeb2c4c1fad6f8b5ce111e0545ed34c89d38397fc9 /src/base/cmd/cmdHist.c
parent28e8e7f3e79d1391a2f3a31cefe3afe234aa3b8e (diff)
parentb1907e909d92d1147937b26b5e97fb344647f719 (diff)
downloadabc-f03871ab22b6c8a487e8fce19ab6b8a540b849f8.tar.gz
abc-f03871ab22b6c8a487e8fce19ab6b8a540b849f8.tar.bz2
abc-f03871ab22b6c8a487e8fce19ab6b8a540b849f8.zip
Merged alanmi/abc into default
Diffstat (limited to 'src/base/cmd/cmdHist.c')
-rw-r--r--src/base/cmd/cmdHist.c8
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 );