MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / keymacro_delete

Function keymacro_delete

extern/editline/src/keymacro.c:238–252  ·  view source on GitHub ↗

keymacro_delete(): * Delete the key and all longer keys staring with key, if * they exists. */

Source from the content-addressed store, hash-verified

236 * they exists.
237 */
238protected int
239keymacro_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():

Callers 2

map_bindFunction · 0.85
keymacro_clearFunction · 0.85

Calls 1

node__deleteFunction · 0.85

Tested by

no test coverage detected