- Made indentDepth availabe in non-debug modes.
This commit is contained in:
parent
43caf1707e
commit
887b2f3a80
@ -24,13 +24,14 @@ Role I_TUPLE;
|
|||||||
Role I_ENCRYPT;
|
Role I_ENCRYPT;
|
||||||
Role I_DECRYPT;
|
Role I_DECRYPT;
|
||||||
|
|
||||||
|
static int indentDepth;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static char *explanation; // Pointer to a string that describes what we just tried to do
|
static char *explanation; // Pointer to a string that describes what we just tried to do
|
||||||
static int e_run;
|
static int e_run;
|
||||||
static Term e_term1;
|
static Term e_term1;
|
||||||
static Term e_term2;
|
static Term e_term2;
|
||||||
static Term e_term3;
|
static Term e_term3;
|
||||||
static int indentDepth;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct goalstruct
|
struct goalstruct
|
||||||
@ -522,9 +523,7 @@ iterate ()
|
|||||||
Goal goal;
|
Goal goal;
|
||||||
|
|
||||||
flag = 1;
|
flag = 1;
|
||||||
#ifdef DEBUG
|
|
||||||
indentDepth++;
|
indentDepth++;
|
||||||
#endif
|
|
||||||
if (!prune ())
|
if (!prune ())
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -592,9 +591,7 @@ iterate ()
|
|||||||
flag = bind_goal (goal);
|
flag = bind_goal (goal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef DEBUG
|
|
||||||
indentDepth--;
|
indentDepth--;
|
||||||
#endif
|
|
||||||
return flag;
|
return flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -622,8 +619,8 @@ arachne ()
|
|||||||
e_term1 = NULL;
|
e_term1 = NULL;
|
||||||
e_term2 = NULL;
|
e_term2 = NULL;
|
||||||
e_term3 = NULL;
|
e_term3 = NULL;
|
||||||
indentDepth = 0;
|
|
||||||
#endif
|
#endif
|
||||||
|
indentDepth = 0;
|
||||||
printSemiState ();
|
printSemiState ();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user