lib/ruby/truffle/pr-zlib/lib/pr/rbzlib.rb
#   Returns the error message for the last error which occurred on the
# given compressed file. errnum is set to zlib error number. If an
# error occurred in the file system and not in the compression library,
# errnum is set to Z_ERRNO and the application may consult errno
Returns the error message for the last error which occurred on the
given compressed file. errnum is set to zlib error number. If an
error occurred in the file system and not in the compression library,
errnum is set to Z_ERRNO and the application may consult errno
Returns the error message for the last error which occurred on the given compressed file . errnum is set to zlib error number . If an error occurred in the file system and not in the compression library errnum is set to Z_ERRNO and the application may consult errno
def gzerror(file,errnum)
    s = file
    if s.nil?
      errnum = Z_STREAM_ERROR
      return zError(Z_STREAM_ERROR)
    end
    errnum = s.z_err
    if (errnum == Z_OK)
      return zError(Z_OK)
    end
    m = s.stream.msg
    if (errnum == Z_ERRNO)
      m = ''
    end
    if (m == '')
      m = zError(s.z_err)
    end
    s.msg = s.path + ': ' + m
    return s.msg
  end
def gzerror ( file , errnum ) s = file if s . nil? errnum = Z_STREAM_ERROR return zError ( Z_STREAM_ERROR ) end errnum = s . z_err if ( errnum == Z_OK ) return zError ( Z_OK ) end m = s . stream . msg if ( errnum == Z_ERRNO ) m = '' end if ( m == '' ) m = zError ( s . z_err ) end s . msg = s . path + ': ' + m return s . msg end
Returns the error message for the last error which occurred on the
given compressed file.
Returns the error message for the last error which occurred on the given compressed file .
file
<not_specific>
errnum
<not_specific>