Lines Matching defs:foo
7 struct foo {
13 ARRAY(struct foo) foos;
14 struct foo nfoo;
32 ARRAY(struct foo) foos;
33 const struct foo *foo;
34 struct foo nfoo;
44 array_foreach(&foos, foo) {
45 i = array_foreach_idx(&foos, foo);
46 test_assert(foo->a == i);
47 test_assert(foo->b == i);
48 test_assert(foo->c == i);
54 ARRAY(struct foo) foos;
55 struct foo foo;
61 foo.a = foo.b = foo.c = i;
62 array_append(&foos, &foo, 1);
66 array_foreach_elem(&foos, foo) {
67 test_assert_idx(foo.a == i, i);
68 test_assert_idx(foo.b == i, i);
69 test_assert_idx(foo.c == i, i);
107 ARRAY(struct foo) foos[3];
108 struct foo nfoo;