1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "ruby.h"
#include "internal.h"
static VALUE
rb_int_import_m(VALUE klass, VALUE sign, VALUE buf, VALUE wordcount, VALUE wordorder, VALUE wordsize, VALUE endian, VALUE nails)
{
StringValue(buf);
return rb_int_import(NUM2INT(sign), RSTRING_PTR(buf),
NUM2SIZE(wordcount), NUM2INT(wordorder), NUM2SIZE(wordsize),
NUM2INT(endian), NUM2SIZE(nails));
}
void
Init_import(VALUE klass)
{
rb_define_singleton_method(rb_cInteger, "test_import", rb_int_import_m, 7);
}
|