Hi all, gcc allows to set alignments for typedefs like: typedef double MyDouble __attribute__((__aligned__(8))); Now if i use this new type within a structure: struct s { char c; MyDouble d; }; The following holds: sizeof(struct s) == 16 and offsetof(struct s, d) == 8. ctypes doesn't seem to support this, although i saw a 'padded' function on the ctypes-users mailinglist which dynamically insert padding fields. I would consider this more or less a hack :) What do you think about adding a special attribute '_align_' which, if set for a data type overrides the hardcoded align property of that type? -- Michael
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4