Home | History | Annotate | Download | only in src

Lines Matching refs:table

85     darray(struct atom_node) table;
91 struct atom_table *table;
93 table = calloc(1, sizeof(*table));
94 if (!table)
97 darray_init(table->table);
99 darray_resize0(table->table, 1);
101 return table;
105 atom_table_free(struct atom_table *table)
109 if (!table)
112 darray_foreach(node, table->table)
114 darray_free(table->table);
115 free(table);
119 atom_text(struct atom_table *table, xkb_atom_t atom)
121 if (atom == XKB_ATOM_NONE || atom >= darray_size(table->table))
124 return darray_item(table->table, atom).string;
128 find_atom_pointer(struct atom_table *table, const char *string, size_t len,
131 xkb_atom_t *atomp = &table->root;
141 struct atom_node *node = &darray_item(table->table, *atomp);
173 atom_lookup(struct atom_table *table, const char *string, size_t len)
180 if (!find_atom_pointer(table, string, len, &atomp, NULL))
192 atom_intern(struct atom_table *table, const char *string, size_t len,
202 if (find_atom_pointer(table, string, len, &atomp, &fingerprint)) {
219 node.atom = darray_size(table->table);
222 darray_append(table->table, node);