It would be nice if something in Zig could auto-magically generate the zig to c interop call and type declarations. I see there's "translate-c" to help migrate C to Zig, and maybe that's enough. Generally I fall on the side of if a compiler can toss out a type warning, it could certainly give a reasonable solution also. Best-guess with a "// Warning type was guessed" is better than an opaque "RTFM" in most every case…
> It would be nice if something in Zig could auto-magically generate the zig to c interop call and type declarations. Do you mean building a .h file from zig code? The other direction is just @cImport.
I wouldn’t so much pin this on zig as much as the complete clusterfuck that is building c libraries.