2019-02-04 20:30:41 +01:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<def format="2">
|
|
|
|
<!-- Ruby C API. see https://docs.ruby-lang.org/en/2.5.0/extension_rdoc.html -->
|
2019-10-07 15:34:42 +02:00
|
|
|
<!-- INT2NUM() is a macro resulting in something like this: VALUE INT2NUM(int v) -->
|
|
|
|
<!-- UINT2NUM() is something like this: VALUE UINT2NUM(unsigned int v) -->
|
|
|
|
<!-- LONG2NUM() is something like this: VALUE LONG2NUM(long v) -->
|
|
|
|
<!-- ULONG2NUM() is something like this: VALUE ULONG2NUM(unsigned long v) -->
|
|
|
|
<!-- LL2NUM() is something like this: VALUE LL2NUM(long long v) -->
|
|
|
|
<!-- ULL2NUM() is something like this: VALUE ULL2NUM(unsigned long long v) -->
|
|
|
|
<function name="INT2NUM,UINT2NUM,LONG2NUM,ULONG2NUM,LL2NUM,ULL2NUM">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="VALUE"/>
|
|
|
|
<use-retval/>
|
|
|
|
<arg nr="1" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- NUM2INT() is something like this: int NUM2INT(VALUE v) -->
|
|
|
|
<!-- FIX2INT() is something like this: int FIX2INT(VALUE v) -->
|
|
|
|
<function name="NUM2INT,FIX2INT">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="int"/>
|
|
|
|
<use-retval/>
|
|
|
|
<arg nr="1" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- NUM2UINT() is something like this: unsigned int NUM2UINT(VALUE v) -->
|
|
|
|
<!-- FIX2UINT() is something like this: unsigned int FIX2UINT(VALUE v) -->
|
|
|
|
<function name="NUM2UINT,FIX2UINT">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="unsigned int"/>
|
|
|
|
<use-retval/>
|
|
|
|
<arg nr="1" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- NUM2LONG() is something like this: long NUM2LONG(VALUE v) -->
|
|
|
|
<!-- FIX2LONG() is something like this: long FIX2LONG(VALUE v) -->
|
|
|
|
<function name="NUM2LONG,FIX2LONG">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="long"/>
|
|
|
|
<use-retval/>
|
|
|
|
<arg nr="1" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- NUM2ULONG() is something like this: unsigned long NUM2ULONG(VALUE v) -->
|
|
|
|
<!-- FIX2ULONG() is something like this: unsigned long FIX2ULONG(VALUE v) -->
|
|
|
|
<function name="NUM2ULONG,FIX2ULONG">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="unsigned long"/>
|
|
|
|
<use-retval/>
|
|
|
|
<arg nr="1" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- NUM2LL() is something like this: long long NUM2LL(VALUE v) -->
|
|
|
|
<function name="NUM2LL">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="long long"/>
|
|
|
|
<use-retval/>
|
|
|
|
<arg nr="1" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- NUM2ULL() is something like this: unsigned long long NUM2ULL(VALUE v) -->
|
|
|
|
<function name="NUM2ULL">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="unsigned long long"/>
|
|
|
|
<use-retval/>
|
|
|
|
<arg nr="1" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
2019-02-04 20:30:41 +01:00
|
|
|
<!-- void rb_define_const(VALUE klass, const char *name, VALUE val) -->
|
|
|
|
<function name="rb_define_const">
|
|
|
|
<leak-ignore/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="void"/>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2">
|
|
|
|
<not-null/>
|
|
|
|
<strz/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="3">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- void rb_define_method(VALUE klass, const char *name, VALUE (*func)(ANYARGS), int argc) -->
|
|
|
|
<function name="rb_define_method">
|
|
|
|
<leak-ignore/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="void"/>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2">
|
|
|
|
<not-null/>
|
|
|
|
<strz/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="4">
|
|
|
|
<not-bool/>
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
2019-02-18 21:48:41 +01:00
|
|
|
<function name="rb_intern">
|
|
|
|
<leak-ignore/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="ID"/>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<function name="rb_str_new2">
|
|
|
|
<leak-ignore/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
2019-02-04 20:30:41 +01:00
|
|
|
<!-- void rb_raise(rb_eRuntimeError, const char *fmt, …) -->
|
|
|
|
<function name="rb_raise">
|
|
|
|
<leak-ignore/>
|
2019-03-18 10:04:29 +01:00
|
|
|
<noreturn>true</noreturn>
|
2019-02-04 20:30:41 +01:00
|
|
|
<returnValue type="void"/>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2">
|
|
|
|
<formatstr/>
|
|
|
|
<not-null/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="any">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
2019-02-18 21:48:41 +01:00
|
|
|
<podtype name="ID"/>
|
2019-10-07 15:34:42 +02:00
|
|
|
<podtype name="VALUE" sign="u"/>
|
2019-02-04 20:30:41 +01:00
|
|
|
</def>
|