ext/zlib/zlib.c: TypedData conversion

* ext/zlib/zlib.c (zstream_mark, zstream_free): update signature
  (gzfile_mark, gzfile_free): ditto
  (zstream_memsize): new function for rb_data_type->dsize
  (gzfile_memsize): ditto
  (zstream_data_type, gzfile_data_type): new data types
  (zstream_new): Data_Make_Struct => TypedData_Make_Struct
  (gzfile_new): ditto
  (get_zstream, get_gzfile): Data_Get_Struct => TypedData_Get_Struct
  (rb_zstream_flush_next_in): ditto
  (rb_zstream_flush_next_out): ditto
  (rb_zstream_avail_out): ditto
  (rb_zstream_avail_in): ditto
  (rb_zstream_closed_p): ditto
  (rb_deflate_initialize): ditto
  (rb_deflate_init_copy): ditto
  (rb_inflate_initialize): ditto
  (gzfile_ensure_close): ditto
  (rb_gzfile_closed_p): ditto
  (rb_gzfile_path): ditto
  (rb_gzwriter_initialize): ditto
  (rb_gzreader_initialize): ditto
  (rb_gzreader_unused): ditto
  [ruby-core:65377] [Feature #10319]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e