a
    ;¹§eë  ã                   @   s   d dl Z dd„ ZdS )é    Nc                 C   sp  t tj |dd¡ƒH}g }|D ]}| ¡  d¡r2q| |¡ q|  d |¡¡ W d  ƒ n1 sb0    Y  t tj |dd¡ƒÚ}g }d}d}|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¡}| |¡ q’|  d |¡¡ W d  ƒ n1 sb0    Y  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 inlineÚ{Ú}ZDECLDIRÚ Z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   úU/var/www/sunrise/env/lib/python3.9/site-packages/numpy/random/_examples/cffi/parse.pyÚparse_distributions_h   s>    .
r   )r	   r   r   r   r   r   Ú<module>   s   