| 187 | } |
| 188 | |
| 189 | static void uniq(struct cmdnames *cmds) |
| 190 | { |
| 191 | int i, j; |
| 192 | |
| 193 | if (!cmds->cnt) |
| 194 | return; |
| 195 | |
| 196 | for (i = j = 1; i < cmds->cnt; i++) { |
| 197 | if (!strcmp(cmds->names[i]->name, cmds->names[j-1]->name)) |
| 198 | free(cmds->names[i]); |
| 199 | else |
| 200 | cmds->names[j++] = cmds->names[i]; |
| 201 | } |
| 202 | |
| 203 | cmds->cnt = j; |
| 204 | } |
| 205 | |
| 206 | void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes) |
| 207 | { |
no outgoing calls
no test coverage detected