diff options
author | filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7> | 1999-09-28 14:40:55 +0000 |
---|---|---|
committer | filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7> | 1999-09-28 14:40:55 +0000 |
commit | 9189bfc457415bbc0b47d2c3c3e1e5d07153f398 (patch) | |
tree | 254185bfd934bb7f476977837e38a46726ac4746 /library/lib.mli | |
parent | 3637df25c6201e7c593472798689edab656bab6d (diff) |
juste l'interface de Discharge
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@85 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/lib.mli')
-rw-r--r-- | library/lib.mli | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/library/lib.mli b/library/lib.mli index 92c2937b4..33f6e9056 100644 --- a/library/lib.mli +++ b/library/lib.mli @@ -13,14 +13,12 @@ open Summary type node = | Leaf of obj - | OpenedSection of string * module_p - | ClosedSection of string * module_p * library_segment + | OpenedSection of string + | ClosedSection of string * library_segment | FrozenState of Summary.frozen and library_segment = (section_path * node) list -and module_p = bool - type library_entry = section_path * node @@ -33,21 +31,30 @@ val add_anonymous_leaf : obj -> unit val contents_after : section_path option -> library_segment -(*s Opening and closing a section. The boolean in [open_section] indicates - a module. *) +(*s Opening and closing a section. *) -val open_section : string -> bool -> section_path +val open_section : string -> section_path val close_section : string -> unit val make_path : identifier -> path_kind -> section_path val cwd : unit -> string list +val open_module : string -> unit +val export_module : unit -> library_segment + (*s Backtracking (undo). *) val reset_to : section_path -> 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 + + (*s We can get and set the state of the operations (used in [States]). *) type frozen |