[ocaml-ctypes] Less copying, a hybrid approach

Jeremy Yallop yallop at gmail.com
Thu Dec 19 15:55:40 GMT 2013


On 19 December 2013 15:21, Daniel Bünzli <daniel.buenzli at erratique.ch> wrote:
> I would like to get feedback on this approach, I think it should work on both 32 bits and 64 bits platform. To make it more easy to implement the only thing that is missing in ctypes now is `val ptr_to_raw_address : unit ptr -> int64`. In my example below I bypassed that by directly using the "ctypes_dlsym" stub.

It looks fine to me.  I've added the missing function here:

   https://github.com/ocamllabs/ocaml-ctypes/pull/116

> value mlapp_str_int (value *fun_ptr, value *str)

Shouldn't this be

   value mlapp_str_int (value fun_ptr, value str)

?


More information about the Ctypes mailing list