From 7dd28b4772251af6ae3641ec63a8251153915e21 Mon Sep 17 00:00:00 2001 From: letouzey Date: Tue, 26 Feb 2013 18:52:05 +0000 Subject: Names: shortcuts for building {kn, constant, mind} with empty sections git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16249 85f007b7-540e-0410-9357-904b9bb8a0f7 --- library/globnames.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'library/globnames.ml') diff --git a/library/globnames.ml b/library/globnames.ml index 50c91cc05..a04cdea8c 100644 --- a/library/globnames.ml +++ b/library/globnames.ml @@ -138,9 +138,9 @@ let constr_of_global_or_constr = function (** {6 Temporary function to brutally form kernel names from section paths } *) -let encode_mind dir id = make_mind (MPfile dir) DirPath.empty (Label.of_id id) +let encode_mind dir id = MutInd.make2 (MPfile dir) (Label.of_id id) -let encode_con dir id = make_con (MPfile dir) DirPath.empty (Label.of_id id) +let encode_con dir id = Constant.make2 (MPfile dir) (Label.of_id id) let check_empty_section dp = if not (DirPath.is_empty dp) then -- cgit v1.2.3