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

Function keymacro_print

extern/editline/src/keymacro.c:259–273  ·  view source on GitHub ↗

keymacro_print(): * Print the binding associated with key key. * Print entire el->el_keymacro.map if null */

Source from the content-addressed store, hash-verified

257 * Print entire el->el_keymacro.map if null
258 */
259protected void
260keymacro_print(EditLine *el, const Char *key)
261{
262
263 /* do nothing if el->el_keymacro.map is empty and null key specified */
264 if (el->el_keymacro.map == NULL && *key == 0)
265 return;
266
267 el->el_keymacro.buf[0] = '"';
268 if (node_lookup(el, key, el->el_keymacro.map, (size_t)1) <= -1)
269 /* key is not bound */
270 (void) fprintf(el->el_errfile, "Unbound extended key \"" FSTR
271 "\"\n", key);
272 return;
273}
274
275
276/* node_trav():

Callers 2

map_print_keyFunction · 0.85
map_print_all_keysFunction · 0.85

Calls 1

node_lookupFunction · 0.85

Tested by

no test coverage detected