package lintcstubs-arity
Generate headers for C bindings
Install
Dune Dependency
Authors
Maintainers
Sources
lintcstubs-arity-0.1.0.tbz
sha256=ef40d8e4296142d51716ea8e4670cbc293effa86ac7b743a53b24719ac9ac5f9
sha512=e9867ba83596f682583a21cb7be2a8c36842fd96b2f9ca0f3406a6383df872a191f7bf8871d26969ec1b6ef898b8da8df1011e686637407f0e91cf77dab9557a
Description
Generates .h files from 'external' declarations in .ml files. Can be used to spot mismatches in number of arguments between C primitive declared in OCaml and its implementation in the .c file.
Published: 20 Jul 2023
README
README.md
Install:
opam install lintcstubs-arity
Usage:
lintcstubs_arity ocamlfile.ml >primitives.h
ocamlfile.ml
is an OCaml file that declares a C primitive as defined in the manual. Once primitives.h
is generated you can include it in the .c
files that implement the OCaml primitives defined in ocamlfile.ml
.
This can help detect simple mismatches between the number of arguments declared in the .ml
file and implemented in the .c
file. It is recommended to include the above generation step in the build process of the C stubs.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page