Lines Matching refs:entries
16 struct mappings_entry *entries; member
23 map->entries = 0; in mappings_init()
28 if (map->entries) in mappings_destroy()
29 free(map->entries); in mappings_destroy()
41 a = sizeof(*map->entries) * n; in mappings_grow()
42 if (a / n != sizeof(*map->entries)) in mappings_grow()
44 new_entries = realloc(map->entries, a); in mappings_grow()
47 map->entries = new_entries; in mappings_grow()
61 entry = &map->entries[i]; in mappings_add()
68 size_t n = map->n - i, a = sizeof(*map->entries) * n; in mappings_add()
69 if (a / n != sizeof(*map->entries)) in mappings_add()
71 memmove(&map->entries[i + 1], &map->entries[i], a); in mappings_add()
74 entry = &map->entries[i]; in mappings_add()
86 size_t n = (map->n - i - 1), a = sizeof(*map->entries) * n; in mappings_add()
87 if (a / n != sizeof(*map->entries)) in mappings_add()
89 memmove(&map->entries[i + 2], &map->entries[i + 1], a); in mappings_add()
92 entry = &map->entries[i + 1]; in mappings_add()
368 static struct generator_entry entries[] = { variable
391 for (gen = entries;; ++gen) { in main()
486 gen->visitor(&map.entries[i]); in main()