ppx_cstubs icon indicating copy to clipboard operation
ppx_cstubs copied to clipboard

Support C bitfields

Open XVilka opened this issue 5 years ago • 1 comments

See also https://github.com/mirage/ocaml-cstruct/issues/205 and https://github.com/mirage/ocaml-cstruct/pull/215 for my attempt to add them into the Cstruct library. Hopefully they can be helpful.

XVilka avatar Jun 19 '19 07:06 XVilka

It would have to been added to ctypes itself. ppx_cstubs generates code for the memory representation and runtime of ctypes. And currently ctypes doesn't support bit fields, see https://github.com/ocamllabs/ocaml-ctypes/issues/226

fdopen avatar Jun 19 '19 11:06 fdopen