aboutsummaryrefslogtreecommitdiff
path: root/lib/searchstack.ml
diff options
context:
space:
mode:
authorppedrot2013-09-06 17:18:44 +0000
committerppedrot2013-09-06 17:18:44 +0000
commitba524ddfaabc80b31a439544de46c40366565ae8 (patch)
treeff4350bc4ec7e225be1b6f9eeb5af83b45ab7f36 /lib/searchstack.ml
parentab7377de0a913ca6218bc7377fab33b8018f8f59 (diff)
Moving Searchstack to CStack, and normalizing names a bit.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16765 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/searchstack.ml')
-rw-r--r--lib/searchstack.ml25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/searchstack.ml b/lib/searchstack.ml
deleted file mode 100644
index 8d160e5723..0000000000
--- a/lib/searchstack.ml
+++ /dev/null
@@ -1,25 +0,0 @@
-(************************************************************************)
-(* v * The Coq Proof Assistant / The Coq Development Team *)
-(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2010 *)
-(* \VV/ **************************************************************)
-(* // * This file is distributed under the terms of the *)
-(* * GNU Lesser General Public License Version 2.1 *)
-(************************************************************************)
-
-type 'a t = 'a list ref
-type ('a,'b) search = [ `Stop of 'b | `Cont of 'a ]
-
-let create () = ref []
-let push x l = l := x :: !l
-let pop l = match !l with [] -> raise Stack.Empty | x::xs -> l := xs; x
-let top l = match !l with [] -> raise Stack.Empty | x::_ -> x
-let find f i l =
- let rec aux i = function
- | [] -> raise Not_found
- | x::xs -> match f i x with `Stop x -> x | `Cont i -> aux i xs in
- aux i !l
-let is_empty l = match !l with [] -> true | _ -> false
-let iter f l = List.iter f !l
-let clear l = l := []
-let length l = List.length !l
-let to_list l = !l