o
    1ήc%                     @   s   d dl Z dd ZdS )    Nc                 C   sx  t tj|dd$}g }|D ]}| drq|| q| d| W d   n1 s1w   Y  t tj|ddr}g }d}d}|D ]X}|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}|	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 NPY_INLINE{}DECLDIR 
NPY_INLINERAND_INT_TYPEint64_t)
openospathjoinstrip
startswithappendcdefcountreplace)ffiinc_dirfidslinein_skipignoring r   H/tmp/pip-target-vg8gfxp4/lib/python/numpy/random/_examples/cffi/parse.pyparse_distributions_h   sD   	"r   )r   r   r   r   r   r   <module>   s    