package ocaml-compiler
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Official release of OCaml 5.3.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocaml-5.3.0.tar.gz
sha256=22c1dd9de21bf43b62d1909041fb5fad648905227bf69550a6a6bef31e654f38
doc/compiler-libs.common/Linkdeps/index.html
Module Linkdeps
The state of the linking check. It keeps track of compilation units provided and required so far.
val create : complete:bool -> tcreate ~complete returns an empty state. If complete is true, missing compilation units will be treated as errors.
val add :
t ->
filename:filename ->
compunit:compunit ->
provides:compunit list ->
requires:compunit list ->
unitadd t ~filename ~compunit ~provides ~requires registers the compilation unit compunit found in filename to t.
providesare units and sub-units provided bycompunitrequiresare units required bycompunit
add should be called in reverse topological order.
required t compunit returns true if compunit is a dependency of previously added compilation units.
type error = | Missing_implementations of (compunit * compunit_and_source list) list| Wrong_link_order of (compunit_and_source * compunit_and_source list) list| Multiple_definitions of (compunit * filename list) list
check t should be called once all the compilation units to be linked have been added. It returns some error if:
- There are some missing implementations and
completeistrue - Some implementation appear before their dependencies
val report_error :
print_filename:string Format_doc.printer ->
error Format_doc.format_printerval report_error_doc :
print_filename:string Format_doc.printer ->
error Format_doc.printer sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>