The name isn't great, the available thunks are too few, the known types are too simple, and it has a tendency to rebuild the C files every time you call
Alternately, tell me how cool P5NCI::Library actually is in practice.
Thanks to jplindstrom for pointing me at Win32::API which already handles structs; I think I can modify that code to work on other platforms. What's a little sizeof between friends?
Using C types in Perl (Score:1)
Thanks to jplindstrom for pointing me at Win32::API which already handles structs; I think I can modify that code to work on other platforms. What's a little sizeof between friends?
What I don't like about the way Win32::API handles structs is that it forces you to write the spec for each struct manually.
You probably also want to have a look at Convert::Binary::C [cpan.org], which allows for directly parsing C header files and using that information to pack/unpack binary data. It comes with a fully integrated C p