From 616a47c5790887f6901801008ebbdce6705a1ca1 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 6 Aug 2002 06:20:07 +0000 Subject: typo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/readline/readline.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'ext/readline/readline.c') diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 7162042163..0772d58bcf 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -653,7 +653,7 @@ username_completion_proc_call(self, str) void Init_readline() { - VALUE histary, fcomp, ucomp; + VALUE history, fcomp, ucomp; /* Allow conditional parsing of the ~/.inputrc file. */ rl_readline_name = "Ruby"; @@ -700,22 +700,22 @@ Init_readline() rb_define_singleton_method(mReadline, "filename_quote_characters", readline_s_get_filename_quote_characters, 0); - histary = rb_obj_alloc(rb_cObject); - rb_extend_object(histary, rb_mEnumerable); - rb_define_singleton_method(histary,"to_s", hist_to_s, 0); - rb_define_singleton_method(histary,"[]", hist_get, 1); - rb_define_singleton_method(histary,"[]=", hist_set, 2); - rb_define_singleton_method(histary,"<<", hist_push, 1); - rb_define_singleton_method(histary,"push", hist_push_method, -1); - rb_define_singleton_method(histary,"pop", hist_pop, 0); - rb_define_singleton_method(histary,"shift", hist_shift, 0); - rb_define_singleton_method(histary,"each", hist_each, 0); - rb_define_singleton_method(histary,"length", hist_length, 0); - rb_define_singleton_method(histary,"size", hist_length, 0); - - rb_define_singleton_method(histary,"empty?", hist_empty_p, 0); - rb_define_singleton_method(histary,"delete_at", hist_delete_at, 1); - rb_define_const(mReadline, "HISTORY", histary); + history = rb_obj_alloc(rb_cObject); + rb_extend_object(history, rb_mEnumerable); + rb_define_singleton_method(history,"to_s", hist_to_s, 0); + rb_define_singleton_method(history,"[]", hist_get, 1); + rb_define_singleton_method(history,"[]=", hist_set, 2); + rb_define_singleton_method(history,"<<", hist_push, 1); + rb_define_singleton_method(history,"push", hist_push_method, -1); + rb_define_singleton_method(history,"pop", hist_pop, 0); + rb_define_singleton_method(history,"shift", hist_shift, 0); + rb_define_singleton_method(history,"each", hist_each, 0); + rb_define_singleton_method(history,"length", hist_length, 0); + rb_define_singleton_method(history,"size", hist_length, 0); + + rb_define_singleton_method(history,"empty?", hist_empty_p, 0); + rb_define_singleton_method(history,"delete_at", hist_delete_at, 1); + rb_define_const(mReadline, "HISTORY", history); fcomp = rb_obj_alloc(rb_cObject); rb_define_singleton_method(fcomp, "call", -- cgit v1.2.3