summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-10 22:12:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-10 22:12:07 +0000
commitc51a9689033dc9cc3deb6e4cca8d7d6aeb91457b (patch)
tree12da6f3a92d5affaa3612fe9df8e1e3dcc14f988 /ext/readline
parenta88589c7d18c5004bb8b9f8191cb0d3aa3e5a705 (diff)
* 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
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 7a7fb30..660ee6d 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -452,7 +452,7 @@ readline_attempted_completion_function(const char *text, int start, int end)
VALUE proc, ary, temp;
char **result;
int case_fold;
- int i, matches;
+ long i, matches;
proc = rb_attr_get(mReadline, completion_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.
*/
static VALUE
-readline_s_refresh_line(self)
+readline_s_refresh_line(VALUE self)
{
- rb_secure(4);
- rl_refresh_line(0, 0);
- return Qnil;
+ rb_secure(4);
+ rl_refresh_line(0, 0);
+ return Qnil;
}
#else
#define readline_s_refresh_line rb_f_notimplement
@@ -1371,7 +1371,7 @@ Init_readline()
rb_define_singleton_method(mReadline, "filename_quote_characters",
readline_s_get_filename_quote_characters, 0);
rb_define_singleton_method(mReadline, "refresh_line",
- readline_s_refresh_line, 0);
+ readline_s_refresh_line, 0);
history = rb_obj_alloc(rb_cObject);
rb_extend_object(history, rb_mEnumerable);