Lines Matching defs:val
78 keymacro_value_t val; /* command code or pointer to str, */
136 el->el_keymacro.val.cmd = (el_action_t) cmd;
137 return &el->el_keymacro.val;
148 el->el_keymacro.val.str = str;
149 return &el->el_keymacro.val;
173 * Returns NULL in val.str and XK_STR for no match.
177 keymacro_get(EditLine *el, Char *ch, keymacro_value_t *val)
180 return node_trav(el, el->el_keymacro.map, ch, val);
186 * val with it. If key is already is in el->el_keymacro.map, the new
191 keymacro_add(EditLine *el, const Char *key, keymacro_value_t *val, int ntype)
199 if (ntype == XK_CMD && val->cmd == ED_SEQUENCE_LEAD_IN) {
210 (void) node__try(el, el->el_keymacro.map, key, val, ntype);
281 node_trav(EditLine *el, keymacro_node_t *ptr, Char *ch, keymacro_value_t *val)
289 val->cmd = ED_END_OF_FILE;
293 return node_trav(el, ptr->next, ch, val);
295 *val = ptr->val;
304 return node_trav(el, ptr->sibling, ch, val);
307 val->str = NULL;
319 keymacro_value_t *val, int ntype)
345 if (ptr->val.str)
346 el_free(ptr->val.str);
356 ptr->val = *val;
360 if ((ptr->val.str = Strdup(val->str)) == NULL)
371 (void) node__try(el, ptr->next, str, val, ntype);
446 if (ptr->val.str != NULL)
447 el_free(ptr->val.str);
470 ptr->val.str = NULL;
521 &ptr->val, ptr->type);
570 keymacro_kprint(el, el->el_keymacro.buf, &ptr->val, ptr->type);
583 * function specified by val
586 keymacro_kprint(EditLine *el, const Char *key, keymacro_value_t *val, int ntype)
592 if (val != NULL)
596 (void) keymacro__decode_str(val->str, unparsbuf,
604 if (val->cmd == fp->func) {