| 2107 | |
| 2108 | /* get the command bound to a key */ |
| 2109 | staticfn struct Cmd_bind * |
| 2110 | cmdbind_get(uchar key) |
| 2111 | { |
| 2112 | struct Cmd_bind *bind = gc.Cmd.cmdbinds; |
| 2113 | |
| 2114 | if (!key) |
| 2115 | return NULL; |
| 2116 | |
| 2117 | while (bind) { |
| 2118 | if (bind->key == key) |
| 2119 | return bind; |
| 2120 | bind = bind->next; |
| 2121 | } |
| 2122 | return bind; |
| 2123 | } |
| 2124 | |
| 2125 | staticfn void |
| 2126 | cmdbind_add(uchar key, const struct ext_func_tab *extcmd, boolean user) |
no outgoing calls
no test coverage detected