diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-07 09:17:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-07 09:17:59 +0000 |
commit | 7f24188afe41fb61c2b8007de97a31b5c2336c3d (patch) | |
tree | c50394a1e1988f76f1607a754b24788585785fc1 /ext/readline/readline.c | |
parent | 86e09265b66bb7a1d4318db9fa1d6c58c09117a6 (diff) | |
download | ruby-7f24188afe41fb61c2b8007de97a31b5c2336c3d.tar.gz |
Added missing declarations in readline.h bundled with macOS 10.14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline/readline.c')
-rw-r--r-- | ext/readline/readline.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 402e215e8e..f044eb8814 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -77,6 +77,8 @@ static ID id_special_prefixes; #endif #ifndef HAVE_RL_USERNAME_COMPLETION_FUNCTION # define rl_username_completion_function username_completion_function +#else +char *rl_username_completion_function(const char *, int); #endif #ifndef HAVE_RL_COMPLETION_MATCHES # define rl_completion_matches completion_matches @@ -688,6 +690,7 @@ readline_s_insert_text(VALUE self, VALUE str) #endif #if defined(HAVE_RL_DELETE_TEXT) +int rl_delete_text(int, int); static const char * str_subpos(const char *ptr, const char *end, long beg, long *sublen, rb_encoding *enc) { @@ -1146,6 +1149,7 @@ readline_s_get_screen_size(VALUE self) #endif #ifdef HAVE_RL_VI_EDITING_MODE +int rl_vi_editing_mode(int, int); /* * call-seq: * Readline.vi_editing_mode -> nil @@ -1184,6 +1188,7 @@ readline_s_vi_editing_mode_p(VALUE self) #endif #ifdef HAVE_RL_EMACS_EDITING_MODE +int rl_emacs_editing_mode(int, int); /* * call-seq: * Readline.emacs_editing_mode -> nil @@ -1668,6 +1673,7 @@ readline_s_get_filename_quote_characters(VALUE self, VALUE str) #endif #ifdef HAVE_RL_REFRESH_LINE +int rl_refresh_line(int, int); /* * call-seq: * Readline.refresh_line -> nil @@ -1913,6 +1919,10 @@ username_completion_proc_call(VALUE self, VALUE str) return result; } +#ifdef HAVE_RL_CLEAR_SIGNALS +int rl_clear_signals(void); +#endif + #undef rb_intern void Init_readline(void) |