• Home
  • Raw
  • Download

Lines Matching refs:el_keymacro

107 	el->el_keymacro.buf = el_malloc(KEY_BUFSIZ *  in keymacro_init()
108 sizeof(*el->el_keymacro.buf)); in keymacro_init()
109 if (el->el_keymacro.buf == NULL) in keymacro_init()
111 el->el_keymacro.map = NULL; in keymacro_init()
123 el_free(el->el_keymacro.buf); in keymacro_end()
124 el->el_keymacro.buf = NULL; in keymacro_end()
125 node__free(el->el_keymacro.map); in keymacro_end()
136 el->el_keymacro.val.cmd = (el_action_t) cmd; in keymacro_map_cmd()
137 return &el->el_keymacro.val; in keymacro_map_cmd()
148 el->el_keymacro.val.str = str; in keymacro_map_str()
149 return &el->el_keymacro.val; in keymacro_map_str()
162 node__put(el, el->el_keymacro.map); in keymacro_reset()
163 el->el_keymacro.map = NULL; in keymacro_reset()
180 return node_trav(el, el->el_keymacro.map, ch, val); in keymacro_get()
204 if (el->el_keymacro.map == NULL) in keymacro_add()
206 el->el_keymacro.map = node__get(key[0]); in keymacro_add()
210 (void) node__try(el, el->el_keymacro.map, key, val, ntype); in keymacro_add()
247 if (el->el_keymacro.map == NULL) in keymacro_delete()
250 (void) node__delete(el, &el->el_keymacro.map, key); in keymacro_delete()
264 if (el->el_keymacro.map == NULL && *key == 0) in keymacro_print()
267 el->el_keymacro.buf[0] = '"'; in keymacro_print()
268 if (node_lookup(el, key, el->el_keymacro.map, (size_t)1) <= -1) in keymacro_print()
506 used = ct_visual_char(el->el_keymacro.buf + cnt, in node_lookup()
518 el->el_keymacro.buf[px] = '"'; in node_lookup()
519 el->el_keymacro.buf[px + 1] = '\0'; in node_lookup()
520 keymacro_kprint(el, el->el_keymacro.buf, in node_lookup()
548 el->el_keymacro.buf[++cnt] = '"'; in node_enum()
549 el->el_keymacro.buf[++cnt] = '\0'; in node_enum()
553 el->el_keymacro.buf); in node_enum()
564 used = ct_visual_char(el->el_keymacro.buf + cnt, KEY_BUFSIZ - cnt, in node_enum()
568 el->el_keymacro.buf[cnt + (size_t)used ] = '"'; in node_enum()
569 el->el_keymacro.buf[cnt + (size_t)used + 1] = '\0'; in node_enum()
570 keymacro_kprint(el, el->el_keymacro.buf, &ptr->val, ptr->type); in node_enum()