zipruby 0.2.9 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of zipruby might be problematic. Click here for more details.

@@ -1,23 +1,23 @@
1
- #ifndef __ZIPRUBY_ARCHIVE_H__
2
- #define __ZIPRUBY_ARCHIVE_H__
3
-
4
- #include "zip.h"
5
- #include "ruby.h"
6
-
7
- struct zipruby_archive {
8
- struct zip *archive;
9
- VALUE path;
10
- int flags;
11
- char *tmpfilnam;
12
- VALUE buffer;
13
- };
14
-
15
- void Init_zipruby_archive();
16
-
17
- #define Check_Archive(p) do { \
18
- if ((p)->archive == NULL || NIL_P((p)->path)) { \
19
- rb_raise(rb_eRuntimeError, "invalid Zip::Archive"); \
20
- } \
21
- } while(0)
22
-
23
- #endif
1
+ #ifndef __ZIPRUBY_ARCHIVE_H__
2
+ #define __ZIPRUBY_ARCHIVE_H__
3
+
4
+ #include "zip.h"
5
+ #include "ruby.h"
6
+
7
+ struct zipruby_archive {
8
+ struct zip *archive;
9
+ VALUE path;
10
+ int flags;
11
+ char *tmpfilnam;
12
+ VALUE buffer;
13
+ };
14
+
15
+ void Init_zipruby_archive();
16
+
17
+ #define Check_Archive(p) do { \
18
+ if ((p)->archive == NULL || NIL_P((p)->path)) { \
19
+ rb_raise(rb_eRuntimeError, "invalid Zip::Archive"); \
20
+ } \
21
+ } while(0)
22
+
23
+ #endif
data/ext/zipruby_error.c CHANGED
@@ -1,10 +1,10 @@
1
- #include "zipruby.h"
2
- #include "zipruby_error.h"
3
- #include "ruby.h"
4
-
5
- extern VALUE Zip;
6
- VALUE Error;
7
-
8
- void Init_zipruby_error() {
9
- Error = rb_define_class_under(Zip, "Error", rb_eStandardError);
10
- }
1
+ #include "zipruby.h"
2
+ #include "zipruby_error.h"
3
+ #include "ruby.h"
4
+
5
+ extern VALUE Zip;
6
+ VALUE Error;
7
+
8
+ void Init_zipruby_error() {
9
+ Error = rb_define_class_under(Zip, "Error", rb_eStandardError);
10
+ }
data/ext/zipruby_error.h CHANGED
@@ -1,6 +1,6 @@
1
- #ifndef __ZIPRUBY_ERROR_H__
2
- #define __ZIPRUBY_ERROR_H__
3
-
4
- void Init_zipruby_error();
5
-
6
- #endif
1
+ #ifndef __ZIPRUBY_ERROR_H__
2
+ #define __ZIPRUBY_ERROR_H__
3
+
4
+ void Init_zipruby_error();
5
+
6
+ #endif