diff options
| author | Emilio Jesus Gallego Arias | 2020-05-15 02:42:38 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2020-06-26 14:38:10 +0200 |
| commit | 1f121ebf2990dc25899f2f3eb138eddd147483cf (patch) | |
| tree | 4986eb05a43c4912f0b85fae555c48c09fedee89 /vernac/comDefinition.ml | |
| parent | 671004aac9f9d3b70ef41f81e7b3ea8f190971ec (diff) | |
[declare] Refactor constant information into a record.
This improves the interface, and allows even more sealing of the API.
This is yet work in progress.
Diffstat (limited to 'vernac/comDefinition.ml')
| -rw-r--r-- | vernac/comDefinition.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vernac/comDefinition.ml b/vernac/comDefinition.ml index a791e67bb1..c89de88e95 100644 --- a/vernac/comDefinition.ml +++ b/vernac/comDefinition.ml @@ -116,9 +116,9 @@ let do_definition ?hook ~name ~scope ~poly ~kind udecl bl red_option c ctypopt = interp_definition ~program_mode udecl bl ~poly red_option c ctypopt in let kind = Decls.IsDefinition kind in + let info = Declare.CInfo.make ~scope ~kind ?hook ~opaque:false ~impargs ~udecl ~poly () in let _ : Names.GlobRef.t = - Declare.declare_definition ~name ~scope ~kind ?hook ~impargs - ~opaque:false ~poly evd ~udecl ~types ~body + Declare.declare_definition ~name ~info ~types ~body evd in () let do_definition_program ?hook ~name ~scope ~poly ~kind udecl bl red_option c ctypopt = |
