TheGNUGeneralPublicLicenseisoftenshippedwithGNUsoftware,and isgenerallykeptinafilecalledCOPYINGorLICENSE.Ifyoudonot haveacopyofthelicense,writetotheFreeSoftwareFoundation,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA. */
#ifndef _KEYMAPS_H_ #define _KEYMAPS_H_
#ifdef __cplusplus extern"C" { #endif
#ifdefined (READLINE_LIBRARY) # include "rlstdc.h" # include "chardefs.h" # include "rltypedefs.h" #else # include <rlstdc.h> # include <chardefs.h> # include <rltypedefs.h> #endif
/* A keymap contains one entry for each key in the ASCII set. Eachentryconsistsofatypeandapointer. FUNCTIONistheaddressofafunctiontorun,orthe addressofakeymaptoindirectthrough.
TYPE says which kind of thing FUNCTION is. */ typedefstruct _keymap_entry { char type;
rl_command_func_t *function;
} KEYMAP_ENTRY;
/* This must be large enough to hold bindings for all of the characters inadesiredcharacterset(e.g,128forASCII,256forISOLatin-x,
and so on) plus one for subsequence matching. */ #define KEYMAP_SIZE 257 #define ANYOTHERKEY KEYMAP_SIZE-1
/* I wanted to make the above structure contain a union of: union{rl_command_func_t*function;struct_keymap_entry*keymap;}value; butthismadeitimpossibleformetocreateastaticarray.
Maybe I need C lessons. */
/* Return a new, empty keymap.
Free it with free() when you are done. */ extern Keymap rl_make_bare_keymap PARAMS((void));
/* Return a new keymap which is a copy of MAP. */ extern Keymap rl_copy_keymap PARAMS((Keymap));
/* Return a new keymap with the printing characters bound to rl_insert, thelowercaseMetacharactersboundtoruntheirequivalents,and
the Meta digits bound to produce numeric arguments. */ extern Keymap rl_make_keymap PARAMS((void));
/* Free the storage associated with a keymap. */ externvoid rl_discard_keymap PARAMS((Keymap));
/* These functions actually appear in bind.c */
/* Return the keymap corresponding to a given name. Names look like
`emacs' or `emacs-meta' or `vi-insert'. */ extern Keymap rl_get_keymap_by_name PARAMS((constchar *));
/* Return the current keymap. */ extern Keymap rl_get_keymap PARAMS((void));
/* Set the current keymap to MAP. */ externvoid rl_set_keymap PARAMS((Keymap));
#ifdef __cplusplus
} #endif
#endif/* _KEYMAPS_H_ */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-10-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.