B
    FŽ0d%  ã               @   s   d dl Z dd„ ZdS )é    Nc          	   C   sZ  t tj |dd¡ƒB}g }x&|D ]}| ¡  d¡r4q | |¡ q W |  d |¡¡ W dQ R X t tj |dd¡ƒà}g }d}d}x¼|D ]´}|r | ¡  d	¡r„d}q„| ¡  d
¡r²d}| ¡  d¡rÂq„| ¡  d¡râ|| d¡7 }q„n(|dkr
|| d¡7 }|| d¡8 }q„| 	dd¡}| 	dd¡}| 	dd¡}| |¡ q„W |  d |¡¡ W dQ R X dS )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.
    Úrandomzbitgen.hú#Ú
Nzdistributions.hr   Fz#endifz#ifdef __cplusplusTzstatic NPY_INLINEÚ{Ú}ZDECLDIRÚ Z
NPY_INLINEZRAND_INT_TYPEZint64_t)
ÚopenÚosÚpathÚjoinÚstripÚ
startswithÚappendZcdefÚcountÚreplace)ÚffiÚinc_dirZfidÚsÚlineZin_skipZignoring© r   úS/var/www/html/venv/lib/python3.7/site-packages/numpy/random/_examples/cffi/parse.pyÚparse_distributions_h   s@    


r   )r	   r   r   r   r   r   Ú<module>   s   