keymacro_delete(): * Delete the key and all longer keys staring with key, if * they exists. */
| 236 | * they exists. |
| 237 | */ |
| 238 | protected int |
| 239 | keymacro_delete(EditLine *el, const Char *key) |
| 240 | { |
| 241 | |
| 242 | if (key[0] == '\0') { |
| 243 | (void) fprintf(el->el_errfile, |
| 244 | "keymacro_delete: Null extended-key not allowed.\n"); |
| 245 | return -1; |
| 246 | } |
| 247 | if (el->el_keymacro.map == NULL) |
| 248 | return 0; |
| 249 | |
| 250 | (void) node__delete(el, &el->el_keymacro.map, key); |
| 251 | return 0; |
| 252 | } |
| 253 | |
| 254 | |
| 255 | /* keymacro_print(): |
no test coverage detected