Carp icon indicating copy to clipboard operation
Carp copied to clipboard

[carp-header-parse] parse typedefs and generate corresponding `register-type` calls

Open scolsen opened this issue 4 years ago • 0 comments

carp-header-parse doesn't yet support typedefs, but we can support it, and generate corresponding register-type calls.

For basic typedefs e.g. typedef int Foo; we can generate an "opaque" register-type call (register-type Foo).

For structs, struct Foo {int bar int foo} we'll generate field bindings too (register-type Foo [bar Int foo Int]).

scolsen avatar Jan 04 '22 15:01 scolsen