Your IP : 3.149.24.49


Current Path : /opt/imunify360/venv/lib64/python3.11/site-packages/cffi/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/cffi/__pycache__/vengine_cpy.cpython-311.pyc

�

S�Dg8���N�ddlZddlZddlmZddlmZGd�de��ZdZdS)�N�)�model��VerificationErrorc��eZdZdZdZd�Zd�Zd�Zd�Zd;d�Z	d	�Z
d
�Zd�Zd<d
�Z
d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZeZeZeZeZeZd�Zd�Zd�ZeZd�Z eZ!d�Z"d�Z#d�Z$d�Z%eZ&d�Z'd �Z(d!�Z)d"�Z*d#�Z+d$�Z,d%�Z-d&�Z.eZ/d'�Z0d(�Z1d)�Z2d*�Z3			d=d-�Z4d.�Z5d/�Z6eZ7eZ8eZ9d;d0�Z:d1�Z;d>d3�Z<eZ=eZ>d4�Z?d5�Z@d6�ZAeZBeZCeZDeZEd7�ZFd8�ZGeZHeZId9�ZJd:�ZKdS)?�VCPythonEngine�xTc�H�||_|j|_i|_i|_dS�N)�verifier�ffi�_struct_pending_verification�_types_of_builtin_functions)�selfrs  �r/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/cffi/vengine_cpy.py�__init__zVCPythonEngine.__init__
s(�� ��
��<���,.��)�+-��(�(�(�c��dSr�)r�kwdss  r�patch_extension_kwdsz#VCPythonEngine.patch_extension_kwds����rc��	tj||��\}}}n#t$rYdSwxYw|�|���|d|vrdS|S�Nr)�imp�find_module�ImportError�close)r�module_name�path�so_suffixes�f�filename�descrs       rrzVCPythonEngine.find_modulesp��	�!$���d�!C�!C��A�x�����	�	�	��4�4�	�����=�
�G�G�I�I�I���8�;�&�&��4��s��
*�*c�>�i|_|�d��dS)N�collecttype)�
_typesdict�	_generate)rs r�
collect_typeszVCPythonEngine.collect_types$s!��������}�%�%�%�%�%r�c�@�|j�|dz��dS)N�
)�_f�write)r�whats  r�_prntzVCPythonEngine._prnt(s ����
�
�d�T�k�"�"�"�"�"rc��|j|Sr)r')r�types  r�_gettypenumzVCPythonEngine._gettypenum+s����t�$�$rc��t|tj��r|jdkr+||jvr t|j��}||j|<dSdSdS)N�long double)�
isinstancer�
PrimitiveType�namer'�len)r�tp�nums   r�_do_collect_typezVCPythonEngine._do_collect_type/sb���B�� 3�4�4�	&���=�(�(��d�o�-�-��d�o�&�&�C�"%�D�O�B����.�-�)�(rc��|���ddg|_|j}|t��|��||jj��|��|�d��|���|��|d��|�d��|d��|d��|d��|��|j���}|jd}|d	��|��|d
��|d��|d|z��|d
��|d��|d��|d��|d��|��|d��|d|z��|d��|d��|d��|d��|d��|d|�d���|d��|d��|d��|d��|d��|��|d��|��|d��|d|z��|d��|d��|d |z��|d��|d!��|d|�d"���|d!��|d#��|d��|��|d$��dS)%Nz
((void)lib,0)�declz&static PyMethodDef _cffi_methods[] = {�methodz3  {"_cffi_setup", _cffi_setup, METH_VARARGS, NULL},z)  {NULL, NULL, 0, NULL}    /* Sentinel */z};Fz#if PY_MAJOR_VERSION >= 3z.static struct PyModuleDef _cffi_module_def = {z  PyModuleDef_HEAD_INIT,z  "%s",z  NULL,z  -1,z  _cffi_methods,z  NULL, NULL, NULL, NULL�PyMODINIT_FUNCzPyInit_%s(void)�{z  PyObject *lib;z+  lib = PyModule_Create(&_cffi_module_def);z  if (lib == NULL)�    return NULL;�  if (z < 0 || _cffi_init() < 0) {z    Py_DECREF(lib);�  }z
  return lib;�}z#elsezinit%s(void)z+  lib = Py_InitModule("%s", _cffi_methods);z    return;z < 0 || _cffi_init() < 0)z	  return;z#endif)	r)�_chained_list_constantsr0�cffimod_headerr�preambler(�_generate_setup_custom�get_module_name)r�prnt�modname�	constantss    r�write_source_to_fz VCPythonEngine.write_source_to_f6s���������")8��'I��$��z����^�����������T�]�
#�$�$�$������	
���v����	
�#�#�%�%�%������
	
��
5�6�6�6����x� � � ���
B�C�C�C���
8�9�9�9���T�
�
�
�������-�/�/�1�1���0��7�	���
(�)�)�)��������
=�>�>�>���
'�(�(�(���Y��
 �!�!�!���Y������W�
�
�
���
� � � ���
'�(�(�(���T�
�
�
��������
������
��
(�)�)�)���S�	�	�	���
� � � ���
:�;�;�;���
!�"�"�"���
� � � ����i�i�i�
A�B�B�B���
"�#�#�#���
� � � ���U������_������S�	�	�	��������W�
�
�
��������
������^�g�
%�&�&�&���S�	�	�	���
� � � ���
:�W�
D�E�E�E���
!�"�"�"���]�������I�I�I�
?�@�@�@���]������[������S�	�	�	��������X�����rNc�(���	�
�tj��	ttd��rtj��}	ttd��r|�tj|��tj�j����jj	���	n3#t$r&}d�jj	�d|��}t|���d}~wwxYw	ttd��rtj|��n/#ttd��rtj|��wwxYwtj��n#tj��wxYw��
�	d��td��j���D�����
�
fd�t#t%�
����D��}t't)�jj|����}G��	�fd�d	t.������}�	�|t|��r3d
dl}|�d�j���z����
�	d|�
���j�	_�j�	_|S)N�getdlopenflags�setdlopenflagsz
importing z: �loadingc��g|]	\}}||f��
Srr)�.0�key�values   r�
<listcomp>z/VCPythonEngine.load_library.<locals>.<listcomp>�s6��H�H�H�+��U�"�3�<�H�H�Hrc� ��g|]
}�|��Srr)rT�i�
revmappings  �rrWz/VCPythonEngine.load_library.<locals>.<listcomp>�s���=�=�=��z�!�}�=�=�=rc�0��eZdZ�Z�jZgZ�fd�ZdS)�/VCPythonEngine.load_library.<locals>.FFILibraryc�<���jt|j��zSr)�	_cffi_dir�list�__dict__)r�
FFILibrarys �r�__dir__z7VCPythonEngine.load_library.<locals>.FFILibrary.__dir__�s���!�+�d�4�=�.A�.A�A�ArN)�__name__�
__module__�__qualname__�_cffi_python_moduler
�	_cffi_ffir^rb)ra�modulers���rrar\�sG�������"(����I��I�
B�
B�
B�
B�
B�
B�
Brrarz0reimporting %r might overwrite older definitions�loaded)�library)r�acquire_lock�hasattr�sysrPrQ�load_dynamicrrJ�modulefilenamerr�release_lock�_load�dictr'�items�ranger9r_�mapr
�_get_cached_btype�object�_cffi_setup�warnings�warn�_cffi_original_ffir�_cffi_types_of_builtin_funcs)r�flags�previous_flags�e�error�lstrjryrarhrZs`       @@@r�load_libraryzVCPythonEngine.load_library�s�������	�����	��s�,�-�-�
6�!$�!3�!5�!5��

7��3� 0�1�1�.�e�6G��&�u�-�-�-��)�$�-�*G�*G�*I�*I�*.�-�*F�H�H�����
/�
/�
/�
/�.2�m�.J�.J�.J�A�A�N��'��.�.�.�����
/������3� 0�1�1�7��&�~�6�6�6����3� 0�1�1�7��&�~�6�6�6�6�7����
�������C���������	
�
�
�6�9�%�%�%��H�H�/3��/D�/D�/F�/F�H�H�H�I�I�
�=�=�=�=�e�C�
�O�O�&<�&<�=�=�=���3�t�x�1�3�7�7�8�8��	B�	B�	B�	B�	B�	B�	B�	B�	B��	B�	B�	B��*�,�,�����c�#4�g�>�>�	?��O�O�O��M�M�L�!�]�:�:�<�<�>�
?�
?�
?�	
�
�
�6�8�W�
�5�5�5�$(�H��!�.2�.N��+��sB�(E�A!B$�#D�$
C�.!C�C�D�*E�,D.�.E�Ec��d�|jjj���D��}|���|S)Nc�"�g|]\}\}}||f��
Srr)rTrUr:�quals    rrWz4VCPythonEngine._get_declarations.<locals>.<listcomp>�s7��H�H�H�.�c�:�B���R�y�H�H�Hr)r
�_parser�
_declarationsrs�sort)rr�s  r�_get_declarationsz VCPythonEngine._get_declarations�sK��H�H� $�� 0� >� D� D� F� F�H�H�H�����
�
�
��
rc�F�|���D]�\}}|�dd��\}}	t|d|�d|����}n #t$rt	d|z���wxYw	|||���d#t
$r}t
j||���d}~wwxYwdS)N� r�_generate_cpy_�_znot implemented in verify(): %r)r��split�getattr�AttributeErrorr�	Exceptionr�attach_exception_info)r�	step_namer8r:�kind�realnamer?rs        rr(zVCPythonEngine._generate�s����.�.�0�0�	�	�H�D�"�!�Z�Z��Q�/�/�N�D�(�
>� ������@I�	�(K�L�L����!�
>�
>�
>�'�5��<�>�>�>�
>����
���r�8�$�$�$�$���
�
�
��+�A�t�4�4�4������
����	�	s#�A�A(�,A9�9
B�B�Bc��|���D]h\}}|�dd��\}}t|d|�d|����}	||||fi|���A#t$r}	t	j|	|���d}	~	wwxYwdS)Nr�rr��_cpy_)r�r�r�r�rr�)
rrhr�rr8r:r�r�r?rs
          rrqzVCPythonEngine._load�s����.�.�0�0�	�	�H�D�"�!�Z�Z��Q�/�/�N�D�(��T�T�9�9�9�d�d�#C�D�D�F�
���r�8�V�4�4�t�4�4�4�4���
�
�
��+�A�t�4�4�4������
����	�	s�
A�
A;� A6�6A;c��dSrr�rr:r8s   r�_generate_nothingz VCPythonEngine._generate_nothing�rrc��dSrr�rr:r8rhrs     r�_loaded_noopzVCPythonEngine._loaded_noop�rrc
���d}t|tj��rc|���r|jdkr
d}d|jz}n4d|�d���d|j�dd����}d	}n�t|tj��r|�||||��dSt|tj	tj
f��rH|�d
||�|��|fz��|�d|z��dSt|tj
��r3d|�d��z}d
|�|��z}d}nt|���|�d|�d|�d|�|�d���|�d|�d|�d���d|�d���|�d|z��dS)Nr*�_Bool�_cffi_to_c_intz, %s�(z)_cffi_to_c_r�r�z-1z6  if (_cffi_to_c((char *)&%s, _cffi_type(%d), %s) < 0)z    %s;z(%s)_cffi_to_c_pointerz, _cffi_type(%d)�NULL�  z = �);rCz == (�)z && PyErr_Occurred()))r6rr7�is_integer_typer8�
get_c_name�replace�PointerType�"_convert_funcarg_to_c_ptr_or_array�
StructOrUnion�EnumTyper0r3�FunctionPtrType�NotImplementedError)rr:�fromvar�tovar�errcode�extraarg�	converter�errvalues        r�_convert_funcarg_to_cz$VCPythonEngine._convert_funcarg_to_c�s�����b�%�-�.�.�	*��!�!�#�#�
N���7�(:�(:�,�	�!�B�G�+����35�=�=��3D�3D�3D�3D�35�7�?�?�3��3L�3L�3L�N�	��H�H�
��E�-�
.�
.�	*��3�3�B��49�7�
D�
D�
D��F�
��U�0�%�.�A�
B�
B�
	*��J�J�O��� 0� 0�� 4� 4�g�>�?�
@�
@�
@��J�J�y�7�*�+�+�+��F�
��E�1�
2�
2�	*�0�2�=�=��3D�3D�D�I�)�D�,<�,<�R�,@�,@�@�H��H�H�&�b�)�)�)��
�
�
����	�	�	�7�7�H�H�H�M�N�N�N��
�
�
��E�E�2�=�=��$�$�$�$�h�h�h�0�	1�	1�	1��
�
�9�w�&�'�'�'�'�'rc��t|tj��rA|�d��|�d��|�d��dSdS)NzPy_ssize_t datasizez-struct _cffi_freeme_s *large_args_free = NULLzIif (large_args_free != NULL) _cffi_free_array_arguments(large_args_free);)r6rr��add)rr:�	localvars�	freeliness    r�_extra_local_variablesz%VCPythonEngine._extra_local_variablessu���b�%�+�,�,�	K��M�M�/�0�0�0��M�M�I�J�J�J��M�M�J�
K�
K�
K�
K�
K�	K�	Krc���|�d��|�d|�|��||fz��|�d��|�d|�d���|�d|�|��||fz��|�d��|�d|z��|�d	��dS)
Nz1  datasize = _cffi_prepare_pointer_call_argument(z(      _cffi_type(%d), %s, (char **)&%s);z  if (datasize != 0) {z    z? = ((size_t)datasize) <= 640 ? alloca((size_t)datasize) : NULL;zF    if (_cffi_convert_array_argument(_cffi_type(%d), %s, (char **)&%s,z,            datasize, &large_args_free) < 0)z	      %s;rD)r0r3)rr:r�r�r�s     rr�z1VCPythonEngine._convert_funcarg_to_c_ptr_or_arrays���
�
�F�G�G�G��
�
�=����R� � �'�5�A2�2�	3�	3�	3��
�
�+�,�,�,��
�
�
�9>���A�	B�	B�	B��
�
�#�&*�&6�&6�r�&:�&:�G�U�%K�L�	M�	M�	M��
�
�A�B�B�B��
�
�;��(�)�)�)��
�
�5�����rc��t|tj��rt|���r|jdkrd|�d|j�d�S|jdkr"d|j�dd���d	|�d�Sd
||�|��fzSt|tjtjf��rd||�|��fzSt|tj	��r1d||�tj|j
����fzSt|tj��rI|j�(td|����d
|�d����d||�|��fzSt|tj��rd
||�|��fzSt!|���)Nr�z_cffi_from_c_int(�, r�r5�
_cffi_from_c_r�r�r�z/_cffi_from_c_deref((char *)&%s, _cffi_type(%d))z0_cffi_from_c_pointer((char *)%s, _cffi_type(%d))�'z
' is used as z, but is opaquez0_cffi_from_c_struct((char *)&%s, _cffi_type(%d)))r6rr7r�r8r�r3r�r��	ArrayType�itemr��fldnames�	TypeError�_get_c_namer�r�)rr:�var�contexts    r�_convert_expr_from_cz#VCPythonEngine._convert_expr_from_c*s����b�%�-�.�.�	*��!�!�#�#�
/���7�(:�(:�(:�58�S�S�"�'�'�'�B�B���M�)�)�)�02�����S�0I�0I�0I�0I�3�3�3�O�O�H���)�)�"�-�-�L/�/�/�
��U�.��0E�F�
G�
G�	*�E��T�%�%�b�)�)�I+�+�
+�
��E�O�
,�
,�
	*�E��T�%�%�e�&7���&@�&@�A�A�IC�C�
C�
��E�/�
0�
0�
	*��{�"��i��N�N�$�$�$�$�g�g�g�!/�0�0�0�E��T�%�%�b�)�)�I+�+�
+�
��E�N�
+�
+�	*�D��T�%�%�b�)�)�H+�+�
+�&�b�)�)�)rc���t|tj��sJ�|jr|�|��dS|jD]}|�|���|�|j��dSr)r6rr��ellipsisr<�args�result)rr:r8r2s    r�"_generate_cpy_function_collecttypez1VCPythonEngine._generate_cpy_function_collecttypeQs����"�e�3�4�4�4�4�4�
�;�	-��!�!�"�%�%�%�%�%���
,�
,���%�%�d�+�+�+�+��!�!�"�)�,�,�,�,�,rc�<�t|tj��sJ�|jr|�d||��dS|j}t
|j��}|dkrd}n|dkrd}nd}|d��|d|�d	|�d
���|d��d|z}t|j��D]*\}}|d
|�	d|z|��z���+t��}	t��}
|jD]}|�||	|
���t|	��D]}|d|�d����t|j
tj��s:d}d|z}|d
|j
�	d|��z��|d��nd}t
|j��dkr~tt
|j����}
|
D]}|d|z���|��|dd|z�d|�dd�d�|
D�����d���|d��|��t|j��D]-\}}|�|d|zd |zd!��|���.|d"��|d#��|d$|�|�d%d�d&�tt
|j����D�����d'���|d(��|d)��|��|d*��|dkr|d+��|rG|d,|�|j
d-d.��z��|
D]}|d|z���|d/��n)|
D]}|d|z���|d0��|d1��|d2��|��dS)3NFr�noargr�arg0r��static PyObject *�_cffi_f_z(PyObject *self, PyObject *r�rAzargument of %s�  %s;z x%dr��;z	result = zresult of %sz resultz  PyObject *pyresult;r*z  PyObject *arg%d;z  if (!PyArg_ParseTuple(args, "�O�:�", r�c��g|]}d|z��S)z&arg%dr�rTrYs  rrWz>VCPythonEngine._generate_cpy_function_decl.<locals>.<listcomp>�s��/J�/J�/J���1��/J�/J�/Jrz))rBzarg%d�x%dzreturn NULLz  Py_BEGIN_ALLOW_THREADSz  _cffi_restore_errno();�  { r�c��g|]}d|z��S)r�rr�s  rrWz>VCPythonEngine._generate_cpy_function_decl.<locals>.<listcomp>�s��>�>�>�Q�u�q�y�>�>�>rz); }z  _cffi_save_errno();z  Py_END_ALLOW_THREADS�  (void)self; /* unused */�  (void)noarg; /* unused */z  pyresult = %s;r�zresult typez  return pyresult;z  Py_INCREF(Py_None);z  return Py_None;rE)r6rr�r��_generate_cpy_constr0r9r��	enumerater��setr��sortedr��VoidTypert�joinr�r�)rr:r8rK�numargs�argnamer�rYr2r�r�r>�result_code�rng�freelines               r�_generate_cpy_function_declz*VCPythonEngine._generate_cpy_function_decl\s����"�e�3�4�4�4�4�4�
�;�	�
�$�$�U�D�"�5�5�5��F��z���b�g�,�,���a�<�<��G�G�
��\�\��G�G��G���
 �!�!�!����4�4�4����
I�J�J�J���S�	�	�	�"�T�)�� ���)�)�	A�	A�G�A�t��D��4�?�?�6�A�:�w�?�?�?�@�@�@�@��E�E�	��E�E�	��G�	D�	D�D��'�'��i��C�C�C�C��9�%�%�	$�	$�D��D�D�D�D�D�"�#�#�#�#��"�)�U�^�4�4�	�%�K�$�t�+�G��D��2�9�/�/�	�7�C�C�C�D�D�D��D�(�)�)�)�)��K��r�w�<�<�!�����B�G���%�%�C��
/�
/����)�A�-�.�.�.�.��D�F�F�F��D�D��g�
�
�
�t�t�t�T�Y�Y�/J�/J�c�/J�/J�/J�%K�%K�%K�%K�M�
N�
N�
N��D�#�$�$�$������ ���)�)�	�	�G�A�t��&�&�t�W�q�[�%�!�)�'4�
6�
6�
6��D�F�F�F�F���
'�(�(�(���
'�(�(�(�����K�����I�I�>�>�%��B�G���*=�*=�>�>�>�?�?�?�?�A�	B�	B�	B�	
��
$�%�%�%���
%�&�&�&��������
)�*�*�*��a�<�<��D�.�/�/�/��
	&��D�#��*�*�2�9�h�
�N�N�O�
P�
P�
P�%�
&�
&����T�H�_�%�%�%�%��D�%�&�&�&�&�%�
&�
&����T�H�_�%�%�%�%��D�(�)�)�)��D�$�%�%�%���S�	�	�	�������rc	��|jrdSt|j��}|dkrd}n|dkrd}nd}|�d|�d|�d|�d	���dS)
Nr�METH_NOARGSr�METH_O�METH_VARARGS�  {"z", _cffi_f_r�z, NULL},)r�r9r�r0)rr:r8r��meths     r�_generate_cpy_function_methodz,VCPythonEngine._generate_cpy_function_method�sp��
�;�	��F��b�g�,�,���a�<�<� �D�D�
��\�\��D�D�!�D��
�
�
����d�d�d�D�D�D�I�J�J�J�J�Jrc�n�|jrdSt||��}t|||��||j|<dSr)r�r��setattrr)rr:r8rhrj�funcs      r�_loaded_cpy_functionz#VCPythonEngine._loaded_cpy_function�sE��
�;�	��F��v�t�$�$�����t�$�$�$�13��(��.�.�.rc�N�||jksJ�|�|d|��dS�N�struct�r8�_generate_struct_or_union_declr�s   r�_generate_cpy_struct_declz(VCPythonEngine._generate_cpy_struct_decl�s/���r�w������+�+�B��$�?�?�?�?�?rc�4�|�|d|��dSr��� _generate_struct_or_union_methodr�s   r�_generate_cpy_struct_methodz*VCPythonEngine._generate_cpy_struct_method�s ���-�-�b�(�D�A�A�A�A�Arc�6�|�|d||��dSr���_loading_struct_or_union�rr:r8rhs    r�_loading_cpy_structz"VCPythonEngine._loading_cpy_struct�s"���%�%�b�(�D�&�A�A�A�A�Arc�0�|�|��dSr��_loaded_struct_or_unionr�s     r�_loaded_cpy_structz!VCPythonEngine._loaded_cpy_struct�����$�$�R�(�(�(�(�(rc�N�||jksJ�|�|d|��dS�N�unionr�r�s   r�_generate_cpy_union_declz'VCPythonEngine._generate_cpy_union_decl�s/���r�w������+�+�B���>�>�>�>�>rc�4�|�|d|��dSr
r�r�s   r�_generate_cpy_union_methodz)VCPythonEngine._generate_cpy_union_method�s ���-�-�b�'�4�@�@�@�@�@rc�6�|�|d||��dSr
rrs    r�_loading_cpy_unionz!VCPythonEngine._loading_cpy_union�s"���%�%�b�'�4��@�@�@�@�@rc�0�|�|��dSrrr�s     r�_loaded_cpy_unionz VCPythonEngine._loaded_cpy_union�rrc	��|j�dSd|�d|��}d|�d|��}|�d|�����}|j}|d|�d|�d���|d��|d	��|d
��|���D]�\}}	}
}t	|	t
j��r|	���s|
dkr|d|z���J	|d
|	�dd|z|����d|�d����w#t$r%}|dt|��z��Yd}~��d}~wwxYw|d��|d��||�d���|d��|d|z��|d��|d|z��|d��|���D]t\}}	}
}|
dkr�|d|�d|�d���t	|	t
j��r(|	j�!|d|	�
��z���b|d|�d |�d����u|d!��|d"��|d#��|d$��|d%��|d&��|d'|�d(���|d��|��dS))N�_cffi_check_r��
_cffi_layout_r�zstatic void r�z *p)rAz8  /* only to generate compile-time warnings or errors */z
  (void)p;rz  (void)((p->%s) << 1);r�z*tmpzfield %r)�qualsz = &p->z; (void)tmp; }z
  /* %s */rEr�z!(PyObject *self, PyObject *noarg)z,  struct _cffi_aligncheck { char x; %s y; };z  static Py_ssize_t nums[] = {z    sizeof(%s),z)    offsetof(struct _cffi_aligncheck, y),z
    offsetof(r�z),z    0,  /* %s */z
    sizeof(((z *)0)->z    -1z  };r�r�z'  return _cffi_get_struct_layout(nums);z3  /* the next line is not executed, but compiled */r�z(0);)r��stripr0�
enumfieldsr6rr7r�r�r�strr��lengthr�)
rr:�prefixr8�
checkfuncname�layoutfuncname�cnamerK�fname�ftype�fbitsize�fqualrs
             rr�z-VCPythonEngine._generate_struct_or_union_decl�s~��
�;���F��/5�v�v�t�t�<�
�
�17�����>��"�F�F�D�D�)�0�0�2�2���z�����
�
�
�u�u�u�
=�>�>�>���S�	�	�	���
G�H�H�H���\����-/�]�]�_�_�	0�	0�)�E�5�(�E��5�%�"5�6�6�
0��)�)�+�+�
0�08�A�
�
���.��6�7�7�7�7�0��D�D��(�(���E�1A��(�O�O�O�O����� � � � ��)�0�0�0��D���A���.�/�/�/�/�/�/�/�/�����0������S�	�	�	���
 �!�!�!���n�n�n�
F�G�G�G���S�	�	�	���
;�e�
C�D�D�D���
-�.�.�.���
��
&�'�'�'���
8�9�9�9�-/�]�]�_�_�	D�	D�)�E�5�(�E��1�}�}���D�D�E�E�E�5�5�5�9�:�:�:��%���1�1�
D�e�l�6J���'�%�*;�*;�*=�*=�=�>�>�>�>����U�U�U�E�E�E�B�C�C�C�C���X������V������
)�*�*�*���
*�+�+�+���
6�7�7�7���
B�C�C�C����=�=�=�
*�+�+�+���S�	�	�	�������s�+C8�8
D'�D"�"D'c�`�|j�dSd|�d|��}|�d|�d|�d���dS)Nrr�r�r�z, METH_NOARGS, NULL},)r�r0)rr:rr8rs     rr�z/VCPythonEngine._generate_struct_or_union_method
s^��
�;���F��17�����>���
�
�
����9G���I�	J�	J�	J�	J�	Jrc���|j�dSd|�d|��}t||��}|��}t|tj��r�|jr�|d}|d}	|ddd�}
|ddd�}|���t|
��t|��cxkrt|j��ksnJ�|
|||	f|_dS|�d|���	��}||f|j
|<dS)Nrr�rr��r�)r�r�r6rr��partial�
force_flattenr9�fixedlayoutrr)
rr:rr8rhr�function�layout�	totalsize�totalalignment�fieldofs�	fieldsizers
             rrz'VCPythonEngine._loading_struct_or_unions$��
�;���F��17�����>���6�>�2�2��������b�%�-�.�.�	B�2�:�	B��q�	�I�#�A�Y�N��a�d��d�|�H��q�t�!�t��I��������x�=�=�C�	�N�N�F�F�F�F�c�"�+�6F�6F�F�F�F�F�F�F�%�y�)�^�K�B�N�N�N� &�����-�4�4�6�6�E�4:�E�M�D�-�b�1�1�1rc���|j�dS|j�|��||jv�rAd�}|j}|�|��}|j�|��\}}||d|�|��d��||d|�|��d��d}|���D]�\}}	}
}|
dkr�||||�||��d|����||dzdkrA|�|	��}|||dz|�|��d|����|dz
}��|t|��ksJ�dSdS)	Nc�<�||krtd|||fz���dS)Nz'%s (we have %d, but C compiler says %d)r)�	realvalue�
expectedvalue�msgs   r�checkz5VCPythonEngine._loaded_struct_or_union.<locals>.check0s9���
�-�-�+�A��
�y�9�:�;�;�;�.�-rrzwrong total sizerzwrong total alignmentr%zwrong offset for field zwrong size for field )
r�r
rvr�pop�sizeof�alignofr�offsetofr9)
rr:r5r
�BStructr+rrYrr r!r"�BFields
             rrz&VCPythonEngine._loaded_struct_or_union)s���
�;���F���"�"�2�&�&�&�
��2�2�2�
;�
;�
;�
�(�C��+�+�B�/�/�G� �=�A�A�"�E�E�M�F�E��E�&��)�S�Z�Z��0�0�2D�E�E�E��E�&��)�S�[�[��1�1�3J�K�K�K��A�13�����	
�	
�-��u�h���q�=�=����f�Q�i����g�u�!=�!=�!=�5:�U�<�>�>�>��!�A�#�;�!�#�#� �2�2�5�9�9�F��E�&��1��+�s�z�z�&�'9�'9�'9�7<�u�>�@�@�@��Q������F���#�#�#�#�/3�2�.$�#rc��t|tj��r|�||d��dS|�|d|��dS�Nr*)r6rr��_generate_cpy_enum_declr�r�s   r�_generate_cpy_anonymous_declz+VCPythonEngine._generate_cpy_anonymous_declMsR���b�%�.�)�)�	>��(�(��T�2�6�6�6�6�6��/�/��B��=�=�=�=�=rc�l�t|tj��s|�|d|��dSdSr=)r6rr�r�r�s   r�_generate_cpy_anonymous_methodz-VCPythonEngine._generate_cpy_anonymous_methodSsA���"�e�n�-�-�	@��1�1�"�b�$�?�?�?�?�?�	@�	@rc��t|tj��r|�|||��dS|�|d||��dSr=)r6rr��_loading_cpy_enumrrs    r�_loading_cpy_anonymousz%VCPythonEngine._loading_cpy_anonymousWsU���b�%�.�)�)�	@��"�"�2�t�V�4�4�4�4�4��)�)�"�b�$��?�?�?�?�?rc��t|tj��r|j|||fi|��dS|�|��dSr)r6rr��_loaded_cpy_enumrr�s     r�_loaded_cpy_anonymousz$VCPythonEngine._loaded_cpy_anonymous]sU���b�%�.�)�)�	-�!�D�!�"�d�F�;�;�d�;�;�;�;�;��(�(��,�,�,�,�,r�constFc	�b�|j}	d|�d|��}
|	d|
z��|	d��|	d��|	d��|s%|	d|p|�d|��z��n|d	ksJ�|�|�||��|sF|d
krd|z}n|}|	d|�d
���|	d|�|dd���d���|sJ�n|	d|z��|	d��|	d��|rQ|	d��|	d��|	d|�d���|	d��|	d��|	d��|	d��|	d|z��|	d��|	d��|	d��|	d |j|z��|
d!z|j|<|	d"��|	��dS)#N�_cffi_r��static int %s(PyObject *lib)rAz  PyObject *o;z
  int res;r�z irHr��&z  i = (r�z  o = rYz
variable typer�z!  o = _cffi_from_c_int_const(%s);z  if (o == NULL)�    return -1;z  {z    PyObject *o1 = o;z3    o = Py_BuildValue("On", o1, (Py_ssize_t)sizeof(z));z    Py_DECREF(o1);z    if (o == NULL)z      return -1;rDz-  res = PyObject_SetAttrString(lib, "%s", o);z  Py_DECREF(o);z  if (res < 0)�  return %s;�(lib)rE)r0r��_check_int_constant_valuer�rF)r�is_intr8r:�category�vartp�delayed�size_too�check_valuerK�funcname�realexprs            rr�z"VCPythonEngine._generate_cpy_constfs����z���$,�H�H�d�d�3����
+�h�
6�7�7�7���S�	�	�	���
������\�����	'��D��E�K�R�3�3�D�$�?�?�?�@�@�@�@��w�&�&�&�&��"��*�*�4��=�=�=��
	=��5� � ���:������D�D�(�(�(�,�-�-�-��D�D�� 9� 9�"�c�:I�!K�!K�!K�!K�M�
N�
N�
N��N�N�7�N��D�4�t�;�<�<�<���
� � � ���
�����	��D��K�K�K��D�(�)�)�)��D�D��D�D��
�
�
��D�%�&�&�&��D�%�&�&�&��D�#�$�$�$��D��K�K�K���
<�t�
C�D�D�D���
������
������
������^�d�:�7�C�
C�D�D�D�08�7�0B��$�W�-���S�	�	�	�������rc��t|tj��o|���}|s|�|��dSdSr)r6rr7r�r<�rr:r8rQs    r�"_generate_cpy_constant_collecttypez1VCPythonEngine._generate_cpy_constant_collecttype�sQ���B�� 3�4�4�M��9K�9K�9M�9M���	&��!�!�"�%�%�%�%�%�	&�	&rc��t|tj��o|���}|�|||��dSr)r6rr7r�r�rZs    r�_generate_cpy_constant_declz*VCPythonEngine._generate_cpy_constant_decl�sC���B�� 3�4�4�M��9K�9K�9M�9M��� � ���r�2�2�2�2�2rc�`�|j}|dkr|d|||fz��n|d|||fz��|d��|d|z��|d|z��|d��|d|z��|d	��|d
��|d|||fz��|d��|d
��dS)Nrz&  if ((%s) > 0 || (long)(%s) != %dL) {z1  if ((%s) <= 0 || (unsigned long)(%s) != %dUL) {z    char buf[64];z    if ((%s) <= 0)z.        snprintf(buf, 63, "%%ld", (long)(%s));z    elsez7        snprintf(buf, 63, "%%lu", (unsigned long)(%s));z)    PyErr_Format(_cffi_VerificationError,z6                 "%s%s has the real value %s, not %s",z(                 "%s", "%s", buf, "%d");rMrD)r0)rr8rV�
err_prefixrKs     rrPz(VCPythonEngine._check_int_constant_value�sB���z���A�:�:��D�9��d�E�=#�#�
$�
$�
$�
$�
�D�D��d�E�H#�#�
$�
$�
$���
 �!�!�!���
!�D�
(�)�)�)���
=��
D�E�E�E���Z������
F�
��	�	�	���
8�9�9�9���
E�F�F�F���
7���e�;%�%�	&�	&�	&���
������U�����rc�>�|�dd��}d|�d|��S)N�$�___D_�_cffi_e_r�)r�)rrr8s   r�_enum_funcnamezVCPythonEngine._enum_funcname�s(���|�|�C��)�)���"(�&�&�$�$�/�/r�enumc��|jr$|jD]}|�d|d����dS|�||��}|j}|d|z��|d��t|j|j��D]\}}|�||d|z��� |d|jdz��|dz|jd<|d	��|��dS)
NTF)rTrKrAz	enum %s: rNrOrE)	r'�enumeratorsr�rdr0�zip�
enumvaluesrPrF)rr:r8r�
enumeratorrWrK�	enumvalues        rr>z&VCPythonEngine._generate_cpy_enum_decl�s��
�:�	� �n�
J�
J�
��(�(��z�5�(�I�I�I�I��F��&�&�v�t�4�4���z����
+�h�
6�7�7�7���S�	�	�	�%(�����%G�%G�	?�	?�!�J�	��*�*�:�y�+6��+=�
?�
?�
?�
?���^�d�:�4�@�
@�A�A�A�-5��-?��$�T�*���S�	�	�	�������rc�v��|jr0�fd�|jD��}t|��|_d|_dSdS)Nc�0��g|]}t�|����Sr)r�)rTrjrhs  �rrWz4VCPythonEngine._loading_cpy_enum.<locals>.<listcomp>�s3���<�<�<�(�"�&�*�5�5�<�<�<rT)r'rg�tupleri�partial_resolved)rr:r8rhris   ` rrCz VCPythonEngine._loading_cpy_enum�s^���
�:�	'�<�<�<�<�,.�N�<�<�<�J�!�*�-�-�B�M�"&�B����		'�	'rc�h�t|j|j��D]\}}t|||���dSr)rhrgrir�)rr:r8rhrjrjrks       rrFzVCPythonEngine._loaded_cpy_enum�sC��%(�����%G�%G�	4�	4�!�J�	��G�Z��3�3�3�3�	4�	4rc�L�|dkrd}n|}|�d||���dS)Nz...T)rV)r�)rr:r8rVs    r�_generate_cpy_macro_declz'VCPythonEngine._generate_cpy_macro_decl�s8��
��;�;��K�K��K�� � ��t�� �E�E�E�E�Erc��t|tj��rtj|j��}ntj|��}|�|��dSr)r6rr�r�r�r<�rr:r8�tp_ptrs    r�"_generate_cpy_variable_collecttypez1VCPythonEngine._generate_cpy_variable_collecttype�sT���b�%�/�*�*�	+��&�r�w�/�/�F�F��&�r�*�*�F����f�%�%�%�%�%rc�"�t|tj��rGtj|j��}|�d||||������dStj|��}|�d||d���dS)NF)rSrUr�)rR)r6rr�r�r�r��length_is_unknownrts    r�_generate_cpy_variable_declz*VCPythonEngine._generate_cpy_variable_decl�s����b�%�/�*�*�	J��&�r�w�/�/�F��$�$�U�D�"�F�02�0D�0D�0F�0F�
%�
H�
H�
H�
H�
H��&�r�*�*�F��$�$�U�D�&�5�$�I�I�I�I�Irc�6�
�t||��}t|tj��r�|���r�t|t
��sJ�|\}}|j�|j��}t||j�
|����\}}	|	dkrtd|�d|j�����|�|��}|j
�F|j�|��}
|j�|
|��}t|||��dS|�
t!||���
fd�}�
fd�}tt#|��|t%||����t#|��j�|��dS)Nrz
bad size: z! does not seem to be an array of c����dSrr)rj�ptrs �r�getterz3VCPythonEngine._loaded_cpy_variable.<locals>.getters����q�6�Mrc���|�d<dSrr)rjrVr|s  �r�setterz3VCPythonEngine._loaded_cpy_variable.<locals>.setter s����C��F�F�Fr)r�r6rr�rxrnr
rvr��divmodr7r�resolve_lengthr�castr��delattrr2�propertyr^�append)rr:r8rhrjrV�size�	BItemTyper�rest�BArrayr}rr|s             @r�_loaded_cpy_variablez#VCPythonEngine._loaded_cpy_variables�������&�&���b�%�/�*�*�	��#�#�%�%�	
/�!�%��/�/�/�/�/� %�
��� �H�6�6�r�w�?�?�	�%�d�D�H�O�O�I�,F�,F�G�G�����1�9�9�+�+����r�w�w�(�)�)�)��&�&�v�.�.���y�$���3�3�B�7�7����
�
�f�e�4�4�����u�-�-�-��F���������	�	�	�	�	�	�	�	�	�	���W�
�
�t�X�f�f�%=�%=�>�>�>��W�
�
��&�&�t�,�,�,�,�,rc��|j}|d��|d��|d|jdz��|d��dS)Nz,static int _cffi_setup_custom(PyObject *lib)rArNTrE)r0rF)rrKs  rrIz%VCPythonEngine._generate_setup_custom'sU���z����
;�<�<�<���S�	�	�	���^�d�:�4�@�
@�A�A�A���S�	�	�	�	�	r)r*r)NrHNTFN)re)Lrcrdre�
_class_key�_gen_python_modulerrrr)r0r3r<rNr�r�r(rqr�r�r�r�r�r��!_generate_cpy_typedef_collecttype�_generate_cpy_typedef_decl�_generate_cpy_typedef_method�_loading_cpy_typedef�_loaded_cpy_typedefr�r�r��_loading_cpy_functionr�� _generate_cpy_struct_collecttyper�r�rr�_generate_cpy_union_collecttyperrrrr�r�rr�#_generate_cpy_anonymous_collecttyper?rArDrGr�r[r]�_generate_cpy_constant_method�_loading_cpy_constant�_loaded_cpy_constantrPrdr>�_generate_cpy_enum_collecttype�_generate_cpy_enum_methodrCrFrr�_generate_cpy_macro_collecttype�_generate_cpy_macro_method�_loading_cpy_macro�_loaded_cpy_macrorvry�_generate_cpy_variable_method�_loading_cpy_variabler�rIrrrrr	s�������J���.�.�.�
�
�
����&�&�&�#�#�#�#�%�%�%�&�&�&�Y�Y�Y�v8�8�8�8�t���
�
�
����
�
�
�
�
�
�
"(�"(�"(�HK�K�K����*�*�*�<):�%�#4��#4� �#/��#/��
	-�	-�	-�N�N�N�`
K�
K�
K�)��4�4�4�(9�$�@�@�@�B�B�B�B�B�B�)�)�)�'8�#�?�?�?�A�A�A�A�A�A�)�)�)�1�1�1�fJ�J�J�B�B�B�*$�$�$�D+<�'�>�>�>�@�@�@�@�@�@�-�-�-�CJ�?D�(,�.�.�.�.�`&�&�&�
3�3�3�%6�!�(��(��
����*0�0�0�
����$&7�"� 1��'�'�'�4�4�4�F�F�F�'8�#�!2��%��%��
&�&�&�J�J�J�%6�!�(��-�-�-�D����rra�(
#include <Python.h>
#include <stddef.h>

/* this block of #ifs should be kept exactly identical between
   c/_cffi_backend.c, cffi/vengine_cpy.py, cffi/vengine_gen.py
   and cffi/_cffi_include.h */
#if defined(_MSC_VER)
# include <malloc.h>   /* for alloca() */
# if _MSC_VER < 1600   /* MSVC < 2010 */
   typedef __int8 int8_t;
   typedef __int16 int16_t;
   typedef __int32 int32_t;
   typedef __int64 int64_t;
   typedef unsigned __int8 uint8_t;
   typedef unsigned __int16 uint16_t;
   typedef unsigned __int32 uint32_t;
   typedef unsigned __int64 uint64_t;
   typedef __int8 int_least8_t;
   typedef __int16 int_least16_t;
   typedef __int32 int_least32_t;
   typedef __int64 int_least64_t;
   typedef unsigned __int8 uint_least8_t;
   typedef unsigned __int16 uint_least16_t;
   typedef unsigned __int32 uint_least32_t;
   typedef unsigned __int64 uint_least64_t;
   typedef __int8 int_fast8_t;
   typedef __int16 int_fast16_t;
   typedef __int32 int_fast32_t;
   typedef __int64 int_fast64_t;
   typedef unsigned __int8 uint_fast8_t;
   typedef unsigned __int16 uint_fast16_t;
   typedef unsigned __int32 uint_fast32_t;
   typedef unsigned __int64 uint_fast64_t;
   typedef __int64 intmax_t;
   typedef unsigned __int64 uintmax_t;
# else
#  include <stdint.h>
# endif
# if _MSC_VER < 1800   /* MSVC < 2013 */
#  ifndef __cplusplus
    typedef unsigned char _Bool;
#  endif
# endif
#else
# include <stdint.h>
# if (defined (__SVR4) && defined (__sun)) || defined(_AIX) || defined(__hpux)
#  include <alloca.h>
# endif
#endif

#if PY_MAJOR_VERSION < 3
# undef PyCapsule_CheckExact
# undef PyCapsule_GetPointer
# define PyCapsule_CheckExact(capsule) (PyCObject_Check(capsule))
# define PyCapsule_GetPointer(capsule, name) \
    (PyCObject_AsVoidPtr(capsule))
#endif

#if PY_MAJOR_VERSION >= 3
# define PyInt_FromLong PyLong_FromLong
#endif

#define _cffi_from_c_double PyFloat_FromDouble
#define _cffi_from_c_float PyFloat_FromDouble
#define _cffi_from_c_long PyInt_FromLong
#define _cffi_from_c_ulong PyLong_FromUnsignedLong
#define _cffi_from_c_longlong PyLong_FromLongLong
#define _cffi_from_c_ulonglong PyLong_FromUnsignedLongLong
#define _cffi_from_c__Bool PyBool_FromLong

#define _cffi_to_c_double PyFloat_AsDouble
#define _cffi_to_c_float PyFloat_AsDouble

#define _cffi_from_c_int_const(x)                                        \
    (((x) > 0) ?                                                         \
        ((unsigned long long)(x) <= (unsigned long long)LONG_MAX) ?      \
            PyInt_FromLong((long)(x)) :                                  \
            PyLong_FromUnsignedLongLong((unsigned long long)(x)) :       \
        ((long long)(x) >= (long long)LONG_MIN) ?                        \
            PyInt_FromLong((long)(x)) :                                  \
            PyLong_FromLongLong((long long)(x)))

#define _cffi_from_c_int(x, type)                                        \
    (((type)-1) > 0 ? /* unsigned */                                     \
        (sizeof(type) < sizeof(long) ?                                   \
            PyInt_FromLong((long)x) :                                    \
         sizeof(type) == sizeof(long) ?                                  \
            PyLong_FromUnsignedLong((unsigned long)x) :                  \
            PyLong_FromUnsignedLongLong((unsigned long long)x)) :        \
        (sizeof(type) <= sizeof(long) ?                                  \
            PyInt_FromLong((long)x) :                                    \
            PyLong_FromLongLong((long long)x)))

#define _cffi_to_c_int(o, type)                                          \
    ((type)(                                                             \
     sizeof(type) == 1 ? (((type)-1) > 0 ? (type)_cffi_to_c_u8(o)        \
                                         : (type)_cffi_to_c_i8(o)) :     \
     sizeof(type) == 2 ? (((type)-1) > 0 ? (type)_cffi_to_c_u16(o)       \
                                         : (type)_cffi_to_c_i16(o)) :    \
     sizeof(type) == 4 ? (((type)-1) > 0 ? (type)_cffi_to_c_u32(o)       \
                                         : (type)_cffi_to_c_i32(o)) :    \
     sizeof(type) == 8 ? (((type)-1) > 0 ? (type)_cffi_to_c_u64(o)       \
                                         : (type)_cffi_to_c_i64(o)) :    \
     (Py_FatalError("unsupported size for type " #type), (type)0)))

#define _cffi_to_c_i8                                                    \
                 ((int(*)(PyObject *))_cffi_exports[1])
#define _cffi_to_c_u8                                                    \
                 ((int(*)(PyObject *))_cffi_exports[2])
#define _cffi_to_c_i16                                                   \
                 ((int(*)(PyObject *))_cffi_exports[3])
#define _cffi_to_c_u16                                                   \
                 ((int(*)(PyObject *))_cffi_exports[4])
#define _cffi_to_c_i32                                                   \
                 ((int(*)(PyObject *))_cffi_exports[5])
#define _cffi_to_c_u32                                                   \
                 ((unsigned int(*)(PyObject *))_cffi_exports[6])
#define _cffi_to_c_i64                                                   \
                 ((long long(*)(PyObject *))_cffi_exports[7])
#define _cffi_to_c_u64                                                   \
                 ((unsigned long long(*)(PyObject *))_cffi_exports[8])
#define _cffi_to_c_char                                                  \
                 ((int(*)(PyObject *))_cffi_exports[9])
#define _cffi_from_c_pointer                                             \
    ((PyObject *(*)(char *, CTypeDescrObject *))_cffi_exports[10])
#define _cffi_to_c_pointer                                               \
    ((char *(*)(PyObject *, CTypeDescrObject *))_cffi_exports[11])
#define _cffi_get_struct_layout                                          \
    ((PyObject *(*)(Py_ssize_t[]))_cffi_exports[12])
#define _cffi_restore_errno                                              \
    ((void(*)(void))_cffi_exports[13])
#define _cffi_save_errno                                                 \
    ((void(*)(void))_cffi_exports[14])
#define _cffi_from_c_char                                                \
    ((PyObject *(*)(char))_cffi_exports[15])
#define _cffi_from_c_deref                                               \
    ((PyObject *(*)(char *, CTypeDescrObject *))_cffi_exports[16])
#define _cffi_to_c                                                       \
    ((int(*)(char *, CTypeDescrObject *, PyObject *))_cffi_exports[17])
#define _cffi_from_c_struct                                              \
    ((PyObject *(*)(char *, CTypeDescrObject *))_cffi_exports[18])
#define _cffi_to_c_wchar_t                                               \
    ((wchar_t(*)(PyObject *))_cffi_exports[19])
#define _cffi_from_c_wchar_t                                             \
    ((PyObject *(*)(wchar_t))_cffi_exports[20])
#define _cffi_to_c_long_double                                           \
    ((long double(*)(PyObject *))_cffi_exports[21])
#define _cffi_to_c__Bool                                                 \
    ((_Bool(*)(PyObject *))_cffi_exports[22])
#define _cffi_prepare_pointer_call_argument                              \
    ((Py_ssize_t(*)(CTypeDescrObject *, PyObject *, char **))_cffi_exports[23])
#define _cffi_convert_array_from_object                                  \
    ((int(*)(char *, CTypeDescrObject *, PyObject *))_cffi_exports[24])
#define _CFFI_NUM_EXPORTS 25

typedef struct _ctypedescr CTypeDescrObject;

static void *_cffi_exports[_CFFI_NUM_EXPORTS];
static PyObject *_cffi_types, *_cffi_VerificationError;

static int _cffi_setup_custom(PyObject *lib);   /* forward */

static PyObject *_cffi_setup(PyObject *self, PyObject *args)
{
    PyObject *library;
    int was_alive = (_cffi_types != NULL);
    (void)self; /* unused */
    if (!PyArg_ParseTuple(args, "OOO", &_cffi_types, &_cffi_VerificationError,
                                       &library))
        return NULL;
    Py_INCREF(_cffi_types);
    Py_INCREF(_cffi_VerificationError);
    if (_cffi_setup_custom(library) < 0)
        return NULL;
    return PyBool_FromLong(was_alive);
}

union _cffi_union_alignment_u {
    unsigned char m_char;
    unsigned short m_short;
    unsigned int m_int;
    unsigned long m_long;
    unsigned long long m_longlong;
    float m_float;
    double m_double;
    long double m_longdouble;
};

struct _cffi_freeme_s {
    struct _cffi_freeme_s *next;
    union _cffi_union_alignment_u alignment;
};

#ifdef __GNUC__
  __attribute__((unused))
#endif
static int _cffi_convert_array_argument(CTypeDescrObject *ctptr, PyObject *arg,
                                        char **output_data, Py_ssize_t datasize,
                                        struct _cffi_freeme_s **freeme)
{
    char *p;
    if (datasize < 0)
        return -1;

    p = *output_data;
    if (p == NULL) {
        struct _cffi_freeme_s *fp = (struct _cffi_freeme_s *)PyObject_Malloc(
            offsetof(struct _cffi_freeme_s, alignment) + (size_t)datasize);
        if (fp == NULL)
            return -1;
        fp->next = *freeme;
        *freeme = fp;
        p = *output_data = (char *)&fp->alignment;
    }
    memset((void *)p, 0, (size_t)datasize);
    return _cffi_convert_array_from_object(p, ctptr, arg);
}

#ifdef __GNUC__
  __attribute__((unused))
#endif
static void _cffi_free_array_arguments(struct _cffi_freeme_s *freeme)
{
    do {
        void *p = (void *)freeme;
        freeme = freeme->next;
        PyObject_Free(p);
    } while (freeme != NULL);
}

static int _cffi_init(void)
{
    PyObject *module, *c_api_object = NULL;

    module = PyImport_ImportModule("_cffi_backend");
    if (module == NULL)
        goto failure;

    c_api_object = PyObject_GetAttrString(module, "_C_API");
    if (c_api_object == NULL)
        goto failure;
    if (!PyCapsule_CheckExact(c_api_object)) {
        PyErr_SetNone(PyExc_ImportError);
        goto failure;
    }
    memcpy(_cffi_exports, PyCapsule_GetPointer(c_api_object, "cffi"),
           _CFFI_NUM_EXPORTS * sizeof(void *));

    Py_DECREF(module);
    Py_DECREF(c_api_object);
    return 0;

  failure:
    Py_XDECREF(module);
    Py_XDECREF(c_api_object);
    return -1;
}

#define _cffi_type(num) ((CTypeDescrObject *)PyList_GET_ITEM(_cffi_types, num))

/**********/
)	rmrr*rr�rrwrrGrrr�<module>r�s{����������������$�$�$�$�$�$�c�c�c�c�c�V�c�c�c�JF���r

?>