зеркало из https://github.com/github/ruby.git
RUBY_SPECIAL_SHIFT and RUBY_FL_USHIFT are mandatory for rp in lldb_cruby.py
This commit is contained in:
Родитель
dc8ab86a2b
Коммит
0f7d3e4e40
1
debug.c
1
debug.c
|
@ -44,6 +44,7 @@ const union {
|
||||||
enum ruby_method_ids method_ids;
|
enum ruby_method_ids method_ids;
|
||||||
enum ruby_id_types id_types;
|
enum ruby_id_types id_types;
|
||||||
enum ruby_fl_type fl_types;
|
enum ruby_fl_type fl_types;
|
||||||
|
enum ruby_fl_ushift fl_ushift;
|
||||||
enum ruby_encoding_consts encoding_consts;
|
enum ruby_encoding_consts encoding_consts;
|
||||||
enum ruby_coderange_type enc_coderange_types;
|
enum ruby_coderange_type enc_coderange_types;
|
||||||
enum ruby_econv_flag_type econv_flag_types;
|
enum ruby_econv_flag_type econv_flag_types;
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/* This is an enum because GDB wants it (rather than a macro) */
|
/* This is an enum because GDB wants it (rather than a macro) */
|
||||||
enum { RUBY_FL_USHIFT = 12 };
|
enum ruby_fl_ushift { RUBY_FL_USHIFT = 12 };
|
||||||
|
|
||||||
/* > The expression that defines the value of an enumeration constant shall be
|
/* > The expression that defines the value of an enumeration constant shall be
|
||||||
* > an integer constant expression that has a value representable as an `int`.
|
* > an integer constant expression that has a value representable as an `int`.
|
||||||
|
|
|
@ -82,7 +82,7 @@ ruby_special_consts {
|
||||||
RUBY_FIXNUM_FLAG = 0x01, /* ...xxxx xxx1 */
|
RUBY_FIXNUM_FLAG = 0x01, /* ...xxxx xxx1 */
|
||||||
RUBY_FLONUM_MASK = 0x03, /* ...0000 0011 */
|
RUBY_FLONUM_MASK = 0x03, /* ...0000 0011 */
|
||||||
RUBY_FLONUM_FLAG = 0x02, /* ...xxxx xx10 */
|
RUBY_FLONUM_FLAG = 0x02, /* ...xxxx xx10 */
|
||||||
RUBY_SYMBOL_FLAG = 0x0c /* ...xxxx 1100 */
|
RUBY_SYMBOL_FLAG = 0x0c, /* ...xxxx 1100 */
|
||||||
#else
|
#else
|
||||||
RUBY_Qfalse = 0x00, /* ...0000 0000 */
|
RUBY_Qfalse = 0x00, /* ...0000 0000 */
|
||||||
RUBY_Qtrue = 0x02, /* ...0000 0010 */
|
RUBY_Qtrue = 0x02, /* ...0000 0010 */
|
||||||
|
@ -92,12 +92,11 @@ ruby_special_consts {
|
||||||
RUBY_FIXNUM_FLAG = 0x01, /* ...xxxx xxx1 */
|
RUBY_FIXNUM_FLAG = 0x01, /* ...xxxx xxx1 */
|
||||||
RUBY_FLONUM_MASK = 0x00, /* any values ANDed with FLONUM_MASK cannot be FLONUM_FLAG */
|
RUBY_FLONUM_MASK = 0x00, /* any values ANDed with FLONUM_MASK cannot be FLONUM_FLAG */
|
||||||
RUBY_FLONUM_FLAG = 0x02, /* ...0000 0010 */
|
RUBY_FLONUM_FLAG = 0x02, /* ...0000 0010 */
|
||||||
RUBY_SYMBOL_FLAG = 0x0e /* ...0000 1110 */
|
RUBY_SYMBOL_FLAG = 0x0e, /* ...0000 1110 */
|
||||||
#endif
|
#endif
|
||||||
};
|
|
||||||
|
|
||||||
/** Least significant 8 bits are reserved. */
|
RUBY_SPECIAL_SHIFT = 8 /** Least significant 8 bits are reserved. */
|
||||||
enum { RUBY_SPECIAL_SHIFT = 8 };
|
};
|
||||||
|
|
||||||
RUBY3_ATTR_CONST()
|
RUBY3_ATTR_CONST()
|
||||||
RUBY3_ATTR_CONSTEXPR(CXX11)
|
RUBY3_ATTR_CONSTEXPR(CXX11)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче