Lines Matching refs:data
49 kv_t *data; in kva_match() local
54 data = kva->data; in kva_match()
56 if (strcmp(data[i].key, key) == 0) { in kva_match()
57 return (data[i].value); in kva_match()
71 kv_t *data; in _kva_free() local
76 data = kva->data; in _kva_free()
78 if (data[i].key != NULL) { in _kva_free()
79 free(data[i].key); in _kva_free()
80 data[i].key = NULL; in _kva_free()
82 if (data[i].value != NULL) { in _kva_free()
83 free(data[i].value); in _kva_free()
84 data[i].value = NULL; in _kva_free()
87 free(kva->data); in _kva_free()
99 kv_t *data; in _kva_free_value() local
106 data = kva->data; in _kva_free_value()
109 if (strcmp(data->key, key) == 0 && data->value != NULL) { in _kva_free_value()
110 free(data->value); in _kva_free_value()
111 data->value = NULL; in _kva_free_value()
113 data++; in _kva_free_value()
128 if ((new_kva->data = (kv_t *)calloc(1, (size*sizeof (kv_t)))) == NULL) { in _new_kva()
152 kv_t *data; in _str2kva() local
178 data = nkva->data; in _str2kva()
187 data[nkva->length].key = _do_unescape(key); in _str2kva()
188 data[nkva->length].value = _do_unescape(last_key); in _str2kva()
209 kv_t *data; in _kva2str() local
216 data = kva->data; in _kva2str()
219 if (data[i].value != NULL) { in _kva2str()
221 data[i].key, ass, data[i].value, del); in _kva2str()
236 kv_t *data; in _insert2kva() local
241 data = kva->data; in _insert2kva()
243 if (strcmp(data[i].key, key) == 0) { in _insert2kva()
244 if (data[i].value != NULL) in _insert2kva()
245 free(data[i].value); in _insert2kva()
246 data[i].value = _strdup_null(value); in _insert2kva()
265 old_data = old_kva->data; in _kva_dup()
270 new_data = nkva->data; in _kva_dup()
395 kv_t *data; in print_kva() local
401 data = kva->data; in print_kva()
404 data[i].key != NULL ? data[i].key : "NULL", in print_kva()
405 data[i].value != NULL ? data[i].value : "NULL"); in print_kva()