Issue 46 in ctypesgen: Support gcc __attribute__((__packed__))

28 views
Skip to first unread message

codesite...@google.com

unread,
Oct 10, 2013, 9:26:48 AM10/10/13
to ctyp...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 46 by johan.de...@gmail.com: Support gcc
__attribute__((__packed__))
http://code.google.com/p/ctypesgen/issues/detail?id=46

This tool works like a charm, my only issue is that packed data structures
does not get recognised.

The .c file:
struct __attribute__((__packed__)) {

Should become:

class struct_something(Structure):
__pack__ = 1
pass

In the .py file. Ctypes already have support for this. So i guess it's a
simple matter of finding the attribute in the parser.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

codesite...@google.com

unread,
Nov 7, 2014, 2:24:53 AM11/7/14
to ctyp...@googlegroups.com

Comment #1 on issue 46 by johan.de...@gmail.com: Support gcc
__attribute__((__packed__))
https://code.google.com/p/ctypesgen/issues/detail?id=46

I just want to bump this issue. This is still a badly needed feature.
Reply all
Reply to author
Forward
0 new messages