This commit is contained in:
Noah Gibbs 2022-07-28 16:45:08 +01:00 committed by Takashi Kokubun
parent 0ad9cc1696
commit b4be3c00c5
Notes: git 2022-08-25 02:43:13 +09:00
7 changed files with 167 additions and 38 deletions

12
yjit.c
View file

@ -399,6 +399,18 @@ rb_str_bytesize(VALUE str)
return LONG2NUM(RSTRING_LEN(str));
}
unsigned long
rb_RSTRING_LEN(VALUE str)
{
return RSTRING_LEN(str);
}
char *
rb_RSTRING_PTR(VALUE str)
{
return RSTRING_PTR(str);
}
// This is defined only as a named struct inside rb_iseq_constant_body.
// By giving it a separate typedef, we make it nameable by rust-bindgen.
// Bindgen's temp/anon name isn't guaranteed stable.