Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/bash/src/builtins/setattr.def |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||||||||||||||||||||
2 | - | |||||||||||||||||||||||||||||||||||||
3 | - | |||||||||||||||||||||||||||||||||||||
4 | - | |||||||||||||||||||||||||||||||||||||
5 | - | |||||||||||||||||||||||||||||||||||||
6 | - | |||||||||||||||||||||||||||||||||||||
7 | - | |||||||||||||||||||||||||||||||||||||
8 | - | |||||||||||||||||||||||||||||||||||||
9 | - | |||||||||||||||||||||||||||||||||||||
10 | - | |||||||||||||||||||||||||||||||||||||
11 | extern sh_builtin_func_t *this_shell_builtin; | - | ||||||||||||||||||||||||||||||||||||
12 | - | |||||||||||||||||||||||||||||||||||||
13 | - | |||||||||||||||||||||||||||||||||||||
14 | extern int declare_builtin (WORD_LIST *); | - | ||||||||||||||||||||||||||||||||||||
15 | - | |||||||||||||||||||||||||||||||||||||
16 | - | |||||||||||||||||||||||||||||||||||||
17 | - | |||||||||||||||||||||||||||||||||||||
18 | - | |||||||||||||||||||||||||||||||||||||
19 | - | |||||||||||||||||||||||||||||||||||||
20 | - | |||||||||||||||||||||||||||||||||||||
21 | int | - | ||||||||||||||||||||||||||||||||||||
22 | export_builtin (list) | - | ||||||||||||||||||||||||||||||||||||
23 | register WORD_LIST *list; | - | ||||||||||||||||||||||||||||||||||||
24 | { | - | ||||||||||||||||||||||||||||||||||||
25 | return executed 2537 times by 1 test: (set_or_show_attributes (list, 0x0000001, 0));return (set_or_show_attributes (list, 0x0000001, 0)); Executed by:
executed 2537 times by 1 test: return (set_or_show_attributes (list, 0x0000001, 0)); Executed by:
| 2537 | ||||||||||||||||||||||||||||||||||||
26 | } | - | ||||||||||||||||||||||||||||||||||||
27 | - | |||||||||||||||||||||||||||||||||||||
28 | - | |||||||||||||||||||||||||||||||||||||
29 | - | |||||||||||||||||||||||||||||||||||||
30 | int | - | ||||||||||||||||||||||||||||||||||||
31 | readonly_builtin (list) | - | ||||||||||||||||||||||||||||||||||||
32 | register WORD_LIST *list; | - | ||||||||||||||||||||||||||||||||||||
33 | { | - | ||||||||||||||||||||||||||||||||||||
34 | return executed 108 times by 1 test: (set_or_show_attributes (list, 0x0000002, 0));return (set_or_show_attributes (list, 0x0000002, 0)); Executed by:
executed 108 times by 1 test: return (set_or_show_attributes (list, 0x0000002, 0)); Executed by:
| 108 | ||||||||||||||||||||||||||||||||||||
35 | } | - | ||||||||||||||||||||||||||||||||||||
36 | int | - | ||||||||||||||||||||||||||||||||||||
37 | set_or_show_attributes (list, attribute, nodefs) | - | ||||||||||||||||||||||||||||||||||||
38 | register WORD_LIST *list; | - | ||||||||||||||||||||||||||||||||||||
39 | int attribute, nodefs; | - | ||||||||||||||||||||||||||||||||||||
40 | { | - | ||||||||||||||||||||||||||||||||||||
41 | register SHELL_VAR *var; | - | ||||||||||||||||||||||||||||||||||||
42 | int assign, undo, any_failed, assign_error, opt; | - | ||||||||||||||||||||||||||||||||||||
43 | int functions_only, arrays_only, assoc_only; | - | ||||||||||||||||||||||||||||||||||||
44 | int aflags; | - | ||||||||||||||||||||||||||||||||||||
45 | char *name; | - | ||||||||||||||||||||||||||||||||||||
46 | - | |||||||||||||||||||||||||||||||||||||
47 | WORD_LIST *nlist, *tlist; | - | ||||||||||||||||||||||||||||||||||||
48 | WORD_DESC *w; | - | ||||||||||||||||||||||||||||||||||||
49 | char optw[8]; | - | ||||||||||||||||||||||||||||||||||||
50 | int opti; | - | ||||||||||||||||||||||||||||||||||||
51 | - | |||||||||||||||||||||||||||||||||||||
52 | - | |||||||||||||||||||||||||||||||||||||
53 | functions_only = arrays_only = assoc_only = 0; | - | ||||||||||||||||||||||||||||||||||||
54 | undo = any_failed = assign_error = 0; | - | ||||||||||||||||||||||||||||||||||||
55 | - | |||||||||||||||||||||||||||||||||||||
56 | reset_internal_getopt (); | - | ||||||||||||||||||||||||||||||||||||
57 | while ((
| 42-2673 | ||||||||||||||||||||||||||||||||||||
58 | { | - | ||||||||||||||||||||||||||||||||||||
59 | switch (opt) | - | ||||||||||||||||||||||||||||||||||||
60 | { | - | ||||||||||||||||||||||||||||||||||||
61 | case executed 5 times by 1 test: 'n':case 'n': Executed by:
executed 5 times by 1 test: case 'n': Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
62 | undo = 1; | - | ||||||||||||||||||||||||||||||||||||
63 | break; executed 5 times by 1 test: break; Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
64 | case executed 24 times by 1 test: 'f':case 'f': Executed by:
executed 24 times by 1 test: case 'f': Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||
65 | functions_only = 1; | - | ||||||||||||||||||||||||||||||||||||
66 | break; executed 24 times by 1 test: break; Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||
67 | - | |||||||||||||||||||||||||||||||||||||
68 | case executed 10 times by 1 test: 'a':case 'a': Executed by:
executed 10 times by 1 test: case 'a': Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
69 | arrays_only = 1; | - | ||||||||||||||||||||||||||||||||||||
70 | break; executed 10 times by 1 test: break; Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||
71 | case executed 1 time by 1 test: 'A':case 'A': Executed by:
executed 1 time by 1 test: case 'A': Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
72 | assoc_only = 1; | - | ||||||||||||||||||||||||||||||||||||
73 | break; executed 1 time by 1 test: break; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
74 | - | |||||||||||||||||||||||||||||||||||||
75 | case executed 1 time by 1 test: 'p':case 'p': Executed by:
executed 1 time by 1 test: case 'p': Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
76 | break; executed 1 time by 1 test: break; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
77 | case never executed: -99:case -99: never executed: builtin_help (); returncase -99: never executed: (258);return (258); never executed: return (258); | 0 | ||||||||||||||||||||||||||||||||||||
78 | default executed 1 time by 1 test: :default: Executed by:
executed 1 time by 1 test: default: Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
79 | builtin_usage (); | - | ||||||||||||||||||||||||||||||||||||
80 | return executed 1 time by 1 test: (258);return (258); Executed by:
executed 1 time by 1 test: return (258); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
81 | } | - | ||||||||||||||||||||||||||||||||||||
82 | } | - | ||||||||||||||||||||||||||||||||||||
83 | list = loptend; | - | ||||||||||||||||||||||||||||||||||||
84 | - | |||||||||||||||||||||||||||||||||||||
85 | if (list
| 32-2641 | ||||||||||||||||||||||||||||||||||||
86 | { | - | ||||||||||||||||||||||||||||||||||||
87 | if (attribute & 0x0000001
| 104-2537 | ||||||||||||||||||||||||||||||||||||
88 | array_needs_making = 1; executed 2537 times by 1 test: array_needs_making = 1; Executed by:
| 2537 | ||||||||||||||||||||||||||||||||||||
89 | - | |||||||||||||||||||||||||||||||||||||
90 | - | |||||||||||||||||||||||||||||||||||||
91 | if (undo
| 0-2636 | ||||||||||||||||||||||||||||||||||||
92 | attribute &= ~0x0000002; executed 5 times by 1 test: attribute &= ~0x0000002; Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
93 | - | |||||||||||||||||||||||||||||||||||||
94 | while (list
| 2641-2646 | ||||||||||||||||||||||||||||||||||||
95 | { | - | ||||||||||||||||||||||||||||||||||||
96 | name = list->word->word; | - | ||||||||||||||||||||||||||||||||||||
97 | - | |||||||||||||||||||||||||||||||||||||
98 | if (functions_only
| 24-2622 | ||||||||||||||||||||||||||||||||||||
99 | { | - | ||||||||||||||||||||||||||||||||||||
100 | var = find_function (name); | - | ||||||||||||||||||||||||||||||||||||
101 | if (var == 0
| 5-19 | ||||||||||||||||||||||||||||||||||||
102 | { | - | ||||||||||||||||||||||||||||||||||||
103 | builtin_error ( | - | ||||||||||||||||||||||||||||||||||||
104 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||
105 | "%s: not a function" | - | ||||||||||||||||||||||||||||||||||||
106 | , 5) | - | ||||||||||||||||||||||||||||||||||||
107 | , name); | - | ||||||||||||||||||||||||||||||||||||
108 | any_failed++; | - | ||||||||||||||||||||||||||||||||||||
109 | } executed 5 times by 1 test: end of block Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
110 | else if ((
| 0-14 | ||||||||||||||||||||||||||||||||||||
111 | { | - | ||||||||||||||||||||||||||||||||||||
112 | builtin_error ( | - | ||||||||||||||||||||||||||||||||||||
113 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||
114 | "%s: cannot export" | - | ||||||||||||||||||||||||||||||||||||
115 | , 5) | - | ||||||||||||||||||||||||||||||||||||
116 | , name); | - | ||||||||||||||||||||||||||||||||||||
117 | any_failed++; | - | ||||||||||||||||||||||||||||||||||||
118 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
119 | else | - | ||||||||||||||||||||||||||||||||||||
120 | (( executed 17 times by 1 test: undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute)));((undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute))); Executed by:
executed 17 times by 1 test: ((undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute))); Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||
121 | - | |||||||||||||||||||||||||||||||||||||
122 | list = list->next; | - | ||||||||||||||||||||||||||||||||||||
123 | continue; executed 24 times by 1 test: continue; Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||
124 | } | - | ||||||||||||||||||||||||||||||||||||
125 | - | |||||||||||||||||||||||||||||||||||||
126 | - | |||||||||||||||||||||||||||||||||||||
127 | assign = assignment (name, 0); | - | ||||||||||||||||||||||||||||||||||||
128 | - | |||||||||||||||||||||||||||||||||||||
129 | aflags = 0; | - | ||||||||||||||||||||||||||||||||||||
130 | if (assign
| 208-2414 | ||||||||||||||||||||||||||||||||||||
131 | { | - | ||||||||||||||||||||||||||||||||||||
132 | name[assign] = '\0'; | - | ||||||||||||||||||||||||||||||||||||
133 | if (name[assign - 1] == '+'
| 2-206 | ||||||||||||||||||||||||||||||||||||
134 | { | - | ||||||||||||||||||||||||||||||||||||
135 | aflags |= 0x0001; | - | ||||||||||||||||||||||||||||||||||||
136 | name[assign - 1] = '\0'; | - | ||||||||||||||||||||||||||||||||||||
137 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
138 | } executed 208 times by 1 test: end of block Executed by:
| 208 | ||||||||||||||||||||||||||||||||||||
139 | - | |||||||||||||||||||||||||||||||||||||
140 | if (legal_identifier (name) == 0
| 24-2598 | ||||||||||||||||||||||||||||||||||||
141 | { | - | ||||||||||||||||||||||||||||||||||||
142 | sh_invalidid (name); | - | ||||||||||||||||||||||||||||||||||||
143 | if (assign
| 0-24 | ||||||||||||||||||||||||||||||||||||
144 | assign_error++; never executed: assign_error++; | 0 | ||||||||||||||||||||||||||||||||||||
145 | else | - | ||||||||||||||||||||||||||||||||||||
146 | any_failed++; executed 24 times by 1 test: any_failed++; Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||
147 | list = list->next; | - | ||||||||||||||||||||||||||||||||||||
148 | continue; executed 24 times by 1 test: continue; Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||
149 | } | - | ||||||||||||||||||||||||||||||||||||
150 | - | |||||||||||||||||||||||||||||||||||||
151 | if (assign
| 208-2390 | ||||||||||||||||||||||||||||||||||||
152 | { | - | ||||||||||||||||||||||||||||||||||||
153 | name[assign] = '='; | - | ||||||||||||||||||||||||||||||||||||
154 | if (aflags & 0x0001
| 2-206 | ||||||||||||||||||||||||||||||||||||
155 | name[assign - 1] = '+'; executed 2 times by 1 test: name[assign - 1] = '+'; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
156 | - | |||||||||||||||||||||||||||||||||||||
157 | - | |||||||||||||||||||||||||||||||||||||
158 | - | |||||||||||||||||||||||||||||||||||||
159 | if (arrays_only
| 0-204 | ||||||||||||||||||||||||||||||||||||
160 | { | - | ||||||||||||||||||||||||||||||||||||
161 | tlist = list->next; | - | ||||||||||||||||||||||||||||||||||||
162 | list->next = (WORD_LIST *) | - | ||||||||||||||||||||||||||||||||||||
163 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
164 | ; | - | ||||||||||||||||||||||||||||||||||||
165 | - | |||||||||||||||||||||||||||||||||||||
166 | - | |||||||||||||||||||||||||||||||||||||
167 | opti = 0; | - | ||||||||||||||||||||||||||||||||||||
168 | optw[opti++] = '-'; | - | ||||||||||||||||||||||||||||||||||||
169 | optw[opti++] = 'g'; | - | ||||||||||||||||||||||||||||||||||||
170 | if (attribute & 0x0000002
| 1-3 | ||||||||||||||||||||||||||||||||||||
171 | optw[opti++] = 'r'; executed 3 times by 1 test: optw[opti++] = 'r'; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||
172 | if (attribute & 0x0000001
| 1-3 | ||||||||||||||||||||||||||||||||||||
173 | optw[opti++] = 'x'; executed 1 time by 1 test: optw[opti++] = 'x'; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
174 | if (arrays_only
| 0-4 | ||||||||||||||||||||||||||||||||||||
175 | optw[opti++] = 'a'; executed 4 times by 1 test: optw[opti++] = 'a'; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
176 | else | - | ||||||||||||||||||||||||||||||||||||
177 | optw[opti++] = 'A'; never executed: optw[opti++] = 'A'; | 0 | ||||||||||||||||||||||||||||||||||||
178 | optw[opti] = '\0'; | - | ||||||||||||||||||||||||||||||||||||
179 | - | |||||||||||||||||||||||||||||||||||||
180 | w = make_word (optw); | - | ||||||||||||||||||||||||||||||||||||
181 | nlist = make_word_list (w, list); | - | ||||||||||||||||||||||||||||||||||||
182 | - | |||||||||||||||||||||||||||||||||||||
183 | opt = declare_builtin (nlist); | - | ||||||||||||||||||||||||||||||||||||
184 | if (opt != 0
| 2 | ||||||||||||||||||||||||||||||||||||
185 | assign_error++; executed 2 times by 1 test: assign_error++; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
186 | list->next = tlist; | - | ||||||||||||||||||||||||||||||||||||
187 | dispose_word (w); | - | ||||||||||||||||||||||||||||||||||||
188 | sh_xfree((nlist), "./setattr.def", 264); | - | ||||||||||||||||||||||||||||||||||||
189 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
190 | else | - | ||||||||||||||||||||||||||||||||||||
191 | - | |||||||||||||||||||||||||||||||||||||
192 | - | |||||||||||||||||||||||||||||||||||||
193 | - | |||||||||||||||||||||||||||||||||||||
194 | - | |||||||||||||||||||||||||||||||||||||
195 | - | |||||||||||||||||||||||||||||||||||||
196 | if (do_assignment_no_expand (name) == 0
| 4-200 | ||||||||||||||||||||||||||||||||||||
197 | assign_error++; executed 4 times by 1 test: assign_error++; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||
198 | name[assign] = '\0'; | - | ||||||||||||||||||||||||||||||||||||
199 | if (aflags & 0x0001
| 2-206 | ||||||||||||||||||||||||||||||||||||
200 | name[assign - 1] = '\0'; executed 2 times by 1 test: name[assign - 1] = '\0'; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
201 | } executed 208 times by 1 test: end of block Executed by:
| 208 | ||||||||||||||||||||||||||||||||||||
202 | - | |||||||||||||||||||||||||||||||||||||
203 | set_var_attribute (name, attribute, undo); | - | ||||||||||||||||||||||||||||||||||||
204 | list = list->next; | - | ||||||||||||||||||||||||||||||||||||
205 | } executed 2598 times by 1 test: end of block Executed by:
| 2598 | ||||||||||||||||||||||||||||||||||||
206 | } executed 2641 times by 1 test: end of block Executed by:
| 2641 | ||||||||||||||||||||||||||||||||||||
207 | else | - | ||||||||||||||||||||||||||||||||||||
208 | { | - | ||||||||||||||||||||||||||||||||||||
209 | SHELL_VAR **variable_list; | - | ||||||||||||||||||||||||||||||||||||
210 | register int i; | - | ||||||||||||||||||||||||||||||||||||
211 | - | |||||||||||||||||||||||||||||||||||||
212 | if ((
| 0-17 | ||||||||||||||||||||||||||||||||||||
213 | { | - | ||||||||||||||||||||||||||||||||||||
214 | variable_list = all_shell_functions (); | - | ||||||||||||||||||||||||||||||||||||
215 | if (attribute != 0x0000008
| 2-13 | ||||||||||||||||||||||||||||||||||||
216 | attribute &= ~0x0000008; executed 13 times by 1 test: attribute &= ~0x0000008; Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||
217 | } executed 15 times by 1 test: end of block Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||
218 | else | - | ||||||||||||||||||||||||||||||||||||
219 | variable_list = all_shell_variables (); executed 17 times by 1 test: variable_list = all_shell_variables (); Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||
220 | - | |||||||||||||||||||||||||||||||||||||
221 | - | |||||||||||||||||||||||||||||||||||||
222 | if (attribute & 0x0000004
| 5-27 | ||||||||||||||||||||||||||||||||||||
223 | { | - | ||||||||||||||||||||||||||||||||||||
224 | arrays_only++; | - | ||||||||||||||||||||||||||||||||||||
225 | if (attribute != 0x0000004
| 1-4 | ||||||||||||||||||||||||||||||||||||
226 | attribute &= ~0x0000004; executed 1 time by 1 test: attribute &= ~0x0000004; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
227 | } executed 5 times by 1 test: end of block Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
228 | else if (attribute & 0x0000040
| 7-20 | ||||||||||||||||||||||||||||||||||||
229 | { | - | ||||||||||||||||||||||||||||||||||||
230 | assoc_only++; | - | ||||||||||||||||||||||||||||||||||||
231 | if (attribute != 0x0000040
| 0-7 | ||||||||||||||||||||||||||||||||||||
232 | attribute &= ~0x0000040; never executed: attribute &= ~0x0000040; | 0 | ||||||||||||||||||||||||||||||||||||
233 | } executed 7 times by 1 test: end of block Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||
234 | - | |||||||||||||||||||||||||||||||||||||
235 | - | |||||||||||||||||||||||||||||||||||||
236 | if (variable_list
| 0-32 | ||||||||||||||||||||||||||||||||||||
237 | { | - | ||||||||||||||||||||||||||||||||||||
238 | for (i = 0; var = variable_list[i]
| 32-1188 | ||||||||||||||||||||||||||||||||||||
239 | { | - | ||||||||||||||||||||||||||||||||||||
240 | - | |||||||||||||||||||||||||||||||||||||
241 | if (arrays_only
| 92-706 | ||||||||||||||||||||||||||||||||||||
242 | continue; executed 390 times by 1 test: continue; Executed by:
| 390 | ||||||||||||||||||||||||||||||||||||
243 | else if (assoc_only
| 25-438 | ||||||||||||||||||||||||||||||||||||
244 | continue; executed 413 times by 1 test: continue; Executed by:
| 413 | ||||||||||||||||||||||||||||||||||||
245 | - | |||||||||||||||||||||||||||||||||||||
246 | - | |||||||||||||||||||||||||||||||||||||
247 | - | |||||||||||||||||||||||||||||||||||||
248 | - | |||||||||||||||||||||||||||||||||||||
249 | if ((
| 0-385 | ||||||||||||||||||||||||||||||||||||
250 | continue; never executed: continue; | 0 | ||||||||||||||||||||||||||||||||||||
251 | - | |||||||||||||||||||||||||||||||||||||
252 | if ((
| 109-276 | ||||||||||||||||||||||||||||||||||||
253 | { | - | ||||||||||||||||||||||||||||||||||||
254 | show_var_attributes (var, (this_shell_builtin == readonly_builtin || this_shell_builtin == export_builtin), nodefs); | - | ||||||||||||||||||||||||||||||||||||
255 | if (any_failed = sh_chkwrite (any_failed)
| 0-109 | ||||||||||||||||||||||||||||||||||||
256 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
257 | } executed 109 times by 1 test: end of block Executed by:
| 109 | ||||||||||||||||||||||||||||||||||||
258 | } executed 385 times by 1 test: end of block Executed by:
| 385 | ||||||||||||||||||||||||||||||||||||
259 | sh_xfree((variable_list), "./setattr.def", 335); | - | ||||||||||||||||||||||||||||||||||||
260 | } executed 32 times by 1 test: end of block Executed by:
| 32 | ||||||||||||||||||||||||||||||||||||
261 | } executed 32 times by 1 test: end of block Executed by:
| 32 | ||||||||||||||||||||||||||||||||||||
262 | - | |||||||||||||||||||||||||||||||||||||
263 | return executed 2673 times by 1 test: (assign_error ? 260return (assign_error ? 260 : ((any_failed == 0) ? 0 : 1)); Executed by:
executed 2673 times by 1 test: return (assign_error ? 260 : ((any_failed == 0) ? 0 : 1)); Executed by:
| 2673 | ||||||||||||||||||||||||||||||||||||
264 | : ((any_failed == 0) ? 0 executed 2673 times by 1 test: return (assign_error ? 260 : ((any_failed == 0) ? 0 : 1)); Executed by:
| 2673 | ||||||||||||||||||||||||||||||||||||
265 | : 1)); executed 2673 times by 1 test: return (assign_error ? 260 : ((any_failed == 0) ? 0 : 1)); Executed by:
| 2673 | ||||||||||||||||||||||||||||||||||||
266 | } | - | ||||||||||||||||||||||||||||||||||||
267 | - | |||||||||||||||||||||||||||||||||||||
268 | - | |||||||||||||||||||||||||||||||||||||
269 | - | |||||||||||||||||||||||||||||||||||||
270 | int | - | ||||||||||||||||||||||||||||||||||||
271 | show_all_var_attributes (v, nodefs) | - | ||||||||||||||||||||||||||||||||||||
272 | int v, nodefs; | - | ||||||||||||||||||||||||||||||||||||
273 | { | - | ||||||||||||||||||||||||||||||||||||
274 | SHELL_VAR **variable_list, *var; | - | ||||||||||||||||||||||||||||||||||||
275 | int any_failed; | - | ||||||||||||||||||||||||||||||||||||
276 | register int i; | - | ||||||||||||||||||||||||||||||||||||
277 | - | |||||||||||||||||||||||||||||||||||||
278 | variable_list = v
| 0 | ||||||||||||||||||||||||||||||||||||
279 | if (variable_list == 0
| 0 | ||||||||||||||||||||||||||||||||||||
280 | return never executed: (0);return (0); never executed: return (0); | 0 | ||||||||||||||||||||||||||||||||||||
281 | - | |||||||||||||||||||||||||||||||||||||
282 | for (i = any_failed = 0; var = variable_list[i]
| 0 | ||||||||||||||||||||||||||||||||||||
283 | { | - | ||||||||||||||||||||||||||||||||||||
284 | show_var_attributes (var, (this_shell_builtin == readonly_builtin || this_shell_builtin == export_builtin), nodefs); | - | ||||||||||||||||||||||||||||||||||||
285 | if (any_failed = sh_chkwrite (any_failed)
| 0 | ||||||||||||||||||||||||||||||||||||
286 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
287 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
288 | sh_xfree((variable_list), "./setattr.def", 364); | - | ||||||||||||||||||||||||||||||||||||
289 | return never executed: (any_failed == 0 ? 0 : 1);return (any_failed == 0 ? 0 : 1); never executed: return (any_failed == 0 ? 0 : 1); | 0 | ||||||||||||||||||||||||||||||||||||
290 | } | - | ||||||||||||||||||||||||||||||||||||
291 | - | |||||||||||||||||||||||||||||||||||||
292 | int | - | ||||||||||||||||||||||||||||||||||||
293 | var_attribute_string (var, pattr, flags) | - | ||||||||||||||||||||||||||||||||||||
294 | SHELL_VAR *var; | - | ||||||||||||||||||||||||||||||||||||
295 | int pattr; | - | ||||||||||||||||||||||||||||||||||||
296 | char *flags; | - | ||||||||||||||||||||||||||||||||||||
297 | { | - | ||||||||||||||||||||||||||||||||||||
298 | int i; | - | ||||||||||||||||||||||||||||||||||||
299 | - | |||||||||||||||||||||||||||||||||||||
300 | i = 0; | - | ||||||||||||||||||||||||||||||||||||
301 | - | |||||||||||||||||||||||||||||||||||||
302 | - | |||||||||||||||||||||||||||||||||||||
303 | if (pattr == 0
| 3-578 | ||||||||||||||||||||||||||||||||||||
304 | { | - | ||||||||||||||||||||||||||||||||||||
305 | - | |||||||||||||||||||||||||||||||||||||
306 | if (((((
| 240-347 | ||||||||||||||||||||||||||||||||||||
307 | flags[i++] = 'a'; executed 240 times by 1 test: flags[i++] = 'a'; Executed by:
| 240 | ||||||||||||||||||||||||||||||||||||
308 | - | |||||||||||||||||||||||||||||||||||||
309 | if (((((
| 115-472 | ||||||||||||||||||||||||||||||||||||
310 | flags[i++] = 'A'; executed 115 times by 1 test: flags[i++] = 'A'; Executed by:
| 115 | ||||||||||||||||||||||||||||||||||||
311 | - | |||||||||||||||||||||||||||||||||||||
312 | - | |||||||||||||||||||||||||||||||||||||
313 | if (((((
| 17-570 | ||||||||||||||||||||||||||||||||||||
314 | flags[i++] = 'f'; executed 17 times by 1 test: flags[i++] = 'f'; Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||
315 | - | |||||||||||||||||||||||||||||||||||||
316 | if (((((
| 17-570 | ||||||||||||||||||||||||||||||||||||
317 | flags[i++] = 'i'; executed 17 times by 1 test: flags[i++] = 'i'; Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||
318 | - | |||||||||||||||||||||||||||||||||||||
319 | if (((((
| 95-492 | ||||||||||||||||||||||||||||||||||||
320 | flags[i++] = 'n'; executed 95 times by 1 test: flags[i++] = 'n'; Executed by:
| 95 | ||||||||||||||||||||||||||||||||||||
321 | - | |||||||||||||||||||||||||||||||||||||
322 | if (((((
| 115-472 | ||||||||||||||||||||||||||||||||||||
323 | flags[i++] = 'r'; executed 115 times by 1 test: flags[i++] = 'r'; Executed by:
| 115 | ||||||||||||||||||||||||||||||||||||
324 | - | |||||||||||||||||||||||||||||||||||||
325 | if (((((
| 0-587 | ||||||||||||||||||||||||||||||||||||
326 | flags[i++] = 't'; never executed: flags[i++] = 't'; | 0 | ||||||||||||||||||||||||||||||||||||
327 | - | |||||||||||||||||||||||||||||||||||||
328 | if (((((
| 36-551 | ||||||||||||||||||||||||||||||||||||
329 | flags[i++] = 'x'; executed 36 times by 1 test: flags[i++] = 'x'; Executed by:
| 36 | ||||||||||||||||||||||||||||||||||||
330 | - | |||||||||||||||||||||||||||||||||||||
331 | if (((((
| 0-587 | ||||||||||||||||||||||||||||||||||||
332 | flags[i++] = 'c'; never executed: flags[i++] = 'c'; | 0 | ||||||||||||||||||||||||||||||||||||
333 | - | |||||||||||||||||||||||||||||||||||||
334 | if (((((
| 6-581 | ||||||||||||||||||||||||||||||||||||
335 | flags[i++] = 'l'; executed 6 times by 1 test: flags[i++] = 'l'; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||
336 | - | |||||||||||||||||||||||||||||||||||||
337 | if (((((
| 0-587 | ||||||||||||||||||||||||||||||||||||
338 | flags[i++] = 'u'; never executed: flags[i++] = 'u'; | 0 | ||||||||||||||||||||||||||||||||||||
339 | } executed 587 times by 1 test: end of block Executed by:
| 587 | ||||||||||||||||||||||||||||||||||||
340 | else | - | ||||||||||||||||||||||||||||||||||||
341 | { | - | ||||||||||||||||||||||||||||||||||||
342 | - | |||||||||||||||||||||||||||||||||||||
343 | if (((((
| 0-3 | ||||||||||||||||||||||||||||||||||||
344 | flags[i++] = 'a'; executed 3 times by 1 test: flags[i++] = 'a'; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||
345 | - | |||||||||||||||||||||||||||||||||||||
346 | if (((((
| 0-3 | ||||||||||||||||||||||||||||||||||||
347 | flags[i++] = 'A'; never executed: flags[i++] = 'A'; | 0 | ||||||||||||||||||||||||||||||||||||
348 | - | |||||||||||||||||||||||||||||||||||||
349 | - | |||||||||||||||||||||||||||||||||||||
350 | if (((((
| 0-3 | ||||||||||||||||||||||||||||||||||||
351 | flags[i++] = 'f'; never executed: flags[i++] = 'f'; | 0 | ||||||||||||||||||||||||||||||||||||
352 | } executed 3 times by 1 test: end of block Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||
353 | - | |||||||||||||||||||||||||||||||||||||
354 | flags[i] = '\0'; | - | ||||||||||||||||||||||||||||||||||||
355 | return executed 590 times by 1 test: i;return i; Executed by:
executed 590 times by 1 test: return i; Executed by:
| 590 | ||||||||||||||||||||||||||||||||||||
356 | } | - | ||||||||||||||||||||||||||||||||||||
357 | - | |||||||||||||||||||||||||||||||||||||
358 | - | |||||||||||||||||||||||||||||||||||||
359 | - | |||||||||||||||||||||||||||||||||||||
360 | - | |||||||||||||||||||||||||||||||||||||
361 | - | |||||||||||||||||||||||||||||||||||||
362 | - | |||||||||||||||||||||||||||||||||||||
363 | - | |||||||||||||||||||||||||||||||||||||
364 | int | - | ||||||||||||||||||||||||||||||||||||
365 | show_var_attributes (var, pattr, nodefs) | - | ||||||||||||||||||||||||||||||||||||
366 | SHELL_VAR *var; | - | ||||||||||||||||||||||||||||||||||||
367 | int pattr, nodefs; | - | ||||||||||||||||||||||||||||||||||||
368 | { | - | ||||||||||||||||||||||||||||||||||||
369 | char flags[16], *x; | - | ||||||||||||||||||||||||||||||||||||
370 | int i; | - | ||||||||||||||||||||||||||||||||||||
371 | - | |||||||||||||||||||||||||||||||||||||
372 | i = var_attribute_string (var, pattr, flags); | - | ||||||||||||||||||||||||||||||||||||
373 | - | |||||||||||||||||||||||||||||||||||||
374 | - | |||||||||||||||||||||||||||||||||||||
375 | - | |||||||||||||||||||||||||||||||||||||
376 | - | |||||||||||||||||||||||||||||||||||||
377 | if (((((
| 0-559 | ||||||||||||||||||||||||||||||||||||
378 | { | - | ||||||||||||||||||||||||||||||||||||
379 | printf ("%s\n", named_function_string (var->name, (COMMAND *)((var)->value), 0x01|0x02)); | - | ||||||||||||||||||||||||||||||||||||
380 | nodefs++; | - | ||||||||||||||||||||||||||||||||||||
381 | if (pattr == 0
| 0-12 | ||||||||||||||||||||||||||||||||||||
382 | return executed 12 times by 1 test: 0;return 0; Executed by:
executed 12 times by 1 test: return 0; Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||
383 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
384 | - | |||||||||||||||||||||||||||||||||||||
385 | if (pattr == 0
| 3-552 | ||||||||||||||||||||||||||||||||||||
386 | printf ("declare -%s ", i ? flags : "-"); executed 561 times by 1 test: printf ("declare -%s ", i ? flags : "-"); Executed by:
| 561 | ||||||||||||||||||||||||||||||||||||
387 | else if (i
| 0-3 | ||||||||||||||||||||||||||||||||||||
388 | printf ("%s -%s ", this_command_name, flags); executed 3 times by 1 test: printf ("%s -%s ", this_command_name, flags); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||
389 | else | - | ||||||||||||||||||||||||||||||||||||
390 | printf ("%s ", this_command_name); never executed: printf ("%s ", this_command_name); | 0 | ||||||||||||||||||||||||||||||||||||
391 | - | |||||||||||||||||||||||||||||||||||||
392 | - | |||||||||||||||||||||||||||||||||||||
393 | if (((((
| 7-518 | ||||||||||||||||||||||||||||||||||||
394 | printf ("%s\n", var->name); executed 23 times by 1 test: printf ("%s\n", var->name); Executed by:
| 23 | ||||||||||||||||||||||||||||||||||||
395 | else if (((((
| 222-319 | ||||||||||||||||||||||||||||||||||||
396 | print_array_assignment (var, 0); executed 222 times by 1 test: print_array_assignment (var, 0); Executed by:
| 222 | ||||||||||||||||||||||||||||||||||||
397 | else if (((((
| 105-214 | ||||||||||||||||||||||||||||||||||||
398 | print_assoc_assignment (var, 0); executed 105 times by 1 test: print_assoc_assignment (var, 0); Executed by:
| 105 | ||||||||||||||||||||||||||||||||||||
399 | else | - | ||||||||||||||||||||||||||||||||||||
400 | - | |||||||||||||||||||||||||||||||||||||
401 | - | |||||||||||||||||||||||||||||||||||||
402 | - | |||||||||||||||||||||||||||||||||||||
403 | if (nodefs
| 0-209 | ||||||||||||||||||||||||||||||||||||
404 | printf ("%s\n", var->name); executed 5 times by 1 test: printf ("%s\n", var->name); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
405 | else if (((((
| 0-209 | ||||||||||||||||||||||||||||||||||||
406 | printf ("%s\n", named_function_string (var->name, (COMMAND *)((var)->value), 0x01|0x02)); never executed: printf ("%s\n", named_function_string (var->name, (COMMAND *)((var)->value), 0x01|0x02)); | 0 | ||||||||||||||||||||||||||||||||||||
407 | else if (((((
| 1-186 | ||||||||||||||||||||||||||||||||||||
408 | printf ("%s\n", var->name); executed 24 times by 1 test: printf ("%s\n", var->name); Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||
409 | else | - | ||||||||||||||||||||||||||||||||||||
410 | { | - | ||||||||||||||||||||||||||||||||||||
411 | x = sh_double_quote (((var)->value)); | - | ||||||||||||||||||||||||||||||||||||
412 | printf ("%s=%s\n", var->name, x); | - | ||||||||||||||||||||||||||||||||||||
413 | sh_xfree((x), "./setattr.def", 489); | - | ||||||||||||||||||||||||||||||||||||
414 | } executed 185 times by 1 test: end of block Executed by:
| 185 | ||||||||||||||||||||||||||||||||||||
415 | return executed 564 times by 1 test: (0);return (0); Executed by:
executed 564 times by 1 test: return (0); Executed by:
| 564 | ||||||||||||||||||||||||||||||||||||
416 | } | - | ||||||||||||||||||||||||||||||||||||
417 | - | |||||||||||||||||||||||||||||||||||||
418 | int | - | ||||||||||||||||||||||||||||||||||||
419 | show_name_attributes (name, nodefs) | - | ||||||||||||||||||||||||||||||||||||
420 | char *name; | - | ||||||||||||||||||||||||||||||||||||
421 | int nodefs; | - | ||||||||||||||||||||||||||||||||||||
422 | { | - | ||||||||||||||||||||||||||||||||||||
423 | SHELL_VAR *var; | - | ||||||||||||||||||||||||||||||||||||
424 | - | |||||||||||||||||||||||||||||||||||||
425 | - | |||||||||||||||||||||||||||||||||||||
426 | - | |||||||||||||||||||||||||||||||||||||
427 | - | |||||||||||||||||||||||||||||||||||||
428 | var = find_variable_noref (name); | - | ||||||||||||||||||||||||||||||||||||
429 | - | |||||||||||||||||||||||||||||||||||||
430 | - | |||||||||||||||||||||||||||||||||||||
431 | if (var
| 51-461 | ||||||||||||||||||||||||||||||||||||
432 | { | - | ||||||||||||||||||||||||||||||||||||
433 | show_var_attributes (var, (this_shell_builtin == readonly_builtin || this_shell_builtin == export_builtin), nodefs); | - | ||||||||||||||||||||||||||||||||||||
434 | return executed 461 times by 1 test: (0);return (0); Executed by:
executed 461 times by 1 test: return (0); Executed by:
| 461 | ||||||||||||||||||||||||||||||||||||
435 | } | - | ||||||||||||||||||||||||||||||||||||
436 | else | - | ||||||||||||||||||||||||||||||||||||
437 | return executed 51 times by 1 test: (1);return (1); Executed by:
executed 51 times by 1 test: return (1); Executed by:
| 51 | ||||||||||||||||||||||||||||||||||||
438 | } | - | ||||||||||||||||||||||||||||||||||||
439 | - | |||||||||||||||||||||||||||||||||||||
440 | int | - | ||||||||||||||||||||||||||||||||||||
441 | show_func_attributes (name, nodefs) | - | ||||||||||||||||||||||||||||||||||||
442 | char *name; | - | ||||||||||||||||||||||||||||||||||||
443 | int nodefs; | - | ||||||||||||||||||||||||||||||||||||
444 | { | - | ||||||||||||||||||||||||||||||||||||
445 | SHELL_VAR *var; | - | ||||||||||||||||||||||||||||||||||||
446 | - | |||||||||||||||||||||||||||||||||||||
447 | var = find_function (name); | - | ||||||||||||||||||||||||||||||||||||
448 | - | |||||||||||||||||||||||||||||||||||||
449 | if (var
| 2-6 | ||||||||||||||||||||||||||||||||||||
450 | { | - | ||||||||||||||||||||||||||||||||||||
451 | show_var_attributes (var, (this_shell_builtin == readonly_builtin || this_shell_builtin == export_builtin), nodefs); | - | ||||||||||||||||||||||||||||||||||||
452 | return executed 6 times by 1 test: (0);return (0); Executed by:
executed 6 times by 1 test: return (0); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||
453 | } | - | ||||||||||||||||||||||||||||||||||||
454 | else | - | ||||||||||||||||||||||||||||||||||||
455 | return executed 2 times by 1 test: (1);return (1); Executed by:
executed 2 times by 1 test: return (1); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
456 | } | - | ||||||||||||||||||||||||||||||||||||
457 | - | |||||||||||||||||||||||||||||||||||||
458 | void | - | ||||||||||||||||||||||||||||||||||||
459 | set_var_attribute (name, attribute, undo) | - | ||||||||||||||||||||||||||||||||||||
460 | char *name; | - | ||||||||||||||||||||||||||||||||||||
461 | int attribute, undo; | - | ||||||||||||||||||||||||||||||||||||
462 | { | - | ||||||||||||||||||||||||||||||||||||
463 | SHELL_VAR *var, *tv, *v, *refvar; | - | ||||||||||||||||||||||||||||||||||||
464 | char *tvalue; | - | ||||||||||||||||||||||||||||||||||||
465 | - | |||||||||||||||||||||||||||||||||||||
466 | if (undo
| 5-2593 | ||||||||||||||||||||||||||||||||||||
467 | var = find_variable (name); executed 5 times by 1 test: var = find_variable (name); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
468 | else | - | ||||||||||||||||||||||||||||||||||||
469 | { | - | ||||||||||||||||||||||||||||||||||||
470 | tv = find_tempenv_variable (name); | - | ||||||||||||||||||||||||||||||||||||
471 | - | |||||||||||||||||||||||||||||||||||||
472 | - | |||||||||||||||||||||||||||||||||||||
473 | - | |||||||||||||||||||||||||||||||||||||
474 | if (tv
| 0-2586 | ||||||||||||||||||||||||||||||||||||
475 | { | - | ||||||||||||||||||||||||||||||||||||
476 | tvalue = ((
| 0-7 | ||||||||||||||||||||||||||||||||||||
477 | - | |||||||||||||||||||||||||||||||||||||
478 | var = bind_variable (tv->name, tvalue, 0); | - | ||||||||||||||||||||||||||||||||||||
479 | if (var == 0
| 0-7 | ||||||||||||||||||||||||||||||||||||
480 | { | - | ||||||||||||||||||||||||||||||||||||
481 | sh_xfree((tvalue), "./setattr.def", 557); | - | ||||||||||||||||||||||||||||||||||||
482 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||||||||
483 | } | - | ||||||||||||||||||||||||||||||||||||
484 | var->attributes |= tv->attributes & ~0x0100000; | - | ||||||||||||||||||||||||||||||||||||
485 | - | |||||||||||||||||||||||||||||||||||||
486 | - | |||||||||||||||||||||||||||||||||||||
487 | if (var->context == 0
| 0-7 | ||||||||||||||||||||||||||||||||||||
488 | { | - | ||||||||||||||||||||||||||||||||||||
489 | - | |||||||||||||||||||||||||||||||||||||
490 | - | |||||||||||||||||||||||||||||||||||||
491 | v = find_global_variable (tv->name); | - | ||||||||||||||||||||||||||||||||||||
492 | if (v != var
| 0 | ||||||||||||||||||||||||||||||||||||
493 | (( never executed: tv)->attributes |= (0x0200000));((tv)->attributes |= (0x0200000)); never executed: ((tv)->attributes |= (0x0200000)); | 0 | ||||||||||||||||||||||||||||||||||||
494 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||
495 | else | - | ||||||||||||||||||||||||||||||||||||
496 | (( executed 7 times by 1 test: tv)->attributes |= (0x0200000));((tv)->attributes |= (0x0200000)); Executed by:
executed 7 times by 1 test: ((tv)->attributes |= (0x0200000)); Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||
497 | if (var->context != 0
| 0-7 | ||||||||||||||||||||||||||||||||||||
498 | (( never executed: var)->attributes |= (0x0200000));((var)->attributes |= (0x0200000)); never executed: ((var)->attributes |= (0x0200000)); | 0 | ||||||||||||||||||||||||||||||||||||
499 | ((undo == 0) ? ((tv)->attributes |= (attribute)) : ((tv)->attributes &= ~(attribute))); | - | ||||||||||||||||||||||||||||||||||||
500 | - | |||||||||||||||||||||||||||||||||||||
501 | stupidly_hack_special_variables (tv->name); | - | ||||||||||||||||||||||||||||||||||||
502 | - | |||||||||||||||||||||||||||||||||||||
503 | sh_xfree((tvalue), "./setattr.def", 579); | - | ||||||||||||||||||||||||||||||||||||
504 | } executed 7 times by 1 test: end of block Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||
505 | else | - | ||||||||||||||||||||||||||||||||||||
506 | { | - | ||||||||||||||||||||||||||||||||||||
507 | var = find_variable_notempenv (name); | - | ||||||||||||||||||||||||||||||||||||
508 | if (var == 0
| 6-2580 | ||||||||||||||||||||||||||||||||||||
509 | { | - | ||||||||||||||||||||||||||||||||||||
510 | - | |||||||||||||||||||||||||||||||||||||
511 | - | |||||||||||||||||||||||||||||||||||||
512 | - | |||||||||||||||||||||||||||||||||||||
513 | refvar = find_variable_nameref_for_create (name, 0); | - | ||||||||||||||||||||||||||||||||||||
514 | if (refvar == (void *)&nameref_invalid_value
| 1-5 | ||||||||||||||||||||||||||||||||||||
515 | return; executed 1 time by 1 test: return; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
516 | - | |||||||||||||||||||||||||||||||||||||
517 | - | |||||||||||||||||||||||||||||||||||||
518 | - | |||||||||||||||||||||||||||||||||||||
519 | } executed 5 times by 1 test: end of block Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
520 | if (var == 0
| 5-2580 | ||||||||||||||||||||||||||||||||||||
521 | { | - | ||||||||||||||||||||||||||||||||||||
522 | var = bind_variable (name, (char *) | - | ||||||||||||||||||||||||||||||||||||
523 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
524 | , 0); | - | ||||||||||||||||||||||||||||||||||||
525 | if (var
| 0-5 | ||||||||||||||||||||||||||||||||||||
526 | (( executed 5 times by 1 test: var)->attributes |= (0x0001000));((var)->attributes |= (0x0001000)); Executed by:
executed 5 times by 1 test: ((var)->attributes |= (0x0001000)); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
527 | } executed 5 times by 1 test: end of block Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||
528 | else if (var->context != 0
| 8-2572 | ||||||||||||||||||||||||||||||||||||
529 | (( executed 8 times by 1 test: var)->attributes |= (0x0200000));((var)->attributes |= (0x0200000)); Executed by:
executed 8 times by 1 test: ((var)->attributes |= (0x0200000)); Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||
530 | } executed 2585 times by 1 test: end of block Executed by:
| 2585 | ||||||||||||||||||||||||||||||||||||
531 | } | - | ||||||||||||||||||||||||||||||||||||
532 | - | |||||||||||||||||||||||||||||||||||||
533 | if (var
| 0-2597 | ||||||||||||||||||||||||||||||||||||
534 | (( executed 2597 times by 1 test: undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute)));((undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute))); Executed by:
executed 2597 times by 1 test: ((undo == 0) ? ((var)->attributes |= (attribute)) : ((var)->attributes &= ~(attribute))); Executed by:
| 2597 | ||||||||||||||||||||||||||||||||||||
535 | - | |||||||||||||||||||||||||||||||||||||
536 | if (var
| 0-2597 | ||||||||||||||||||||||||||||||||||||
537 | array_needs_making++; executed 2519 times by 1 test: array_needs_making++; Executed by:
| 2519 | ||||||||||||||||||||||||||||||||||||
538 | } executed 2597 times by 1 test: end of block Executed by:
| 2597 | ||||||||||||||||||||||||||||||||||||
Switch to Source code | Preprocessed file |