From 3c248785237d8dea037da274f4acc0229894de93 Mon Sep 17 00:00:00 2001 From: herbelin Date: Fri, 16 Feb 2001 15:58:48 +0000 Subject: ident au lieu de string pour le nom de base de qualid git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1395 85f007b7-540e-0410-9357-904b9bb8a0f7 --- contrib/omega/coq_omega.ml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'contrib/omega') diff --git a/contrib/omega/coq_omega.ml b/contrib/omega/coq_omega.ml index fec7fb7018..00ce6d2078 100644 --- a/contrib/omega/coq_omega.ml +++ b/contrib/omega/coq_omega.ml @@ -213,10 +213,11 @@ let recognize_number t = let constant dir s = let dir = "Coq"::dir in + let id = id_of_string s in try - Declare.global_reference_in_absolute_module dir (id_of_string s) + Declare.global_reference_in_absolute_module dir id with Not_found -> - anomaly ("Coq_omega: cannot find "^(string_of_qualid (make_qualid dir s))) + anomaly ("Coq_omega: cannot find "^(string_of_qualid (make_qualid dir id))) let zarith_constant dir = constant ("Zarith"::dir) @@ -368,15 +369,16 @@ let build_coq_eq = build_coq_eq_data.eq open Closure let make_coq_path dir s = let dir = "Coq"::dir in + let id = id_of_string s in let ref = - try Nametab.locate_in_absolute_module dir (id_of_string s) + try Nametab.locate_in_absolute_module dir id with Not_found -> - anomaly("Coq_omega: cannot find "^(string_of_qualid (make_qualid dir s))) + anomaly("Coq_omega: cannot find "^(string_of_qualid(make_qualid dir id))) in match ref with | ConstRef sp -> EvalConstRef sp | _ -> anomaly ("Coq_omega: "^ - (string_of_qualid (make_qualid dir s))^ + (string_of_qualid (make_qualid dir id))^ " is not a constant") let sp_Zs = lazy (make_coq_path ["Zarith";"zarith_aux"] "Zs") -- cgit v1.2.3