Lines Matching refs:search
142 /* Initialize a keyword table search.
143 SPEC is a specification of what to search for.
147 The result is an opaque data item used to record the search status.
153 CGEN_KEYWORD_SEARCH search;
162 search.table = kt;
163 search.spec = spec;
164 search.current_hash = 0;
165 search.current_entry = NULL;
166 return search;
173 cgen_keyword_search_next (CGEN_KEYWORD_SEARCH *search)
175 /* Has search finished? */
176 if (search->current_hash == search->table->hash_table_size)
180 if (search->current_entry != NULL
182 && search->current_entry->next_name != NULL)
184 search->current_entry = search->current_entry->next_name;
185 return search->current_entry;
189 if (search->current_entry != NULL)
190 ++search->current_hash;
192 while (search->current_hash < search->table->hash_table_size)
194 search->current_entry = search->table->name_hash_table[search->current_hash];
195 if (search->current_entry != NULL)
196 return search->current_entry;
197 ++search->current_hash;
443 ALIAS_P is non-zero if alias insns are to be included in the search.