o 6a%@sddlZddZdS)NcCsxttj|dd$}g}|D]}|drq||q|d|Wdn1s1wYttj|ddr}g}d}d}|D]X}|rW|d rVd}qI|d r`d }|drhqI|d rw||d 7}qI|dkr||d 7}||d8}qI| dd}| dd}| dd}||qI|d|WddS1swYdS)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. randomzbitgen.h# Nzdistributions.hrFz#endifz#ifdef __cplusplusTzstatic NPY_INLINE{}DECLDIR NPY_INLINE RAND_INT_TYPEint64_t) openospathjoinstrip startswithappendcdefcountreplace)ffiinc_dirfidslinein_skipignoringrC/usr/lib/python3/dist-packages/numpy/random/_examples/cffi/parse.pyparse_distributions_hsD      "r)r rrrrrs