mmap2 2.2.8 → 2.2.9alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/mmap/mmap.c +10 -0
- data/lib/mmap/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c4ceefaaf148eafb43cfd6d899cd8a0ab5b862b
|
4
|
+
data.tar.gz: e633459d47e87ea68dd5182670febcc76e41a7bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e82f7512595ebcc7799f8ae06b379ccde95ccf010f8d6a322c2234fc8a0a4148c7f59b6ba16dd3833d3207086e711e0fdedb8a213f334d944554f08706fdb87e
|
7
|
+
data.tar.gz: c1fc45a29ff3e240ad938b5ad292fb9935b174145547f19eef5a35f00b20f12cc173cf763c63f4b535ccbb80cc2474d662edc15c2b8be2a31d0853d15e4b2d2b
|
data/ext/mmap/mmap.c
CHANGED
@@ -15,6 +15,13 @@
|
|
15
15
|
#include <ruby/io.h>
|
16
16
|
#include <ruby/re.h>
|
17
17
|
|
18
|
+
#ifdef 1
|
19
|
+
#include <stdio.h>
|
20
|
+
#define DEBUGF(format, ...) printf("%d: " format "\n", __LINE__, __VA_ARGS__)
|
21
|
+
#else
|
22
|
+
#define DEBUGF(format, ...)
|
23
|
+
#endif
|
24
|
+
|
18
25
|
#ifndef StringValue
|
19
26
|
#define StringValue(x) \
|
20
27
|
do { \
|
@@ -329,6 +336,9 @@ static VALUE mm_str(VALUE obj, int modify) {
|
|
329
336
|
RSTRING(ret)->as.heap.ptr = i_mm->t->addr;
|
330
337
|
RSTRING(ret)->as.heap.aux.capa = i_mm->t->len;
|
331
338
|
RSTRING(ret)->as.heap.len = i_mm->t->real;
|
339
|
+
|
340
|
+
DEBUGF("RString capa: %d, len: %d", RSTRING(ret)->as.heap.aux.capa, RSTRING(ret)->as.heap.len);
|
341
|
+
|
332
342
|
if (modify & MM_ORIGIN) {
|
333
343
|
#if HAVE_RB_DEFINE_ALLOC_FUNC
|
334
344
|
RSTRING(ret)->as.heap.aux.shared = obj;
|
data/lib/mmap/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mmap2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.9alpha1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guy Decoux
|
@@ -47,9 +47,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
47
|
version: '0'
|
48
48
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- - "
|
50
|
+
- - ">"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
52
|
+
version: 1.3.1
|
53
53
|
requirements: []
|
54
54
|
rubyforge_project:
|
55
55
|
rubygems_version: 2.6.8
|