Lines Matching defs:el1
600 struct el1 {
603 } *el1;
609 el1 = talloc(root, struct el1);
610 el1->list = talloc(el1, struct el2 *);
611 el1->list[0] = talloc(el1->list, struct el2);
612 el1->list[0]->name = talloc_strdup(el1->list[0], "testing");
614 el1->list2 = talloc(el1, struct el2 *);
615 el1->list2[0] = talloc(el1->list2, struct el2);
616 el1->list2[0]->name = talloc_strdup(el1->list2[0], "testing2");
618 el1->list3 = talloc(el1, struct el2 *);
619 el1->list3[0] = talloc(el1->list3, struct el2);
620 el1->list3[0]->name = talloc_strdup(el1->list3[0], "testing2");
622 el2 = talloc(el1->list, struct el2);
623 el2 = talloc(el1->list2, struct el2);
624 el2 = talloc(el1->list3, struct el2);
626 el1->list = talloc_realloc(el1, el1->list, struct el2 *, 100);
627 el1->list2 = talloc_realloc(el1, el1->list2, struct el2 *, 200);
628 el1->list3 = talloc_realloc(el1, el1->list3, struct el2 *, 300);
642 struct el1 {
648 struct el1 *el1;
654 el1 = talloc(root, struct el1);
656 el1->count = 1;
658 torture_assert("type", talloc_get_type(el1, struct el1) == el1,
659 "type check failed on el1\n");
660 torture_assert("type", talloc_get_type(el1, struct el2) == NULL,
661 "type check failed on el1 with el2\n");
662 talloc_set_type(el1, struct el2);
663 torture_assert("type", talloc_get_type(el1, struct el2) == (struct el2 *)el1,
664 "type set failed on el1 with el2\n");