Sha256: 60d66d9297364f2ace2c9d0c9d0d19181afd34edb3c0a6bb67d4a081c941b8e5
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
#ifndef __ZIPRUBY_H__ #define __ZIPRUBY_H__ #include "ruby.h" #ifndef RSTRING_PTR #define RSTRING_PTR(s) (RSTRING(s)->ptr) #endif #ifndef RSTRING_LEN #define RSTRING_LEN(s) (RSTRING(s)->len) #endif #define Check_IO(x) do { \ const char *classname = rb_class2name(CLASS_OF(x)); \ if (rb_obj_is_kind_of((x), rb_cIO)) { \ rb_io_binmode(x); \ } else if (strcmp(classname, "StringIO") != 0) { \ rb_raise(rb_eTypeError, "wrong argument type %s (expected IO or StringIO)", classname); \ } \ } while(0) #define VERSION "0.3.0" #define ERRSTR_BUFSIZE 256 #define DATA_BUFSIZE 8192 void Init_zipruby(); #endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zipruby-0.3.0 | ext/zipruby.h |