• Home
  • Raw
  • Download

Lines Matching refs:el_map

906 	el->el_map.alt = el_malloc(sizeof(*el->el_map.alt) * N_KEYS);  in map_init()
907 if (el->el_map.alt == NULL) in map_init()
909 el->el_map.key = el_malloc(sizeof(*el->el_map.key) * N_KEYS); in map_init()
910 if (el->el_map.key == NULL) in map_init()
912 el->el_map.emacs = el_map_emacs; in map_init()
913 el->el_map.vic = el_map_vi_command; in map_init()
914 el->el_map.vii = el_map_vi_insert; in map_init()
915 el->el_map.help = el_malloc(sizeof(*el->el_map.help) * EL_NUM_FCNS); in map_init()
916 if (el->el_map.help == NULL) in map_init()
918 (void) memcpy(el->el_map.help, help__get(), in map_init()
919 sizeof(*el->el_map.help) * EL_NUM_FCNS); in map_init()
920 el->el_map.func = el_malloc(sizeof(*el->el_map.func) * EL_NUM_FCNS); in map_init()
921 if (el->el_map.func == NULL) in map_init()
923 memcpy(el->el_map.func, func__get(), sizeof(*el->el_map.func) in map_init()
925 el->el_map.nfunc = EL_NUM_FCNS; in map_init()
943 el_free(el->el_map.alt); in map_end()
944 el->el_map.alt = NULL; in map_end()
945 el_free(el->el_map.key); in map_end()
946 el->el_map.key = NULL; in map_end()
947 el->el_map.emacs = NULL; in map_end()
948 el->el_map.vic = NULL; in map_end()
949 el->el_map.vii = NULL; in map_end()
950 el_free(el->el_map.help); in map_end()
951 el->el_map.help = NULL; in map_end()
952 el_free(el->el_map.func); in map_end()
953 el->el_map.func = NULL; in map_end()
965 el_action_t *map = el->el_map.key; in map_init_nls()
981 el_action_t *map = el->el_map.key; in map_init_meta()
982 el_action_t *alt = el->el_map.alt; in map_init_meta()
992 if (el->el_map.type == MAP_VI) in map_init_meta()
1021 el_action_t *key = el->el_map.key; in map_init_vi()
1022 el_action_t *alt = el->el_map.alt; in map_init_vi()
1023 const el_action_t *vii = el->el_map.vii; in map_init_vi()
1024 const el_action_t *vic = el->el_map.vic; in map_init_vi()
1026 el->el_map.type = MAP_VI; in map_init_vi()
1027 el->el_map.current = el->el_map.key; in map_init_vi()
1052 el_action_t *key = el->el_map.key; in map_init_emacs()
1053 el_action_t *alt = el->el_map.alt; in map_init_emacs()
1054 const el_action_t *emacs = el->el_map.emacs; in map_init_emacs()
1056 el->el_map.type = MAP_EMACS; in map_init_emacs()
1057 el->el_map.current = el->el_map.key; in map_init_emacs()
1106 switch (el->el_map.type) { in map_get_editor()
1129 ep = &el->el_map.help[el->el_map.nfunc]; in map_print_key()
1130 for (bp = el->el_map.help; bp < ep; bp++) in map_print_key()
1164 ep = &el->el_map.help[el->el_map.nfunc]; in map_print_some_keys()
1165 for (bp = el->el_map.help; bp < ep; bp++) { in map_print_some_keys()
1185 if (map == el->el_map.key) { in map_print_some_keys()
1191 first, el->el_map.key[first]); in map_print_some_keys()
1198 first, el->el_map.alt[first]); in map_print_some_keys()
1216 if (el->el_map.key[prev] == el->el_map.key[i]) in map_print_all_keys()
1218 map_print_some_keys(el, el->el_map.key, prev, i - 1); in map_print_all_keys()
1221 map_print_some_keys(el, el->el_map.key, prev, i - 1); in map_print_all_keys()
1226 if (el->el_map.alt[prev] == el->el_map.alt[i]) in map_print_all_keys()
1228 map_print_some_keys(el, el->el_map.alt, prev, i - 1); in map_print_all_keys()
1231 map_print_some_keys(el, el->el_map.alt, prev, i - 1); in map_print_all_keys()
1260 map = el->el_map.key; in map_bind()
1267 map = el->el_map.alt; in map_bind()
1295 ep = &el->el_map.help[el->el_map.nfunc]; in map_bind()
1296 for (bp = el->el_map.help; bp < ep; bp++) in map_bind()
1399 size_t nf = (size_t)el->el_map.nfunc + 1; in map_addfunc()
1404 if ((p = el_realloc(el->el_map.func, nf * in map_addfunc()
1405 sizeof(*el->el_map.func))) == NULL) in map_addfunc()
1407 el->el_map.func = p; in map_addfunc()
1408 if ((p = el_realloc(el->el_map.help, nf * sizeof(*el->el_map.help))) in map_addfunc()
1411 el->el_map.help = p; in map_addfunc()
1413 nf = (size_t)el->el_map.nfunc; in map_addfunc()
1414 el->el_map.func[nf] = func; in map_addfunc()
1416 el->el_map.help[nf].name = name; in map_addfunc()
1417 el->el_map.help[nf].func = (int)nf; in map_addfunc()
1418 el->el_map.help[nf].description = help; in map_addfunc()
1419 el->el_map.nfunc++; in map_addfunc()