Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 37 by
sigma...@gmail.com: Feature request: support #pragma pack
http://code.google.com/p/ctypesgen/issues/detail?id=37
First of all I'd like to say thanks for creating such a useful project. I
am using it to generate a python ctypes interface for the GSSAPI library on
Mac OS X and have found one place I need to manually edit the generated
code - the header for the library contains:
#pragma pack(push,2)
... struct definitions ...
#pragma pack(pop)
and when ctypesgen creates the Structure classes for each struct it omits
to add a _pack_=2 class attribute, so the alignment of the structs isn't
right.
Editing the generated code fixes the problem but it would be great to have
support for #pragma pack in ctypesgen.