aboutsummaryrefslogtreecommitdiffhomepage
path: root/interp
diff options
context:
space:
mode:
authorGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-09-15 00:39:54 +0000
committerGravatar ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-09-15 00:39:54 +0000
commit92616b9f660eaa2640964ca1925b05d37af70c8c (patch)
tree52f433af85ee3bf8195b91f78ea60df75902f62d /interp
parent8cc623262c625bda20e97c75f9ba083ae8e7760d (diff)
Some documentation and cleaning of CList and Util interfaces.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15805 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'interp')
-rw-r--r--interp/notation_ops.ml2
-rw-r--r--interp/reserve.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/interp/notation_ops.ml b/interp/notation_ops.ml
index 3429ab7b9..c5cc1438b 100644
--- a/interp/notation_ops.ml
+++ b/interp/notation_ops.ml
@@ -710,7 +710,7 @@ and match_equations u alp metas sigma (_,_,patl1,rhs1) (patl2,rhs2) =
match_in u alp metas sigma rhs1 rhs2
let match_notation_constr u c (metas,pat) =
- let vars = List.split_by (fun (_,(_,x)) -> x <> NtnTypeBinderList) metas in
+ let vars = List.partition (fun (_,(_,x)) -> x <> NtnTypeBinderList) metas in
let vars = (List.map fst (fst vars), List.map fst (snd vars)) in
let terms,termlists,binders = match_ false u [] vars ([],[],[]) c pat in
(* Reorder canonically the substitution *)
diff --git a/interp/reserve.ml b/interp/reserve.ml
index 7a2d4bfe7..914a85fe8 100644
--- a/interp/reserve.ml
+++ b/interp/reserve.ml
@@ -79,7 +79,7 @@ let revert_reserved_type t =
let t = Detyping.detype false [] [] t in
List.try_find
(fun (pat,id) ->
- try let _ = Notation_ops.match_notation_constr false t ([],pat) in Name id
+ try let _ = Notation_ops.match_notation_constr false t ([], pat) in Name id
with Notation_ops.No_match -> failwith "") l
with Not_found | Failure _ -> Anonymous