aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/extraction/scheme.ml
diff options
context:
space:
mode:
authorGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-10-30 14:16:06 +0000
committerGravatar letouzey <letouzey@85f007b7-540e-0410-9357-904b9bb8a0f7>2012-10-30 14:16:06 +0000
commita14e4c0670eda14686a6fcf24b909f9fc3e1e3d3 (patch)
tree893b2e601fd9b1f04ae17e3d79c69eff91213b42 /plugins/extraction/scheme.ml
parent6cd21c58557309919083610caff4a0b65a5c041f (diff)
Extraction: avoid initial strange empty comments after Arnaud's hack
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15942 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/extraction/scheme.ml')
-rw-r--r--plugins/extraction/scheme.ml10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/extraction/scheme.ml b/plugins/extraction/scheme.ml
index a0a59e73c..bfbcc7b0a 100644
--- a/plugins/extraction/scheme.ml
+++ b/plugins/extraction/scheme.ml
@@ -28,10 +28,14 @@ let keywords =
let pp_comment s = str";; "++h 0 s++fnl ()
+let pp_header_comment = function
+ | None -> mt ()
+ | Some com -> pp_comment com ++ fnl () ++ fnl ()
+
let preamble _ comment _ usf =
- pp_comment comment ++ fnl () ++
+ pp_header_comment comment ++
str ";; This extracted scheme code relies on some additional macros\n" ++
- str ";; available at http://www.pps.jussieu.fr/~letouzey/scheme\n" ++
+ str ";; available at http://www.pps.univ-paris-diderot.fr/~letouzey/scheme\n" ++
str "(load \"macros_extr.scm\")\n\n" ++
(if usf.mldummy then str "(define __ (lambda (_) __))\n\n" else mt ())
@@ -224,7 +228,7 @@ let scheme_descr = {
preamble = preamble;
pp_struct = pp_struct;
sig_suffix = None;
- sig_preamble = (fun _ s _ _ -> pp_comment s ++ fnl () ++ fnl ());
+ sig_preamble = (fun _ _ _ _ -> mt ());
pp_sig = (fun _ -> mt ());
pp_decl = pp_decl;
}