| 2177 | } |
| 2178 | |
| 2179 | void |
| 2180 | cmdbind_freeall(void) |
| 2181 | { |
| 2182 | struct Cmd_bind *next; |
| 2183 | |
| 2184 | while (gc.Cmd.cmdbinds) { |
| 2185 | next = gc.Cmd.cmdbinds->next; |
| 2186 | if (gc.Cmd.cmdbinds->param) |
| 2187 | free(gc.Cmd.cmdbinds->param); |
| 2188 | free(gc.Cmd.cmdbinds); |
| 2189 | gc.Cmd.cmdbinds = next; |
| 2190 | } |
| 2191 | } |
| 2192 | |
| 2193 | /* swap key bindings for key1 and key2. both bindings must exist. */ |
| 2194 | staticfn void |