�
B��cc @ s� d d l Td d l m Z d d l Z d d l Z e e j � Z d � Z d � Z d e j
f d � � YZ e d � d e j
f d
� � Y� Z d e j
f d � � YZ
e d
k r� e j � n d S( i����( t *( t need_symbolNc C sA | d k r | Sd d l } | j d � d } | d | >7} | S( Ni i����t Pi l ( t structt calcsize( t aR t num_bits( ( sB /usr/local/python-2.7/lib/python2.7/ctypes/test/test_prototypes.pyt positive_address s c C s t | � d } t | | � S( Ni ( t lent c_wchar( t initt n( ( sB /usr/local/python-2.7/lib/python2.7/ctypes/test/test_prototypes.pyt c_wbuffer) s t CharPointersTestCasec B s\ e Z d � Z d � Z d � Z d � Z d � Z d � Z e d � d � � Z d � Z
RS( c C s t j } t | _ d | _ d S( N( t testdllt
_testfunc_p_pt c_longt restypet Nonet argtypes( t selft func( ( sB /usr/local/python-2.7/lib/python2.7/ctypes/test/test_prototypes.pyt setUp/ s c C s� t t t � } | d t f d � } y | � Wn) t k
rZ } | j t | � d � n X| j d � | j | d � d � | j | d d � d � d S( NR i t inputs! required argument 'input' missings TypeError not raised( i R ( ( i R ( t CFUNCTYPEt c_void_pR t TypeErrort assertEqualt strt failR ( R t prototypeR t details( ( sB /usr/local/python-2.7/lib/python2.7/ctypes/test/test_prototypes.pyt test_paramflags4 s
c C s� t j } t | _ | j d | d � � t d � } t t � f | _ | j t t | � � t | t
| � � � � t f | _ | j t
| t
| � � t t � f | _ | j t
| t
| � � t t � f | _ | j t
| t
| � � d S( Ni ( R R R R R t c_intt POINTERR R t addressoft byreft c_char_pt assertRaisest
ArgumentErrort c_shortt c_double( R R t ci( ( sB /usr/local/python-2.7/lib/python2.7/ctypes/test/test_prototypes.pyt test_int_pointer_argF s c C s� t j } t | _ t t � f | _ | j d | d � � | j d | d � � | j d | t d � � � | j d | t d � � � | j d | t d � � � t d � } | j d | t
| � � d � | j d | t | � � d � d S( Nt 123R i ( R R R% R R"