mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* 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:
		
							parent
							
								
									a88589c7d1
								
							
						
					
					
						commit
						c51a968903
					
				
					 2 changed files with 14 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -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>
 | 
			
		||||
 | 
			
		||||
	* 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;
 | 
			
		||||
    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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue