From ac4ba8bbc899c3d3db1f1f5e0592ee419ed92994 Mon Sep 17 00:00:00 2001 From: herbelin Date: Fri, 24 Apr 2009 11:06:46 +0000 Subject: Backporting 12080 (fixing bug #2091 on bad rollback in the "where" clause resulting in stray notations for e.g. variable named "le") and 12083 (fixing bug in as clause of apply in) from trunk. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12103 85f007b7-540e-0410-9357-904b9bb8a0f7 --- library/states.mli | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'library/states.mli') diff --git a/library/states.mli b/library/states.mli index 3deb05658..17f62b512 100644 --- a/library/states.mli +++ b/library/states.mli @@ -26,4 +26,9 @@ val unfreeze : state -> unit val with_heavy_rollback : ('a -> 'b) -> 'a -> 'b +(*s [with_state_protection f x] applies [f] to [x] and restores the + state of the whole system as it was before the evaluation of f *) + +val with_state_protection : ('a -> 'b) -> 'a -> 'b + -- cgit v1.2.3