X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Freadline%2Frldefs.h;h=4e094bf66c75adf5e7a9781eed579130f689dfdd;hb=28ef6c316f1aff914bb95ac09787a3c83c1815fd;hp=e504d9b1c301d8368f689e006dcf9d92b1574e64;hpb=bb70624e964126b7ac4ff085ba163a9c35ffa18f;p=platform%2Fupstream%2Fbash.git diff --git a/lib/readline/rldefs.h b/lib/readline/rldefs.h index e504d9b..4e094bf 100644 --- a/lib/readline/rldefs.h +++ b/lib/readline/rldefs.h @@ -30,6 +30,8 @@ # include "config.h" #endif +#include "rlstdc.h" + #if defined (_POSIX_VERSION) && !defined (TERMIOS_MISSING) # define TERMIOS_TTY_DRIVER #else @@ -71,7 +73,8 @@ extern char *strchr (), *strrchr (); #define _rl_stricmp strcasecmp #define _rl_strnicmp strncasecmp #else -extern int _rl_stricmp (), _rl_strnicmp (); +extern int _rl_stricmp __P((char *, char *); +extern int _rl_strnicmp __P((char *, char *)); #endif #if !defined (emacs_mode) @@ -87,14 +90,14 @@ extern int _rl_stricmp (), _rl_strnicmp (); This is not what is wanted. */ #if defined (CRAY) # define FUNCTION_TO_KEYMAP(map, key) (Keymap)((int)map[key].function) -# define KEYMAP_TO_FUNCTION(data) (Function *)((int)(data)) +# define KEYMAP_TO_FUNCTION(data) (rl_command_func_t *)((int)(data)) #else # define FUNCTION_TO_KEYMAP(map, key) (Keymap)(map[key].function) -# define KEYMAP_TO_FUNCTION(data) (Function *)(data) +# define KEYMAP_TO_FUNCTION(data) (rl_command_func_t *)(data) #endif #ifndef savestring -extern char *xmalloc (); +extern char *xmalloc __P((int)); #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x)) #endif