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

Function node__get

extern/editline/src/keymacro.c:460–474  ·  view source on GitHub ↗

node__get(): * Returns pointer to a keymacro_node_t for ch. */

Source from the content-addressed store, hash-verified

458 * Returns pointer to a keymacro_node_t for ch.
459 */
460private keymacro_node_t *
461node__get(Int ch)
462{
463 keymacro_node_t *ptr;
464
465 ptr = el_malloc(sizeof(*ptr));
466 if (ptr == NULL)
467 return NULL;
468 ptr->ch = ch;
469 ptr->type = XK_NOD;
470 ptr->val.str = NULL;
471 ptr->next = NULL;
472 ptr->sibling = NULL;
473 return ptr;
474}
475
476private void
477node__free(keymacro_node_t *k)

Callers 3

keymacro.cFile · 0.85
keymacro_addFunction · 0.85
node__tryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected