/* * Returns true if the stream is closed. */ static VALUE rb_zstream_closed_p(obj) VALUE obj; { struct zstream *z; Data_Get_Struct(obj, struct zstream, z); return ZSTREAM_IS_READY(z) ? Qfalse : Qtrue; }