comparison tern.h @ 1692:5dacaef602a7 segacd

Merge from default
author Michael Pavone <pavone@retrodev.com>
date Sat, 05 Jan 2019 00:58:08 -0800
parents 63659fb92db4
children de3d20e58555
comparison
equal deleted inserted replaced
1504:95b3a1a8b26c 1692:5dacaef602a7
41 intptr_t tern_find_int(tern_node * head, char const * key, intptr_t def); 41 intptr_t tern_find_int(tern_node * head, char const * key, intptr_t def);
42 tern_node * tern_insert_int(tern_node * head, char const * key, intptr_t value); 42 tern_node * tern_insert_int(tern_node * head, char const * key, intptr_t value);
43 void * tern_find_ptr_default(tern_node * head, char const * key, void * def); 43 void * tern_find_ptr_default(tern_node * head, char const * key, void * def);
44 void * tern_find_ptr(tern_node * head, char const * key); 44 void * tern_find_ptr(tern_node * head, char const * key);
45 tern_node *tern_find_node(tern_node *head, char const *key); 45 tern_node *tern_find_node(tern_node *head, char const *key);
46 uint8_t tern_delete(tern_node **head, char const *key, tern_val *out);
46 tern_val tern_find_path_default(tern_node *head, char const *key, tern_val def, uint8_t req_valtype); 47 tern_val tern_find_path_default(tern_node *head, char const *key, tern_val def, uint8_t req_valtype);
47 tern_val tern_find_path(tern_node *head, char const *key, uint8_t valtype); 48 tern_val tern_find_path(tern_node *head, char const *key, uint8_t valtype);
49 uint8_t tern_delete_path(tern_node **head, char const *key, tern_val *out);
48 tern_node * tern_insert_ptr(tern_node * head, char const * key, void * value); 50 tern_node * tern_insert_ptr(tern_node * head, char const * key, void * value);
49 tern_node * tern_insert_node(tern_node *head, char const *key, tern_node *value); 51 tern_node * tern_insert_node(tern_node *head, char const *key, tern_node *value);
52 tern_node *tern_insert_path(tern_node *head, char const *key, tern_val val, uint8_t valtype);
50 uint32_t tern_count(tern_node *head); 53 uint32_t tern_count(tern_node *head);
51 void tern_foreach(tern_node *head, iter_fun fun, void *data); 54 void tern_foreach(tern_node *head, iter_fun fun, void *data);
52 char * tern_int_key(uint32_t key, char * buf); 55 char * tern_int_key(uint32_t key, char * buf);
53 void tern_free(tern_node *head); 56 void tern_free(tern_node *head);
54 57