summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-10-06 18:28:25 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-10-06 18:28:25 -0700
commitf66fd3f3a320ca5bbad9860b73c78e8065629ee6 (patch)
tree932d4c2717bd2e3778e6fb0fb1fe800490eab60f /src
parentdc9a22582ac1bf26636543e49d2336a90799eddd (diff)
downloadabc-f66fd3f3a320ca5bbad9860b73c78e8065629ee6.tar.gz
abc-f66fd3f3a320ca5bbad9860b73c78e8065629ee6.tar.bz2
abc-f66fd3f3a320ca5bbad9860b73c78e8065629ee6.zip
Updating readme.
Diffstat (limited to 'src')
-rw-r--r--src/base/main/mainUtils.c8
-rw-r--r--src/proof/abs/absPth.c3
2 files changed, 8 insertions, 3 deletions
diff --git a/src/base/main/mainUtils.c b/src/base/main/mainUtils.c
index c8038765..67bf3664 100644
--- a/src/base/main/mainUtils.c
+++ b/src/base/main/mainUtils.c
@@ -22,13 +22,17 @@
#include "mainInt.h"
#if !defined(_WIN32) && !defined(AIX)
+// comment out the following line if 'readline' is not available
+#define ABC_USE_READ_LINE
+#endif
+
+#ifdef ABC_USE_READ_LINE
#include <readline/readline.h>
#include <readline/history.h>
#endif
ABC_NAMESPACE_IMPL_START
-
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
@@ -72,7 +76,7 @@ char * Abc_UtilsGetUsersInput( Abc_Frame_t * pAbc )
{
static char Prompt[5000];
sprintf( Prompt, "abc %02d> ", pAbc->nSteps );
-#if !defined(_WIN32) && !defined(AIX)
+#ifdef ABC_USE_READ_LINE
{
static char * line = NULL;
if (line != NULL) ABC_FREE(line);
diff --git a/src/proof/abs/absPth.c b/src/proof/abs/absPth.c
index 8f50cc66..3c24d83e 100644
--- a/src/proof/abs/absPth.c
+++ b/src/proof/abs/absPth.c
@@ -22,7 +22,8 @@
#include "proof/pdr/pdr.h"
#include "proof/ssw/ssw.h"
-// to compile on Linux, add -lpthread to LIBS in Makefile
+
+
// comment out this line to disable pthreads
#define ABC_USE_PTHREADS