mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Adjust a fucntion signature
This commit is contained in:
parent
ec54261b01
commit
929a4aa722
1 changed files with 8 additions and 2 deletions
|
@ -4277,13 +4277,19 @@ rb_gzreader_external_encoding(VALUE self)
|
|||
}
|
||||
|
||||
static VALUE
|
||||
zlib_gzip_ensure(VALUE arg)
|
||||
zlib_gzip_end_rescue(VALUE arg)
|
||||
{
|
||||
struct gzfile *gz = (struct gzfile *)arg;
|
||||
rb_rescue((VALUE(*)())gz->end, arg, NULL, Qnil);
|
||||
gz->end(gz);
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
static VALUE
|
||||
zlib_gzip_ensure(VALUE arg)
|
||||
{
|
||||
return rb_rescue(zlib_gzip_end_rescue, arg, NULL, Qnil);
|
||||
}
|
||||
|
||||
static void
|
||||
zlib_gzip_end(struct gzfile *gz)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue