ruby-changes:60903
From: Nobuyoshi <ko1@a...>
Date: Sat, 25 Apr 2020 18:07:03 +0900 (JST)
Subject: [ruby-changes:60903] fefb5fafbc (master): More enums are mandatory for rp in lldb_cruby.py
https://git.ruby-lang.org/ruby.git/commit/?id=fefb5fafbc From fefb5fafbc44a02c0eaf91de14ca38ac890653ab Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 25 Apr 2020 17:52:27 +0900 Subject: More enums are mandatory for rp in lldb_cruby.py diff --git a/debug.c b/debug.c index d6c8069..e841b76 100644 --- a/debug.c +++ b/debug.c @@ -48,10 +48,14 @@ const union { https://github.com/ruby/ruby/blob/trunk/debug.c#L48 enum ruby_encoding_consts encoding_consts; enum ruby_coderange_type enc_coderange_types; enum ruby_econv_flag_type econv_flag_types; + rb_econv_result_t econv_result; enum ruby_robject_flags robject_flags; + enum ruby_robject_consts robject_consts; enum ruby_rmodule_flags rmodule_flags; enum ruby_rstring_flags rstring_flags; + enum ruby_rstring_consts rstring_consts; enum ruby_rarray_flags rarray_flags; + enum ruby_rarray_consts rarray_consts; enum { RUBY_FMODE_READABLE = FMODE_READABLE, RUBY_FMODE_WRITABLE = FMODE_WRITABLE, diff --git a/include/ruby/3/core/rarray.h b/include/ruby/3/core/rarray.h index 3234daa..added0c 100644 --- a/include/ruby/3/core/rarray.h +++ b/include/ruby/3/core/rarray.h @@ -79,7 +79,7 @@ enum ruby_rarray_flags { https://github.com/ruby/ruby/blob/trunk/include/ruby/3/core/rarray.h#L79 #endif }; -enum { +enum ruby_rarray_consts { RARRAY_EMBED_LEN_SHIFT = RUBY_FL_USHIFT + 3, RARRAY_EMBED_LEN_MAX = RUBY3_EMBED_LEN_MAX_OF(VALUE) }; diff --git a/include/ruby/3/core/robject.h b/include/ruby/3/core/robject.h index 3f29821..c6101af 100644 --- a/include/ruby/3/core/robject.h +++ b/include/ruby/3/core/robject.h @@ -43,7 +43,7 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/3/core/robject.h#L43 enum ruby_robject_flags { ROBJECT_EMBED = RUBY_FL_USER1 }; -enum { ROBJECT_EMBED_LEN_MAX = RUBY3_EMBED_LEN_MAX_OF(VALUE) }; +enum ruby_robject_consts { ROBJECT_EMBED_LEN_MAX = RUBY3_EMBED_LEN_MAX_OF(VALUE) }; struct RObject { struct RBasic basic; diff --git a/include/ruby/3/core/rstring.h b/include/ruby/3/core/rstring.h index 8951dd0..10104c7 100644 --- a/include/ruby/3/core/rstring.h +++ b/include/ruby/3/core/rstring.h @@ -65,7 +65,7 @@ enum ruby_rstring_flags { https://github.com/ruby/ruby/blob/trunk/include/ruby/3/core/rstring.h#L65 RSTRING_FSTR = RUBY_FL_USER17 }; -enum { +enum ruby_rstring_consts { RSTRING_EMBED_LEN_SHIFT = RUBY_FL_USHIFT + 2, RSTRING_EMBED_LEN_MAX = RUBY3_EMBED_LEN_MAX_OF(char) - 1 }; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/