Lines Matching refs:e
837 struct element *e = calloc(1, sizeof(*e)); in alloc_elem() local
838 if (!e) { in alloc_elem()
842 e->list_next = element_list; in alloc_elem()
843 element_list = e; in alloc_elem()
844 return e; in alloc_elem()
1210 static void dump_element(const struct element *e, int level) in dump_element() argument
1213 const struct type *t = e->type_def; in dump_element()
1214 const char *name = e->name ? e->name->content : "."; in dump_element()
1218 if (e->class == 0 && e->method == 0 && e->tag == 0) in dump_element()
1220 else if (e->class == ASN1_UNIV) in dump_element()
1222 asn1_classes[e->class], in dump_element()
1223 asn1_methods[e->method], in dump_element()
1224 asn1_universal_tags[e->tag]); in dump_element()
1227 asn1_classes[e->class], in dump_element()
1228 asn1_methods[e->method], in dump_element()
1229 e->tag); in dump_element()
1232 e->flags & ELEMENT_IMPLICIT ? 'I' : '-', in dump_element()
1233 e->flags & ELEMENT_EXPLICIT ? 'E' : '-', in dump_element()
1234 e->flags & ELEMENT_TAG_SPECIFIED ? 'T' : '-', in dump_element()
1235 e->flags & ELEMENT_SKIPPABLE ? 'S' : '-', in dump_element()
1236 e->flags & ELEMENT_CONDITIONAL ? 'C' : '-', in dump_element()
1237 "-tTqQcaro"[e->compound], in dump_element()
1242 e->action ? e->action->name : ""); in dump_element()
1243 if (e->compound == TYPE_REF) in dump_element()
1244 dump_element(e->type->type->element, level + 3); in dump_element()
1246 for (c = e->children; c; c = c->next) in dump_element()
1256 static void render_element(FILE *out, struct element *e, struct element *tag);
1294 struct element *e; in render() local
1364 for (e = element_list; e; e = e->list_next) in render()
1365 e->flags &= ~ELEMENT_RENDERED; in render()
1394 struct element *e, *ce; in render_out_of_line_list() local
1398 while ((e = render_list)) { in render_out_of_line_list()
1399 render_list = e->render_next; in render_out_of_line_list()
1404 e->entry_index = entry = nr_entries; in render_out_of_line_list()
1406 for (ce = e->children; ce; ce = ce->next) in render_out_of_line_list()
1410 act = e->action ? "_ACT" : ""; in render_out_of_line_list()
1411 switch (e->compound) { in render_out_of_line_list()
1429 if (e->action) in render_out_of_line_list()
1431 e->action->name); in render_out_of_line_list()
1439 static void render_element(FILE *out, struct element *e, struct element *tag) in render_element() argument
1445 if (e->flags & ELEMENT_SKIPPABLE || in render_element()
1449 if ((e->type_def && e->type_def->ref_count > 1) || in render_element()
1453 if (e->type_def && out) { in render_element()
1454 render_more(out, "\t// %s\n", e->type_def->name->content); in render_element()
1458 cond = (e->flags & ELEMENT_CONDITIONAL || in render_element()
1460 act = e->action ? "_ACT" : ""; in render_element()
1461 switch (e->compound) { in render_element()
1465 if (e->name) in render_element()
1466 render_more(out, "\t\t// %s", e->name->content); in render_element()
1471 render_element(out, e->children, e); in render_element()
1488 if (e->class == ASN1_UNIV && e->method == ASN1_PRIM && e->tag == 0) in render_element()
1497 x = tag ?: e; in render_element()
1504 tag = e; in render_element()
1512 asn1_methods[tag->method | e->method], in render_element()
1517 asn1_methods[tag->method | e->method], in render_element()
1523 switch (e->compound) { in render_element()
1525 render_element(out, e->type->type->element, tag); in render_element()
1526 if (e->action) in render_element()
1535 render_opcode(out, "_jump_target(%u),", e->entry_index); in render_element()
1536 if (e->type_def && e->type_def->name) in render_element()
1538 e->type_def->name->content); in render_element()
1540 if (!(e->flags & ELEMENT_RENDERED)) { in render_element()
1541 e->flags |= ELEMENT_RENDERED; in render_element()
1542 *render_list_p = e; in render_element()
1543 render_list_p = &e->render_next; in render_element()
1549 for (ec = e->children; ec; ec = ec->next) in render_element()
1561 render_opcode(out, "_jump_target(%u),", e->entry_index); in render_element()
1562 if (e->type_def && e->type_def->name) in render_element()
1564 e->type_def->name->content); in render_element()
1566 if (!(e->flags & ELEMENT_RENDERED)) { in render_element()
1567 e->flags |= ELEMENT_RENDERED; in render_element()
1568 *render_list_p = e; in render_element()
1569 render_list_p = &e->render_next; in render_element()
1576 render_element(out, e->children, NULL); in render_element()
1578 if (e->compound == SEQUENCE_OF) in render_element()
1597 for (ec = e->children; ec; ec = ec->next) in render_element()
1601 if (e->action) in render_element()
1609 if (e->action) in render_element()
1610 render_opcode(out, "_action(ACT_%s),\n", e->action->name); in render_element()