File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1311,6 +1311,8 @@ path_f_pathname(VALUE self, VALUE str)
13111311 return rb_class_new_instance (1 , & str , rb_cPathname );
13121312}
13131313
1314+ static void init_ids (void );
1315+
13141316/*
13151317 *
13161318 * Pathname represents the name of a file or directory on the filesystem,
@@ -1501,8 +1503,13 @@ Init_pathname(void)
15011503 rb_ext_ractor_safe (true);
15021504#endif
15031505
1506+ init_ids ();
15041507 InitVM (pathname );
1508+ }
15051509
1510+ void
1511+ InitVM_pathname (void )
1512+ {
15061513 rb_cPathname = rb_define_class ("Pathname" , rb_cObject );
15071514 rb_define_method (rb_cPathname , "initialize" , path_initialize , 1 );
15081515 rb_define_method (rb_cPathname , "freeze" , path_freeze , 0 );
@@ -1592,7 +1599,7 @@ Init_pathname(void)
15921599}
15931600
15941601void
1595- InitVM_pathname (void )
1602+ init_ids (void )
15961603{
15971604#undef rb_intern
15981605 id_at_path = rb_intern ("@path" );
You can’t perform that action at this time.
0 commit comments