Sha256: 83bd4dcf12498e691987dacb8bbdd996699f92d3f3a6e1a9df71b5bb42c135eb

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 Bytes

Contents

#ifndef __ZIPRUBY_ARCHIVE_H__
#define __ZIPRUBY_ARCHIVE_H__

#include "zip.h"
#include "ruby.h"

struct zipruby_archive {
  struct zip *archive;
  VALUE path;
  int flags;
  char *tmpfilnam;
  VALUE buffer;
};

void Init_zipruby_archive();

#define Check_Archive(p) do { \
  if ((p)->archive == NULL || NIL_P((p)->path)) { \
    rb_raise(rb_eRuntimeError, "invalid Zip::Archive"); \
  } \
} while(0)

#endif

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zipruby-0.3.0 ext/zipruby_archive.h
zipruby-0.3.1 ext/zipruby_archive.h
zipruby-0.3.2 ext/zipruby_archive.h