11 dttstat(ds, root->left, depth + 1, level);
21 for (
int h = data.
ntab - 1; h >= 0; --h) {
23 for (
Dtlink_t *t = data.htab[h]; t; t = t->right)
51 if (!(Count = calloc(ds->
dt_max + 1,
sizeof(
size_t))))
58 if (!(Count = calloc(ds->
dt_n + 1,
sizeof(
size_t))))
61 for (
size_t i = 0; i <= ds->
dt_n; ++i)
CDT_API int dtsize(Dt_t *)
int dtstat(Dt_t *dt, Dtstat_t *ds, int all)
static void dttstat(Dtstat_t *ds, Dtlink_t *root, size_t depth, size_t *level)
static void dthstat(Dtdata_t data, Dtstat_t *ds, size_t *count)
Dtdata_t data
sharable data