o
    G“ög  ã                   @   s   d dl Z dd„ ZdS )é    Nc                 C   sl  t tj |dd¡ƒ$}g }|D ]}| ¡  d¡rq| |¡ q|  d |¡¡ W d  ƒ n1 s1w   Y  t tj |dd¡ƒl}g }d}d}|D ]R}|rW| ¡  d	¡rVd}qI| ¡  d
¡r`d}| ¡  d¡rhqI| ¡  d¡rw|| d¡7 }qI|dkrŠ|| d¡7 }|| d¡8 }qI| 	dd¡}| 	dd¡}| |¡ qI|  d |¡¡ W d  ƒ dS 1 s¯w   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   úbC:\Users\micha\Documents\internet-seite\env\Lib\site-packages\numpy/random/_examples/cffi/parse.pyÚparse_distributions_h   sB   ù	"àr   )r	   r   r   r   r   r   Ú<module>   s    