Lines Matching refs:entry
91 table_entry *entry;
94 while ((entry = table_read (file)) != NULL)
96 char *decode_options = entry->field[decode_options_field];
98 if (entry->nr_fields < min_nr_decode_fields)
99 error (entry->line, "Missing decode table fields\n");
100 new_rule->line = entry->line;
143 if (entry->nr_fields > decode_first_field
144 && strlen (entry->field[decode_first_field]) > 0)
147 entry->field[decode_first_field]);
153 if (entry->nr_fields > decode_last_field
154 && strlen (entry->field[decode_last_field]) > 0)
157 entry->field[decode_last_field]);
167 if (entry->nr_fields > decode_force_first_field
168 && strlen (entry->field[decode_force_first_field]) > 0)
171 entry->
180 if (entry->nr_fields > decode_force_last_field
181 && strlen (entry->field[decode_force_last_field]) > 0)
184 entry->
194 if (entry->nr_fields > decode_constant_field_names_field)
196 entry->field[decode_constant_field_names_field]);
199 if (entry->nr_fields > decode_word_nr_field)
200 new_rule->word_nr = a2i (entry->field[decode_word_nr_field]);
203 if (entry->nr_fields > decode_format_names_field)
205 entry->field[decode_format_names_field]);
208 if (entry->nr_fields > decode_model_names_field)
210 entry->field[decode_model_names_field]);
213 if (entry->nr_fields > decode_paths_field
214 && strlen (entry->field[decode_paths_field]) > 0)
217 char *chp = entry->field[decode_paths_field];
221 /* extra root/zero entry */
225 decode_path *entry = ZALLOC (decode_path);
226 entry->opcode_nr = a2i (chp);
227 entry->parent = (*last)->path;
228 (*last)->path = entry;
237 error (entry->line, "Invalid path field\n");
244 while (entry->nr_fields > field_nr)
248 if (entry->nr_fields > field_nr + decode_cond_mask_field)
250 a2i (entry->
252 if (entry->nr_fields > field_nr + decode_cond_value_field)
254 if (entry->field[field_nr + decode_cond_value_field][0] ==
259 a2i (entry->
267 a2i (entry->
272 if (entry->nr_fields > field_nr + decode_cond_word_nr_field)
274 a2i (entry->field[field_nr + decode_cond_word_nr_field]);
291 decode_table_max_word_nr (const decode_table *entry)
294 while (entry != NULL)
297 if (entry->word_nr > max_word_nr)
298 max_word_nr = entry->word_nr;
299 for (cond = entry->conditions; cond != NULL; cond = cond->next)
304 entry = entry->next;