[C++-sig] [Py++] ctypes generator ignores bit fields

Roman Yakovenko roman.yakovenko at gmail.com
Sun Dec 27 20:16:21 CET 2009


On Sun, Dec 27, 2009 at 10:10 AM, Roman Yakovenko
<roman.yakovenko at gmail.com> wrote:
> On Sun, Dec 27, 2009 at 2:46 AM, Nikolaus Rath <Nikolaus at rath.org> wrote:
>> Hi,
>>
>> Thanks for looking into this. I'm afraid the fix for the CFUNCTYPE vs
>> POINTER(CFUNCTYPE) issue is not completely working though.
>>
>> The small testcase that I send around indeed generates correct code with the
>> new version. However, if you try the same code on a more complex header
>> (like the attached one, needs fuse headers to be installed) it still
>> produces the wrong result:
>>
>>
>> fuse_lowlevel_ops._fields_ = [ #class fuse_lowlevel_ops
>>    ("init", ctypes.POINTER( ctypes.CFUNCTYPE( None, ctypes.c_void_p, ctypes.POINTER( fuse_conn_info ) ) )),
>>    ("destroy", ctypes.POINTER( ctypes.CFUNCTYPE( None, ctypes.c_void_p
>>    ) )),
>> [...]
>
> :-(. I will take a look on this today.

Nikolaus, unfortunately I can't reproduce the error. I attached the
generated file and the "source" file.

Can you investigate a little bit more?

Thanks.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fuse_ctypes.h
Type: unknown/unknown
Size: 739 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20091227/3c988031/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fuse_ctypes.py
Type: text/x-python
Size: 17720 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20091227/3c988031/attachment-0001.py>


More information about the Cplusplus-sig mailing list