X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=readline%2Fkeymaps.h;h=5dff46f56c2dc006d3fd749cf7ca99a2d430e451;hb=7b1f123191d2d70a86e790e57f26eea2aa7082e7;hp=f6143f86f2627bf595d4d61a5ba4e7feca76a918;hpb=cd946cff9ede3f30935803403f06f6ed30cad136;p=binutils-gdb.git diff --git a/readline/keymaps.h b/readline/keymaps.h index f6143f86f26..5dff46f56c2 100644 --- a/readline/keymaps.h +++ b/readline/keymaps.h @@ -24,8 +24,10 @@ #define _KEYMAPS_H_ #if defined (READLINE_LIBRARY) +# include "rlstdc.h" # include "chardefs.h" #else +# include # include #endif @@ -70,26 +72,29 @@ extern KEYMAP_ENTRY_ARRAY vi_insertion_keymap, vi_movement_keymap; /* Return a new, empty keymap. Free it with free() when you are done. */ -extern Keymap rl_make_bare_keymap (); +extern Keymap rl_make_bare_keymap __P((void)); /* Return a new keymap which is a copy of MAP. */ -extern Keymap rl_copy_keymap (); +extern Keymap rl_copy_keymap __P((Keymap)); /* Return a new keymap with the printing characters bound to rl_insert, the lowercase Meta characters bound to run their equivalents, and the Meta digits bound to produce numeric arguments. */ -extern Keymap rl_make_keymap (); +extern Keymap rl_make_keymap __P((void)); -extern void rl_discard_keymap (); +/* Free the storage associated with a keymap. */ +extern void rl_discard_keymap __P((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 (); + `emacs' or `emacs-meta' or `vi-insert'. */ +extern Keymap rl_get_keymap_by_name __P((char *)); /* Return the current keymap. */ -extern Keymap rl_get_keymap (); +extern Keymap rl_get_keymap __P((void)); /* Set the current keymap to MAP. */ -extern void rl_set_keymap (); +extern void rl_set_keymap __P((Keymap)); #endif /* _KEYMAPS_H_ */