diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-06 06:20:07 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-06 06:20:07 +0000 |
| commit | 156c5b27565773e4cab415565f1fdda2e99df443 (patch) | |
| tree | 7dcb48a24afb39bfd7477ad2e73ee1ed54e2c287 /ext/readline | |
| parent | 39b931bf779b3b3bc38f8fdbf1158f7afbe53451 (diff) | |
| download | ruby-156c5b27565773e4cab415565f1fdda2e99df443.tar.gz ruby-156c5b27565773e4cab415565f1fdda2e99df443.tar.xz ruby-156c5b27565773e4cab415565f1fdda2e99df443.zip | |
typo
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
| -rw-r--r-- | ext/readline/readline.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 716204216..0772d58bc 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", |
