ruby-changes:52724
From: nobu <ko1@a...>
Date: Sun, 7 Oct 2018 18:18:02 +0900 (JST)
Subject: [ruby-changes:52724] nobu:r64936 (trunk): Added missing declarations in readline.h bundled with macOS 10.14
nobu 2018-10-07 18:17:59 +0900 (Sun, 07 Oct 2018) New Revision: 64936 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64936 Log: Added missing declarations in readline.h bundled with macOS 10.14 Modified files: trunk/ext/readline/readline.c Index: ext/readline/readline.c =================================================================== --- ext/readline/readline.c (revision 64935) +++ ext/readline/readline.c (revision 64936) @@ -77,6 +77,8 @@ static ID id_special_prefixes; https://github.com/ruby/ruby/blob/trunk/ext/readline/readline.c#L77 #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 https://github.com/ruby/ruby/blob/trunk/ext/readline/readline.c#L690 #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) https://github.com/ruby/ruby/blob/trunk/ext/readline/readline.c#L1149 #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) https://github.com/ruby/ruby/blob/trunk/ext/readline/readline.c#L1188 #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 https://github.com/ruby/ruby/blob/trunk/ext/readline/readline.c#L1673 #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 https://github.com/ruby/ruby/blob/trunk/ext/readline/readline.c#L1919 return result; } +#ifdef HAVE_RL_CLEAR_SIGNALS +int rl_clear_signals(void); +#endif + #undef rb_intern void Init_readline(void) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/