aboutsummaryrefslogtreecommitdiff
path: root/printing
diff options
context:
space:
mode:
Diffstat (limited to 'printing')
-rw-r--r--printing/printer.ml5
-rw-r--r--printing/printmod.ml9
-rw-r--r--printing/proof_diffs.ml1
3 files changed, 4 insertions, 11 deletions
diff --git a/printing/printer.ml b/printing/printer.ml
index 8af4d1d932..cc83a1dde0 100644
--- a/printing/printer.ml
+++ b/printing/printer.ml
@@ -38,7 +38,6 @@ let () =
let open Goptions in
declare_bool_option
{ optdepr = false;
- optname = "printing of unfocused goal";
optkey = ["Printing";"Unfocused"];
optread = (fun () -> !enable_unfocused_goal_printing);
optwrite = (fun b -> enable_unfocused_goal_printing:=b) }
@@ -49,7 +48,6 @@ let () =
let open Goptions in
declare_bool_option
{ optdepr = false;
- optname = "printing of goal tags";
optkey = ["Printing";"Goal";"Tags"];
optread = (fun () -> !enable_goal_tags_printing);
optwrite = (fun b -> enable_goal_tags_printing:=b) }
@@ -59,7 +57,6 @@ let () =
let open Goptions in
declare_bool_option
{ optdepr = false;
- optname = "printing of goal names";
optkey = ["Printing";"Goal";"Names"];
optread = (fun () -> !enable_goal_names_printing);
optwrite = (fun b -> enable_goal_names_printing:=b) }
@@ -416,7 +413,6 @@ let () =
let open Goptions in
declare_int_option
{ optdepr = false;
- optname = "the hypotheses limit";
optkey = ["Hyps";"Limit"];
optread = (fun () -> !print_hyps_limit);
optwrite = (fun x -> print_hyps_limit := x) }
@@ -625,7 +621,6 @@ let () =
let open Goptions in
declare_bool_option
{ optdepr = false;
- optname = "Printing Dependent Evars Line";
optkey = ["Printing";"Dependent";"Evars";"Line"];
optread = (fun () -> !should_print_dependent_evars);
optwrite = (fun v -> should_print_dependent_evars := v) }
diff --git a/printing/printmod.ml b/printing/printmod.ml
index 85bb287c22..b84113bde2 100644
--- a/printing/printmod.ml
+++ b/printing/printmod.ml
@@ -44,7 +44,6 @@ let short = ref false
let () =
declare_bool_option
{ optdepr = false;
- optname = "short module printing";
optkey = ["Short";"Module";"Printing"];
optread = (fun () -> !short) ;
optwrite = ((:=) short) }
@@ -86,8 +85,8 @@ let print_constructors envpar sigma names types =
in
hv 0 (str " " ++ pc)
-let build_ind_type env mip =
- Inductive.type_of_inductive env mip
+let build_ind_type mip =
+ Inductive.type_of_inductive mip
let print_one_inductive env sigma mib ((_,i) as ind) =
let u = Univ.make_abstract_instance (Declareops.inductive_polymorphic_context mib) in
@@ -95,7 +94,7 @@ let print_one_inductive env sigma mib ((_,i) as ind) =
let params = Inductive.inductive_paramdecls (mib,u) in
let nparamdecls = Context.Rel.length params in
let args = Context.Rel.to_extended_list mkRel 0 params in
- let arity = hnf_prod_applist_assum env nparamdecls (build_ind_type env ((mib,mip),u)) args in
+ let arity = hnf_prod_applist_assum env nparamdecls (build_ind_type ((mib,mip),u)) args in
let cstrtypes = Inductive.type_of_constructors (ind,u) (mib,mip) in
let cstrtypes = Array.map (fun c -> hnf_prod_applist_assum env nparamdecls c args) cstrtypes in
let envpar = push_rel_context params env in
@@ -147,7 +146,7 @@ let print_record env mind mib udecl =
let params = Inductive.inductive_paramdecls (mib,u) in
let nparamdecls = Context.Rel.length params in
let args = Context.Rel.to_extended_list mkRel 0 params in
- let arity = hnf_prod_applist_assum env nparamdecls (build_ind_type env ((mib,mip),u)) args in
+ let arity = hnf_prod_applist_assum env nparamdecls (build_ind_type ((mib,mip),u)) args in
let cstrtypes = Inductive.type_of_constructors ((mind,0),u) (mib,mip) in
let cstrtype = hnf_prod_applist_assum env nparamdecls cstrtypes.(0) args in
let fields = get_fields cstrtype in
diff --git a/printing/proof_diffs.ml b/printing/proof_diffs.ml
index dec87f8071..d93dd15f91 100644
--- a/printing/proof_diffs.ml
+++ b/printing/proof_diffs.ml
@@ -69,7 +69,6 @@ let write_diffs_option opt =
let () =
Goptions.(declare_string_option {
optdepr = false;
- optname = "show diffs in proofs";
optkey = ["Diffs"];
optread = read_diffs_option;
optwrite = write_diffs_option