summaryrefslogtreecommitdiff
path: root/yjit
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-12-15 13:54:07 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-12-15 16:33:46 -0500
commitc505448cdbd4cd1a52ed7108095f6738d29b3419 (patch)
treead8015b495af23c8991f3b115f95799b513ccde9 /yjit
parentd5eafaed812bc683d5069154c5c9391ba98ea151 (diff)
Move definition of SIZE_POOL_COUNT back to gc.h
SIZE_POOL_COUNT is a GC macro, it should belong in gc.h and not shape.h. SIZE_POOL_COUNT doesn't depend on shape.h so we can have shape.h depend on gc.h. Co-Authored-By: Matt Valentine-House <matt@eightbitraptor.com>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6940
Diffstat (limited to 'yjit')
-rw-r--r--yjit/src/cruby_bindings.inc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit/src/cruby_bindings.inc.rs b/yjit/src/cruby_bindings.inc.rs
index af77747861..f20dc04966 100644
--- a/yjit/src/cruby_bindings.inc.rs
+++ b/yjit/src/cruby_bindings.inc.rs
@@ -1103,6 +1103,8 @@ extern "C" {
pub fn rb_attr_get(obj: VALUE, name: ID) -> VALUE;
pub fn rb_obj_info_dump(obj: VALUE);
pub fn rb_reg_new_ary(ary: VALUE, options: ::std::os::raw::c_int) -> VALUE;
+ pub fn rb_class_allocate_instance(klass: VALUE) -> VALUE;
+ pub fn rb_obj_info(obj: VALUE) -> *const ::std::os::raw::c_char;
pub fn rb_shape_id_offset() -> i32;
pub fn rb_shape_get_shape_by_id(shape_id: shape_id_t) -> *mut rb_shape_t;
pub fn rb_shape_get_shape_id(obj: VALUE) -> shape_id_t;
@@ -1124,8 +1126,6 @@ extern "C" {
n: ::std::os::raw::c_long,
elts: *const VALUE,
) -> VALUE;
- pub fn rb_class_allocate_instance(klass: VALUE) -> VALUE;
- pub fn rb_obj_info(obj: VALUE) -> *const ::std::os::raw::c_char;
pub fn rb_method_entry_at(obj: VALUE, id: ID) -> *const rb_method_entry_t;
pub fn rb_callable_method_entry(klass: VALUE, id: ID) -> *const rb_callable_method_entry_t;
pub fn rb_callable_method_entry_or_negative(