Commit 666dd7ba authored by unknown's avatar unknown

discard warnings in readline 4.3

parent 953f6c51
...@@ -70,7 +70,7 @@ static void insert_some_chars PARAMS((char *, int, int)); ...@@ -70,7 +70,7 @@ static void insert_some_chars PARAMS((char *, int, int));
static void cr PARAMS((void)); static void cr PARAMS((void));
#if defined (HANDLE_MULTIBYTE) #if defined (HANDLE_MULTIBYTE)
static int _rl_col_width PARAMS((char *, int, int)); static int _rl_col_width PARAMS((const char *, int, int));
static int *_rl_wrapped_line; static int *_rl_wrapped_line;
#else #else
# define _rl_col_width(l, s, e) (((e) <= (s)) ? 0 : (e) - (s)) # define _rl_col_width(l, s, e) (((e) <= (s)) ? 0 : (e) - (s))
...@@ -2118,7 +2118,7 @@ _rl_current_display_line () ...@@ -2118,7 +2118,7 @@ _rl_current_display_line ()
scan from the beginning of the string to take the state into account. */ scan from the beginning of the string to take the state into account. */
static int static int
_rl_col_width (str, start, end) _rl_col_width (str, start, end)
char *str; const char *str;
int start, end; int start, end;
{ {
wchar_t wc; wchar_t wc;
......
...@@ -196,7 +196,7 @@ _rl_find_prev_mbchar_internal (string, seed, find_non_zero) ...@@ -196,7 +196,7 @@ _rl_find_prev_mbchar_internal (string, seed, find_non_zero)
if it couldn't parse a complete multibyte character. */ if it couldn't parse a complete multibyte character. */
int int
_rl_get_char_len (src, ps) _rl_get_char_len (src, ps)
char *src; const char *src;
mbstate_t *ps; mbstate_t *ps;
{ {
size_t tmp; size_t tmp;
...@@ -251,7 +251,7 @@ _rl_compare_chars (buf1, pos1, ps1, buf2, pos2, ps2) ...@@ -251,7 +251,7 @@ _rl_compare_chars (buf1, pos1, ps1, buf2, pos2, ps2)
it returns -1 */ it returns -1 */
int int
_rl_adjust_point(string, point, ps) _rl_adjust_point(string, point, ps)
char *string; const char *string;
int point; int point;
mbstate_t *ps; mbstate_t *ps;
{ {
......
...@@ -82,8 +82,8 @@ extern int _rl_find_next_mbchar PARAMS((char *, int, int, int)); ...@@ -82,8 +82,8 @@ extern int _rl_find_next_mbchar PARAMS((char *, int, int, int));
#ifdef HANDLE_MULTIBYTE #ifdef HANDLE_MULTIBYTE
extern int _rl_compare_chars PARAMS((char *, int, mbstate_t *, char *, int, mbstate_t *)); extern int _rl_compare_chars PARAMS((char *, int, mbstate_t *, char *, int, mbstate_t *));
extern int _rl_get_char_len PARAMS((char *, mbstate_t *)); extern int _rl_get_char_len PARAMS((const char *, mbstate_t *));
extern int _rl_adjust_point PARAMS((char *, int, mbstate_t *)); extern int _rl_adjust_point PARAMS((const char *, int, mbstate_t *));
extern int _rl_read_mbchar PARAMS((char *, int)); extern int _rl_read_mbchar PARAMS((char *, int));
extern int _rl_read_mbstring PARAMS((int, char *, int)); extern int _rl_read_mbstring PARAMS((int, char *, int));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment