• Home
  • Raw
  • Download

Lines Matching refs:e

841 	struct element *e = calloc(1, sizeof(*e));  in alloc_elem()  local
842 if (!e) { in alloc_elem()
846 e->list_next = element_list; in alloc_elem()
847 element_list = e; in alloc_elem()
848 return e; in alloc_elem()
1214 static void dump_element(const struct element *e, int level) in dump_element() argument
1217 const struct type *t = e->type_def; in dump_element()
1218 const char *name = e->name ? e->name->content : "."; in dump_element()
1222 if (e->class == 0 && e->method == 0 && e->tag == 0) in dump_element()
1224 else if (e->class == ASN1_UNIV) in dump_element()
1226 asn1_classes[e->class], in dump_element()
1227 asn1_methods[e->method], in dump_element()
1228 asn1_universal_tags[e->tag]); in dump_element()
1231 asn1_classes[e->class], in dump_element()
1232 asn1_methods[e->method], in dump_element()
1233 e->tag); in dump_element()
1236 e->flags & ELEMENT_IMPLICIT ? 'I' : '-', in dump_element()
1237 e->flags & ELEMENT_EXPLICIT ? 'E' : '-', in dump_element()
1238 e->flags & ELEMENT_TAG_SPECIFIED ? 'T' : '-', in dump_element()
1239 e->flags & ELEMENT_SKIPPABLE ? 'S' : '-', in dump_element()
1240 e->flags & ELEMENT_CONDITIONAL ? 'C' : '-', in dump_element()
1241 "-tTqQcaro"[e->compound], in dump_element()
1246 e->action ? e->action->name : ""); in dump_element()
1247 if (e->compound == TYPE_REF) in dump_element()
1248 dump_element(e->type->type->element, level + 3); in dump_element()
1250 for (c = e->children; c; c = c->next) in dump_element()
1260 static void render_element(FILE *out, struct element *e, struct element *tag);
1298 struct element *e; in render() local
1368 for (e = element_list; e; e = e->list_next) in render()
1369 e->flags &= ~ELEMENT_RENDERED; in render()
1398 struct element *e, *ce; in render_out_of_line_list() local
1402 while ((e = render_list)) { in render_out_of_line_list()
1403 render_list = e->render_next; in render_out_of_line_list()
1408 e->entry_index = entry = nr_entries; in render_out_of_line_list()
1410 for (ce = e->children; ce; ce = ce->next) in render_out_of_line_list()
1414 act = e->action ? "_ACT" : ""; in render_out_of_line_list()
1415 switch (e->compound) { in render_out_of_line_list()
1433 if (e->action) in render_out_of_line_list()
1435 e->action->name); in render_out_of_line_list()
1443 static void render_element(FILE *out, struct element *e, struct element *tag) in render_element() argument
1449 if (e->flags & ELEMENT_SKIPPABLE || in render_element()
1453 if ((e->type_def && e->type_def->ref_count > 1) || in render_element()
1457 if (e->type_def && out) { in render_element()
1458 render_more(out, "\t// %s\n", e->type_def->name->content); in render_element()
1462 cond = (e->flags & ELEMENT_CONDITIONAL || in render_element()
1464 act = e->action ? "_ACT" : ""; in render_element()
1465 switch (e->compound) { in render_element()
1469 if (e->name) in render_element()
1470 render_more(out, "\t\t// %s", e->name->content); in render_element()
1475 render_element(out, e->children, e); in render_element()
1492 if (e->class == ASN1_UNIV && e->method == ASN1_PRIM && e->tag == 0) in render_element()
1501 x = tag ?: e; in render_element()
1508 tag = e; in render_element()
1516 asn1_methods[tag->method | e->method], in render_element()
1521 asn1_methods[tag->method | e->method], in render_element()
1527 switch (e->compound) { in render_element()
1529 render_element(out, e->type->type->element, tag); in render_element()
1530 if (e->action) in render_element()
1539 render_opcode(out, "_jump_target(%u),", e->entry_index); in render_element()
1540 if (e->type_def && e->type_def->name) in render_element()
1542 e->type_def->name->content); in render_element()
1544 if (!(e->flags & ELEMENT_RENDERED)) { in render_element()
1545 e->flags |= ELEMENT_RENDERED; in render_element()
1546 *render_list_p = e; in render_element()
1547 render_list_p = &e->render_next; in render_element()
1553 for (ec = e->children; ec; ec = ec->next) in render_element()
1565 render_opcode(out, "_jump_target(%u),", e->entry_index); in render_element()
1566 if (e->type_def && e->type_def->name) in render_element()
1568 e->type_def->name->content); in render_element()
1570 if (!(e->flags & ELEMENT_RENDERED)) { in render_element()
1571 e->flags |= ELEMENT_RENDERED; in render_element()
1572 *render_list_p = e; in render_element()
1573 render_list_p = &e->render_next; in render_element()
1580 render_element(out, e->children, NULL); in render_element()
1582 if (e->compound == SEQUENCE_OF) in render_element()
1601 for (ec = e->children; ec; ec = ec->next) in render_element()
1605 if (e->action) in render_element()
1613 if (e->action) in render_element()
1614 render_opcode(out, "_action(ACT_%s),\n", e->action->name); in render_element()