3
Kd                 @   s   d dl Z dd ZdS )    Nc             C   s*  t tjj|ddB}g }x&|D ]}|j jdr4q |j| q W | jdj| W dQ R X t tjj|dd}g }d}x|D ]}|j jdrq|j jdr||jd	7 }qn&|dkr||jd	7 }||jd
8 }q|j	dd}|j	dd}|j	dd}|j| qW | jdj| 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   z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_skip r   U/var/www/html/virt/lib64/python3.6/site-packages/numpy/random/_examples/cffi/parse.pyparse_distributions_h   s2    

r   )r	   r   r   r   r   r   <module>   s   