• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/libedit/

Lines Matching defs:map

46  *	       the extended-key map.
50 * number of characters. This module maintains a map (the
51 * el->el_keymacro.map)
58 * are in el->el_keymacro.map, adding the key "abc" will cause
73 * The Nodes of the el->el_keymacro.map. The el->el_keymacro.map is a
112 el->el_keymacro.map = NULL;
126 node__free(el->el_keymacro.map);
155 * Takes all nodes on el->el_keymacro.map and puts them on free list.
156 * Then initializes el->el_keymacro.map with arrow keys
163 node__put(el, el->el_keymacro.map);
164 el->el_keymacro.map = NULL;
170 * Calls the recursive function with entry point el->el_keymacro.map
171 * Looks up *ch in map and then reads characters until a
182 return node_trav(el, el->el_keymacro.map, ch, val);
187 * Adds key to the el->el_keymacro.map and associates the value in
188 * val with it. If key is already is in el->el_keymacro.map, the new
207 if (el->el_keymacro.map == NULL)
209 el->el_keymacro.map = node__get(key[0]);
212 /* Now recurse through el->el_keymacro.map */
213 (void) node__try(el, el->el_keymacro.map, key, val, ntype);
222 keymacro_clear(EditLine *el, el_action_t *map, const wchar_t *in)
224 if (*in > N_KEYS) /* can't be in the map */
226 if ((map[(unsigned char)*in] == ED_SEQUENCE_LEAD_IN) &&
227 ((map == el->el_map.key &&
229 (map == el->el_map.alt &&
248 if (el->el_keymacro.map == NULL)
251 (void) node__delete(el, &el->el_keymacro.map, key);
258 * Print entire el->el_keymacro.map if null
264 /* do nothing if el->el_keymacro.map is empty and null key specified */
265 if (el->el_keymacro.map == NULL && *key == 0)
269 if (node_lookup(el, key, el->el_keymacro.map, (size_t)1) <= -1)