21 #include "entities.inc"
41 uint32_t *result, int32_t *context)
46 if (result == NULL || context == NULL)
56 if (c < dict[p].split) {
58 }
else if (c == dict[p].split) {
59 if (dict[p].split ==
'\0') {
62 }
else if (dict[p].eq != -1 && dict[dict[p].eq].split ==
'\0') {
64 *result = dict[dict[p].eq].value;
66 }
else if (dict[p].value != 0) {
68 *result = dict[p].value;
uint32_t value
Data for this node.
hubbub_error hubbub_entities_search_step(uint8_t c, uint32_t *result, int32_t *context)
Step-wise search for an entity in the dictionary.
struct hubbub_entity_node hubbub_entity_node
Node in our entity tree.
int32_t gt
Subtree for data greater than split.
int32_t eq
Subtree for data equal to split.
uint8_t split
Data to split on.
static hubbub_error hubbub_entity_tree_search_step(uint8_t c, uint32_t *result, int32_t *context)
Step-wise search for a key in our entity tree.
int32_t lt
Subtree for data less than split.