Lines Matching defs:el1
571 struct el1 {
574 } *el1;
580 el1 = talloc(root, struct el1);
581 el1->list = talloc(el1, struct el2 *);
582 el1->list[0] = talloc(el1->list, struct el2);
583 el1->list[0]->name = talloc_strdup(el1->list[0], "testing");
585 el1->list2 = talloc(el1, struct el2 *);
586 el1->list2[0] = talloc(el1->list2, struct el2);
587 el1->list2[0]->name = talloc_strdup(el1->list2[0], "testing2");
589 el1->list3 = talloc(el1, struct el2 *);
590 el1->list3[0] = talloc(el1->list3, struct el2);
591 el1->list3[0]->name = talloc_strdup(el1->list3[0], "testing2");
593 el2 = talloc(el1->list, struct el2);
594 el2 = talloc(el1->list2, struct el2);
595 el2 = talloc(el1->list3, struct el2);
597 el1->list = talloc_realloc(el1, el1->list, struct el2 *, 100);
598 el1->list2 = talloc_realloc(el1, el1->list2, struct el2 *, 200);
599 el1->list3 = talloc_realloc(el1, el1->list3, struct el2 *, 300);
613 struct el1 {
619 struct el1 *el1;
625 el1 = talloc(root, struct el1);
627 el1->count = 1;
629 torture_assert("type", talloc_get_type(el1, struct el1) == el1,
630 "type check failed on el1\n");
631 torture_assert("type", talloc_get_type(el1, struct el2) == NULL,
632 "type check failed on el1 with el2\n");
633 talloc_set_type(el1, struct el2);
634 torture_assert("type", talloc_get_type(el1, struct el2) == (struct el2 *)el1,
635 "type set failed on el1 with el2\n");