Current Path : /usr/local/lib/python2.5/ctypes/test/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/lib/python2.5/ctypes/test/test_pointers.pyc |
³ò h”Rc @ s® d d k Z d d k Td d k Z e e e e e e e e e e e e g Z e e e e e e e e e e e e g Z d e i f d „ ƒ YZ e d j o e i ƒ n d S( iÿÿÿÿN( t *t PointersTestCasec B sk e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C sO d t t ƒ f d „ ƒ Y} t t ƒ t d ƒ ƒ | i t | t d ƒ ƒ d S( Nt Ac B s e Z RS( ( t __name__t __module__( ( ( s5 /usr/local/lib/python2.5/ctypes/test/test_pointers.pyR s i i! ( t POINTERt c_ulongt failUnlessRaisest TypeError( t selfR ( ( s5 /usr/local/lib/python2.5/ctypes/test/test_pointers.pyt test_pointer_crash s c C sª t t i ƒ } | i } t | _ t d ƒ } | t | ƒ ƒ } | i t i | ƒ i d ƒ t t ƒ | _ | t | ƒ ƒ } | i | i i d ƒ | i | d d ƒ d S( NiNa¼ i ( t CDLLt _ctypes_testt __file__t _testfunc_p_pt c_longt restypet c_intt byreft failUnlessEqualt from_addresst valueR t pointert contents( R t dllt funct it addresst res( ( s5 /usr/local/lib/python2.5/ctypes/test/test_pointers.pyt test_pass_pointers s c C sÄ t t i ƒ } | i } t d ƒ } t t ƒ | _ t t ƒ f | _ | t | ƒ ƒ } | i | d d ƒ | i | i i d ƒ d | d <| i | i d ƒ t d ƒ | _ | i | i d ƒ d S( NifV i iIÔ i!0 ( R R R R R R R t argtypesR R R R ( R R R R R ( ( s5 /usr/local/lib/python2.5/ctypes/test/test_pointers.pyt test_change_pointers% s c si t t t t ƒ ƒ } g ˆ _ ‡ f d † } | | ƒ } t t i ƒ } | i } | | ƒ | | ƒ d S( Nc s/ x( t d ƒ D] } ˆ i i | | ƒ q Wd S( Ni i ( t ranget resultt append( t argR ( R ( s5 /usr/local/lib/python2.5/ctypes/test/test_pointers.pyR A s ( t CFUNCTYPER R R! R R R t _testfunc_callback_with_pointer( R t PROTOTYPER t callbackR t doit( ( R s5 /usr/local/lib/python2.5/ctypes/test/test_pointers.pyt test_callbacks_with_pointers; s c C s~ d d k l } xg t t t ƒ D]V \ } } | d ƒ } t | ƒ } | i t | i ƒ | j ƒ | i t | | d ƒ q Wd S( Niÿÿÿÿ( t delitemi* i ( t operatorR* t zipt ctype_typest python_typesR t failUnlesst typeR t assertRaisesR ( R R* t ctt ptR t p( ( s5 /usr/local/lib/python2.5/ctypes/test/test_pointers.pyt test_basicsX s c C sT d d k l } | d d d d d d g ƒ } | i ƒ d } t t t ƒ ƒ } d S( Niÿÿÿÿ( t arrayR id iÈ i, i iô i ( R6 t buffer_infoR R ( R R6 t at addrR4 ( ( s5 /usr/local/lib/python2.5/ctypes/test/test_pointers.pyt test_from_addressf s c C s— d t f d „ ƒ Y} t | d d d ƒ ƒ } | i | i i d ƒ | i | i i d ƒ | i | i i d ƒ d | i _ d d k l } | | =d S( Nt Tablec B s) e Z d e f d e f d e f g Z RS( R8 t bt c( R R R t _fields_( ( ( s5 /usr/local/lib/python2.5/ctypes/test/test_pointers.pyR; q s i i i i! iÿÿÿÿ( t _pointer_type_cache( t StructureR R R R8 R<