Lines Matching refs:entry
87 struct macro_entry *entry;
91 for (entry = ohash_first(macro, &slot); entry != NULL;
92 entry = ohash_next(macro, &slot)) {
93 dba_array_free(entry->pages);
94 free(entry);
161 struct dba_array *page, *entry;
164 entry = dba_array_new(1, DBA_STR | DBA_GROW);
165 dba_array_add(page, entry);
166 entry = dba_array_new(1, DBA_STR | DBA_GROW);
167 dba_array_add(page, entry);
169 entry = dba_array_new(1, DBA_STR | DBA_GROW);
170 dba_array_add(entry, __UNCONST(arch));
172 entry = NULL;
173 dba_array_add(page, entry);
175 entry = dba_array_new(1, DBA_STR | DBA_GROW);
176 dba_array_add(entry, prepend(file, form));
177 dba_array_add(page, entry);
191 char *entry;
205 dba_array_FOREACH(entries, entry) {
206 if (ie == DBP_FILE && *entry < ' ')
207 entry++;
208 if (strcmp(entry, str) == 0)
221 char *entry;
228 dba_array_FOREACH(entries, entry) {
229 if (strcmp(entry + 1, name) == 0) {
230 *entry |= maskbyte;
273 struct dba_array *page, *entry;
279 entry = dba_array_get(page, DBP_NAME);
280 dba_array_sort(entry, compare_names);
281 dba_array_writelst(entry);
285 entry = dba_array_get(page, DBP_SECT);
286 dba_array_sort(entry, compare_strings);
287 dba_array_writelst(entry);
290 if ((entry = dba_array_get(page, DBP_ARCH)) != NULL) {
292 dba_array_sort(entry, compare_strings);
293 dba_array_writelst(entry);
337 * In the hash table for a single macro, look up an entry by
343 struct macro_entry *entry;
348 if ((entry = ohash_find(macro, slot)) == NULL) {
350 entry = mandoc_malloc(sizeof(*entry) + len);
351 memcpy(&entry->value, value, len);
352 entry->pages = dba_array_new(np, DBA_GROW);
353 ohash_insert(macro, slot, entry);
355 return entry;
367 struct macro_entry *entry;
375 entry = get_macro_entry(dba_array_get(dba->macros, im), value, np);
377 dba_array_add(entry->pages, dba_array_get(dba->pages,
389 struct macro_entry *entry;
393 entry = get_macro_entry(dba_array_get(macros, im), value, 1);
394 dba_array_add(entry->pages, page);
424 * - For each entry, two pointers, the first one to the value
434 struct macro_entry **entries, *entry;
451 for (entry = ohash_first(macro, &slot); entry != NULL;
452 entry = ohash_next(macro, &slot)) {
454 dba_array_FOREACH(entry->pages, page)
458 entries[ne++] = entry;