aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/explore.ml
diff options
context:
space:
mode:
authorGravatar filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7>2001-03-06 13:22:36 +0000
committerGravatar filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7>2001-03-06 13:22:36 +0000
commit6a02dbe7c38cdec8076a4d1db427c5b5095f34a3 (patch)
treed005a87c226587f6ad92e45da03f3c920eedddac /lib/explore.ml
parent2f612369c69e77ae2f1d16ef199b17ba841c02d8 (diff)
EAutod (debug)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1429 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/explore.ml')
-rw-r--r--lib/explore.ml11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/explore.ml b/lib/explore.ml
index c336a4b3b..b79f3e820 100644
--- a/lib/explore.ml
+++ b/lib/explore.ml
@@ -16,10 +16,13 @@ module Make = functor(S : SearchProblem) -> struct
type position = int list
- let rec pp_position = function
- | [] -> ()
- | [i] -> printf "%d" i
- | i :: l -> pp_position l; printf ".%d" i
+ let pp_position p =
+ let rec pp_rec = function
+ | [] -> ()
+ | [i] -> printf "%d" i
+ | i :: l -> pp_rec l; printf ".%d" i
+ in
+ open_hbox (); pp_rec p; close_box ()
(*s Depth first search. *)