| 160 | } |
| 161 | |
| 162 | void add_cmdname(struct cmdnames *cmds, const char *name, int len) |
| 163 | { |
| 164 | struct cmdname *ent; |
| 165 | FLEX_ALLOC_MEM(ent, name, name, len); |
| 166 | ent->len = len; |
| 167 | |
| 168 | ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); |
| 169 | cmds->names[cmds->cnt++] = ent; |
| 170 | } |
| 171 | |
| 172 | void cmdnames_release(struct cmdnames *cmds) |
| 173 | { |
no outgoing calls
no test coverage detected