ó o®¸Qc @s÷ddlZddlZddlTgZgZejdkrFeZneZxre e e e e eeeeeg D]LZdefd„ƒYZdefd„ƒYZejeƒejeƒqqWdejfd „ƒYZed króejƒndS( iÿÿÿÿN(t*tlittletXcBs&eZdZdefdefgZRS(itpadtvalue(t__name__t __module__t_pack_tc_bytettypt_fields_(((s;/sys/lib/python2.7/ctypes/test/test_unaligned_structures.pyRs tYcBs&eZdZdefdefgZRS(iRR(RRRRR R (((s;/sys/lib/python2.7/ctypes/test/test_unaligned_structures.pyR s tTestStructurescBseZd„Zd„ZRS(cCsPxItD]A}|j|jjdƒ|ƒ}d|_|j|jdƒqWdS(Nii(t structurest assertEqualRtoffset(tselfR to((s;/sys/lib/python2.7/ctypes/test/test_unaligned_structures.pyt test_natives    cCsPxItD]A}|j|jjdƒ|ƒ}d|_|j|jdƒqWdS(Nii(tbyteswapped_structuresRRR(RR R((s;/sys/lib/python2.7/ctypes/test/test_unaligned_structures.pyt test_swapped$s    (RRRR(((s;/sys/lib/python2.7/ctypes/test/test_unaligned_structures.pyR s t__main__(tsystunittesttctypesR Rt byteordertBigEndianStructuretSwappedStructuretLittleEndianStructuretc_shorttc_inttc_longt c_longlongtc_floattc_doubletc_ushorttc_uinttc_ulongt c_ulonglongR t StructureRR tappendtTestCaseR Rtmain(((s;/sys/lib/python2.7/ctypes/test/test_unaligned_structures.pyts