#include "compat.h"
#include "sys.h"
#include <string.h>
#include <stdlib.h>
#include "el.h"
Go to the source code of this file.
Classes | |
struct | KeyNode_t |
Defines | |
#define | KEY_BUFSIZ EL_BUFSIZ |
Functions | |
el_private int | node_trav (EditLine_t *, KeyNode_t *, char *, KeyValue_t *) |
el_private int | node__try (EditLine_t *, KeyNode_t *, const char *, KeyValue_t *, int) |
el_private KeyNode_t * | node__get (int) |
el_private void | node__put (EditLine_t *, KeyNode_t *) |
el_private int | node__delete (EditLine_t *, KeyNode_t **, char *) |
el_private int | node_lookup (EditLine_t *, const char *, KeyNode_t *, int) |
el_private int | node_enum (EditLine_t *, KeyNode_t *, int) |
el_private int | key__decode_char (char *, int, int) |
el_protected int | key_init (EditLine_t *el) |
el_protected void | key_end (EditLine_t *el) |
el_protected KeyValue_t * | key_map_cmd (EditLine_t *el, int cmd) |
el_protected KeyValue_t * | key_map_str (EditLine_t *el, char *str) |
el_protected void | key_reset (EditLine_t *el) |
el_protected int | key_get (EditLine_t *el, char *ch, KeyValue_t *val) |
el_protected void | key_add (EditLine_t *el, const char *key, KeyValue_t *val, int ntype) |
el_protected void | key_clear (EditLine_t *el, ElAction_t *map, char *in) |
el_protected int | key_delete (EditLine_t *el, char *key) |
el_protected void | key_print (EditLine_t *el, const char *key) |
el_protected void | key_kprint (EditLine_t *el, const char *key, KeyValue_t *val, int ntype) |
el_protected char * | key__decode_str (char *str, char *buf, const char *sep) |
#define KEY_BUFSIZ EL_BUFSIZ |
el_private int key__decode_char | ( | char * | , | |
int | , | |||
int | ||||
) |
Definition at line 631 of file key.cxx.
References int.
Referenced by node_enum(), and node_lookup().
el_protected char* key__decode_str | ( | char * | str, | |
char * | buf, | |||
const char * | sep | |||
) |
Definition at line 668 of file key.cxx.
Referenced by key_kprint(), map_print_key(), map_print_some_keys(), and term_telltc().
el_protected void key_add | ( | EditLine_t * | el, | |
const char * | key, | |||
KeyValue_t * | val, | |||
int | ntype | |||
) |
Definition at line 184 of file key.cxx.
References ED_SEQUENCE_LEAD_IN, EditLine_t::fErrFile, EditLine_t::fKey, ElKey_t::fMap, fprintf(), node__get(), node__try(), NULL, val, void, and XK_CMD.
Referenced by map_bind(), map_init_emacs(), term_bind_arrow(), and term_reset_arrow().
el_protected void key_clear | ( | EditLine_t * | el, | |
ElAction_t * | map, | |||
char * | in | |||
) |
Definition at line 213 of file key.cxx.
References ED_SEQUENCE_LEAD_IN, ElMap_t::fAlt, ElMap_t::fKey, EditLine_t::fMap, key_delete(), and void.
Referenced by map_bind(), term_bind_arrow(), and tty_bind_char().
el_protected int key_delete | ( | EditLine_t * | el, | |
char * | key | |||
) |
Definition at line 229 of file key.cxx.
References EditLine_t::fErrFile, EditLine_t::fKey, ElKey_t::fMap, fprintf(), node__delete(), NULL, and void.
Referenced by key_clear(), and map_bind().
el_protected void key_end | ( | EditLine_t * | el | ) |
Definition at line 122 of file key.cxx.
References el_free, ElKey_t::fBuf, EditLine_t::fKey, ElKey_t::fMap, and NULL.
Referenced by el_end().
el_protected int key_get | ( | EditLine_t * | el, | |
char * | ch, | |||
KeyValue_t * | val | |||
) |
Definition at line 172 of file key.cxx.
References EditLine_t::fKey, ElKey_t::fMap, node_trav(), and val.
Referenced by read_getcmd().
el_protected int key_init | ( | EditLine_t * | el | ) |
Definition at line 106 of file key.cxx.
References el_malloc, ElKey_t::fBuf, EditLine_t::fKey, ElKey_t::fMap, KEY_BUFSIZ, key_reset(), and NULL.
Referenced by el_init().
el_protected void key_kprint | ( | EditLine_t * | el, | |
const char * | key, | |||
KeyValue_t * | val, | |||
int | ntype | |||
) |
Definition at line 586 of file key.cxx.
References EL_ABORT, EL_BUFSIZ, EditLine_t::fErrFile, ElMap_t::fHelp, EditLine_t::fMap, EditLine_t::fOutFile, fp, fprintf(), key__decode_str(), NULL, val, void, XK_CMD, and XK_STR.
Referenced by node_enum(), node_lookup(), and term_print_arrow().
el_protected KeyValue_t* key_map_cmd | ( | EditLine_t * | el, | |
int | cmd | |||
) |
Definition at line 134 of file key.cxx.
References KeyValue_t::fCmd, EditLine_t::fKey, and ElKey_t::fVal.
Referenced by map_bind(), and map_init_emacs().
el_protected KeyValue_t* key_map_str | ( | EditLine_t * | el, | |
char * | str | |||
) |
Definition at line 144 of file key.cxx.
References EditLine_t::fKey, KeyValue_t::fStr, and ElKey_t::fVal.
Referenced by map_bind().
el_protected void key_print | ( | EditLine_t * | el, | |
const char * | key | |||
) |
Definition at line 250 of file key.cxx.
References ElKey_t::fBuf, EditLine_t::fErrFile, EditLine_t::fKey, ElKey_t::fMap, fprintf(), node_lookup(), NULL, and void.
Referenced by map_print_key().
el_protected void key_reset | ( | EditLine_t * | el | ) |
Definition at line 156 of file key.cxx.
References EditLine_t::fKey, ElKey_t::fMap, node__put(), and NULL.
Referenced by key_init(), map_init_emacs(), and map_init_vi().
el_private int node__delete | ( | EditLine_t * | , | |
KeyNode_t ** | , | |||
char * | ||||
) |
Definition at line 377 of file key.cxx.
References KeyNode_t::fCh, KeyNode_t::fSibling, NULL, and ptr.
Referenced by key_delete().
el_private KeyNode_t * node__get | ( | int | ) |
el_private void node__put | ( | EditLine_t * | , | |
KeyNode_t * | ||||
) |
el_private int node__try | ( | EditLine_t * | , | |
KeyNode_t * | , | |||
const char * | , | |||
KeyValue_t * | , | |||
int | ||||
) |
Definition at line 309 of file key.cxx.
References KeyNode_t::fCh, KeyNode_t::fSibling, node__get(), NULL, and ptr.
Referenced by key_add().
el_private int node_enum | ( | EditLine_t * | , | |
KeyNode_t * | , | |||
int | ||||
) |
Definition at line 542 of file key.cxx.
References ElKey_t::fBuf, EditLine_t::fErrFile, EditLine_t::fKey, fprintf(), key__decode_char(), KEY_BUFSIZ, key_kprint(), NULL, ptr, and void.
Referenced by node_lookup().
el_private int node_lookup | ( | EditLine_t * | , | |
const char * | , | |||
KeyNode_t * | , | |||
int | ||||
) |
Definition at line 489 of file key.cxx.
References ElKey_t::fBuf, EditLine_t::fKey, key__decode_char(), key_kprint(), node_enum(), NULL, ptr, and void.
Referenced by key_print().
el_private int node_trav | ( | EditLine_t * | , | |
KeyNode_t * | , | |||
char * | , | |||
KeyValue_t * | ||||
) |