| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/bash/src/list.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | - | |||||||
| 5 | - | |||||||
| 6 | - | |||||||
| 7 | - | |||||||
| 8 | - | |||||||
| 9 | - | |||||||
| 10 | GENERIC_LIST global_error_list; | - | ||||||
| 11 | GENERIC_LIST * | - | ||||||
| 12 | list_reverse (list) | - | ||||||
| 13 | GENERIC_LIST *list; | - | ||||||
| 14 | { | - | ||||||
| 15 | register GENERIC_LIST *next, *prev; | - | ||||||
| 16 | - | |||||||
| 17 | for (prev = (GENERIC_LIST *) | - | ||||||
| 18 | ((void *)0) | - | ||||||
| 19 | ; list
| 66984411-195865297 | ||||||
| 20 | { | - | ||||||
| 21 | next = list->next; | - | ||||||
| 22 | list->next = prev; | - | ||||||
| 23 | prev = list; | - | ||||||
| 24 | list = next; | - | ||||||
| 25 | } executed 195865297 times by 1 test: end of blockExecuted by:
| 195865297 | ||||||
| 26 | return executed 66984411 times by 1 test: (prev);return (prev);Executed by:
executed 66984411 times by 1 test: return (prev);Executed by:
| 66984411 | ||||||
| 27 | } | - | ||||||
| 28 | - | |||||||
| 29 | - | |||||||
| 30 | int | - | ||||||
| 31 | list_length (list) | - | ||||||
| 32 | GENERIC_LIST *list; | - | ||||||
| 33 | { | - | ||||||
| 34 | register int i; | - | ||||||
| 35 | - | |||||||
| 36 | for (i = 0; list
executed 15283 times by 1 test: ;Executed by:
| 4463-15283 | ||||||
| 37 | return executed 4463 times by 1 test: (i);return (i);Executed by:
executed 4463 times by 1 test: return (i);Executed by:
| 4463 | ||||||
| 38 | } | - | ||||||
| 39 | - | |||||||
| 40 | - | |||||||
| 41 | GENERIC_LIST * | - | ||||||
| 42 | list_append (head, tail) | - | ||||||
| 43 | GENERIC_LIST *head, *tail; | - | ||||||
| 44 | { | - | ||||||
| 45 | register GENERIC_LIST *t_head; | - | ||||||
| 46 | - | |||||||
| 47 | if (head == 0
| 9832-63631772 | ||||||
| 48 | return executed 9832 times by 1 test: (tail);return (tail);Executed by:
executed 9832 times by 1 test: return (tail);Executed by:
| 9832 | ||||||
| 49 | - | |||||||
| 50 | for (t_head = head; t_head->next
| 5422533-63631772 | ||||||
| 51 | ; executed 5422533 times by 1 test: ;Executed by:
| 5422533 | ||||||
| 52 | t_head->next = tail; | - | ||||||
| 53 | return executed 63631772 times by 1 test: (head);return (head);Executed by:
executed 63631772 times by 1 test: return (head);Executed by:
| 63631772 | ||||||
| 54 | } | - | ||||||
| Switch to Source code | Preprocessed file |