| 39 | } |
| 40 | |
| 41 | int test_stack_walk(AUT_LINE *test_line acl_unused, void *arg acl_unused) |
| 42 | { |
| 43 | const char *myname = "test_stack_walk"; |
| 44 | ACL_ITER iter; |
| 45 | MY_TYPE *t; |
| 46 | int i = 0; |
| 47 | |
| 48 | __stack_init(); |
| 49 | |
| 50 | acl_foreach(iter, __stack) { |
| 51 | t = (MY_TYPE*) iter.data; |
| 52 | printf("%s: %d %s\r\n", myname, i++, t->name); |
| 53 | } |
| 54 | printf("%s: total is %d\r\n", myname, i); |
| 55 | return (0); |
| 56 | } |
| 57 | |
| 58 | int test_stack_pop(AUT_LINE *test_line acl_unused, void *arg acl_unused) |
| 59 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…