Lines Matching refs:ds
9 data_count *ds = data_count_init(); in data_count_copy() local
11 buffer_copy_string_buffer(ds->key, src->key); in data_count_copy()
12 ds->count = src->count; in data_count_copy()
13 ds->is_index_key = src->is_index_key; in data_count_copy()
14 return (data_unset *)ds; in data_count_copy()
18 data_count *ds = (data_count *)d; in data_count_free() local
20 buffer_free(ds->key); in data_count_free()
26 data_count *ds = (data_count *)d; in data_count_reset() local
28 buffer_reset(ds->key); in data_count_reset()
30 ds->count = 0; in data_count_reset()
45 data_count *ds = (data_count *)d; in data_count_print() local
48 fprintf(stdout, "count(%d)", ds->count); in data_count_print()
53 data_count *ds; in data_count_init() local
55 ds = calloc(1, sizeof(*ds)); in data_count_init()
57 ds->key = buffer_init(); in data_count_init()
58 ds->count = 1; in data_count_init()
60 ds->copy = data_count_copy; in data_count_init()
61 ds->free = data_count_free; in data_count_init()
62 ds->reset = data_count_reset; in data_count_init()
63 ds->insert_dup = data_count_insert_dup; in data_count_init()
64 ds->print = data_count_print; in data_count_init()
65 ds->type = TYPE_COUNT; in data_count_init()
67 return ds; in data_count_init()