node__get(): * Returns pointer to a keymacro_node_t for ch. */
| 458 | * Returns pointer to a keymacro_node_t for ch. |
| 459 | */ |
| 460 | private keymacro_node_t * |
| 461 | node__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 | |
| 476 | private void |
| 477 | node__free(keymacro_node_t *k) |
no outgoing calls
no test coverage detected