[前][次][番号順一覧][スレッド一覧]

ruby-changes:12336

From: nobu <ko1@a...>
Date: Sat, 11 Jul 2009 07:12:24 +0900 (JST)
Subject: [ruby-changes:12336] Ruby:r24031 (trunk): * ext/readline/readline.c (readline_attempted_completion_function):

nobu	2009-07-11 07:12:07 +0900 (Sat, 11 Jul 2009)

  New Revision: 24031

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24031

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/ext/readline/readline.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24030)
+++ ChangeLog	(revision 24031)
@@ -1,3 +1,11 @@
+Sat Jul 11 07:11:59 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* random.c (limited_rand): expands to long before shift so tha
Index: ext/readline/readline.c
===================================================================
--- ext/readline/readline.c	(revision 24030)
+++ ext/readline/readline.c	(revision 24031)
@@ -452,7 +452,7 @@
     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 @@
  * 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 @@
     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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]