aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2003-11-12 19:09:43 +0000
committerherbelin2003-11-12 19:09:43 +0000
commite0aa42c93554d2037b0a87bace449c72fb8cd5ee (patch)
treed8bf6bc8bafe25b73fbbba6648c8a74740c8c156
parent45583eb099a5a9725db407dbdebc1df7f40b4f31 (diff)
Mise en place systeme de renommage des noms de variables liees dans la bibliotheque standard; Renommage zarith_aux, fast_integer
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4868 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--translate/ppvernacnew.ml15
1 files changed, 13 insertions, 2 deletions
diff --git a/translate/ppvernacnew.ml b/translate/ppvernacnew.ml
index c7602c2b0f..42c518e5a9 100644
--- a/translate/ppvernacnew.ml
+++ b/translate/ppvernacnew.ml
@@ -629,7 +629,7 @@ let rec pr_vernac = function
(match bl with
| [] -> mt()
| _ -> error "Statements with local binders no longer supported")
- ++ str":" ++ spc() ++ pr_type c)
+ ++ str":" ++ spc() ++ pr_type (rename_bound_variables id c))
| VernacEndProof Admitted -> str"Admitted"
| VernacEndProof (Proved (opac,o)) -> (match o with
| None -> if opac then str"Qed" else str"Defined"
@@ -1076,9 +1076,20 @@ let pr_vernac = function
"Xml"; "Extraction"; "Tauto"; "Setoid_replace";"Elimdep";
"DatatypesSyntax"; "LogicSyntax"; "Logic_TypeSyntax";
"SpecifSyntax"; "PeanoSyntax"; "TypeSyntax"; "PolyListSyntax";
- "Zsyntax";"zarith_aux"] ->
+ "Zsyntax"] ->
warning ("Forgetting obsolete module "^(string_of_id r));
mt()
+ | VernacRequire (exp,spe,[Ident(_,r)]) when
+ (* Renamed modules *)
+ List.mem (string_of_id r) ["zarith_aux";"fast_integer"] ->
+ warning ("Replacing obsolete module "^(string_of_id r)^" with ZArith");
+ (str "Require" ++ pr_require_token exp ++ spc() ++
+ (match spe with
+ | None -> mt()
+ | Some flag ->
+ (if flag then str"Specification" else str"Implementation") ++
+ spc ()) ++
+ str "ZArith.")
| VernacImport (false,[Libnames.Ident (_,a)]) when
(* Pour ceux qui ont utilisé la couche "Import *_scope" de compat *)
let a = Names.string_of_id a in