aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Boutillier2013-12-19 18:18:14 +0100
committerPierre Boutillier2013-12-19 18:18:14 +0100
commit7c4dee1381546347df8b473ef3986b654f03c33d (patch)
tree983745ae548bc74f6da9fc8e68d9c6f9b0cfb62a
parentc93a0973d069df9c8ce2bb89782bdd7c0325f983 (diff)
Printing function for Stdargs in debugger
-rw-r--r--printing/pptactic.ml10
-rw-r--r--tactics/tacinterp.ml18
2 files changed, 16 insertions, 12 deletions
diff --git a/printing/pptactic.ml b/printing/pptactic.ml
index 77f5db3b4c..cb09784c16 100644
--- a/printing/pptactic.ml
+++ b/printing/pptactic.ml
@@ -1029,12 +1029,20 @@ let register_uniform_printer wit pr =
Genprint.register_print0 wit pr pr pr
let () =
+ let pr_bool b = if b then str "true" else str "false" in
+ let pr_unit _ = str "()" in
+ let pr_string s = str "\"" ++ str s ++ str "\"" in
Genprint.register_print0 Constrarg.wit_ref
pr_reference (pr_or_var (pr_located pr_global)) pr_global;
Genprint.register_print0 Constrarg.wit_intro_pattern
pr_intro_pattern pr_intro_pattern pr_intro_pattern;
Genprint.register_print0 Constrarg.wit_sort
- pr_glob_sort pr_glob_sort pr_sort
+ pr_glob_sort pr_glob_sort pr_sort;
+ Genprint.register_print0 Stdarg.wit_int int int int;
+ Genprint.register_print0 Stdarg.wit_bool pr_bool pr_bool pr_bool;
+ Genprint.register_print0 Stdarg.wit_unit pr_unit pr_unit pr_unit;
+ Genprint.register_print0 Stdarg.wit_pre_ident str str str;
+ Genprint.register_print0 Stdarg.wit_string pr_string pr_string pr_string
let () =
let printer _ _ prtac = prtac (0, E) in
diff --git a/tactics/tacinterp.ml b/tactics/tacinterp.ml
index 433322e4c1..0303dbea04 100644
--- a/tactics/tacinterp.ml
+++ b/tactics/tacinterp.ml
@@ -2124,29 +2124,25 @@ let def_intern ist x = (ist, x)
let def_subst _ x = x
let def_interp ist gl x = (project gl, x)
-let declare_uniform t pr =
+let declare_uniform t =
Genintern.register_intern0 t def_intern;
Genintern.register_subst0 t def_subst;
- Geninterp.register_interp0 t def_interp;
- Genprint.register_print0 t pr pr pr
+ Geninterp.register_interp0 t def_interp
let () =
- let pr_unit _ = str "()" in
- declare_uniform wit_unit pr_unit
+ declare_uniform wit_unit
let () =
- declare_uniform wit_int int
+ declare_uniform wit_int
let () =
- let pr_bool b = if b then str "true" else str "false" in
- declare_uniform wit_bool pr_bool
+ declare_uniform wit_bool
let () =
- let pr_string s = str "\"" ++ str s ++ str "\"" in
- declare_uniform wit_string pr_string
+ declare_uniform wit_string
let () =
- declare_uniform wit_pre_ident str
+ declare_uniform wit_pre_ident
let () =
let interp ist gl ref = (project gl, interp_reference ist (pf_env gl) ref) in