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

Function keymacro_init

extern/editline/src/keymacro.c:103–114  ·  view source on GitHub ↗

keymacro_init(): * Initialize the key maps */

Source from the content-addressed store, hash-verified

101 * Initialize the key maps
102 */
103protected int
104keymacro_init(EditLine *el)
105{
106
107 el->el_keymacro.buf = el_malloc(KEY_BUFSIZ *
108 sizeof(*el->el_keymacro.buf));
109 if (el->el_keymacro.buf == NULL)
110 return -1;
111 el->el_keymacro.map = NULL;
112 keymacro_reset(el);
113 return 0;
114}
115
116/* keymacro_end():
117 * Free the key maps

Callers 1

el_init_fdFunction · 0.85

Calls 1

keymacro_resetFunction · 0.85

Tested by

no test coverage detected