diff options
| author | letouzey | 2012-05-29 11:09:15 +0000 |
|---|---|---|
| committer | letouzey | 2012-05-29 11:09:15 +0000 |
| commit | 6d961ac24305f26e896b602bdabe0e9c3c7cbf05 (patch) | |
| tree | dadc934c94e026149da2ae08144af769f4e9cb6c /plugins/romega | |
| parent | 255f7938cf92216bc134099c50bd8258044be644 (diff) | |
global_reference migrated from Libnames to new Globnames, less deps in grammar.cma
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15384 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'plugins/romega')
| -rw-r--r-- | plugins/romega/const_omega.ml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/romega/const_omega.ml b/plugins/romega/const_omega.ml index 298b248500..c1cea8aacf 100644 --- a/plugins/romega/const_omega.ml +++ b/plugins/romega/const_omega.ml @@ -31,11 +31,11 @@ let destructurate t = let c, args = Term.decompose_app t in match Term.kind_of_term c, args with | Term.Const sp, args -> - Kapp (string_of_global (Libnames.ConstRef sp), args) + Kapp (string_of_global (Globnames.ConstRef sp), args) | Term.Construct csp , args -> - Kapp (string_of_global (Libnames.ConstructRef csp), args) + Kapp (string_of_global (Globnames.ConstructRef csp), args) | Term.Ind isp, args -> - Kapp (string_of_global (Libnames.IndRef isp), args) + Kapp (string_of_global (Globnames.IndRef isp), args) | Term.Var id,[] -> Kvar(Names.string_of_id id) | Term.Prod (Names.Anonymous,typ,body), [] -> Kimp(typ,body) | Term.Prod (Names.Name _,_,_),[] -> @@ -48,9 +48,9 @@ let dest_const_apply t = let f,args = Term.decompose_app t in let ref = match Term.kind_of_term f with - | Term.Const sp -> Libnames.ConstRef sp - | Term.Construct csp -> Libnames.ConstructRef csp - | Term.Ind isp -> Libnames.IndRef isp + | Term.Const sp -> Globnames.ConstRef sp + | Term.Construct csp -> Globnames.ConstructRef csp + | Term.Ind isp -> Globnames.IndRef isp | _ -> raise Destruct in Nametab.basename_of_global ref, args |
