diff options
| author | Pierre-Marie Pédrot | 2018-10-31 11:53:52 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2018-10-31 11:53:52 +0100 |
| commit | 47306462b9ddba0bfe43a2777e45549e0f7e3923 (patch) | |
| tree | 159abe3762b3b7ae951e339d6f18fe76b14f93ae /library/libobject.ml | |
| parent | 310f8fa900bc0d25a05f6409d941708a74aca60b (diff) | |
| parent | dccaed2452e544308b46f0c73ffd4f542ef4c8c6 (diff) | |
Merge PR #8825: [libobject] Move object_name next to object definition.
Diffstat (limited to 'library/libobject.ml')
| -rw-r--r-- | library/libobject.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/library/libobject.ml b/library/libobject.ml index 79a3fed1b9..ea19fbb90b 100644 --- a/library/libobject.ml +++ b/library/libobject.ml @@ -16,6 +16,12 @@ module Dyn = Dyn.Make () type 'a substitutivity = Dispose | Substitute of 'a | Keep of 'a | Anticipate of 'a +type object_name = Libnames.full_path * Names.KerName.t + +(* let make_oname (dirpath,(mp,dir)) id = *) +let make_oname { obj_dir; obj_mp } id = + Names.(make_path obj_dir id, KerName.make obj_mp (Label.of_id id)) + type 'a object_declaration = { object_name : string; cache_function : object_name * 'a -> unit; |
