diff options
| author | glondu | 2009-10-28 16:48:34 +0000 |
|---|---|---|
| committer | glondu | 2009-10-28 16:48:34 +0000 |
| commit | 7c151ae076fe5ebba9a2ea507f8f4a235feab9c7 (patch) | |
| tree | 2728b48d7d7cbe0bac436de51394ec23c6f52fbb /tactics | |
| parent | d96ec0f0a094ce84890297be342bc129d0d6b47b (diff) | |
Make usage of Dyn explicit
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12435 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
| -rw-r--r-- | tactics/tacinterp.ml | 15 | ||||
| -rw-r--r-- | tactics/tacinterp.mli | 1 |
2 files changed, 7 insertions, 9 deletions
diff --git a/tactics/tacinterp.ml b/tactics/tacinterp.ml index bd0e9c7b42..13add4151f 100644 --- a/tactics/tacinterp.ml +++ b/tactics/tacinterp.ml @@ -13,7 +13,6 @@ open Closure open RedFlags open Declarations open Entries -open Dyn open Libobject open Pattern open Matching @@ -141,15 +140,15 @@ let constr_of_id env id = (* To embed tactics *) let ((tactic_in : (interp_sign -> glob_tactic_expr) -> Dyn.t), (tactic_out : Dyn.t -> (interp_sign -> glob_tactic_expr))) = - create "tactic" + Dyn.create "tactic" let ((value_in : value -> Dyn.t), - (value_out : Dyn.t -> value)) = create "value" + (value_out : Dyn.t -> value)) = Dyn.create "value" let valueIn t = TacDynamic (dummy_loc,value_in t) let valueOut = function | TacDynamic (_,d) -> - if (tag d) = "value" then + if (Dyn.tag d) = "value" then value_out d else anomalylabstrm "valueOut" (str "Dynamic tag should be value") @@ -894,7 +893,7 @@ and intern_tacarg strict ist = function | TacFreshId x -> TacFreshId (List.map (intern_or_var ist) x) | Tacexp t -> Tacexp (intern_tactic ist t) | TacDynamic(loc,t) as x -> - (match tag t with + (match Dyn.tag t with | "tactic" | "value" | "constr" -> x | s -> anomaly_loc (loc, "", str "Unknown dynamic: <" ++ str s ++ str ">")) @@ -1864,7 +1863,7 @@ and interp_tacarg ist gl = function VIntroPattern (IntroIdentifier id) | Tacexp t -> val_interp ist gl t | TacDynamic(_,t) -> - let tg = (tag t) in + let tg = (Dyn.tag t) in if tg = "tactic" then val_interp ist gl (tactic_out t ist) else if tg = "value" then @@ -2727,7 +2726,7 @@ and subst_tacarg subst = function | (TacVoid | IntroPattern _ | Integer _ | TacFreshId _) as x -> x | Tacexp t -> Tacexp (subst_tactic subst t) | TacDynamic(the_loc,t) as x -> - (match tag t with + (match Dyn.tag t with | "tactic" | "value" -> x | "constr" -> TacDynamic(the_loc, constr_in (subst_mps subst (constr_out t))) @@ -2941,7 +2940,7 @@ let tacticIn t = let tacticOut = function | TacArg (TacDynamic (_,d)) -> - if (tag d) = "tactic" then + if (Dyn.tag d) = "tactic" then tactic_out d else anomalylabstrm "tacticOut" (str "Dynamic tag should be tactic") diff --git a/tactics/tacinterp.mli b/tactics/tacinterp.mli index 238a329fd9..307e3a97dd 100644 --- a/tactics/tacinterp.mli +++ b/tactics/tacinterp.mli @@ -9,7 +9,6 @@ (*i $Id$ i*) (*i*) -open Dyn open Pp open Util open Names |
