aboutsummaryrefslogtreecommitdiff
path: root/vernac/vernacstate.mli
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-07-02 18:56:01 +0200
committerEmilio Jesus Gallego Arias2020-08-27 18:59:47 +0200
commit60d2e06769abee8e7ebc9b9cc9febf05c8f8994a (patch)
treedbb8f576471b044dd65724dc10a85dcef519ffbb /vernac/vernacstate.mli
parenta87c09c13028502ea86a553724a4131c5246145a (diff)
[state] A few nits after consolidation of state.
We remove some dead aliases and add some documentation to the interface file.
Diffstat (limited to 'vernac/vernacstate.mli')
-rw-r--r--vernac/vernacstate.mli14
1 files changed, 11 insertions, 3 deletions
diff --git a/vernac/vernacstate.mli b/vernac/vernacstate.mli
index 16fab3782b..5efdb3cc68 100644
--- a/vernac/vernacstate.mli
+++ b/vernac/vernacstate.mli
@@ -64,15 +64,23 @@ val unfreeze_interp_state : t -> unit
(* WARNING: Do not use, it will go away in future releases *)
val invalidate_cache : unit -> unit
-(* STM-specific state handling *)
+(** STM-specific state handling *)
module Stm : sig
+
+ (** Proof state + meta/evar counters *)
type pstate
- (** Surgery on states related to proof state *)
val pstate : t -> pstate
val set_pstate : t -> pstate -> t
- val non_pstate : t -> Summary.frozen * Lib.frozen
+
+ (** Rest of the state, unfortunately this is used in low-level so we need to expose it *)
+ type non_pstate = Summary.frozen * Lib.frozen
+ val non_pstate : t -> non_pstate
+
+ (** Checks if two states have the same Environ.env (physical eq) *)
val same_env : t -> t -> bool
+
+ (** Call [Lib.drop_objects] on the state *)
val make_shallow : t -> t
end