summaryrefslogtreecommitdiff
path: root/library/states.mli
diff options
context:
space:
mode:
authorGravatar Samuel Mimram <samuel.mimram@ens-lyon.org>2004-07-28 21:54:47 +0000
committerGravatar Samuel Mimram <samuel.mimram@ens-lyon.org>2004-07-28 21:54:47 +0000
commit6b649aba925b6f7462da07599fe67ebb12a3460e (patch)
tree43656bcaa51164548f3fa14e5b10de5ef1088574 /library/states.mli
Imported Upstream version 8.0pl1upstream/8.0pl1
Diffstat (limited to 'library/states.mli')
-rw-r--r--library/states.mli29
1 files changed, 29 insertions, 0 deletions
diff --git a/library/states.mli b/library/states.mli
new file mode 100644
index 00000000..70018180
--- /dev/null
+++ b/library/states.mli
@@ -0,0 +1,29 @@
+(************************************************************************)
+(* 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: states.mli,v 1.6.16.1 2004/07/16 19:30:36 herbelin Exp $ i*)
+
+(*s States of the system. In that module, we provide functions to get
+ and set the state of the whole system. Internally, it is done by
+ freezing the states of both [Lib] and [Summary]. We provide functions
+ to write and restore state to and from a given file. *)
+
+val intern_state : string -> unit
+val extern_state : string -> unit
+
+type state
+val freeze : unit -> state
+val unfreeze : state -> unit
+
+(*s Rollback. [with_heavy_rollback f x] applies [f] to [x] and restores the
+ state of the whole system as it was before the evaluation if an exception
+ is raised. *)
+
+val with_heavy_rollback : ('a -> 'b) -> 'a -> 'b
+
+