diff options
| author | herbelin | 2006-09-05 17:09:16 +0000 |
|---|---|---|
| committer | herbelin | 2006-09-05 17:09:16 +0000 |
| commit | cecd63900e35eeeee5e8f75edc5ea57d7ce3cb91 (patch) | |
| tree | c5235bed14963a1f71e0ab3c271bb9e468cf1ced /lib | |
| parent | d2420e3a0716243918dd04cb04a776837366299d (diff) | |
Code mort
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9125 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/stamps.ml | 28 | ||||
| -rw-r--r-- | lib/stamps.mli | 28 |
2 files changed, 0 insertions, 56 deletions
diff --git a/lib/stamps.ml b/lib/stamps.ml deleted file mode 100644 index 16611500a3..0000000000 --- a/lib/stamps.ml +++ /dev/null @@ -1,28 +0,0 @@ -(************************************************************************) -(* v * The Coq Proof Assistant / The Coq Development Team *) -(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *) -(* \VV/ **************************************************************) -(* // * This file is distributed under the terms of the *) -(* * GNU Lesser General Public License Version 2.1 *) -(************************************************************************) - -(* $Id$ *) - -let new_stamp = - let stamp_ctr = ref 0 in - fun () -> incr stamp_ctr; !stamp_ctr - -type 'a timestamped = { stamp : int; ed : 'a } - -let ts_stamp st = st.stamp -let ts_mod f st = { stamp = new_stamp(); ed = f st.ed } -let ts_it st = st.ed -let ts_mk v = { stamp = new_stamp(); ed = v} -let ts_eq st1 st2 = st1.stamp = st2.stamp - -type 'a idstamped = 'a timestamped - -let ids_mod f st = { stamp = st.stamp; ed = f st.ed} -let ids_it = ts_it -let ids_mk = ts_mk -let ids_eq = ts_eq diff --git a/lib/stamps.mli b/lib/stamps.mli deleted file mode 100644 index 1726b2a595..0000000000 --- a/lib/stamps.mli +++ /dev/null @@ -1,28 +0,0 @@ -(************************************************************************) -(* v * The Coq Proof Assistant / The Coq Development Team *) -(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *) -(* \VV/ **************************************************************) -(* // * This file is distributed under the terms of the *) -(* * GNU Lesser General Public License Version 2.1 *) -(************************************************************************) - -(*i $Id$ i*) - -(* Time stamps. *) - -type 'a timestamped - -(* [ts_mod] gives a ['b timestamped] with a new stamp *) -val ts_mod : ('a -> 'b) -> 'a timestamped -> 'b timestamped -val ts_it : 'a timestamped -> 'a -val ts_mk : 'a -> 'a timestamped -val ts_eq : 'a timestamped -> 'a timestamped -> bool -val ts_stamp : 'a timestamped -> int - -type 'a idstamped - -(* [ids_mod] gives a ['b stamped] with the same stamp *) -val ids_mod : ('a -> 'b) -> 'a idstamped -> 'b idstamped -val ids_it : 'a idstamped -> 'a -val ids_mk : 'a -> 'a idstamped -val ids_eq : 'a idstamped -> 'a idstamped -> bool |
