Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby
All Projects
Ruby
Overview
Activity
Roadmap
Issues
Repository
Like
Download (306 Bytes)
Bug #12670
» segv.c
wanabe (_ wanabe)
, 05/22/2017 12:28 AM
#include
"ruby.h"
void
dummy_free
(
void
*
ptr
)
{
}
VALUE
get_pixels
(
VALUE
self
)
{
int
i
,
n
=
FIX2INT
(
self
);
for
(
i
=
0
;
i
<
n
;
i
++
)
{
Data_Wrap_Struct
(
rb_cData
,
NULL
,
dummy_free
,
&
i
);
}
return
Qnil
;
}
void
Init_segv
(
void
)
{
rb_define_method
(
rb_cInteger
,
"get_pixels"
,
get_pixels
,
0
);
}
« Previous
1
…
3
4
5
6
7
Next »
(5-5/7)
Loading...