Lines Matching refs:entry
89 table_entry *entry;
92 while ((entry = table_read (file)) != NULL)
94 char *decode_options = entry->field[decode_options_field];
96 if (entry->nr_fields < min_nr_decode_fields)
97 error (entry->line, "Missing decode table fields\n");
98 new_rule->line = entry->line;
141 if (entry->nr_fields > decode_first_field
142 && strlen (entry->field[decode_first_field]) > 0)
145 entry->field[decode_first_field]);
151 if (entry->nr_fields > decode_last_field
152 && strlen (entry->field[decode_last_field]) > 0)
155 entry->field[decode_last_field]);
165 if (entry->nr_fields > decode_force_first_field
166 && strlen (entry->field[decode_force_first_field]) > 0)
169 entry->
178 if (entry->nr_fields > decode_force_last_field
179 && strlen (entry->field[decode_force_last_field]) > 0)
182 entry->
192 if (entry->nr_fields > decode_constant_field_names_field)
194 entry->field[decode_constant_field_names_field]);
197 if (entry->nr_fields > decode_word_nr_field)
198 new_rule->word_nr = a2i (entry->field[decode_word_nr_field]);
201 if (entry->nr_fields > decode_format_names_field)
203 entry->field[decode_format_names_field]);
206 if (entry->nr_fields > decode_model_names_field)
208 entry->field[decode_model_names_field]);
211 if (entry->nr_fields > decode_paths_field
212 && strlen (entry->field[decode_paths_field]) > 0)
215 char *chp = entry->field[decode_paths_field];
219 /* extra root/zero entry */
223 decode_path *entry = ZALLOC (decode_path);
224 entry->opcode_nr = a2i (chp);
225 entry->parent = (*last)->path;
226 (*last)->path = entry;
235 error (entry->line, "Invalid path field\n");
242 while (entry->nr_fields > field_nr)
246 if (entry->nr_fields > field_nr + decode_cond_mask_field)
248 a2i (entry->
250 if (entry->nr_fields > field_nr + decode_cond_value_field)
252 if (entry->field[field_nr + decode_cond_value_field][0] ==
257 a2i (entry->
265 a2i (entry->
270 if (entry->nr_fields > field_nr + decode_cond_word_nr_field)
272 a2i (entry->field[field_nr + decode_cond_word_nr_field]);
289 decode_table_max_word_nr (const decode_table *entry)
292 while (entry != NULL)
295 if (entry->word_nr > max_word_nr)
296 max_word_nr = entry->word_nr;
297 for (cond = entry->conditions; cond != NULL; cond = cond->next)
302 entry = entry->next;