o
    ʩZh                     @   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 sw   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   X/var/www/html/lang_env/lib/python3.10/site-packages/numpy/random/_examples/cffi/parse.pyparse_distributions_h   sB   	"r   )r	   r   r   r   r   r   <module>   s    