Home | History | Annotate | Download | only in src

Lines Matching defs:string

80     char *string;
113 free(node->string);
124 return darray_item(table->table, atom).string;
128 find_atom_pointer(struct atom_table *table, const char *string, size_t len,
136 fingerprint = fingerprint * 27 + string[i];
137 fingerprint = fingerprint * 27 + string[len - 1 - i];
151 const int cmp = strncmp(string, node->string, len);
152 if (cmp < 0 || (cmp == 0 && len < strlen(node->string))) {
173 atom_lookup(struct atom_table *table, const char *string, size_t len)
177 if (!string)
180 if (!find_atom_pointer(table, string, len, &atomp, NULL))
187 * If steal is true, we do not strdup @string; therefore it must be
192 atom_intern(struct atom_table *table, const char *string, size_t len,
199 if (!string)
202 if (find_atom_pointer(table, string, len, &atomp, &fingerprint)) {
204 free(UNCONSTIFY(string));
209 node.string = UNCONSTIFY(string);
212 node.string = strndup(string, len);
213 if (!node.string)