From c8326c6365bb7b07d3c2fa86757ba364c5879dc5 Mon Sep 17 00:00:00 2001 From: pboutill Date: Sun, 5 Aug 2012 23:13:18 +0000 Subject: 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 --- plugins/extraction/extract_env.ml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/extraction/extract_env.ml b/plugins/extraction/extract_env.ml index 4aa6eaa1c5..82ddf46a2d 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; -- cgit v1.2.3