← Back
Editing: parse.cpython-311.pyc
� ���c% � � � d dl Z d� ZdS )� Nc � � t t j � |dd� � � � 5 }g }|D ]?}|� � � � d� � r�*|� |� � �@| � d� |� � � � ddd� � n# 1 swxY w Y t t j � |dd� � � � 5 }g }d}d}|D �]N}|r*|� � � � d � � rd}�/|� � � � d � � rd}|� � � � d� � r��|� � � � d� � r||� d � � z }��|dk r1||� d � � z }||� d� � z }��|� dd� � }|� dd� � }|� dd� � }|� |� � ��P| � d� |� � � � ddd� � dS # 1 swxY w Y dS )z� Parse distributions.h located in inc_dir for CFFI, filling in the ffi.cdef Read the function declarations without the "#define ..." macros that will be filled in when loading the library. �randomzbitgen.h�#� Nzdistributions.hr Fz#endifz#ifdef __cplusplusTzstatic NPY_INLINE�{�}�DECLDIR� � NPY_INLINE� RAND_INT_TYPE�int64_t) �open�os�path�join�strip� startswith�append�cdef�count�replace)�ffi�inc_dir�fid�s�line�in_skip�ignorings �C/usr/lib/python3/dist-packages/numpy/random/_examples/cffi/parse.py�parse_distributions_hr s� � � �b�g�l�l�7�H�j�9�9� :� :� �c���� � �D��z�z�|�|�&�&�s�+�+� �� �H�H�T�N�N�N�N�������1������� � � � � � � � � � ���� � � � � �b�g�l�l�7�H�.?�@�@� A� A� !�S�������� � �D�� ��:�:�<�<�*�*�8�4�4� %�$�H���z�z�|�|�&�&�';�<�<� ��� �z�z�|�|�&�&�s�+�+� �� �z�z�|�|�&�&�':�;�;� ��4�:�:�c�?�?�*����1����4�:�:�c�?�?�*���4�:�:�c�?�?�*��� �<�<� �2�.�.�D��<�<��b�1�1�D��<�<���;�;�D� �H�H�T�N�N�N�N�������1������C!� !� !� !� !� !� !� !� !� !� !� !���� !� !� !� !� !� !s% �A-B(�(B,�/B,�!FI/�/I3�6I3)r r � � r �<module>r# s'