Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
ctypes
/
test
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/ctypes/test/test_pointers.pyo
mò šóIFc @ s¥ d k Z d k Td 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( N( t *t PointersTestCasec B sk t Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( Nc C sO d t t ƒ f d „ ƒ Y} t t ƒ t d ƒ ƒ | i t | t d ƒ ƒ d S( Nt Ac B s t Z RS( N( t __name__t __module__( ( ( t= /usr/lib/python2.4/site-packages/ctypes/test/test_pointers.pyR s i i! ( t POINTERt c_ulongR t selft failUnlessRaisest TypeError( R R ( ( R t 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 dllt _testfunc_p_pt funct c_longt restypet c_intt it byreft addressR t failUnlessEqualt from_addresst valueR t pointert rest contents( R R R R R R ( ( R t 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 R R R t argtypesR R R R R R ( R R R R R ( ( R t test_change_pointers% s c sf t t t t ƒ ƒ } g ˆ _ ‡ d † } | | ƒ } t t i ƒ } | i } | | ƒ | | ƒ d S( Nc s/ x( t d ƒ D] } ˆ i i | | ƒ q Wd S( Ni i ( t rangeR R t resultt appendt arg( R$ R ( R ( R R A s ( t CFUNCTYPER R t PROTOTYPER R"