'''Wrapper for stats.h

Generated with:
./ctypesgen.py --cpp gcc -E -I/Applications/GRASS-7.8.app/Contents/Resources/include  -D_Nullable=     -I/Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include -I/Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include -D__GLIBC_HAVE_LONG_LONG -lgrass_stats.7.8 /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/stats.h /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h -o OBJ.x86_64-apple-darwin18.7.0/stats.py

Do not modify this file.
'''

__docformat__ = 'restructuredtext'


_libs = {}
_libdirs = []

from .ctypes_preamble import *
from .ctypes_preamble import _variadic_function
from .ctypes_loader import *

add_library_search_dirs([])

# Begin libraries

_libs["grass_stats.7.8"] = load_library("grass_stats.7.8")

# 1 libraries
# End libraries

# No modules

DCELL = c_double # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/gis.h: 596

stat_func = CFUNCTYPE(UNCHECKED(None), POINTER(DCELL), POINTER(DCELL), c_int, POINTER(None)) # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 4

stat_func_w = CFUNCTYPE(UNCHECKED(None), POINTER(DCELL), POINTER(DCELL * 2), c_int, POINTER(None)) # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 5

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 7
for _lib in _libs.values():
    try:
        c_ave = (stat_func).in_dll(_lib, 'c_ave')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 8
for _lib in _libs.values():
    try:
        c_count = (stat_func).in_dll(_lib, 'c_count')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 9
for _lib in _libs.values():
    try:
        c_divr = (stat_func).in_dll(_lib, 'c_divr')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 10
for _lib in _libs.values():
    try:
        c_intr = (stat_func).in_dll(_lib, 'c_intr')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 11
for _lib in _libs.values():
    try:
        c_max = (stat_func).in_dll(_lib, 'c_max')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 12
for _lib in _libs.values():
    try:
        c_maxx = (stat_func).in_dll(_lib, 'c_maxx')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 13
for _lib in _libs.values():
    try:
        c_median = (stat_func).in_dll(_lib, 'c_median')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 14
for _lib in _libs.values():
    try:
        c_min = (stat_func).in_dll(_lib, 'c_min')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 15
for _lib in _libs.values():
    try:
        c_minx = (stat_func).in_dll(_lib, 'c_minx')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 16
for _lib in _libs.values():
    try:
        c_mode = (stat_func).in_dll(_lib, 'c_mode')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 17
for _lib in _libs.values():
    try:
        c_stddev = (stat_func).in_dll(_lib, 'c_stddev')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 18
for _lib in _libs.values():
    try:
        c_sum = (stat_func).in_dll(_lib, 'c_sum')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 19
for _lib in _libs.values():
    try:
        c_thresh = (stat_func).in_dll(_lib, 'c_thresh')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 20
for _lib in _libs.values():
    try:
        c_var = (stat_func).in_dll(_lib, 'c_var')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 21
for _lib in _libs.values():
    try:
        c_range = (stat_func).in_dll(_lib, 'c_range')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 22
for _lib in _libs.values():
    try:
        c_reg_m = (stat_func).in_dll(_lib, 'c_reg_m')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 23
for _lib in _libs.values():
    try:
        c_reg_c = (stat_func).in_dll(_lib, 'c_reg_c')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 24
for _lib in _libs.values():
    try:
        c_reg_r2 = (stat_func).in_dll(_lib, 'c_reg_r2')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 25
for _lib in _libs.values():
    try:
        c_reg_t = (stat_func).in_dll(_lib, 'c_reg_t')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 26
for _lib in _libs.values():
    try:
        c_quart1 = (stat_func).in_dll(_lib, 'c_quart1')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 27
for _lib in _libs.values():
    try:
        c_quart3 = (stat_func).in_dll(_lib, 'c_quart3')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 28
for _lib in _libs.values():
    try:
        c_perc90 = (stat_func).in_dll(_lib, 'c_perc90')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 29
for _lib in _libs.values():
    try:
        c_quant = (stat_func).in_dll(_lib, 'c_quant')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 30
for _lib in _libs.values():
    try:
        c_skew = (stat_func).in_dll(_lib, 'c_skew')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 31
for _lib in _libs.values():
    try:
        c_kurt = (stat_func).in_dll(_lib, 'c_kurt')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 33
for _lib in _libs.values():
    try:
        w_ave = (stat_func_w).in_dll(_lib, 'w_ave')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 34
for _lib in _libs.values():
    try:
        w_count = (stat_func_w).in_dll(_lib, 'w_count')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 35
for _lib in _libs.values():
    try:
        w_median = (stat_func_w).in_dll(_lib, 'w_median')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 36
for _lib in _libs.values():
    try:
        w_min = (stat_func_w).in_dll(_lib, 'w_min')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 37
for _lib in _libs.values():
    try:
        w_max = (stat_func_w).in_dll(_lib, 'w_max')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 38
for _lib in _libs.values():
    try:
        w_mode = (stat_func_w).in_dll(_lib, 'w_mode')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 39
for _lib in _libs.values():
    try:
        w_quart1 = (stat_func_w).in_dll(_lib, 'w_quart1')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 40
for _lib in _libs.values():
    try:
        w_quart3 = (stat_func_w).in_dll(_lib, 'w_quart3')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 41
for _lib in _libs.values():
    try:
        w_perc90 = (stat_func_w).in_dll(_lib, 'w_perc90')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 42
for _lib in _libs.values():
    try:
        w_quant = (stat_func_w).in_dll(_lib, 'w_quant')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 43
for _lib in _libs.values():
    try:
        w_reg_m = (stat_func_w).in_dll(_lib, 'w_reg_m')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 44
for _lib in _libs.values():
    try:
        w_reg_c = (stat_func_w).in_dll(_lib, 'w_reg_c')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 45
for _lib in _libs.values():
    try:
        w_reg_r2 = (stat_func_w).in_dll(_lib, 'w_reg_r2')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 46
for _lib in _libs.values():
    try:
        w_reg_t = (stat_func_w).in_dll(_lib, 'w_reg_t')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 47
for _lib in _libs.values():
    try:
        w_stddev = (stat_func_w).in_dll(_lib, 'w_stddev')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 48
for _lib in _libs.values():
    try:
        w_sum = (stat_func_w).in_dll(_lib, 'w_sum')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 49
for _lib in _libs.values():
    try:
        w_var = (stat_func_w).in_dll(_lib, 'w_var')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 50
for _lib in _libs.values():
    try:
        w_skew = (stat_func_w).in_dll(_lib, 'w_skew')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 51
for _lib in _libs.values():
    try:
        w_kurt = (stat_func_w).in_dll(_lib, 'w_kurt')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 53
for _lib in six.itervalues(_libs):
    if not hasattr(_lib, 'sort_cell'):
        continue
    sort_cell = _lib.sort_cell
    sort_cell.argtypes = [POINTER(DCELL), c_int]
    sort_cell.restype = c_int
    break

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 54
for _lib in six.itervalues(_libs):
    if not hasattr(_lib, 'sort_cell_w'):
        continue
    sort_cell_w = _lib.sort_cell_w
    sort_cell_w.argtypes = [POINTER(DCELL * 2), c_int]
    sort_cell_w.restype = c_int
    break

# No inserted files


'''Wrapper for stats.h

Generated with:
./ctypesgen.py --cpp gcc -E -I/Applications/GRASS-7.8.app/Contents/Resources/include  -D_Nullable=     -I/Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include -I/Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include -D__GLIBC_HAVE_LONG_LONG -lgrass_stats.7.8 /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/stats.h /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h -o OBJ.x86_64-apple-darwin18.7.0/stats.py

Do not modify this file.
'''

__docformat__ = 'restructuredtext'


_libs = {}
_libdirs = []

from .ctypes_preamble import *
from .ctypes_preamble import _variadic_function
from .ctypes_loader import *

add_library_search_dirs([])

# Begin libraries

_libs["grass_stats.7.8"] = load_library("grass_stats.7.8")

# 1 libraries
# End libraries

# No modules

DCELL = c_double # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/gis.h: 596

stat_func = CFUNCTYPE(UNCHECKED(None), POINTER(DCELL), POINTER(DCELL), c_int, POINTER(None)) # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 4

stat_func_w = CFUNCTYPE(UNCHECKED(None), POINTER(DCELL), POINTER(DCELL * 2), c_int, POINTER(None)) # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 5

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 7
for _lib in _libs.values():
    try:
        c_ave = (stat_func).in_dll(_lib, 'c_ave')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 8
for _lib in _libs.values():
    try:
        c_count = (stat_func).in_dll(_lib, 'c_count')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 9
for _lib in _libs.values():
    try:
        c_divr = (stat_func).in_dll(_lib, 'c_divr')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 10
for _lib in _libs.values():
    try:
        c_intr = (stat_func).in_dll(_lib, 'c_intr')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 11
for _lib in _libs.values():
    try:
        c_max = (stat_func).in_dll(_lib, 'c_max')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 12
for _lib in _libs.values():
    try:
        c_maxx = (stat_func).in_dll(_lib, 'c_maxx')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 13
for _lib in _libs.values():
    try:
        c_median = (stat_func).in_dll(_lib, 'c_median')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 14
for _lib in _libs.values():
    try:
        c_min = (stat_func).in_dll(_lib, 'c_min')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 15
for _lib in _libs.values():
    try:
        c_minx = (stat_func).in_dll(_lib, 'c_minx')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 16
for _lib in _libs.values():
    try:
        c_mode = (stat_func).in_dll(_lib, 'c_mode')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 17
for _lib in _libs.values():
    try:
        c_stddev = (stat_func).in_dll(_lib, 'c_stddev')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 18
for _lib in _libs.values():
    try:
        c_sum = (stat_func).in_dll(_lib, 'c_sum')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 19
for _lib in _libs.values():
    try:
        c_thresh = (stat_func).in_dll(_lib, 'c_thresh')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 20
for _lib in _libs.values():
    try:
        c_var = (stat_func).in_dll(_lib, 'c_var')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 21
for _lib in _libs.values():
    try:
        c_range = (stat_func).in_dll(_lib, 'c_range')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 22
for _lib in _libs.values():
    try:
        c_reg_m = (stat_func).in_dll(_lib, 'c_reg_m')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 23
for _lib in _libs.values():
    try:
        c_reg_c = (stat_func).in_dll(_lib, 'c_reg_c')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 24
for _lib in _libs.values():
    try:
        c_reg_r2 = (stat_func).in_dll(_lib, 'c_reg_r2')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 25
for _lib in _libs.values():
    try:
        c_reg_t = (stat_func).in_dll(_lib, 'c_reg_t')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 26
for _lib in _libs.values():
    try:
        c_quart1 = (stat_func).in_dll(_lib, 'c_quart1')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 27
for _lib in _libs.values():
    try:
        c_quart3 = (stat_func).in_dll(_lib, 'c_quart3')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 28
for _lib in _libs.values():
    try:
        c_perc90 = (stat_func).in_dll(_lib, 'c_perc90')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 29
for _lib in _libs.values():
    try:
        c_quant = (stat_func).in_dll(_lib, 'c_quant')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 30
for _lib in _libs.values():
    try:
        c_skew = (stat_func).in_dll(_lib, 'c_skew')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 31
for _lib in _libs.values():
    try:
        c_kurt = (stat_func).in_dll(_lib, 'c_kurt')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 33
for _lib in _libs.values():
    try:
        w_ave = (stat_func_w).in_dll(_lib, 'w_ave')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 34
for _lib in _libs.values():
    try:
        w_count = (stat_func_w).in_dll(_lib, 'w_count')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 35
for _lib in _libs.values():
    try:
        w_median = (stat_func_w).in_dll(_lib, 'w_median')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 36
for _lib in _libs.values():
    try:
        w_min = (stat_func_w).in_dll(_lib, 'w_min')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 37
for _lib in _libs.values():
    try:
        w_max = (stat_func_w).in_dll(_lib, 'w_max')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 38
for _lib in _libs.values():
    try:
        w_mode = (stat_func_w).in_dll(_lib, 'w_mode')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 39
for _lib in _libs.values():
    try:
        w_quart1 = (stat_func_w).in_dll(_lib, 'w_quart1')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 40
for _lib in _libs.values():
    try:
        w_quart3 = (stat_func_w).in_dll(_lib, 'w_quart3')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 41
for _lib in _libs.values():
    try:
        w_perc90 = (stat_func_w).in_dll(_lib, 'w_perc90')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 42
for _lib in _libs.values():
    try:
        w_quant = (stat_func_w).in_dll(_lib, 'w_quant')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 43
for _lib in _libs.values():
    try:
        w_reg_m = (stat_func_w).in_dll(_lib, 'w_reg_m')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 44
for _lib in _libs.values():
    try:
        w_reg_c = (stat_func_w).in_dll(_lib, 'w_reg_c')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 45
for _lib in _libs.values():
    try:
        w_reg_r2 = (stat_func_w).in_dll(_lib, 'w_reg_r2')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 46
for _lib in _libs.values():
    try:
        w_reg_t = (stat_func_w).in_dll(_lib, 'w_reg_t')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 47
for _lib in _libs.values():
    try:
        w_stddev = (stat_func_w).in_dll(_lib, 'w_stddev')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 48
for _lib in _libs.values():
    try:
        w_sum = (stat_func_w).in_dll(_lib, 'w_sum')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 49
for _lib in _libs.values():
    try:
        w_var = (stat_func_w).in_dll(_lib, 'w_var')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 50
for _lib in _libs.values():
    try:
        w_skew = (stat_func_w).in_dll(_lib, 'w_skew')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 51
for _lib in _libs.values():
    try:
        w_kurt = (stat_func_w).in_dll(_lib, 'w_kurt')
        break
    except:
        pass

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 53
for _lib in six.itervalues(_libs):
    if not hasattr(_lib, 'sort_cell'):
        continue
    sort_cell = _lib.sort_cell
    sort_cell.argtypes = [POINTER(DCELL), c_int]
    sort_cell.restype = c_int
    break

# /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 54
for _lib in six.itervalues(_libs):
    if not hasattr(_lib, 'sort_cell_w'):
        continue
    sort_cell_w = _lib.sort_cell_w
    sort_cell_w.argtypes = [POINTER(DCELL * 2), c_int]
    sort_cell_w.restype = c_int
    break

# No inserted files


Wrapper for stats.h  Generated with: ./ctypesgen.py --cpp gcc -E -I/Applications/GRASS-7.8.app/Contents/Resources/include  -D_Nullable=     -I/Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include -I/Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include -D__GLIBC_HAVE_LONG_LONG -lgrass_stats.7.8 /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/stats.h /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h -o OBJ.x86_64-apple-darwin18.7.0/stats.py  Do not modify this file. # Begin libraries # 1 libraries # End libraries # No modules # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/gis.h: 596 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 4 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 5 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 7 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 8 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 9 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 10 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 11 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 12 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 13 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 14 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 15 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 16 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 17 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 18 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 19 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 20 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 21 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 22 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 23 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 24 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 25 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 26 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 27 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 28 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 29 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 30 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 31 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 33 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 34 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 35 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 36 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 37 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 38 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 39 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 40 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 41 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 42 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 43 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 44 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 45 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 46 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 47 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 48 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 49 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 50 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 51 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 53 # /Users/cmbarton/grass_source/grass-7.8.3/dist.x86_64-apple-darwin18.7.0/include/grass/defs/stats.h: 54 # No inserted files