File: //usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyo
�
P��ac @ s d d l Z d d l Td d l m Z d d l Z e e j � Z y
e Z Wn e
k
rd e Z n Xd e f d � � YZ
d e j f d � � YZ d e f d � � YZ d
e f d � � YZ d e f d
� � YZ d e f d � � YZ e d k re j � n d S( i����N( t *( t need_symbolt POINTc B s e Z d e f d e f g Z RS( t xt y( t __name__t
__module__t c_intt _fields_( ( ( s9 /usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyR s t BasicWrapTestCasec B sw e Z d � Z e d � d � � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d
� Z d � Z
RS( c C s | S( N( ( t selft param( ( s9 /usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyt wrap s t c_wcharc C s� t j } t t t t t t g | _ | | j d � | j d � | j d � | j d � | j d � | j d � � } | j
| d � | j t | � t
� d S( Ni u xi i g @g @i� ( t dllt _testfunc_i_bhilfdt c_byteR
R t c_longt c_floatt c_doublet argtypesR t assertEqualt assertIst typet int( R
t ft result( ( s9 /usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyt test_wchar_parm s
Qc C s t j } t t � | _ t t � g | _ t d � } | j t | � j j d � | | j
t | � � � } | j t | � t t � � | j | j j d � | | j
t | � � � } | j | j j | j � t t d � � } | | j
| � � } | j | j j d � d S( Ni* ic ( R t
_testfunc_p_pt POINTERR t restypeR R t pointert contentst valueR R ( R
R t vR t p( ( s9 /usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyt
test_pointers s c s� t j } g � d d d d d d d d d d
d d d
d d d d d d g } � f d � } t t t � } | | � } | | j d � | j | � � | j � | � d S( Ni i i i � i @ i i i i i i i� i@ i i i i i i c s � j | � | S( N( t append( R"