Lines Matching refs:index_node
166 struct index_node { struct
171 struct index_node *children[INDEX_CHILDMAX]; /* indexed by character */ argument
185 static struct index_node *index_create(void) in index_create()
187 struct index_node *node; in index_create()
189 node = NOFAIL(calloc(sizeof(struct index_node), 1)); in index_create()
206 static void index_destroy(struct index_node *node) in index_destroy()
211 struct index_node *child = node->children[c]; in index_destroy()
261 static int index_insert(struct index_node *node, const char *key, in index_insert()
280 struct index_node *n; in index_insert()
283 n = NOFAIL(calloc(sizeof(struct index_node), 1)); in index_insert()
284 memcpy(n, node, sizeof(struct index_node)); in index_insert()
288 memset(node, 0, sizeof(struct index_node)); in index_insert()
306 struct index_node *child; in index_insert()
312 node->children[ch] = NOFAIL(calloc(sizeof(struct index_node), 1)); in index_insert()
328 static int index__haschildren(const struct index_node *node) in index__haschildren()
340 static uint32_t index_write__node(const struct index_node *node, FILE *out) in index_write__node()
351 const struct index_node *child; in index_write__node()
404 static void index_write(const struct index_node *node, FILE *out) in index_write()
2071 struct index_node *idx; in output_deps_bin()
2167 struct index_node *idx; in output_aliases_bin()
2258 struct index_node *idx; in output_symbols_bin()
2315 struct index_node *idx; in output_builtin_bin()