�
B��cc @ s� d d l Z d d l Z d d l Ty e Wn e k
rC e Z n Xd d l Z e e j � Z d e j
f d � � YZ e d k r� e j
� n d S( i����N( t *t CFuncPtrTestCasec B s5 e Z d � Z d � Z d � Z d � Z d � Z RS( c C s� t t t t � } d � } | | � } | j | j t � | j | j t t f � | j t | � t t � � | j t | � t t � � d S( Nc W s
t | � S( N( t len( t args( ( s? /usr/local/python-2.7/lib/python2.7/ctypes/test/test_funcptr.pyt func s ( t WINFUNCTYPEt c_intt assertEqualt restypet argtypest sizeoft c_voidp( t selft XR t x( ( s? /usr/local/python-2.7/lib/python2.7/ctypes/test/test_funcptr.pyt
test_basic s c C s� t t t t � } t t t t � } d � } | | � } | | � } | j | d d � d � | j | d d � d � | j | d d d d d d � d � t t k r� t j d k r� | j t | d d d � n d S( Nc S s | | S( N( ( t at b( ( s? /usr/local/python-2.7/lib/python2.7/ctypes/test/test_funcptr.pyR s i i i i i i t ce( R R t CFUNCTYPER t ost namet assertRaisest TypeError( R t StdCallbackt
CdeclCallbackR t st c( ( s? /usr/local/python-2.7/lib/python2.7/ctypes/test/test_funcptr.pyt
test_first s %c s� t t t t t t � � d � } t � t � t � t � d t f � � � � � f d � � Y} | � } � | � | _ t t t t t t � } | j � | � | j | j d d d d � d � | j } ~ ~ | j | d d d
d � d � d S(
Nc S s | | | | S( N( ( t hwndt msgt wParamt lParam( ( s? /usr/local/python-2.7/lib/python2.7/ctypes/test/test_funcptr.pyt wndproc0 s t WNDCLASSc
s_ e Z d e f d � f d e f d e f d � f d � f d � f d � f d � f g Z RS( t stylet lpfnWndProct
cbClsExtrat
cbWndExtrat hInstancet hIcont hCursort lpszMenuNamet
lpszClassName( t __name__t
__module__t c_uintR t _fields_( ( t HCURSORt HICONt HINSTANCEt LPCTSTRt WNDPROC( s? /usr/local/python-2.7/lib/python2.7/ctypes/test/test_funcptr.pyR"