HEX
Server: Apache
System: FreeBSD www860.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User: yoyo0427 (1306)
PHP: 8.3.8
Disabled: NONE
Upload Files
File: //usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyc
�
P��ac@s	ddlZddlTddlmZddlZeej�Zy
eZ	Wne
k
rdeZ	nXdefd��YZ
dejfd��YZdefd	��YZd
efd��YZdefd
��YZdefd��YZedkrej�ndS(i����N(t*(tneed_symboltPOINTcBs eZdefdefgZRS(txty(t__name__t
__module__tc_intt_fields_(((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyRstBasicWrapTestCasecBsweZd�Zed�d��Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
RS(cCs|S(N((tselftparam((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pytwrapstc_wcharcCs�tj}ttttttg|_||j	d�|j	d�|j	d�|j	d�|j	d�|j	d��}|j
|d�|jt|�t
�dS(Niuxiig@g@i�(tdllt_testfunc_i_bhilfdtc_byteR
Rtc_longtc_floattc_doubletargtypesRtassertEqualtassertIsttypetint(R
tftresult((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyttest_wchar_parms
	QcCstj}tt�|_tt�g|_td�}|jt|�jj	d�||j
t|���}|jt|�tt��|j|jj	d�||j
t|���}|j|jj	|j	�ttd��}||j
|��}|j|jj	d�dS(Ni*ic(Rt
_testfunc_p_ptPOINTERRtrestypeRRtpointertcontentstvalueRR(R
RtvRtp((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyt
test_pointerss	cs�tj}g�ddddddddd	d
ddd
ddddddg}�fd�}ttt�}||�}||jd�|j|��|j�|�dS(Niiii�i@i iiiiii�i@i iiiiics�j|�|S(N(tappend(R"(targs(s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pytcallback<s
ii(Rt_testfunc_callback_i_ift	CFUNCTYPERRR(R
RtexpectedR'tCallBacktcb((R&s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyttest_shorts5s	'cCs=tj}t|_d|_ttt�}d�}||�}||jd�|j|��}|j|d�t|g|_||�}||jd�|j|��}|j|d�||jd�|j|��}|j|d�t	ttttt�}||�}|j
t||jd�|j|��dS(NcSs|S(N((R!((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyR'Osi����i��(RR(RRtNoneRR)RRtCALLBACK_FUNCTYPEtassertRaisest
ArgumentError(R
Rt
MyCallbackR'R,RtAnotherCallback((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyttest_callbacksHs"				!!!cs�tj}t|_ttt�}t|g|_�fd�}||�}|�jd��j|��}�j|d�dS(Ncs�jt|�t�|S(N(RRR(R!(R
(s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyR'tsi����i��(RR(RRR)RRR(R
RR2R'R,R((R
s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyttest_callbacks_2is		!cs�tj}t|_ttt�}t|g|_�fd�}||�}�jdt|�jd��j|����dS(Ncs�j|ttf�|d@S(Ni���(tassertIsInstanceRtlong(R!(R
(s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyR'�sI�J)I���(	Rt_testfunc_callback_q_qft
c_longlongRR)RRRR(R
RR2R'R,((R
s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyttest_longlong_callbacks}s		cCs�tdd�}t�}tj|t|��}||j|jf}d}|j||�tdd�}t�}ttt�ftj_t	tj_
tj|j|�t|��}||j|jf}d}|j||�dS(	Niiiieifi�(iii(i�ieif(RRt_testfunc_byvaltbyrefRRRRRRRR(R
tptintptoutRtgotR*((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyt
test_byval�s		!cCs~dtfd��Y}|tj_|gtj_|dd�}tj|j|��}|j|j|jfddf�dS(	NtS2HcBs eZdefdefgZRS(RR(RRtc_shortR(((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyRA�s	iciXiii�i(	t	StructureRtret_2h_funcRRRRRR(R
RAtinpts2h((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyttest_struct_return_2H�scCs�dtfd��Y}|tj_|gtj_|ddddddd	d
�}tj|j|��}|j|j|j|j	|j
|j|j|j
|jfddd
dddddf�dS(NtS8Ic	BsVeZdefdefdefdefdefdefdefdefgZRS(tatbtctdteRtgth(RRRR(((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyRH�s							i	iiiiiiiiiiiiiii(RCRtret_8i_funcRRRRRIRJRKRLRMRRNRO(R
RHREts8i((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyttest_struct_return_8H�s	!9cCs_ddlm}dtfd��Y}|�}||_|jt��|j|�WdQXdS(Ni����(RtAcBseZRS((RR(((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyRS�s(tctypesRtobjectt_as_parameter_R0tRuntimeErrort
from_param(R
RRSRI((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyttest_recursive_as_param�s		(RRRRRR$R-R4R5R:R@RGRRRY(((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyR	s				!				
	tAsParamWrappercBseZd�ZRS(cCs
||_dS(N(RV(R
R((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyt__init__�s(RRR[(((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyRZ�stAsParamWrapperTestCasecBseZeZRS((RRRZR(((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyR\�stAsParamPropertyWrappercBs&eZd�Zd�Zee�ZRS(cCs
||_dS(N(t_param(R
R((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyR[�scCs|jS(N(R^(R
((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pytgetParameter�s(RRR[R_tpropertyRV(((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyR]�s		tAsParamPropertyWrapperTestCasecBseZeZRS((RRR]R(((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyRa�st__main__(tunittestRTtctypes.testRt_ctypes_testtCDLLt__file__RtWINFUNCTYPER/t	NameErrorR)RCRtTestCaseR	RURZR\R]RaRtmain(((s9/usr/local/lib/python2.7/ctypes/test/test_as_parameter.pyt<module>s 



�