diff options
author | 2001-02-16 15:58:48 +0000 | |
---|---|---|
committer | 2001-02-16 15:58:48 +0000 | |
commit | 3c248785237d8dea037da274f4acc0229894de93 (patch) | |
tree | 4501aca5e725d5f62ffd9f959a8956f30bf432eb /contrib/omega | |
parent | 649e7e98e0067a7ae2a3990b9629dcec66b47497 (diff) |
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
Diffstat (limited to 'contrib/omega')
-rw-r--r-- | contrib/omega/coq_omega.ml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/omega/coq_omega.ml b/contrib/omega/coq_omega.ml index fec7fb701..00ce6d207 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") |