rotoscope 0.3.1.pre.2 → 0.3.1.pre.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/rotoscope/rotoscope.c +9 -12
- data/ext/rotoscope/stack.c +5 -3
- data/lib/rotoscope/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 131b31e53265ab28834e10e524193c4140df6c4a550b97b4c069bd5144f2c0b9
|
4
|
+
data.tar.gz: 8bcacd887b9c1dc7dec386dfd750f2e5521da85552183211370c67292ec7ea2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1acb66647386b79262fc77ad90433f920ffb36b75d2c7527b005abb68c377563a448b99d90e573518369171ddb05908c5a95fc5d9f88a646de72e385405c4087
|
7
|
+
data.tar.gz: fc010fa94e7669b902aa7285dd85bccea72781cf6cb9b3165941c6c2023491e2f945ed9b2a4f7cb87fa3f55e30c5fbb5b0857726eda1b859b3385d9370e641b9
|
data/ext/rotoscope/rotoscope.c
CHANGED
@@ -146,24 +146,21 @@ static void rs_dealloc(void *data) {
|
|
146
146
|
xfree(config);
|
147
147
|
}
|
148
148
|
|
149
|
-
static size_t rs_memsize(const void *data) {
|
150
|
-
return sizeof(Rotoscope);
|
151
|
-
}
|
149
|
+
static size_t rs_memsize(const void *data) { return sizeof(Rotoscope); }
|
152
150
|
|
153
151
|
static const rb_data_type_t rs_data_type = {
|
154
152
|
.wrap_struct_name = "Rotoscope",
|
155
|
-
.function =
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
};
|
153
|
+
.function =
|
154
|
+
{
|
155
|
+
.dmark = rs_gc_mark,
|
156
|
+
.dfree = rs_dealloc,
|
157
|
+
.dsize = rs_memsize,
|
158
|
+
},
|
159
|
+
.flags = RUBY_TYPED_FREE_IMMEDIATELY};
|
162
160
|
|
163
161
|
static VALUE rs_alloc(VALUE klass) {
|
164
162
|
Rotoscope *config;
|
165
|
-
VALUE self =
|
166
|
-
TypedData_Make_Struct(klass, Rotoscope, &rs_data_type, config);
|
163
|
+
VALUE self = TypedData_Make_Struct(klass, Rotoscope, &rs_data_type, config);
|
167
164
|
config->self = self;
|
168
165
|
config->pid = getpid();
|
169
166
|
config->tid = current_thread_id();
|
data/ext/rotoscope/stack.c
CHANGED
@@ -62,8 +62,10 @@ void rs_stack_init(rs_stack_t *stack, unsigned int capacity) {
|
|
62
62
|
}
|
63
63
|
|
64
64
|
void rs_stack_mark(rs_stack_t *stack) {
|
65
|
-
|
66
|
-
|
67
|
-
|
65
|
+
if (stack->contents) {
|
66
|
+
for (int i = 0; i <= stack->top; i++) {
|
67
|
+
rs_stack_frame_t *frame = &stack->contents[i];
|
68
|
+
rs_method_desc_mark(&frame->method);
|
69
|
+
}
|
68
70
|
}
|
69
71
|
}
|
data/lib/rotoscope/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rotoscope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.1.pre.
|
4
|
+
version: 0.3.1.pre.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jahfer Husain
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-12-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: 1.3.1
|
110
110
|
requirements: []
|
111
|
-
rubygems_version: 3.4.
|
111
|
+
rubygems_version: 3.4.22
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Tracing Ruby
|