diff options
author | 2011-11-02 18:59:57 +0000 | |
---|---|---|
committer | 2011-11-02 18:59:57 +0000 | |
commit | b359ef0ffad7fd1fc0e4db99fc1e38a1389802bc (patch) | |
tree | 3dd67d0668397bd597f1b001cf501d84a827dd3e /pretyping/classops.ml | |
parent | 5625678dcc3e35fb2799a0a9d1fd8d3daa764db3 (diff) |
Add type annotations around all calls to Libobject.declare_object
These annotations are purely optional, but could be quite helpful
when trying to understand the code, and in particular trying to
trace which which data-structure may end in the libobject part
of a vo. By the way, we performed some code simplifications :
- in Library, a part of the REQUIRE objects was unused.
- in Declaremods, we removed some checks that were marked as
useless, this allows to slightly simplify the stored objects.
To investigate someday : in recordops, the RECMETHODS is storing
some evar_maps. This is ok for the moment, but might not be in
the future (cf previous commit on auto hints). This RECMETHODS
was not detected by my earlier tests : not used in the stdlib ?
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14627 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/classops.ml')
-rw-r--r-- | pretyping/classops.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pretyping/classops.ml b/pretyping/classops.ml index f6eaaa665..03ae6e763 100644 --- a/pretyping/classops.ml +++ b/pretyping/classops.ml @@ -405,7 +405,10 @@ let discharge_coercion (_,(coe,stre,isid,cls,clt,ps)) = let classify_coercion (coe,stre,isid,cls,clt,ps as obj) = if stre = Local then Dispose else Substitute obj -let inCoercion = +type coercion_obj = + coe_typ * Decl_kinds.locality * bool * cl_typ * cl_typ * int + +let inCoercion : coercion_obj -> obj = declare_object {(default_object "COERCION") with open_function = open_coercion; load_function = load_coercion; |