summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-20 11:21:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-20 11:21:57 +0000
commit84abfd5bc077fb92db3b2a55eccf905d17bb8901 (patch)
treef8862d060cca7db28abc2e44a4b285dbdd6ae120
parentdbd6605c4985655649d6e8fccf72b29ed09f5846 (diff)
downloadruby-84abfd5bc077fb92db3b2a55eccf905d17bb8901.tar.gz
ruby-84abfd5bc077fb92db3b2a55eccf905d17bb8901.tar.xz
ruby-84abfd5bc077fb92db3b2a55eccf905d17bb8901.zip
* ext/zlib/zlib.c (Init_zlib): add getbyte as an alias to getc.
[ruby-dev:36801] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/zlib/zlib.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index edccc5558..d5f0743b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Oct 20 20:16:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/zlib/zlib.c (Init_zlib): add getbyte as an alias to getc.
+ [ruby-dev:36801]
+
Mon Oct 20 17:31:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* error.c (exc_equal): should not compare recursively.
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 9bb8f3334..2a2bb52b2 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -3373,6 +3373,7 @@ void Init_zlib()
rb_define_method(cGzipReader, "read", rb_gzreader_read, -1);
rb_define_method(cGzipReader, "readpartial", rb_gzreader_readpartial, -1);
rb_define_method(cGzipReader, "getc", rb_gzreader_getc, 0);
+ rb_define_method(cGzipReader, "getbyte", rb_gzreader_getc, 0);
rb_define_method(cGzipReader, "readchar", rb_gzreader_readchar, 0);
rb_define_method(cGzipReader, "each_byte", rb_gzreader_each_byte, 0);
rb_define_method(cGzipReader, "bytes", rb_gzreader_each_byte, 0);