aboutsummaryrefslogtreecommitdiff
path: root/printing/printer.ml
diff options
context:
space:
mode:
authorppedrot2013-09-18 18:29:40 +0000
committerppedrot2013-09-18 18:29:40 +0000
commit33eea163c72c70eaa3bf76506c1d07a8cde911fd (patch)
tree69eb4394fc0eb748fa16609e86dbf941234157d8 /printing/printer.ml
parent71a9b7f264721b8afe5081bb0e13bcf8759d8403 (diff)
At least made the evar type opaque! There are still 5 remaining unsafe
casts of ints to evars. - 2 in Evarutil and Goal which are really needed, even though the Goal one could (and should) be removed; - 2 in G_xml and Detyping that are there for completeness sake, but that might be made anomalies altogether; - 1 in Newring which is quite dubious at best, and should be fixed. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16786 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'printing/printer.ml')
-rw-r--r--printing/printer.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/printing/printer.ml b/printing/printer.ml
index 70d1c9327d..19dd81dcdd 100644
--- a/printing/printer.ml
+++ b/printing/printer.ml
@@ -381,7 +381,7 @@ let rec pr_evars_int i = function
str (string_of_existential ev) ++ str " : " ++ pegl)) ++
(match rest with [] -> mt () | _ -> fnl () ++ pr_evars_int (i+1) rest)
-let pr_evars_int i evs = pr_evars_int i (Evd.ExistentialMap.bindings evs)
+let pr_evars_int i evs = pr_evars_int i (Evar.Map.bindings evs)
let default_pr_subgoal n sigma =
let rec prrec p = function
@@ -400,13 +400,13 @@ let emacs_print_dependent_evars sigma seeds =
let evars () =
let evars = Evarutil.gather_dependent_evars sigma seeds in
let evars =
- Int.Map.fold begin fun e i s ->
+ Evar.Map.fold begin fun e i s ->
let e' = str (string_of_existential e) in
match i with
| None -> s ++ str" " ++ e' ++ str " open,"
| Some i ->
s ++ str " " ++ e' ++ str " using " ++
- Int.Set.fold begin fun d s ->
+ Evar.Set.fold begin fun d s ->
str (string_of_existential d) ++ str " " ++ s
end i (str ",")
end evars (str "")
@@ -453,7 +453,7 @@ let default_pr_subgoals ?(pr_first=true) close_cmd sigma seeds stack goals =
str ".")
| None ->
let exl = Evarutil.non_instantiated sigma in
- if ExistentialMap.is_empty exl then
+ if Evar.Map.is_empty exl then
(str"No more subgoals."
++ emacs_print_dependent_evars sigma seeds)
else