diff options
author | ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-03-26 15:17:48 +0000 |
---|---|---|
committer | ppedrot <ppedrot@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-03-26 15:17:48 +0000 |
commit | 717d6edc19ddab9339b00c3df78043f532039898 (patch) | |
tree | c9f8979f100d8ccd2abab231671ec33e4f57e4f6 /library/loadpath.ml | |
parent | a7a27c88f2d670d4b20f7dc13e90f6e10600df61 (diff) |
Synchronizing loadpath with the backtrack mechanism.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16373 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/loadpath.ml')
-rw-r--r-- | library/loadpath.ml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/library/loadpath.ml b/library/loadpath.ml index 44b53c09a..315cbf96e 100644 --- a/library/loadpath.ml +++ b/library/loadpath.ml @@ -20,12 +20,18 @@ type t = { path_is_root : bool; } +let load_paths = ref ([] : t list) + +let () = Summary.declare_summary "LOADPATHS" { + Summary.freeze_function = (fun () -> !load_paths); + Summary.unfreeze_function = (fun l -> load_paths := l); + Summary.init_function = (fun () -> load_paths := []); +} + let logical p = p.path_logical let physical p = p.path_physical -let load_paths = ref ([] : t list) - let get_load_paths () = !load_paths let get_paths () = List.map physical !load_paths |