aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins
diff options
context:
space:
mode:
authorGravatar pboutill <pboutill@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-08-05 23:13:18 +0000
committerGravatar pboutill <pboutill@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-08-05 23:13:18 +0000
commitc8326c6365bb7b07d3c2fa86757ba364c5879dc5 (patch)
treeb91575c76dd7b9fe12ec45050e6b9a4051096698 /plugins
parentbead69d09207e9624f37853ce63b695fe7ff6e87 (diff)
Dump references in Extraction
Patch by Adam Chilipala. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15682 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins')
-rw-r--r--plugins/extraction/extract_env.ml8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/extraction/extract_env.ml b/plugins/extraction/extract_env.ml
index 4aa6eaa1c..82ddf46a2 100644
--- a/plugins/extraction/extract_env.ml
+++ b/plugins/extraction/extract_env.ml
@@ -574,7 +574,13 @@ let separate_extraction lr =
(*s Simple extraction in the Coq toplevel. The vernacular command
is \verb!Extraction! [qualid]. *)
-let simple_extraction r = match locate_ref [r] with
+let dump_global r =
+ let gr = Smartlocate.global_with_alias r in
+ Dumpglob.add_glob (loc_of_reference r) gr
+
+let simple_extraction r =
+ dump_global r;
+ match locate_ref [r] with
| ([], [mp]) as p -> full_extr None p
| [r],[] ->
init false false;