Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/bash/src/builtins/builtin.def |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | - | |||||||
6 | - | |||||||
7 | - | |||||||
8 | - | |||||||
9 | - | |||||||
10 | - | |||||||
11 | int | - | ||||||
12 | builtin_builtin (list) | - | ||||||
13 | WORD_LIST *list; | - | ||||||
14 | { | - | ||||||
15 | sh_builtin_func_t *function; | - | ||||||
16 | register char *command; | - | ||||||
17 | - | |||||||
18 | if (no_options (list)
| 0-48 | ||||||
19 | return never executed: (258);return (258); never executed: return (258); | 0 | ||||||
20 | list = loptend; | - | ||||||
21 | - | |||||||
22 | if (list == 0
| 9-39 | ||||||
23 | return executed 9 times by 1 test: (0);return (0); Executed by:
executed 9 times by 1 test: return (0); Executed by:
| 9 | ||||||
24 | - | |||||||
25 | command = list->word->word; | - | ||||||
26 | - | |||||||
27 | - | |||||||
28 | - | |||||||
29 | function = find_shell_builtin (command); | - | ||||||
30 | - | |||||||
31 | - | |||||||
32 | if (function == 0
| 1-38 | ||||||
33 | { | - | ||||||
34 | sh_notbuiltin (command); | - | ||||||
35 | return executed 1 time by 1 test: (1);return (1); Executed by:
executed 1 time by 1 test: return (1); Executed by:
| 1 | ||||||
36 | } | - | ||||||
37 | else | - | ||||||
38 | { | - | ||||||
39 | this_command_name = command; | - | ||||||
40 | this_shell_builtin = function; | - | ||||||
41 | list = list->next; | - | ||||||
42 | return executed 38 times by 1 test: ((*function) (list));return ((*function) (list)); Executed by:
executed 38 times by 1 test: return ((*function) (list)); Executed by:
| 38 | ||||||
43 | } | - | ||||||
44 | } | - | ||||||
Switch to Source code | Preprocessed file |