ppx_cstubs
ppx_cstubs copied to clipboard
Support C bitfields
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.
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