зеркало из https://github.com/github/ruby.git
* ext/readline/readline.c (readline_attempted_completion_function):
array length is long. * ext/readline/readline.c (readline_s_get_filename_quote_characters): missing type of self. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a88589c7d1
Коммит
c51a968903
|
@ -1,3 +1,11 @@
|
||||||
|
Sat Jul 11 07:11:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/readline/readline.c (readline_attempted_completion_function):
|
||||||
|
array length is long.
|
||||||
|
|
||||||
|
* ext/readline/readline.c (readline_s_get_filename_quote_characters):
|
||||||
|
missing type of self.
|
||||||
|
|
||||||
Sat Jul 11 02:37:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Jul 11 02:37:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* random.c (limited_rand): expands to long before shift so tha
|
* random.c (limited_rand): expands to long before shift so tha
|
||||||
|
|
|
@ -452,7 +452,7 @@ readline_attempted_completion_function(const char *text, int start, int end)
|
||||||
VALUE proc, ary, temp;
|
VALUE proc, ary, temp;
|
||||||
char **result;
|
char **result;
|
||||||
int case_fold;
|
int case_fold;
|
||||||
int i, matches;
|
long i, matches;
|
||||||
|
|
||||||
proc = rb_attr_get(mReadline, completion_proc);
|
proc = rb_attr_get(mReadline, completion_proc);
|
||||||
if (NIL_P(proc))
|
if (NIL_P(proc))
|
||||||
|
@ -1053,11 +1053,11 @@ readline_s_get_filename_quote_characters(VALUE self, VALUE str)
|
||||||
* Raises SecurityError exception if $SAFE is 4.
|
* Raises SecurityError exception if $SAFE is 4.
|
||||||
*/
|
*/
|
||||||
static VALUE
|
static VALUE
|
||||||
readline_s_refresh_line(self)
|
readline_s_refresh_line(VALUE self)
|
||||||
{
|
{
|
||||||
rb_secure(4);
|
rb_secure(4);
|
||||||
rl_refresh_line(0, 0);
|
rl_refresh_line(0, 0);
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define readline_s_refresh_line rb_f_notimplement
|
#define readline_s_refresh_line rb_f_notimplement
|
||||||
|
@ -1371,7 +1371,7 @@ Init_readline()
|
||||||
rb_define_singleton_method(mReadline, "filename_quote_characters",
|
rb_define_singleton_method(mReadline, "filename_quote_characters",
|
||||||
readline_s_get_filename_quote_characters, 0);
|
readline_s_get_filename_quote_characters, 0);
|
||||||
rb_define_singleton_method(mReadline, "refresh_line",
|
rb_define_singleton_method(mReadline, "refresh_line",
|
||||||
readline_s_refresh_line, 0);
|
readline_s_refresh_line, 0);
|
||||||
|
|
||||||
history = rb_obj_alloc(rb_cObject);
|
history = rb_obj_alloc(rb_cObject);
|
||||||
rb_extend_object(history, rb_mEnumerable);
|
rb_extend_object(history, rb_mEnumerable);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче