%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib64/python3.9/site-packages/numpy/random/_examples/cffi/__pycache__/
Upload File :
Create Path :
Current File : //lib64/python3.9/site-packages/numpy/random/_examples/cffi/__pycache__/parse.cpython-39.pyc

a

z[yc%�@sddlZdd�ZdS)�NcCs|ttj�|dd���H}g}|D]}|���d�r2q|�|�q|�d�|��Wd�n1sb0Yttj�|dd����}g}d}d}|D]�}|r�|���d	�r�d}q�|���d
�r�d}|���d�r�q�|���d�r�||�d
�7}q�n(|dk�r||�d
�7}||�d�8}q�|�	dd�}|�	dd�}|�	dd�}|�|�q�|�d�|��Wd�n1�sn0YdS)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.
    Zrandomzbitgen.h�#�
Nzdistributions.hrFz#endifz#ifdef __cplusplusTzstatic NPY_INLINE�{�}ZDECLDIR�Z
NPY_INLINEZ
RAND_INT_TYPEZint64_t)
�open�os�path�join�strip�
startswith�appendZcdef�count�replace)ZffiZinc_dirZfid�s�lineZin_skipZignoring�r�G/usr/lib64/python3.9/site-packages/numpy/random/_examples/cffi/parse.py�parse_distributions_hs@.
r)rrrrrr�<module>s

Zerion Mini Shell 1.0