Message140092
Removed previously attached partial patch, this is complete patch.
Summary:
Added following 3 constants in ctypes:
ctypes.BITFIELD_ALLOCATION_NATIVE
ctypes.BITFIELD_ALLOCATION_GCC
ctypes.BITFIELD_ALLOCATION_MSVC
Setting _bitfield_allocation_ attribute to one of these on a class declaration inheriting from Structure will force specified allocation of the bitfield.
NATIVE is equivalent to not specifying anything.
GCC will do GCC-style allocation (what Python does now on non-Windows)
MSVC will do MSVC-style allocation (what Python does now on Windows)
I added unittests to cover these and ran full suit on both Windows and Linux.
Still have to update documentation to mention this. Will submit diff for that after this gets reviewed. |
|
Date |
User |
Action |
Args |
2011-07-10 22:39:00 | vladris | set | recipients:
+ vladris, terry.reedy, santoso.wijaya |
2011-07-10 22:39:00 | vladris | set | messageid: <1310337540.58.0.852653164775.issue12528@psf.upfronthosting.co.za> |
2011-07-10 22:39:00 | vladris | link | issue12528 messages |
2011-07-10 22:38:59 | vladris | create | |
|