tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Z\¬Qc@sÇddlTddlZddlZeejƒZd„Zd„Zdejfd„ƒYZ    ye
Wne k
rwnXdejfd„ƒYZ d    ejfd
„ƒYZ ed krÃejƒndS( iÿÿÿÿ(t*NcCsS|dkr|Sddl}|jdƒd}|d|>7}|dksOt‚|S(NiiÿÿÿÿtPil(tstructtcalcsizetAssertionError(taRtnum_bits((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pytpositive_addresss  cCst|ƒd}t||ŒS(Ni(tlentc_wchar(tinittn((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyt    c_wbuffer(stCharPointersTestCasecBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCstj}t|_d|_dS(N(ttestdllt _testfunc_p_ptc_longtrestypetNonetargtypes(tselftfunc((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pytsetUp.s        cCs›tttƒ}|dtfdƒ}y |ƒWn)tk
rZ}|jt|ƒdƒnX|jdƒ|j|dƒdƒ|j|ddƒdƒdS(NRitinputs!required argument 'input' missingsTypeError not raised(isinput((isinput(t    CFUNCTYPEtc_void_pRt    TypeErrort assertEqualtstrtfailR(Rt    prototypeRtdetails((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyttest_paramflags3s       cCsótj}t|_|jd|dƒƒtdƒ}ttƒf|_|jtt    |ƒƒt|t
|ƒƒƒƒt f|_|j t |t
|ƒƒttƒf|_|j t |t
|ƒƒttƒf|_|j t |t
|ƒƒdS(Ni(RRRRRtc_inttPOINTERRRt    addressoftbyreftc_char_pt assertRaisest ArgumentErrortc_shorttc_double(RRtci((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyttest_int_pointer_argEs          cCsôtj}t|_ttƒf|_|jd|dƒƒ|jd|dƒƒ|jd|tdƒƒƒ|jd|tdƒƒƒ|jd|t    dƒƒƒtdƒ}|jd|t
|ƒƒdƒ|jd|t |ƒƒdƒdS(Nt123Ri( RRR%RR"tc_charRRRtc_buffertpointerR$(RRtca((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyttest_POINTER_c_char_argYs          cCsîtj}t|_tf|_|jd|dƒƒ|jd|dƒƒ|jd|tdƒƒƒ|jd|tdƒƒƒ|jd|tdƒƒƒtdƒ}|jd|t    |ƒƒdƒ|jd|t
|ƒƒdƒdS(NR,Ri( RRR%RRRRR.R-R/R$(RRR0((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyttest_c_char_p_arghs           cCs~tj}t|_tf|_|jd|dƒƒ|jd|dƒƒ|jd|tdƒƒƒ|jd|tdƒƒƒ|jd|tdƒƒƒt    dƒ}|jd|t
|ƒƒdƒ|jd|t |ƒƒdƒ|t t ƒƒƒ|t
t ƒƒƒ|t dƒƒy t |_Wntk
rAn9X|jd|t dƒƒƒ|jd|t dƒƒƒdS(NR,Riiu123(RRR%RRRRRR.R-R/R$R!t    c_wchar_pt    NameError(RRR0((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyttest_c_void_p_argws(              cCsptj}t|_ddd„ƒY}tf|_|jd||ƒƒƒd|_|jd||ƒƒƒdS(NtXcBseZdZRS(N(t__name__t
__module__Rt_as_parameter_(((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyR6–s((RRRRRRR(RRR6((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyt test_instance’s             (    R7R8RR R+R1R2R5R:(((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyR ,s                        tWCharPointersTestCasecBs#eZd„Zd„Zd„ZRS(cCstj}t|_d|_dS(N(RRR!RRR(RR((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyR¦s        cCsôtj}t|_ttƒf|_|jd|dƒƒ|jd|dƒƒ|jd|tdƒƒƒ|jd|tdƒƒƒ|jd|t    dƒƒƒtdƒ}|jd|t
|ƒƒdƒ|jd|t |ƒƒdƒdS(Nu123Ruai( RRR3RR"R    RRRR R/R$(RRR0((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyttest_POINTER_c_wchar_arg¬s          cCsûtj}t|_tf|_tjdƒ|jd|dƒƒ|jd|dƒƒ|jd|tdƒƒƒ|jd|tdƒƒƒ|jd|tdƒƒƒt    dƒ}|jd|t
|ƒƒdƒ|jd|t |ƒƒdƒdS(Nu123R,Ri( RRR3RRt
from_paramRRR R    R/R$(RRR0((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyttest_c_wchar_p_arg»s            (R7R8RR<R>(((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyR;¤s        t    ArrayTestcBseZd„ZRS(c
Csutj}ttƒ|_tdf|_|tdddddddddƒƒd    „}tdtdƒ|ƒdS(
NiiiiiiiicSsdS(N((((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyR×s(Rt _testfunc_ai8R"R!RRRR(RR((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyttestÎs     )    (R7R8RA(((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyR?Íst__main__(tctypestunittestt _ctypes_testtCDLLt__file__RRR tTestCaseR R    R4R;R?R7tmain(((sc/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/ctypes/test/test_prototypes.pyt<module>s
      
   s )