Closed kit-ty-kate closed 4 years ago
For consistency, since we no longer support OCaml < 4.06 here, this would be a good time to also remove the backward-compatible #if defined(Bytes_val)
in lib/bindings/solo5_net_stubs.c
? Grepping the C stubs for other uses of String_val
doesn't show anything else that needs changing.
CI is now green. This is ready to merge.
ocaml-freestanding 0.5.0 which this depends on has not yet shown up in the OPAM repository, so waiting for that.
I'm not sure to understand, ocaml-freestanding.0.5.0
is accessible and CI succeeds because of that. What's the issue?
Sorry, I didn't realise I could use the git version of ocaml/opam-repository directly.
I've rebased this on master and force-pushed to your branch, will merge once the CI goes green on the result.
In OCaml 4.10 the type of
String_val
changes fromchar*
toconst char*
.Bytes_val
should be used instead and it is compatible with older versions since mirage-solo5 requires at least OCaml 4.06 andBytes_val
was added in OCaml 4.06.