Lines Matching defs:ent
173 by_dir_entry_free(BY_DIR_ENTRY *ent)
175 free(ent->dir);
176 sk_BY_DIR_HASH_pop_free(ent->hashes, by_dir_hash_free);
177 free(ent);
207 BY_DIR_ENTRY *ent;
215 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j);
216 if (strlen(ent->dir) == (size_t)len &&
217 strncmp(ent->dir, ss, (size_t)len) == 0)
229 ent = malloc(sizeof(*ent));
230 if (ent == NULL) {
234 ent->dir_type = type;
235 ent->hashes = sk_BY_DIR_HASH_new(by_dir_hash_cmp);
236 ent->dir = strndup(ss, (size_t)len);
237 if (ent->dir == NULL || ent->hashes == NULL) {
239 by_dir_entry_free(ent);
242 if (!sk_BY_DIR_ENTRY_push(ctx->dirs, ent)) {
244 by_dir_entry_free(ent);
302 BY_DIR_ENTRY *ent;
306 ent = sk_BY_DIR_ENTRY_value(ctx->dirs, i);
307 j = strlen(ent->dir) + 1 + 8 + 6 + 1 + 1;
315 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp);
317 hent = sk_BY_DIR_HASH_value(ent->hashes, idx);
330 ent->dir, h, postfix, k);
340 ent->dir_type)) == 0) {
346 ent->dir_type)) == 0) {
370 idx = sk_BY_DIR_HASH_find(ent->hashes, &htmp);
371 hent = sk_BY_DIR_HASH_value(ent->hashes, idx);
383 if (!sk_BY_DIR_HASH_push(ent->hashes, hent)) {