summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-04-14 16:25:06 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-04-16 11:06:31 -0400
commitad3d4e87d7e20c7e7ff2836567a44bb29368f3ec (patch)
tree12ccb4503d6dce6d5d355d8beeacd691e78f7033 /internal
parentfac814c2dc31afef272b45392a7389ef0bfa3a4f (diff)
downloadruby-ad3d4e87d7e20c7e7ff2836567a44bb29368f3ec.tar.gz
Move RCLASS_CLONED to rb_classext_struct
This commit moves RCLASS_CLONED from the flags to the rb_classext_struct. This frees the FL_USER1 bit.
Diffstat (limited to 'internal')
-rw-r--r--internal/class.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/class.h b/internal/class.h
index 9f933c1fee..0ac8e7c875 100644
--- a/internal/class.h
+++ b/internal/class.h
@@ -67,7 +67,8 @@ struct rb_classext_struct {
#endif
attr_index_t max_iv_count;
unsigned char variation_count;
- bool permanent_classpath;
+ bool permanent_classpath : 1;
+ bool cloned : 1;
VALUE classpath;
};
typedef struct rb_classext_struct rb_classext_t;
@@ -110,7 +111,6 @@ STATIC_ASSERT(sizeof_rb_classext_t, sizeof(struct RClass) + sizeof(rb_classext_t
#define RCLASS_ATTACHED_OBJECT(c) (RCLASS_EXT(c)->as.singleton_class.attached_object)
#define RICLASS_IS_ORIGIN FL_USER0
-#define RCLASS_CLONED FL_USER1
#define RCLASS_SUPERCLASSES_INCLUDE_SELF FL_USER2
#define RICLASS_ORIGIN_SHARED_MTBL FL_USER3