|
Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
Go to the source code of this file.
Data Structures | |
| struct | RBignum |
| struct | RRational |
| struct | RFloat |
| struct | RComplex |
| struct | RHash |
| struct | RMoved |
| struct | RStruct |
| struct | rb_deprecated_classext_struct |
| struct | rb_subclass_entry |
| struct | rb_classext_struct |
| struct | RClass |
| struct | RIMemo |
| struct | vm_svar |
| SVAR (Special VARiable) More... | |
| struct | vm_throw_data |
| THROW_DATA. More... | |
| struct | vm_ifunc_argc |
| struct | vm_ifunc |
| IFUNC (Internal FUNCtion) More... | |
| struct | rb_imemo_tmpbuf_struct |
| struct | MEMO |
| MEMO. More... | |
| struct | cmp_opt_data |
| struct | rb_global_entry |
| struct | RBasicRaw |
| struct | rb_execarg |
| struct | rb_call_cache |
| struct | rb_call_info |
| struct | rb_call_data |
Typedefs | |
| typedef struct rb_subclass_entry | rb_subclass_entry_t |
| typedef unsigned long | rb_serial_t |
| typedef struct rb_classext_struct | rb_classext_t |
| typedef struct rb_imemo_tmpbuf_struct | rb_imemo_tmpbuf_t |
| typedef void | rb_check_funcall_hook(int, VALUE, ID, int, const VALUE *, VALUE) |
Variables | |
| const char | ruby_digitmap [] |
| VALUE | rb_cArithSeq |
| VALUE | rb_eEAGAIN |
| VALUE | rb_eEWOULDBLOCK |
| VALUE | rb_eEINPROGRESS |
| ID | ruby_static_id_signo |
| ID | ruby_static_id_status |
| const char | ruby_null_device [] |
| VALUE * | ruby_initial_gc_stress_ptr |
| int | ruby_disable_gc |
| const char | ruby_exec_prefix [] |
| const char | ruby_initial_load_paths [] |
| int | ruby_enable_coredump |
| VALUE | rb_cEncodingConverter |
| const signed char | ruby_digit36_to_number_table [] |
| const char | ruby_hexdigits [] |
| #define __asan_poison_memory_region | ( | x, | |
| y | |||
| ) |
Definition at line 108 of file internal.h.
| #define __asan_region_is_poisoned | ( | x, | |
| y | |||
| ) | 0 |
Definition at line 110 of file internal.h.
| #define __asan_unpoison_memory_region | ( | x, | |
| y | |||
| ) |
Definition at line 109 of file internal.h.
| #define __has_extension __has_feature |
Definition at line 52 of file internal.h.
| #define __has_feature | ( | x | ) | 0 |
Definition at line 48 of file internal.h.
| #define __msan_allocated_memory | ( | x, | |
| y | |||
| ) | ((void)(x), (void)(y)) |
Definition at line 120 of file internal.h.
| #define __msan_poison | ( | x, | |
| y | |||
| ) | ((void)(x), (void)(y)) |
Definition at line 121 of file internal.h.
| #define __msan_unpoison | ( | x, | |
| y | |||
| ) | ((void)(x), (void)(y)) |
Definition at line 122 of file internal.h.
| #define __msan_unpoison_string | ( | x | ) | ((void)(x)) |
Definition at line 123 of file internal.h.
| #define ACCESS_ONCE | ( | type, | |
| x | |||
| ) | (*((volatile type *)&(x))) |
Definition at line 223 of file internal.h.
| #define ARGVSTR2ARGV | ( | argv_str | ) | ((char **)RB_IMEMO_TMPBUF_PTR(argv_str) + 1) |
Definition at line 2075 of file internal.h.
| #define ARRAY_DEBUG (0+RUBY_DEBUG) |
Definition at line 1363 of file internal.h.
| #define ARY_PTR_USING_P | ( | ary | ) | FL_TEST_RAW((ary), RARRAY_PTR_IN_USE_FLAG) |
Definition at line 1368 of file internal.h.
Definition at line 159 of file internal.h.
| #define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS | ( | x | ) | x |
Definition at line 69 of file internal.h.
| #define BDIGIT unsigned int |
Definition at line 688 of file internal.h.
| #define BDIGIT_DBL unsigned LONG_LONG |
Definition at line 690 of file internal.h.
| #define BDIGIT_DBL_SIGNED LONG_LONG |
Definition at line 691 of file internal.h.
| #define BIGNUM_DIGITS | ( | b | ) |
Definition at line 780 of file internal.h.
Definition at line 769 of file internal.h.
| #define BIGNUM_EMBED_LEN_MASK (~(~(VALUE)0U << BIGNUM_EMBED_LEN_NUMBITS) << BIGNUM_EMBED_LEN_SHIFT) |
Definition at line 770 of file internal.h.
| #define BIGNUM_EMBED_LEN_MAX (SIZEOF_VALUE*RVALUE_EMBED_LEN_MAX/SIZEOF_ACTUAL_BDIGIT) |
Definition at line 743 of file internal.h.
| #define BIGNUM_EMBED_LEN_NUMBITS 3 |
Definition at line 740 of file internal.h.
| #define BIGNUM_EMBED_LEN_SHIFT (FL_USHIFT+3) /* bit offset of BIGNUM_EMBED_LEN_MASK */ |
Definition at line 772 of file internal.h.
| #define BIGNUM_LEN | ( | b | ) |
Definition at line 774 of file internal.h.
| #define BIGNUM_LENINT | ( | b | ) | rb_long2int(BIGNUM_LEN(b)) |
Definition at line 784 of file internal.h.
| #define BIGNUM_NEGATE | ( | b | ) | (RBASIC(b)->flags ^= BIGNUM_SIGN_BIT) |
Definition at line 767 of file internal.h.
| #define BIGNUM_NEGATIVE_P | ( | b | ) | (!BIGNUM_SIGN(b)) |
Definition at line 766 of file internal.h.
| #define BIGNUM_POSITIVE_P | ( | b | ) | BIGNUM_SIGN(b) |
Definition at line 765 of file internal.h.
| #define BIGNUM_SET_SIGN | ( | b, | |
| sign | |||
| ) |
Definition at line 762 of file internal.h.
| #define BIGNUM_SIGN | ( | b | ) | ((RBASIC(b)->flags & BIGNUM_SIGN_BIT) != 0) |
Definition at line 761 of file internal.h.
Definition at line 759 of file internal.h.
| #define bit_length | ( | x | ) |
Definition at line 680 of file internal.h.
Definition at line 2639 of file internal.h.
| #define bp | ( | ) | ruby_debug_breakpoint() |
Definition at line 1445 of file internal.h.
| #define CACHELINE 64 |
Definition at line 2360 of file internal.h.
| #define Check_Type | ( | v, | |
| t | |||
| ) |
Definition at line 2481 of file internal.h.
| #define CMP_OPTIMIZABLE | ( | data, | |
| type | |||
| ) |
Definition at line 1330 of file internal.h.
| #define CMP_OPTIMIZABLE_BIT | ( | type | ) | (1U << TOKEN_PASTE(cmp_opt_,type)) |
Definition at line 1329 of file internal.h.
| #define COMPILER_WARNING_ERROR | ( | flag | ) | /* nop */ |
Definition at line 2672 of file internal.h.
| #define COMPILER_WARNING_IGNORED | ( | flag | ) | /* nop */ |
Definition at line 2673 of file internal.h.
| #define COMPILER_WARNING_POP /* nop */ |
Definition at line 2671 of file internal.h.
| #define COMPILER_WARNING_PRAGMA | ( | str | ) | COMPILER_WARNING_PRAGMA_(str) |
Definition at line 2676 of file internal.h.
Definition at line 2677 of file internal.h.
| #define COMPILER_WARNING_PUSH /* nop */ |
Definition at line 2670 of file internal.h.
| #define COVERAGE_INDEX_BRANCHES 1 |
Definition at line 2218 of file internal.h.
| #define COVERAGE_INDEX_LINES 0 |
Definition at line 2217 of file internal.h.
| #define COVERAGE_TARGET_BRANCHES 2 |
Definition at line 2220 of file internal.h.
| #define COVERAGE_TARGET_LINES 1 |
Definition at line 2219 of file internal.h.
| #define COVERAGE_TARGET_METHODS 4 |
Definition at line 2221 of file internal.h.
| #define COVERAGE_TARGET_ONESHOT_LINES 8 |
Definition at line 2222 of file internal.h.
| #define FIXNUM_NEGATIVE_P | ( | num | ) | ((SIGNED_VALUE)(num) < 0) |
Definition at line 1778 of file internal.h.
| #define FIXNUM_POSITIVE_P | ( | num | ) | ((SIGNED_VALUE)(num) > (SIGNED_VALUE)INT2FIX(0)) |
Definition at line 1777 of file internal.h.
| #define FIXNUM_ZERO_P | ( | num | ) | ((num) == INT2FIX(0)) |
Definition at line 1779 of file internal.h.
| #define FLEX_ARY_LEN 1 /* VALUE ary[1]; */ |
Definition at line 2626 of file internal.h.
| #define FLOAT_ZERO_P | ( | x | ) | (RFLOAT_VALUE(x) == 0.0) |
Definition at line 1783 of file internal.h.
| #define HALF_LONG_MSB ((SIGNED_VALUE)1<<((SIZEOF_LONG*CHAR_BIT-1)/2)) |
Definition at line 34 of file internal.h.
| #define id_signo ruby_static_id_signo |
Definition at line 1590 of file internal.h.
| #define id_status ruby_static_id_status |
Definition at line 1591 of file internal.h.
| #define IFUNC_NEW | ( | a, | |
| b, | |||
| c | |||
| ) | ((struct vm_ifunc *)rb_imemo_new(imemo_ifunc, (VALUE)(a), (VALUE)(b), (VALUE)(c), 0)) |
Definition at line 1223 of file internal.h.
| #define IMEMO_DEBUG 0 |
Definition at line 1121 of file internal.h.
| #define IMEMO_FL_USER0 FL_USER4 |
Definition at line 1172 of file internal.h.
| #define IMEMO_FL_USER1 FL_USER5 |
Definition at line 1173 of file internal.h.
| #define IMEMO_FL_USER2 FL_USER6 |
Definition at line 1174 of file internal.h.
| #define IMEMO_FL_USER3 FL_USER7 |
Definition at line 1175 of file internal.h.
| #define IMEMO_FL_USER4 FL_USER8 |
Definition at line 1176 of file internal.h.
| #define IMEMO_FL_USHIFT (FL_USHIFT + 4) |
Definition at line 1171 of file internal.h.
| #define IMEMO_MASK 0x0f |
Definition at line 1145 of file internal.h.
| #define INT_NEGATIVE_P | ( | x | ) | (FIXNUM_P(x) ? FIXNUM_NEGATIVE_P(x) : BIGNUM_NEGATIVE_P(x)) |
Definition at line 1781 of file internal.h.
| #define is_ascii_string | ( | str | ) | (rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT) |
Definition at line 2165 of file internal.h.
| #define is_broken_string | ( | str | ) | (rb_enc_str_coderange(str) == ENC_CODERANGE_BROKEN) |
Definition at line 2166 of file internal.h.
| #define LIKELY | ( | x | ) | RB_LIKELY(x) |
Definition at line 36 of file internal.h.
| #define MAYBE_UNUSED | ( | x | ) | x |
Definition at line 40 of file internal.h.
| #define MEMO_CAST | ( | m | ) | ((struct MEMO *)m) |
Definition at line 1294 of file internal.h.
| #define MEMO_FOR | ( | type, | |
| value | |||
| ) | ((type *)RARRAY_PTR(value)) |
Definition at line 1300 of file internal.h.
| #define MEMO_NEW | ( | a, | |
| b, | |||
| c | |||
| ) | ((struct MEMO *)rb_imemo_new(imemo_memo, (VALUE)(a), (VALUE)(b), (VALUE)(c), 0)) |
Definition at line 1296 of file internal.h.
| #define MEMO_V1_SET | ( | m, | |
| v | |||
| ) | RB_OBJ_WRITE((m), &(m)->v1, (v)) |
Definition at line 1291 of file internal.h.
| #define MEMO_V2_SET | ( | m, | |
| v | |||
| ) | RB_OBJ_WRITE((m), &(m)->v2, (v)) |
Definition at line 1292 of file internal.h.
| #define mjit_enabled 0 |
Definition at line 1766 of file internal.h.
| #define MUL_OVERFLOW_FIXNUM_P | ( | a, | |
| b | |||
| ) | MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, FIXNUM_MIN, FIXNUM_MAX) |
Definition at line 273 of file internal.h.
| #define MUL_OVERFLOW_INT_P | ( | a, | |
| b | |||
| ) | MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, INT_MIN, INT_MAX) |
Definition at line 283 of file internal.h.
| #define MUL_OVERFLOW_LONG_LONG_P | ( | a, | |
| b | |||
| ) | MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, LLONG_MIN, LLONG_MAX) |
Definition at line 281 of file internal.h.
| #define MUL_OVERFLOW_LONG_P | ( | a, | |
| b | |||
| ) | MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, LONG_MIN, LONG_MAX) |
Definition at line 282 of file internal.h.
| #define MUL_OVERFLOW_SIGNED_INTEGER_P | ( | a, | |
| b, | |||
| min, | |||
| max | |||
| ) |
Definition at line 258 of file internal.h.
| #define NEW_CMP_OPT_MEMO | ( | type, | |
| value | |||
| ) | NEW_PARTIAL_MEMO_FOR(type, value, cmp_opt) |
Definition at line 1327 of file internal.h.
| #define NEW_MEMO_FOR | ( | type, | |
| value | |||
| ) | ((value) = rb_ary_tmp_new_fill(type_roomof(type, VALUE)), MEMO_FOR(type, value)) |
Definition at line 1301 of file internal.h.
| #define NEW_PARTIAL_MEMO_FOR | ( | type, | |
| value, | |||
| member | |||
| ) |
Definition at line 1303 of file internal.h.
| #define NEWOBJ_OF | ( | obj, | |
| type, | |||
| klass, | |||
| flags | |||
| ) | RB_NEWOBJ_OF(obj,type,klass,flags) |
Definition at line 1673 of file internal.h.
| #define NO_SANITIZE | ( | x, | |
| y | |||
| ) | y |
Definition at line 83 of file internal.h.
| #define numberof | ( | array | ) | ((int)(sizeof(array) / sizeof((array)[0]))) |
Definition at line 99 of file internal.h.
| #define OBJ_BUILTIN_TYPE | ( | obj | ) | RB_OBJ_BUILTIN_TYPE(obj) |
Definition at line 2603 of file internal.h.
| #define OPTIMIZED_CMP | ( | a, | |
| b, | |||
| data | |||
| ) |
Definition at line 1337 of file internal.h.
| #define PRI_BDIGIT_DBL_PREFIX PRI_LL_PREFIX |
Definition at line 693 of file internal.h.
| #define PRI_BDIGIT_PREFIX "" |
Definition at line 692 of file internal.h.
| #define PRI_SERIALT_PREFIX PRI_LONG_PREFIX |
Definition at line 1016 of file internal.h.
| #define PRIdBDIGIT PRI_BDIGIT_PREFIX"d" |
Definition at line 723 of file internal.h.
| #define PRIdBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"d" |
Definition at line 732 of file internal.h.
| #define PRIiBDIGIT PRI_BDIGIT_PREFIX"i" |
Definition at line 724 of file internal.h.
| #define PRIiBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"i" |
Definition at line 733 of file internal.h.
| #define PRIoBDIGIT PRI_BDIGIT_PREFIX"o" |
Definition at line 725 of file internal.h.
| #define PRIoBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"o" |
Definition at line 734 of file internal.h.
| #define PRIuBDIGIT PRI_BDIGIT_PREFIX"u" |
Definition at line 726 of file internal.h.
| #define PRIuBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"u" |
Definition at line 735 of file internal.h.
| #define PRIxBDIGIT PRI_BDIGIT_PREFIX"x" |
Definition at line 727 of file internal.h.
| #define PRIXBDIGIT PRI_BDIGIT_PREFIX"X" |
Definition at line 728 of file internal.h.
| #define PRIxBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"x" |
Definition at line 736 of file internal.h.
| #define PRIXBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"X" |
Definition at line 737 of file internal.h.
| #define QUOTE | ( | str | ) | rb_str_quote_unprintable(str) |
Definition at line 2148 of file internal.h.
| #define QUOTE_ID | ( | id | ) | rb_id_quote_unprintable(id) |
Definition at line 2149 of file internal.h.
| #define RANGE_BEG | ( | r | ) | (RSTRUCT(r)->as.ary[0]) |
Definition at line 2091 of file internal.h.
| #define RANGE_END | ( | r | ) | (RSTRUCT(r)->as.ary[1]) |
Definition at line 2092 of file internal.h.
| #define RANGE_EXCL | ( | r | ) | (RSTRUCT(r)->as.ary[2]) |
Definition at line 2093 of file internal.h.
| #define RARRAY_PTR_IN_USE_FLAG FL_USER14 |
Definition at line 1367 of file internal.h.
| #define RARY_TRANSIENT_SET | ( | ary | ) | FL_SET_RAW((ary), RARRAY_TRANSIENT_FLAG); |
Definition at line 1381 of file internal.h.
| #define RARY_TRANSIENT_UNSET | ( | ary | ) | FL_UNSET_RAW((ary), RARRAY_TRANSIENT_FLAG); |
Definition at line 1382 of file internal.h.
| #define rb_cBignum rb_cInteger |
Definition at line 1312 of file internal.h.
| #define rb_cFixnum rb_cInteger |
Definition at line 1311 of file internal.h.
| #define rb_float_new | ( | d | ) | rb_float_new_inline(d) |
Definition at line 1966 of file internal.h.
| #define rb_float_value | ( | v | ) | rb_float_value_inline(v) |
Definition at line 1965 of file internal.h.
| #define rb_fstring_lit | ( | str | ) | rb_fstring_new((str), rb_strlen_lit(str)) |
Definition at line 2129 of file internal.h.
| #define rb_fstring_literal | ( | str | ) | rb_fstring_lit(str) |
Definition at line 2130 of file internal.h.
| #define rb_imemo_tmpbuf_auto_free_pointer | ( | ) | rb_imemo_new(imemo_tmpbuf, 0, 0, 0, 0) |
Definition at line 1239 of file internal.h.
| #define RB_IMEMO_TMPBUF_PTR | ( | v | ) | ((void *)(((const struct rb_imemo_tmpbuf_struct *)(v))->ptr)) |
Definition at line 1242 of file internal.h.
| #define rb_io_fptr_finalize rb_io_fptr_finalize_internal |
Definition at line 1734 of file internal.h.
| #define rb_key_err_raise | ( | mesg, | |
| recv, | |||
| name | |||
| ) | rb_exc_raise(rb_key_err_new(mesg, recv, name)) |
Definition at line 1581 of file internal.h.
| #define RB_MAX_GROUPS (65536) |
Definition at line 2022 of file internal.h.
| #define rb_name_err_raise | ( | mesg, | |
| recv, | |||
| name | |||
| ) | rb_name_err_raise_str(rb_fstring_cstr(mesg), (recv), (name)) |
Definition at line 1577 of file internal.h.
| #define rb_name_err_raise_str | ( | mesg, | |
| recv, | |||
| name | |||
| ) | rb_exc_raise(rb_name_err_new(mesg, recv, name)) |
Definition at line 1575 of file internal.h.
| #define RB_NEWOBJ_OF | ( | obj, | |
| type, | |||
| klass, | |||
| flags | |||
| ) |
Definition at line 1669 of file internal.h.
| #define RB_OBJ_BUILTIN_TYPE | ( | obj | ) | rb_obj_builtin_type(obj) |
Definition at line 2602 of file internal.h.
| #define RB_OBJ_GC_FLAGS_MAX 6 |
Definition at line 2573 of file internal.h.
| #define RB_OBJ_WRITE | ( | a, | |
| slot, | |||
| b | |||
| ) | UNALIGNED_MEMBER_ACCESS(rb_obj_write((VALUE)(a), (VALUE *)(slot), (VALUE)(b), __FILE__, __LINE__)) |
Definition at line 2694 of file internal.h.
| #define rb_raise_cstr | ( | etype, | |
| mesg | |||
| ) | rb_exc_raise(rb_exc_new_str(etype, rb_str_new_cstr(mesg))) |
Definition at line 1569 of file internal.h.
| #define rb_raise_static | ( | etype, | |
| mesg | |||
| ) | rb_exc_raise(rb_exc_new_str(etype, rb_str_new_static(mesg, rb_strlen_lit(mesg)))) |
Definition at line 1571 of file internal.h.
| #define rb_sys_fail_path | ( | path | ) | rb_sys_fail_str(path) |
Definition at line 1630 of file internal.h.
| #define rb_syserr_fail_path | ( | err, | |
| path | |||
| ) | rb_syserr_fail_str((err), (path)) |
Definition at line 1631 of file internal.h.
| #define rb_typeddata_is_instance_of rb_typeddata_is_instance_of_inline |
Definition at line 2491 of file internal.h.
| #define RBASIC_CLEAR_CLASS | ( | obj | ) | memset(&(((struct RBasicRaw *)((VALUE)(obj)))->klass), 0, sizeof(VALUE)) |
Definition at line 1987 of file internal.h.
| #define RBASIC_SET_CLASS | ( | obj, | |
| cls | |||
| ) |
Definition at line 1989 of file internal.h.
| #define RBASIC_SET_CLASS_RAW | ( | obj, | |
| cls | |||
| ) | memcpy(&((struct RBasicRaw *)((VALUE)(obj)))->klass, &(cls), sizeof(VALUE)) |
Definition at line 1988 of file internal.h.
Definition at line 786 of file internal.h.
| #define RCLASS_CALLABLE_M_TBL | ( | c | ) | (RCLASS_EXT(c)->callable_m_tbl) |
Definition at line 1073 of file internal.h.
| #define RCLASS_CLONED FL_USER6 |
Definition at line 1084 of file internal.h.
| #define RCLASS_CONST_TBL | ( | c | ) | (RCLASS_EXT(c)->const_tbl) |
Definition at line 1067 of file internal.h.
Definition at line 1065 of file internal.h.
| #define RCLASS_INCLUDER | ( | c | ) | (RCLASS_EXT(c)->includer) |
Definition at line 1082 of file internal.h.
| #define RCLASS_IV_INDEX_TBL | ( | c | ) | (RCLASS_EXT(c)->iv_index_tbl) |
Definition at line 1074 of file internal.h.
| #define RCLASS_IV_TBL | ( | c | ) | (RCLASS_EXT(c)->iv_tbl) |
Definition at line 1066 of file internal.h.
| #define RCLASS_M_TBL | ( | c | ) | (RCLASS_EXT(c)->m_tbl) |
Definition at line 1069 of file internal.h.
| #define RCLASS_ORIGIN | ( | c | ) | (RCLASS_EXT(c)->origin_) |
Definition at line 1075 of file internal.h.
| #define RCLASS_REFINED_BY_ANY FL_USER7 |
Definition at line 1086 of file internal.h.
| #define RCLASS_REFINED_CLASS | ( | c | ) | (RCLASS_EXT(c)->refined_class) |
Definition at line 1076 of file internal.h.
| #define RCLASS_SERIAL | ( | c | ) | (RCLASS(c)->class_serial) |
Definition at line 1078 of file internal.h.
Definition at line 811 of file internal.h.
| #define RCOMPLEX_SET_IMAG | ( | cmp, | |
| i | |||
| ) | RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->imag,(i)) |
Definition at line 815 of file internal.h.
| #define RCOMPLEX_SET_REAL | ( | cmp, | |
| r | |||
| ) | RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->real,(r)) |
Definition at line 814 of file internal.h.
Definition at line 803 of file internal.h.
Definition at line 859 of file internal.h.
| #define RHASH_AR_TABLE | ( | hash | ) | (RHASH(hash)->as.ar) |
Definition at line 855 of file internal.h.
| #define RHASH_AR_TABLE_BOUND_MASK (VALUE)RHASH_AR_TABLE_BOUND_MASK |
Definition at line 866 of file internal.h.
| #define RHASH_AR_TABLE_BOUND_SHIFT RHASH_AR_TABLE_BOUND_SHIFT |
Definition at line 867 of file internal.h.
| #define RHASH_AR_TABLE_MAX_SIZE SIZEOF_VALUE |
Definition at line 821 of file internal.h.
| #define RHASH_AR_TABLE_P | ( | hash | ) | (!FL_TEST_RAW((hash), RHASH_ST_TABLE_FLAG)) |
Definition at line 854 of file internal.h.
| #define RHASH_AR_TABLE_SIZE_MASK (VALUE)RHASH_AR_TABLE_SIZE_MASK |
Definition at line 864 of file internal.h.
| #define RHASH_AR_TABLE_SIZE_RAW | ( | h | ) | ((unsigned int)((RBASIC(h)->flags & RHASH_AR_TABLE_SIZE_MASK) >> RHASH_AR_TABLE_SIZE_SHIFT)) |
Definition at line 841 of file internal.h.
| #define RHASH_AR_TABLE_SIZE_SHIFT RHASH_AR_TABLE_SIZE_SHIFT |
Definition at line 865 of file internal.h.
| #define RHASH_IFNONE | ( | h | ) | (RHASH(h)->ifnone) |
Definition at line 904 of file internal.h.
| #define RHASH_LEV_MASK |
| #define RHASH_SET_TRANSIENT_FLAG | ( | h | ) | FL_SET_RAW(h, RHASH_TRANSIENT_FLAG) |
Definition at line 871 of file internal.h.
| #define RHASH_SIZE | ( | h | ) | (RHASH_AR_TABLE_P(h) ? RHASH_AR_TABLE_SIZE_RAW(h) : RHASH_ST_SIZE(h)) |
Definition at line 905 of file internal.h.
| #define RHASH_ST_CLEAR | ( | h | ) | (FL_UNSET_RAW(h, RHASH_ST_TABLE_FLAG), RHASH(h)->as.ar = NULL) |
Definition at line 862 of file internal.h.
| #define RHASH_ST_SIZE | ( | h | ) | (RHASH_ST_TABLE(h)->num_entries) |
Definition at line 860 of file internal.h.
| #define RHASH_ST_TABLE | ( | hash | ) | (RHASH(hash)->as.st) |
Definition at line 856 of file internal.h.
| #define RHASH_ST_TABLE_P | ( | h | ) | (!RHASH_AR_TABLE_P(h)) |
Definition at line 861 of file internal.h.
| #define RHASH_TBL_RAW | ( | h | ) | rb_hash_tbl_raw(h) |
Definition at line 1695 of file internal.h.
| #define RHASH_TRANSIENT_P | ( | hash | ) | FL_TEST_RAW((hash), RHASH_TRANSIENT_FLAG) |
Definition at line 870 of file internal.h.
| #define RHASH_UNSET_TRANSIENT_FLAG | ( | h | ) | FL_UNSET_RAW(h, RHASH_TRANSIENT_FLAG) |
Definition at line 872 of file internal.h.
| #define RICLASS_IS_ORIGIN FL_USER5 |
Definition at line 1085 of file internal.h.
| #define ROBJ_TRANSIENT_P | ( | obj | ) | FL_TEST_RAW((obj), ROBJECT_TRANSIENT_FLAG) |
Definition at line 2262 of file internal.h.
| #define ROBJ_TRANSIENT_SET | ( | obj | ) | FL_SET_RAW((obj), ROBJECT_TRANSIENT_FLAG) |
Definition at line 2263 of file internal.h.
| #define ROBJ_TRANSIENT_UNSET | ( | obj | ) | FL_UNSET_RAW((obj), ROBJECT_TRANSIENT_FLAG) |
Definition at line 2264 of file internal.h.
| #define ROBJECT_TRANSIENT_FLAG FL_USER13 |
Definition at line 2261 of file internal.h.
| #define roomof | ( | x, | |
| y | |||
| ) | (((x) + (y) - 1) / (y)) |
Definition at line 1298 of file internal.h.
| #define ROUND_CALL | ( | mode, | |
| name, | |||
| args | |||
| ) |
| #define ROUND_DEFAULT RUBY_NUM_ROUND_HALF_UP |
Definition at line 1786 of file internal.h.
| #define ROUND_FUNC | ( | mode, | |
| name | |||
| ) | ROUND_TO(mode, name##_half_even, name##_half_up, name##_half_down) |
Definition at line 1797 of file internal.h.
| #define ROUND_TO | ( | mode, | |
| even, | |||
| up, | |||
| down | |||
| ) |
Definition at line 1794 of file internal.h.
| #define rp | ( | obj | ) | rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, __func__) |
Definition at line 1435 of file internal.h.
| #define rp_m | ( | msg, | |
| obj | |||
| ) |
Definition at line 1438 of file internal.h.
Definition at line 794 of file internal.h.
| #define RRATIONAL_SET_DEN | ( | rat, | |
| d | |||
| ) | RB_OBJ_WRITE((rat), &((struct RRational *)(rat))->den,(d)) |
Definition at line 796 of file internal.h.
| #define RRATIONAL_SET_NUM | ( | rat, | |
| n | |||
| ) | RB_OBJ_WRITE((rat), &((struct RRational *)(rat))->num,(n)) |
Definition at line 795 of file internal.h.
Definition at line 966 of file internal.h.
| #define RSTRUCT_CONST_PTR | ( | st | ) | rb_struct_const_ptr(st) |
Definition at line 962 of file internal.h.
| #define RSTRUCT_EMBED_LEN | ( | st | ) |
Definition at line 957 of file internal.h.
| #define RSTRUCT_EMBED_LEN_MASK RSTRUCT_EMBED_LEN_MASK |
Definition at line 920 of file internal.h.
| #define RSTRUCT_EMBED_LEN_MAX RSTRUCT_EMBED_LEN_MAX |
Definition at line 919 of file internal.h.
| #define RSTRUCT_EMBED_LEN_SHIFT RSTRUCT_EMBED_LEN_SHIFT |
Definition at line 921 of file internal.h.
| #define RSTRUCT_GET | ( | st, | |
| idx | |||
| ) | (RSTRUCT_CONST_PTR(st)[idx]) |
Definition at line 965 of file internal.h.
| #define RSTRUCT_LEN | ( | st | ) | rb_struct_len(st) |
Definition at line 960 of file internal.h.
| #define RSTRUCT_LENINT | ( | st | ) | rb_long2int(RSTRUCT_LEN(st)) |
Definition at line 961 of file internal.h.
| #define RSTRUCT_PTR | ( | st | ) | ((VALUE *)RSTRUCT_CONST_PTR(RB_OBJ_WB_UNPROTECT_FOR(STRUCT, st))) |
Definition at line 963 of file internal.h.
| #define RSTRUCT_SET | ( | st, | |
| idx, | |||
| v | |||
| ) | RB_OBJ_WRITE(st, &RSTRUCT_CONST_PTR(st)[idx], (v)) |
Definition at line 964 of file internal.h.
| #define RSTRUCT_TRANSIENT_P | ( | st | ) | FL_TEST_RAW((obj), RSTRUCT_TRANSIENT_FLAG) |
Definition at line 933 of file internal.h.
| #define RSTRUCT_TRANSIENT_SET | ( | st | ) | FL_SET_RAW((st), RSTRUCT_TRANSIENT_FLAG) |
Definition at line 934 of file internal.h.
| #define RSTRUCT_TRANSIENT_UNSET | ( | st | ) | FL_UNSET_RAW((st), RSTRUCT_TRANSIENT_FLAG) |
Definition at line 935 of file internal.h.
| #define RUBY_BIT_ROTL | ( | v, | |
| n | |||
| ) | (((v) << (n)) | ((v) >> ((sizeof(v) * 8) - n))) |
Definition at line 1895 of file internal.h.
| #define RUBY_BIT_ROTR | ( | v, | |
| n | |||
| ) | (((v) >> (n)) | ((v) << ((sizeof(v) * 8) - n))) |
Definition at line 1896 of file internal.h.
| #define RUBY_DTRACE_CREATE_HOOK | ( | name, | |
| arg | |||
| ) | RUBY_DTRACE_HOOK(name##_CREATE, arg) |
Definition at line 2590 of file internal.h.
| #define RUBY_DTRACE_HOOK | ( | name, | |
| arg | |||
| ) |
Definition at line 2592 of file internal.h.
| #define SERIALT2NUM ULONG2NUM |
Definition at line 1015 of file internal.h.
| #define SIGNED_INTEGER_MAX | ( | sint_type | ) |
Definition at line 234 of file internal.h.
| #define SIGNED_INTEGER_MIN | ( | sint_type | ) | (-SIGNED_INTEGER_MAX(sint_type)-1) |
Definition at line 238 of file internal.h.
| #define SIGNED_INTEGER_TYPE_P | ( | int_type | ) | (0 > ((int_type)0)-1) |
Definition at line 233 of file internal.h.
| #define SIZED_REALLOC_N | ( | var, | |
| type, | |||
| n, | |||
| old_n | |||
| ) | ((var)=(type*)ruby_sized_xrealloc2((void*)(var), (n), sizeof(type), (old_n))) |
Definition at line 1663 of file internal.h.
| #define SIZEOF_ACTUAL_BDIGIT SIZEOF_BDIGIT |
Definition at line 719 of file internal.h.
| #define SIZEOF_BDIGIT SIZEOF_INT |
Definition at line 689 of file internal.h.
| #define SIZEOF_SERIAL_T SIZEOF_LONG |
Definition at line 1017 of file internal.h.
Definition at line 230 of file internal.h.
| #define STR_EMBED_P | ( | str | ) | (!FL_TEST_RAW((str), STR_NOEMBED)) |
Definition at line 2163 of file internal.h.
| #define STR_NOEMBED FL_USER1 |
Definition at line 2161 of file internal.h.
| #define STR_SHARED FL_USER2 /* = ELTS_SHARED */ |
Definition at line 2162 of file internal.h.
| #define STR_SHARED_P | ( | s | ) | FL_ALL_RAW((s), STR_NOEMBED|ELTS_SHARED) |
Definition at line 2164 of file internal.h.
| #define STRING_P | ( | s | ) | (RB_TYPE_P((s), T_STRING) && CLASS_OF(s) == rb_cString) |
Definition at line 1308 of file internal.h.
| #define swap16 | ( | x | ) | ((uint16_t)((((x)&0xFF)<<8) | (((x)>>8)&0xFF))) |
Definition at line 293 of file internal.h.
| #define swap32 | ( | x | ) |
Definition at line 303 of file internal.h.
| #define THROW_DATA_CONSUMED IMEMO_FL_USER0 |
Definition at line 1190 of file internal.h.
Definition at line 1201 of file internal.h.
| #define TIMET_MAX_PLUS_ONE (2*(double)(TIMET_MAX/2+1)) |
Definition at line 248 of file internal.h.
| #define type_roomof | ( | x, | |
| y | |||
| ) | roomof(sizeof(x), sizeof(y)) |
Definition at line 1299 of file internal.h.
| #define UNALIGNED_MEMBER_ACCESS | ( | expr | ) | expr |
Definition at line 2689 of file internal.h.
| #define UNALIGNED_MEMBER_PTR | ( | ptr, | |
| mem | |||
| ) | UNALIGNED_MEMBER_ACCESS(&(ptr)->mem) |
Definition at line 2691 of file internal.h.
| #define UNLIKELY | ( | x | ) | RB_UNLIKELY(x) |
Definition at line 37 of file internal.h.
| #define UNSIGNED_INTEGER_MAX | ( | uint_type | ) | (~(uint_type)0) |
Definition at line 239 of file internal.h.
| #define USE_SYMBOL_GC 1 |
Definition at line 1996 of file internal.h.
| #define VALGRIND_MAKE_MEM_DEFINED | ( | p, | |
| n | |||
| ) | 0 |
Definition at line 95 of file internal.h.
| #define VALGRIND_MAKE_MEM_UNDEFINED | ( | p, | |
| n | |||
| ) | 0 |
Definition at line 96 of file internal.h.
| #define WARN_UNUSED_RESULT | ( | x | ) | x |
Definition at line 44 of file internal.h.
Definition at line 2314 of file internal.h.
| typedef struct rb_classext_struct rb_classext_t |
Definition at line 1014 of file internal.h.
| typedef struct rb_imemo_tmpbuf_struct rb_imemo_tmpbuf_t |
| typedef unsigned long rb_serial_t |
Definition at line 1014 of file internal.h.
| typedef struct rb_subclass_entry rb_subclass_entry_t |
Definition at line 983 of file internal.h.
| anonymous enum |
Definition at line 923 of file internal.h.
| anonymous enum |
Definition at line 1315 of file internal.h.
| enum imemo_type |
| Enumerator | |
|---|---|
| imemo_env | |
| imemo_cref | class reference |
| imemo_svar | special variable |
| imemo_throw_data | |
| imemo_ifunc | iterator function |
| imemo_memo | |
| imemo_ment | |
| imemo_iseq | |
| imemo_tmpbuf | |
| imemo_ast | |
| imemo_parser_strterm | |
Definition at line 1132 of file internal.h.
| Enumerator | |
|---|---|
| MISSING_NOENTRY | |
| MISSING_PRIVATE | |
| MISSING_PROTECTED | |
| MISSING_FCALL | |
| MISSING_VCALL | |
| MISSING_SUPER | |
| MISSING_MISSING | |
| MISSING_NONE | |
Definition at line 2335 of file internal.h.
| enum rb_int_parse_flags |
| Enumerator | |
|---|---|
| RB_INT_PARSE_SIGN | |
| RB_INT_PARSE_UNDERSCORE | |
| RB_INT_PARSE_PREFIX | |
| RB_INT_PARSE_ALL | |
| RB_INT_PARSE_DEFAULT | |
Definition at line 2463 of file internal.h.
| Enumerator | |
|---|---|
| RB_WARN_CATEGORY_NONE | |
| RB_WARN_CATEGORY_DEPRECATED | |
| RB_WARN_CATEGORY_EXPERIMENTAL | |
| RB_WARN_CATEGORY_ALL_BITS | |
Definition at line 1560 of file internal.h.
| Enumerator | |
|---|---|
| RUBY_NUM_ROUND_HALF_UP | |
| RUBY_NUM_ROUND_HALF_EVEN | |
| RUBY_NUM_ROUND_HALF_DOWN | |
| RUBY_NUM_ROUND_DEFAULT | |
Definition at line 1788 of file internal.h.
| enum ruby_rhash_flags |
Definition at line 817 of file internal.h.
| CONSTFUNC | ( | VALUE | rb_obj_equalVALUE obj1, VALUE obj2 | ) |
| CONSTFUNC | ( | VALUE | rb_obj_notVALUE obj | ) |
| void Init_BareVM | ( | void | ) |
Definition at line 3301 of file vm.c.
References EXIT_FAILURE, MEMZERO, and ruby_mimmalloc().
Referenced by ruby_setup().
| void Init_enc | ( | void | ) |
Definition at line 5 of file dmyenc.c.
References rb_encdb_alias(), rb_encdb_declare(), and require.
| int Init_enc_set_filesystem_encoding | ( | void | ) |
Definition at line 119 of file localeinit.c.
References ENCINDEX_ASCII, ENCINDEX_US_ASCII, ENCINDEX_UTF_8, rb_default_external_encoding(), rb_enc_find_index(), and rb_enc_to_index().
| void Init_eval_method | ( | void | ) |
Definition at line 2281 of file vm_method.c.
References rb_define_method(), and rb_mKernel.
| void Init_File | ( | void | ) |
Definition at line 6435 of file file.c.
References rb_cFile, rb_cIO, rb_define_class(), rb_define_module(), and rb_mFileTest.
| void Init_heap | ( | void | ) |
Definition at line 2911 of file gc.c.
References rb_objspace::id_to_obj_tbl, INT2FIX, rb_objspace::next_object_id, OBJ_ID_INITIAL, rb_objspace, and st_init_table().
Referenced by ruby_setup().
| void Init_newline | ( | void | ) |
| void Init_vm_backtrace | ( | void | ) |
Definition at line 1045 of file vm_backtrace.c.
| void Init_vm_eval | ( | void | ) |
Definition at line 2472 of file vm_eval.c.
References rb_define_global_function(), and rb_f_eval().
| void Init_vm_objects | ( | void | ) |
Definition at line 3324 of file vm.c.
References rb_vm_struct::defined_module_hash, rb_vm_struct::frozen_strings, GET_VM, rb_vm_struct::loading_table, rb_vm_struct::mark_object_ary, rb_vm_struct::objspace, rb_ary_tmp_new(), rb_fstring_hash_type, rb_objspace_gc_enable(), st_init_numtable(), st_init_strtable(), and st_init_table_with_size().
Referenced by ruby_setup().
| void Init_vm_stack_canary | ( | void | ) |
Definition at line 4856 of file vm_insnhelper.c.
| NORETURN | ( | VALUE | rb_f_raiseint argc, VALUE *argv | ) |
| NORETURN | ( | VALUE | rb_mod_const_missingVALUE, VALUE | ) |
| NORETURN | ( | void | rb_async_bug_errnoconst char *, int | ) |
| NORETURN | ( | void | rb_load_failVALUE, const char * | ) |
| NORETURN | ( | void | rb_undefined_allocVALUE klass | ) |
| NORETURN | ( | void | rb_unexpected_typeVALUE, int | ) |
| NORETURN | ( | void | rb_vraiseVALUE, const char *, va_list | ) |
| PRINTF_ARGS | ( | VALUE | rb_warning_stringconst char *fmt,..., |
| 1 | , | ||
| 2 | |||
| ) |
| PRINTF_ARGS | ( | void | rb_warn_deprecatedconst char *fmt, const char *suggest,..., |
| 1 | , | ||
| 3 | |||
| ) |
| PRINTF_ARGS | ( | void | ruby_debug_printfconst char *,..., |
| 1 | , | ||
| 2 | |||
| ) |
| PUREFUNC | ( | int | rb_data_is_encodingVALUE obj | ) |
| PUREFUNC | ( | int | rb_is_const_symVALUE sym | ) |
| PUREFUNC | ( | st_table * | rb_vm_fstring_tablevoid | ) |
| PUREFUNC | ( | VALUE | rb_vm_top_selfvoid | ) |
Definition at line 237 of file vm_eval.c.
References argc, ptr, rb_empty_keyword_given_p(), RB_PASS_CALLED_KEYWORDS, and RB_PASS_EMPTY_KEYWORDS.
Referenced by rb_block_call_kw(), rb_fiber_start(), rb_funcall_passing_block_kw(), rb_funcallv_kw(), rb_funcallv_public_kw(), rb_proc_call_kw(), rb_proc_call_with_block_kw(), rb_vm_call_kw(), and rb_yield_block().
| void* rb_aligned_malloc | ( | size_t | , |
| size_t | |||
| ) |
| VALUE rb_arith_seq_new | ( | VALUE | obj, |
| VALUE | meth, | ||
| int | argc, | ||
| VALUE const * | argv, | ||
| rb_enumerator_size_func * | size_fn, | ||
| VALUE | beg, | ||
| VALUE | end, | ||
| VALUE | step, | ||
| int | excl | ||
| ) |
Definition at line 3308 of file enumerator.c.
Definition at line 1595 of file array.c.
References FIX2LONG, FIXNUM_P, len, NUM2LONG, Qfalse, Qnil, RARRAY_LEN, rb_ary_entry(), rb_ary_subseq(), and rb_range_beg_len().
Definition at line 1629 of file array.c.
References NUM2LONG, and rb_ary_entry().
Definition at line 3396 of file array.c.
References select_bang_arg::ary, RARRAY_AREF, RARRAY_LEN, and rb_ary_store().
| void rb_ary_detransient | ( | VALUE | a | ) |
Definition at line 408 of file array.c.
References assert, and RARRAY_TRANSIENT_P.
Definition at line 1677 of file array.c.
References argc, len, Qnil, RARRAY_AREF, and RARRAY_LEN.
Referenced by rb_gc_register_mark_object().
| size_t rb_ary_memsize | ( | VALUE | ) |
Definition at line 816 of file array.c.
References ARY_CAPA, and ARY_OWNS_HEAP_P.
| void rb_ary_ptr_use_end | ( | VALUE | ary | ) |
Definition at line 235 of file array.c.
References FL_UNSET_RAW, and RARRAY_PTR_IN_USE_FLAG.
Definition at line 226 of file array.c.
References FL_SET_RAW, RARRAY_CONST_PTR_TRANSIENT, and RARRAY_PTR_IN_USE_FLAG.
| VALUE rb_ary_tmp_new_fill | ( | long | capa | ) |
Definition at line 776 of file array.c.
Referenced by rb_default_coverage().
Definition at line 748 of file array.c.
Referenced by rb_ary_new_from_values().
Definition at line 1126 of file variable.c.
Definition at line 2291 of file variable.c.
Referenced by rb_autoload_p().
Definition at line 1937 of file variable.c.
References Check_Type, mod, PRIsVALUE, Qundef, QUOTE_ID, rb_const_lookup(), rb_const_set(), rb_eArgError, rb_eNameError, rb_is_const_id(), rb_raise(), RCLASS_IV_TBL, RSTRING_LEN, st_data_t, st_lookup(), T_STRING, and rb_const_entry_struct::value.
Referenced by rb_autoload().
| void rb_backref_set_string | ( | VALUE | string, |
| long | pos, | ||
| long | len | ||
| ) |
Definition at line 855 of file vm_backtrace.c.
| int rb_backtrace_p | ( | VALUE | obj | ) |
Definition at line 446 of file vm_backtrace.c.
References rb_typeddata_is_kind_of().
| void rb_backtrace_print_as_bugreport | ( | void | ) |
Definition at line 813 of file vm_backtrace.c.
References oldbt_arg::func.
Referenced by rb_vm_bugreport().
Definition at line 686 of file vm_backtrace.c.
References GetCoreDataFromValue, and rb_backtrace_struct::locary.
Definition at line 620 of file vm_backtrace.c.
References bt_iter_arg::bt, GetCoreDataFromValue, and rb_backtrace_struct::strary.
Definition at line 6762 of file bignum.c.
References BIGNUM_NEGATIVE_P, BIGNUM_SET_POSITIVE_SIGN, and rb_big_clone().
Definition at line 6790 of file bignum.c.
References BDIGIT, bdigit_roomof, BIGNUM_NEGATIVE_P, CHAR_BIT, LONG2FIX, rb_absint_singlebit_p(), rb_absint_size(), SIZE_MAX, and SIZET2NUM.
Definition at line 5564 of file bignum.c.
References BDIGIT, BDIGITS, BIGNUM_LEN, BIGNUM_POSITIVE_P, INT2FIX, and rb_big_clone().
Definition at line 2714 of file bignum.c.
References BARY_TRUNC, BDIGIT, BDIGITS, BIGDIVREM_EXTRA_WORDS, bignew, BIGNUM_LEN, BIGNUM_SIGN, LONG2FIX, rb_assoc_new(), rb_num_zerodiv(), big_div_struct::yds, and big_div_struct::yn.
Definition at line 6209 of file bignum.c.
Referenced by rb_big_fdiv().
Definition at line 1689 of file bignum.c.
References bignew, BIGNUM_LEN, and BIGNUM_SIGN.
Definition at line 1870 of file bignum.c.
References bignew, BIGNUM_LEN, BIGNUM_SIGN, KARATSUBA_BALANCED, rb_eArgError, and rb_raise().
Definition at line 1561 of file bignum.c.
References bignew, BIGNUM_LEN, and BIGNUM_SIGN.
Definition at line 2267 of file bignum.c.
References bignew, BIGNUM_LEN, BIGNUM_SIGN, rb_eArgError, rb_raise(), and TOOM3_BALANCED.
Definition at line 6831 of file bignum.c.
References BDIGITS, BIGNUM_LEN, Qfalse, and Qtrue.
Referenced by rb_int_odd_p().
Definition at line 6119 of file bignum.c.
References FIX2LONG, FIXNUM_P, RB_BIGNUM_TYPE_P, rb_int2big(), rb_intern, and rb_num_coerce_bin().
| size_t rb_big_size | ( | VALUE | ) |
Definition at line 6784 of file bignum.c.
References rb_big_size(), and SIZET2NUM.
Definition at line 1630 of file bignum.c.
References bignew, and BIGNUM_LEN.
Definition at line 5554 of file bignum.c.
References BIGNUM_NEGATE, and rb_big_clone().
Definition at line 1360 of file proc.c.
References PRIsVALUE, rb_obj_class(), rb_sprintf(), and str.
| void rb_call_end_proc | ( | VALUE | data | ) |
Definition at line 11 of file eval_jump.c.
References rb_ary_new(), and rb_proc_call().
| void rb_call_inits | ( | void | ) |
Definition at line 1528 of file vm_eval.c.
References argc, iter_method_arg::argc, argv, iter_method_arg::argv, iter_method_arg::kw_splat, iter_method_arg::mid, iter_method_arg::obj, and rb_iterate().
Definition at line 533 of file vm_eval.c.
Referenced by rb_get_path_check_to_string().
| VALUE rb_check_funcall_with_hook | ( | VALUE | recv, |
| ID | mid, | ||
| int | argc, | ||
| const VALUE * | argv, | ||
| rb_check_funcall_hook * | hook, | ||
| VALUE | arg | ||
| ) |
Definition at line 565 of file vm_eval.c.
References argc, argv, rescue_funcall_args::mid, rb_check_funcall_with_hook_kw(), RB_NO_KEYWORDS, and rescue_funcall_args::recv.
| VALUE rb_check_funcall_with_hook_kw | ( | VALUE | recv, |
| ID | mid, | ||
| int | argc, | ||
| const VALUE * | argv, | ||
| rb_check_funcall_hook * | hook, | ||
| VALUE | arg, | ||
| int | kw_splat | ||
| ) |
Definition at line 539 of file vm_eval.c.
References CLASS_OF, rescue_funcall_args::ec, GET_EC, rescue_funcall_args::me, rescue_funcall_args::recv, and rescue_funcall_args::respond.
Referenced by rb_check_funcall_with_hook().
Definition at line 915 of file array.c.
References rb_check_convert_type_with_id(), and T_ARRAY.
Referenced by rb_Array().
Definition at line 3327 of file variable.c.
References RCLASS_IV_TBL.
Referenced by rb_singleton_class_attached().
Definition at line 1694 of file variable.c.
References name, rb_funcallv(), and rb_vm_inc_const_missing_count().
Definition at line 6941 of file gc.c.
References rb_objspace.
Definition at line 2541 of file rational.c.
| VALUE rb_current_realfilepath | ( | void | ) |
Definition at line 2462 of file vm_eval.c.
References rb_execution_context_struct::cfp, and GET_EC.
Referenced by rb_f_require_relative().
| VALUE rb_dbl_complex_new_polar_pi | ( | double | abs, |
| double | ang | ||
| ) |
Definition at line 667 of file complex.c.
References DBL2NUM, M_PI, rb_complex_new(), and RFLOAT_0.
Referenced by rb_big_pow(), and rb_float_pow().
| long rb_dbl_long_hash | ( | double | d | ) |
Definition at line 160 of file hash.c.
References rb_memhash().
| VALUE rb_default_coverage | ( | int | ) |
Definition at line 5519 of file thread.c.
References COVERAGE_INDEX_BRANCHES, COVERAGE_INDEX_LINES, COVERAGE_TARGET_BRANCHES, COVERAGE_TARGET_LINES, GET_VM, Qfalse, RARRAY_ASET, rb_ary_tmp_new(), and rb_ary_tmp_new_fill().
Referenced by rb_iseq_new_top().
Definition at line 2958 of file variable.c.
References id, len, mod, name, NULL, rb_check_id_cstr(), rb_class_modify_check(), and strlen().
Referenced by Init_Bignum().
| VALUE rb_dir_getwd_ospath | ( | void | ) |
Definition at line 1117 of file dir.c.
References DATA_PTR, Data_Wrap_Struct, NULL, Qnil, rb_str_new2, RUBY_DEFAULT_FREE, ruby_getcwd(), strlen(), and xfree.
Referenced by rb_dir_getwd().
| int rb_dvar_defined | ( | ID | , |
| const struct rb_iseq_struct * | |||
| ) |
Definition at line 382 of file encoding.c.
References name, and rb_enc_registered().
| int rb_enc_set_dummy | ( | int | index | ) |
Definition at line 393 of file encoding.c.
References rb_encoding_entry::enc.
Definition at line 565 of file encoding.c.
| void rb_encdb_declare | ( | const char * | name | ) |
Definition at line 350 of file encoding.c.
| int rb_encdb_dummy | ( | const char * | name | ) |
Definition at line 472 of file encoding.c.
Definition at line 450 of file encoding.c.
References name, and rb_enc_registered().
| void rb_encdb_set_unicode | ( | int | index | ) |
Definition at line 576 of file encoding.c.
References ONIGENC_FLAG_UNICODE, and rb_enc_from_index().
Definition at line 1783 of file vm_insnhelper.c.
References rb_call_data::ci, idEqlP, and rb_call_info::mid.
Definition at line 1775 of file vm_insnhelper.c.
References rb_call_data::ci, idEq, and rb_call_info::mid.
| int rb_exec_async_signal_safe | ( | const struct rb_execarg * | e, |
| char * | errmsg, | ||
| size_t | errmsg_buflen | ||
| ) |
Definition at line 2013 of file process.c.
References id, key, rb_execarg::new_pgroup_flag, rb_execarg::new_pgroup_given, NUM2PIDT, rb_execarg::pgroup_given, rb_execarg::pgroup_pgid, Qtrue, rb_check_id(), rb_eArgError, rb_execarg_get(), RB_GC_GUARD, rb_raise(), RTEST, ST_CONTINUE, ST_STOP, T_SYMBOL, TO_BOOL, and TYPE.
Definition at line 2279 of file process.c.
References Qnil, rb_hash_stlike_foreach(), and RHASH_EMPTY_P.
| struct rb_execarg* rb_execarg_get | ( | VALUE | execarg_obj | ) |
Definition at line 2608 of file process.c.
References TypedData_Get_Struct.
Referenced by rb_execarg_addopt(), rb_execarg_setenv(), and rb_f_exec().
Definition at line 2633 of file process.c.
References TypedData_Make_Struct.
Referenced by rb_f_exec().
| void rb_execarg_parent_start | ( | VALUE | execarg_obj | ) |
Definition at line 2816 of file process.c.
References rb_protect().
| int rb_execarg_run_options | ( | const struct rb_execarg * | e, |
| struct rb_execarg * | s, | ||
| char * | errmsg, | ||
| size_t | errmsg_buflen | ||
| ) |
Definition at line 3392 of file process.c.
References MEMZERO, rb_execarg::pgroup_given, Qfalse, Qnil, rb_execarg::redirect_fds, rb_execarg::rlimit_limits, rb_execarg::unsetenv_others_do, and rb_execarg::unsetenv_others_given.
Definition at line 2646 of file process.c.
References env, NIL_P, and rb_execarg_get().
| void rb_fiber_init_mjit_cont | ( | struct rb_fiber_struct * | fiber | ) |
| void rb_fiber_reset_root_local_storage | ( | struct rb_thread_struct * | ) |
Definition at line 2135 of file cont.c.
References rb_fiber_struct::cont, rb_thread_struct::ec, rb_execution_context_struct::fiber_ptr, rb_execution_context_struct::local_storage, rb_thread_struct::root_fiber, and rb_context_struct::saved_ec.
Referenced by ruby_vm_destruct().
Definition at line 6083 of file file.c.
References rb_define_const().
Definition at line 4025 of file file.c.
References expand_path, and EXPAND_PATH_BUFFER.
Referenced by rb_feature_provided().
| int rb_file_load_ok | ( | const char * | ) |
Definition at line 6222 of file file.c.
References free(), INVALID_FILE_ATTRIBUTES, len, mbstr_to_wstr, NULL, O_NONBLOCK, rb_cloexec_open(), rb_update_max_fd(), and ruby_is_fd_loadable().
Definition at line 4642 of file numeric.c.
References BIGNUM_SIGN, CHAR_BIT, FIX2LONG, FIXNUM_P, INT2FIX, L, rb_big_norm(), and rb_to_int().
Definition at line 1110 of file numeric.c.
References RFLOAT_VALUE.
Definition at line 1698 of file numeric.c.
References DBL2NUM, and RFLOAT_VALUE.
Definition at line 2104 of file rational.c.
References INT2FIX, isinf(), isnan, and RFLOAT_VALUE.
Definition at line 1126 of file numeric.c.
References FIX2LONG, rb_big2dbl(), rb_num_coerce_bin(), RB_TYPE_P, RFLOAT_VALUE, T_BIGNUM, T_FIXNUM, and T_FLOAT.
Referenced by fun2().
Definition at line 1383 of file numeric.c.
References isnan, Qfalse, rb_integer_float_eq(), RB_TYPE_P, RFLOAT_VALUE, T_BIGNUM, T_FIXNUM, and T_FLOAT.
Definition at line 1503 of file numeric.c.
References FIX2LONG, FIXNUM_P, isnan, Qfalse, Qtrue, rb_integer_float_cmp(), rb_num_coerce_relop(), RB_TYPE_P, RFLOAT_VALUE, T_BIGNUM, T_FIXNUM, and T_FLOAT.
Definition at line 1072 of file numeric.c.
References DBL2NUM, FIX2LONG, rb_big2dbl(), rb_num_coerce_bin(), RB_TYPE_P, RFLOAT_VALUE, T_BIGNUM, T_FIXNUM, and T_FLOAT.
Definition at line 2081 of file rational.c.
References isinf(), isnan, and RFLOAT_VALUE.
Definition at line 1024 of file numeric.c.
References DBL2NUM, FIX2LONG, rb_big2dbl(), rb_num_coerce_bin(), RB_TYPE_P, RFLOAT_VALUE, T_BIGNUM, T_FIXNUM, and T_FLOAT.
Definition at line 1298 of file numeric.c.
References DBL2NUM, FIX2LONG, idPow, rb_big2dbl(), rb_dbl_complex_new_polar_pi(), rb_num_coerce_bin(), RB_TYPE_P, RFLOAT_VALUE, round(), T_BIGNUM, T_FIXNUM, and T_FLOAT.
Referenced by rb_num_pow().
Definition at line 1011 of file numeric.c.
References DBL2NUM, and RFLOAT_VALUE.
| rb_pid_t rb_fork_async_signal_safe | ( | int * | status, |
| int(*)(void *, char *, size_t) | chfunc, | ||
| void * | charg, | ||
| VALUE | fds, | ||
| char * | errmsg, | ||
| size_t | errmsg_buflen | ||
| ) |
| rb_pid_t rb_fork_ruby | ( | int * | status | ) |
Definition at line 312 of file string.c.
References assert, BARE_STRING_P, Check_Type, FL_TEST, FL_TEST_RAW, OBJ_FREEZE_RAW, OBJ_FROZEN, rb_str_resize(), RSTRING_FSTR, RSTRING_LEN, str, STR_EMBED_P, STR_NOEMBED, STR_SHARED, STR_SHARED_ROOT, and T_STRING.
Referenced by rb_hash_key_str(), rb_iseq_pathobj_new(), rb_node_case_when_optimizable_literal(), and rb_parser_lex_state_name().
Definition at line 410 of file string.c.
References ptr, rb_fstring_new(), and strlen().
Referenced by rb_autoload(), rb_insns_name_array(), and ruby_set_inplace_mode().
Definition at line 396 of file string.c.
Referenced by rb_fstring_cstr().
| VALUE rb_func_lambda_new | ( | rb_block_call_func_t | func, |
| VALUE | val, | ||
| int | min_argc, | ||
| int | max_argc | ||
| ) |
Definition at line 735 of file proc.c.
References vm_ifunc::func, and rb_vm_ifunc_new().
| VALUE rb_func_proc_new | ( | rb_block_call_func_t | func, |
| VALUE | val | ||
| ) |
| int rb_gc_for_fd | ( | int | err | ) |
| void rb_gc_free_dsymbol | ( | VALUE | ) |
| void rb_gc_mark_global_tbl | ( | void | ) |
Definition at line 434 of file variable.c.
Definition at line 4742 of file gc.c.
References rb_objspace.
Referenced by rb_execution_context_mark().
| void rb_gc_writebarrier_remember | ( | VALUE | obj | ) |
Definition at line 6878 of file gc.c.
References gc_report, and rb_objspace.
Definition at line 1894 of file rational.c.
Referenced by rb_int_fdiv_double().
Definition at line 344 of file rational.c.
| size_t rb_generic_ivar_memsize | ( | VALUE | ) |
Definition at line 1010 of file variable.c.
| int rb_get_coverage_mode | ( | void | ) |
| VALUE rb_get_coverages | ( | void | ) |
Definition at line 5477 of file thread.c.
Referenced by rb_iseq_new_top().
| VALUE rb_get_expanded_load_path | ( | void | ) |
Definition at line 92 of file load.c.
References GET_VM, rb_vm_struct::load_path, rb_vm_struct::load_path_snapshot, Qtrue, and rb_ary_shared_with_p().
Definition at line 211 of file file.c.
Referenced by rb_get_path().
Definition at line 196 of file file.c.
References CONST_ID, rb_check_funcall_default(), RB_TYPE_P, StringValue, and T_STRING.
Referenced by rb_get_path().
| struct rb_global_entry* rb_global_entry | ( | ID | ) |
Definition at line 326 of file variable.c.
Referenced by rb_alias_variable(), rb_f_trace_var(), rb_gv_set(), rb_gvar_undef_setter(), and rb_gvar_val_setter().
| int rb_grantpt | ( | int | fd | ) |
Definition at line 1597 of file signal.c.
References errno, GET_VM, grantpt, rb_nativethread_lock_lock(), rb_nativethread_lock_unlock(), RUBY_SIGCHLD, and rb_vm_struct::waitpid_lock.
| VALUE rb_gvar_defined | ( | struct rb_global_entry * | ) |
Definition at line 695 of file variable.c.
References rb_global_variable::getter, Qfalse, Qtrue, rb_gvar_undef_getter(), and rb_global_entry::var.
| VALUE rb_gvar_get | ( | struct rb_global_entry * | ) |
Definition at line 619 of file variable.c.
References rb_global_variable::data, rb_global_variable::getter, rb_global_entry::id, and rb_global_entry::var.
| rb_gvar_getter_t* rb_gvar_getter_function_of | ( | const struct rb_global_entry * | ) |
Definition at line 702 of file variable.c.
References rb_global_variable::getter, and rb_global_entry::var.
| bool rb_gvar_is_traced | ( | const struct rb_global_entry * | ) |
Definition at line 714 of file variable.c.
References rb_global_variable::trace, and rb_global_entry::var.
Definition at line 412 of file variable.c.
References PRIsVALUE, QUOTE_ID, and rb_name_error().
Referenced by rb_define_readonly_variable(), and rb_define_virtual_variable().
| VALUE rb_gvar_set | ( | struct rb_global_entry * | , |
| VALUE | |||
| ) |
Definition at line 654 of file variable.c.
References rb_global_variable::block_trace, rb_global_variable::data, rb_global_entry::id, rb_ensure(), rb_global_variable::setter, rb_global_variable::trace, trace_data::trace, and rb_global_entry::var.
| rb_gvar_setter_t* rb_gvar_setter_function_of | ( | const struct rb_global_entry * | ) |
Definition at line 708 of file variable.c.
References rb_global_variable::setter, and rb_global_entry::var.
Definition at line 2802 of file hash.c.
References FL_EXIVAR, key, rb_cString, RB_FL_ANY_RAW, rb_fstring(), rb_str_new_frozen(), and RBASIC_CLASS.
| VALUE rb_hash_new_with_size | ( | st_index_t | size | ) |
Definition at line 1529 of file hash.c.
References rb_hash_new(), RHASH_AR_TABLE_MAX_SIZE, and size.
| st_index_t rb_hash_proc | ( | st_index_t | hash, |
| VALUE | proc | ||
| ) |
| RUBY_SYMBOL_EXPORT_BEGIN int rb_hash_stlike_foreach | ( | VALUE | hash, |
| st_foreach_callback_func * | func, | ||
| st_data_t | arg | ||
| ) |
Definition at line 1442 of file hash.c.
Referenced by rb_execarg_extract_options().
| RUBY_SYMBOL_EXPORT_END int rb_hash_stlike_foreach_with_replace | ( | VALUE | hash, |
| st_foreach_check_callback_func * | func, | ||
| st_update_callback_func * | replace, | ||
| st_data_t | arg | ||
| ) |
| int rb_hash_stlike_update | ( | VALUE | hash, |
| st_data_t | key, | ||
| st_update_callback_func | func, | ||
| st_data_t | arg | ||
| ) |
| ID rb_id_encoding | ( | void | ) |
Definition at line 759 of file encoding.c.
References CONST_ID.
Definition at line 10735 of file string.c.
References rb_id2str, rb_str_inspect(), rb_str_symname_p(), and str.
| VALUE rb_ident_hash_new | ( | void | ) |
Definition at line 4278 of file hash.c.
Referenced by Init_sym(), rb_ast_add_mark_object(), and rb_uninterruptible().
Definition at line 2308 of file gc.c.
References FL_USHIFT, RVALUE::flags, and T_IMEMO.
| rb_imemo_tmpbuf_t* rb_imemo_tmpbuf_parser_heap | ( | void * | buf, |
| rb_imemo_tmpbuf_t * | old_heap, | ||
| size_t | cnt | ||
| ) |
| st_table* rb_init_identtable | ( | void | ) |
Definition at line 4286 of file hash.c.
References identhash, and st_init_table().
| const char* rb_insns_name | ( | int | i | ) |
Definition at line 8762 of file compile.c.
Referenced by MAYBE_UNUSED().
| VALUE rb_insns_name_array | ( | void | ) |
Definition at line 8768 of file compile.c.
References rb_ary_new_capa(), rb_ary_push(), rb_fstring_cstr(), and rb_obj_freeze().
Definition at line 3562 of file numeric.c.
References FIXNUM_P, rb_any_to_s(), rb_big2str(), rb_fix2str(), RB_TYPE_P, and T_BIGNUM.
Definition at line 3728 of file numeric.c.
References FIXNUM_P, FIXNUM_ZERO_P, rb_gcd(), rb_int_idiv(), and RB_INTEGER_TYPE_P.
Referenced by rb_int_fdiv().
| int rb_int_negative_p | ( | VALUE | num | ) |
Definition at line 307 of file numeric.c.
Referenced by rb_int_powm().
Definition at line 3222 of file numeric.c.
References FIXNUM_P, INT2FIX, Qfalse, Qtrue, rb_big_odd_p(), rb_funcall(), RB_TYPE_P, and T_BIGNUM.
| VALUE rb_int_parse_cstr | ( | const char * | str, |
| ssize_t | len, | ||
| char ** | endp, | ||
| size_t * | ndigits, | ||
| int | base, | ||
| int | flags | ||
| ) |
Definition at line 4041 of file bignum.c.
References ADV, ASSERT_LEN, bad, ISSPACE, len, Qnil, RB_INT_PARSE_PREFIX, RB_INT_PARSE_SIGN, and str.
Definition at line 4106 of file numeric.c.
References FIXNUM_P.
Referenced by rb_int_powm(), and rb_num_pow().
Definition at line 7112 of file bignum.c.
References argc, argv, FIX2LONG, FIXNUM_P, HALF_LONG_MSB, rb_check_arity, rb_eRangeError, rb_eTypeError, rb_int_negative_p(), rb_int_pow(), rb_int_uminus(), RB_INTEGER_TYPE_P, rb_num_zerodiv(), and rb_raise().
Definition at line 5325 of file bignum.c.
References FIX2LONG, FIXNUM_MAX, FIXNUM_MIN, FIXNUM_P, INT2FIX, isinf(), isnan, Qnil, rb_big_cmp(), rb_dbl2big(), and RFLOAT_VALUE.
Referenced by rb_float_gt().
Definition at line 47 of file compar.c.
References rb_exec_recursive().
Definition at line 1864 of file io.c.
References rb_funcall(), RB_TYPE_P, and T_FILE.
Referenced by rb_io_flush().
| void rb_io_fptr_finalize_internal | ( | void * | ptr | ) |
Definition at line 4730 of file io.c.
References rb_io_t::fd, finish_writeconv_arg::fptr, rb_io_t::pathv, ptr, and Qnil.
Referenced by rb_io_fptr_finalize().
Definition at line 3343 of file variable.c.
References RCLASS_IV_TBL, st_copy(), and st_foreach().
Definition at line 1035 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, len, ptr, Qundef, RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, SPECIAL_CONST_P, st_data_t, st_lookup(), T_CLASS, T_MODULE, and T_OBJECT.
Referenced by rb_attr_get(), and rb_ivar_get().
| VALUE rb_lambda_call | ( | VALUE | obj, |
| ID | mid, | ||
| int | argc, | ||
| const VALUE * | argv, | ||
| rb_block_call_func_t | bl_proc, | ||
| int | min_argc, | ||
| int | max_argc, | ||
| VALUE | data2 | ||
| ) |
Definition at line 1501 of file vm_eval.c.
References argc, iter_method_arg::argc, argv, iter_method_arg::argv, iter_method_arg::kw_splat, iter_method_arg::mid, iter_method_arg::obj, rb_eArgError, rb_raise(), and rb_vm_ifunc_new().
| void rb_last_status_clear | ( | void | ) |
Definition at line 554 of file process.c.
References GET_THREAD, and Qnil.
Definition at line 1913 of file rational.c.
| int rb_local_defined | ( | ID | , |
| const struct rb_iseq_struct * | |||
| ) |
| VALUE rb_make_backtrace | ( | void | ) |
Definition at line 872 of file vm_backtrace.c.
References GET_EC, and rb_ec_backtrace_str_ary().
| void rb_mark_end_proc | ( | void | ) |
Definition at line 78 of file eval_jump.c.
References link().
| void rb_mark_generic_ivar | ( | VALUE | ) |
Definition at line 973 of file variable.c.
Referenced by rb_complex_arg().
| void rb_maygvl_fd_fix_cloexec | ( | int | fd | ) |
Definition at line 245 of file io.c.
References errno, F_GETFD, F_SETFD, fcntl(), FD_CLOEXEC, rb_bug(), and strerror().
Referenced by rb_cloexec_dup2(), rb_cloexec_fcntl_dupfd(), rb_cloexec_open(), rb_cloexec_pipe(), and rb_fd_fix_cloexec().
| void rb_mutex_allow_trap | ( | VALUE | self, |
| int | val | ||
| ) |
Definition at line 545 of file thread_sync.c.
References Check_TypedStruct.
Definition at line 345 of file thread_sync.c.
References GET_THREAD, and sync_waiter::th.
Definition at line 983 of file variable.c.
References key, st_data_t, and st_delete().
| rb_serial_t rb_next_class_serial | ( | void | ) |
Definition at line 358 of file vm.c.
References NEXT_CLASS_SERIAL.
| enum ruby_num_rounding_mode rb_num_get_rounding_option | ( | VALUE | opts | ) |
Definition at line 4118 of file numeric.c.
References BUILTIN_TYPE, NIL_P, Qnil, rb_complex_pow(), rb_float_pow(), RB_FLOAT_TYPE_P, rb_int_pow(), rb_rational_pow(), SPECIAL_CONST_P, T_COMPLEX, and T_RATIONAL.
| int rb_num_to_uint | ( | VALUE | val, |
| unsigned int * | ret | ||
| ) |
Definition at line 244 of file numeric.c.
References BIGNUM_NEGATIVE_P, FIX2LONG, FIXNUM_P, NULL, NUMERR_NEGATIVE, NUMERR_TOOLARGE, NUMERR_TYPE, rb_absint_size(), rb_big2ulong(), RB_TYPE_P, and T_BIGNUM.
Referenced by rb_str_concat().
Definition at line 2014 of file rational.c.
References canonicalization, rb_complex_div(), rb_convert_type(), RB_FLOAT_TYPE_P, rb_funcallv(), rb_rational_raw1, RB_TYPE_P, T_COMPLEX, and T_RATIONAL.
Referenced by fun2().
Definition at line 1452 of file string.c.
References rb_any_to_s(), RB_TYPE_P, str, and T_STRING.
Referenced by rb_obj_as_string().
| void rb_obj_info_dump | ( | VALUE | obj | ) |
Definition at line 11689 of file gc.c.
References rb_raw_obj_info().
Definition at line 11696 of file gc.c.
References rb_raw_obj_info().
Definition at line 1041 of file cont.c.
References rb_typeddata_is_kind_of().
Definition at line 131 of file thread_sync.c.
References rb_typeddata_is_kind_of().
Definition at line 2655 of file vm.c.
References Qfalse, Qtrue, rb_typeddata_is_kind_of(), and thread_data_type.
| RUBY_SYMBOL_EXPORT_BEGIN const char* rb_objspace_data_type_name | ( | VALUE | obj | ) |
Definition at line 2432 of file gc.c.
References RTYPEDDATA_P, and RTYPEDDATA_TYPE.
| VALUE rb_objspace_gc_disable | ( | struct rb_objspace * | ) |
Definition at line 9256 of file gc.c.
Referenced by rb_gc_disable().
| VALUE rb_objspace_gc_enable | ( | struct rb_objspace * | ) |
Definition at line 9219 of file gc.c.
References dont_gc, FALSE, Qfalse, and Qtrue.
Referenced by Init_vm_objects(), and rb_gc_enable().
| void rb_objspace_set_event_hook | ( | const rb_event_flag_t | event | ) |
Definition at line 2082 of file gc.c.
References rb_objspace::flags, rb_objspace::has_hook, rb_objspace::hook_events, rb_objspace, and RUBY_INTERNAL_EVENT_OBJSPACE_MASK.
| RUBY_SYMBOL_EXPORT_END void* rb_parser_load_file | ( | VALUE | parser, |
| VALUE | name | ||
| ) |
Definition at line 2205 of file ruby.c.
References f, and load_file_arg::opt.
Referenced by rb_load_file_str().
| RUBY_SYMBOL_EXPORT_BEGIN VALUE rb_parser_set_context | ( | VALUE | , |
| const struct rb_iseq_struct * | , | ||
| int | |||
| ) |
Definition at line 19216 of file ripper.c.
References TypedData_Get_Struct.
| void rb_print_backtrace | ( | void | ) |
Definition at line 750 of file vm_dump.c.
References free().
Referenced by rb_fatal(), and rb_vm_bugreport().
Definition at line 1255 of file rational.c.
References get_dat1, INT_NEGATIVE_P, and rb_int_abs().
Definition at line 2034 of file rational.c.
References get_dat1, RB_TYPE_P, and T_RATIONAL.
Definition at line 1097 of file rational.c.
References get_dat1, LONG2FIX, rb_int_cmp(), and RB_INTEGER_TYPE_P.
Definition at line 874 of file rational.c.
References get_dat1, and RB_INTEGER_TYPE_P.
Definition at line 737 of file rational.c.
References get_dat1, and RB_INTEGER_TYPE_P.
Definition at line 1002 of file rational.c.
Referenced by rb_num_pow().
Definition at line 1875 of file rational.c.
References get_dat1.
Definition at line 624 of file rational.c.
References assert, get_dat1, RB_TYPE_P, and T_RATIONAL.
Definition at line 4409 of file file.c.
References RB_REALPATH_DIR, and RB_REALPATH_STRICT.
Definition at line 1481 of file eval.c.
References CONST_ID, and rb_attr_get().
Definition at line 2707 of file re.c.
References buf, err, rb_enc_get(), RSTRING_LEN, RSTRING_PTR, str, and StringValue.
Definition at line 2927 of file re.c.
References rb_reg_new_str().
Definition at line 1530 of file re.c.
Referenced by rb_reg_search().
Definition at line 175 of file variable.c.
Referenced by rb_vm_bugreport().
| size_t rb_size_mul_add_or_raise | ( | size_t | , |
| size_t | , | ||
| size_t | , | ||
| VALUE | |||
| ) |
| VALUE rb_source_location | ( | int * | pline | ) |
Definition at line 1360 of file vm.c.
References rb_execution_context_struct::cfp, GET_EC, and rb_vm_get_ruby_level_next_cfp().
Referenced by rb_source_location_cstr().
| const char* rb_source_location_cstr | ( | int * | pline | ) |
Definition at line 1376 of file vm.c.
References NIL_P, NULL, rb_source_location(), and RSTRING_PTR.
Referenced by rb_bug(), rb_bug_for_fatal_signal(), and rb_set_safe_level().
| int rb_stderr_tty_p | ( | void | ) |
Definition at line 7958 of file io.c.
Referenced by rb_error_write().
| int rb_str_buf_cat_escaped_char | ( | VALUE | result, |
| unsigned int | c, | ||
| int | unicode_p | ||
| ) |
Definition at line 2230 of file string.c.
References RString::capa.
Definition at line 8921 of file string.c.
References len, RSTRING_LEN, and str.
Definition at line 4246 of file bignum.c.
References len, rb_must_asciicompat(), RSTRING_GETMEM, str, and StringValue.
Referenced by rb_str_to_inum().
Definition at line 2306 of file string.c.
References len, RSTRING_LEN, RSTRING_PTR, and str.
Definition at line 2685 of file string.c.
References rb_ensure(), rb_str_locktmp(), rb_str_unlocktmp(), and str.
| size_t rb_str_memsize | ( | VALUE | ) |
Definition at line 1371 of file string.c.
References FL_TEST, str, STR_HEAP_SIZE, STR_NOEMBED, STR_NOFREE, and STR_SHARED.
Definition at line 1925 of file string.c.
References assert, LONG_MAX, MAYBE_UNUSED, Qundef, rb_cString, rb_enc_get_index(), rb_str_plus(), RBASIC_CLASS, and RSTRING_GETMEM.
Definition at line 10714 of file string.c.
References Check_Type, len, NULL, ptr, rb_default_external_encoding(), rb_default_internal_encoding(), RSTRING_LEN, RSTRING_PTR, str, STR_ENC_GET, and T_STRING.
| int rb_str_symname_p | ( | VALUE | ) |
Definition at line 10695 of file string.c.
References len, NULL, ptr, rb_default_external_encoding(), rb_default_internal_encoding(), RSTRING_LEN, RSTRING_PTR, STR_ENC_GET, and sym.
Referenced by rb_id_quote_unprintable().
Definition at line 1210 of file string.c.
References OBJ_FROZEN_RAW.
Definition at line 1217 of file string.c.
References RString::as, assert, FL_TEST_RAW, FL_UNSET_RAW, OBJ_FROZEN_RAW, rb_gc_force_recycle(), RBASIC, RBASIC_CLASS, RSTRING, RUBY_FL_FREEZE, RString::shared, STR_BORROWED, STR_EMBED_P, STR_NOFREE, STR_SHARED, and STR_TMPLOCK.
| void rb_strterm_mark | ( | VALUE | obj | ) |
Definition at line 765 of file ripper.c.
References rb_strterm_struct::heredoc, rb_strterm_heredoc_struct::lastline, rb_gc_mark(), RBASIC, STRTERM_HEREDOC, and rb_strterm_struct::u.
Definition at line 974 of file struct.c.
References len, OBJ_INIT_COPY, rb_eTypeError, rb_raise(), RSTRUCT_GET, RSTRUCT_LEN, and RSTRUCT_SET.
Definition at line 415 of file vm_trace.c.
Definition at line 1032 of file symbol.c.
References len, ptr, rb_sym_intern(), and rb_usascii_encoding().
Referenced by rb_sym_intern_ascii_cstr().
Definition at line 1038 of file symbol.c.
References ptr, rb_sym_intern_ascii(), and strlen().
Referenced by rb_catch(), and rb_throw().
Definition at line 10816 of file string.c.
References argc, argv, rb_eArgError, rb_funcall_with_block_kw(), and rb_raise().
Definition at line 1312 of file proc.c.
References id, Qfalse, Qnil, RARRAY_AREF, rb_ary_store(), rb_ary_tmp_new(), rb_gc_register_mark_object(), sym, and SYM2ID.
| void rb_thread_execute_interrupts | ( | VALUE | th | ) |
Definition at line 2284 of file thread.c.
References rb_threadptr_execute_interrupts().
| VALUE rb_thread_io_blocking_region | ( | rb_blocking_function_t * | func, |
| void * | data1, | ||
| int | fd | ||
| ) |
Definition at line 1595 of file thread.c.
References waiting_fd::fd, GET_EC, Qundef, and waiting_fd::th.
Definition at line 4806 of file thread.c.
References GetThreadShieldPtr, and Qfalse.
Definition at line 902 of file array.c.
References rb_convert_type_with_id(), and T_ARRAY.
Definition at line 1044 of file symbol.c.
References rb_convert_type_with_id(), and T_SYMBOL.
| const char* rb_type_str | ( | enum ruby_value_type | type | ) |
Definition at line 572 of file vm_eval.c.
References NULL, T_ARRAY, T_BIGNUM, T_CLASS, T_COMPLEX, T_DATA, T_FALSE, T_FILE, T_FIXNUM, T_FLOAT, T_HASH, T_ICLASS, T_IMEMO, T_MASK, T_MATCH, T_MODULE, T_MOVED, T_NIL, T_NODE, T_NONE, T_OBJECT, T_RATIONAL, T_REGEXP, T_STRING, T_STRUCT, T_SYMBOL, T_TRUE, T_UNDEF, T_ZOMBIE, and type_case.
Referenced by rb_insn_operand_intern().
Definition at line 5554 of file thread.c.
References GET_THREAD, rb_cObject, rb_hash_aset(), and rb_ident_hash_new().
Definition at line 2312 of file vm.c.
References rb_vm_struct::defined_module_hash, GET_VM, st_data_t, st_insert(), and TRUE.
Referenced by rb_define_class(), rb_define_class_id_under(), and rb_define_module().
| const void** rb_vm_get_insns_address_table | ( | void | ) |
Definition at line 126 of file vm_exec.c.
Referenced by rb_vm_encoded_insn_data_table_init().
| struct vm_ifunc* rb_vm_ifunc_new | ( | rb_block_call_func_t | func, |
| const void * | data, | ||
| int | min_argc, | ||
| int | max_argc | ||
| ) |
Definition at line 699 of file proc.c.
References vm_ifunc::argc, CHAR_BIT, IFUNC_NEW, rb_eRangeError, rb_raise(), SIZEOF_VALUE, and UNLIMITED_ARGUMENTS.
Referenced by rb_func_lambda_new(), and rb_lambda_call().
| void rb_vm_inc_const_missing_count | ( | void | ) |
Definition at line 386 of file vm.c.
Referenced by rb_const_missing().
| int rb_vm_insn_addr2insn | ( | const void * | ) |
Definition at line 3115 of file iseq.c.
References key, st_data_t, and st_lookup().
| void rb_vm_mark | ( | void * | ptr | ) |
Definition at line 2243 of file vm.c.
References rb_vm_struct::cmd, rb_vm_struct::coverages, rb_vm_struct::defined_module_hash, rb_vm_struct::expanded_load_path, rb_vm_struct::global_hooks, len, rb_vm_struct::living_threads, rb_vm_struct::load_path, rb_vm_struct::load_path_check_cache, rb_vm_struct::load_path_snapshot, rb_vm_struct::loaded_features, rb_vm_struct::loaded_features_snapshot, rb_vm_struct::loading_table, rb_vm_struct::mark_object_ary, rb_vm_struct::orig_progname, ptr, RARRAY_CONST_PTR, RARRAY_LEN, rb_gc_mark(), rb_gc_mark_values(), rb_hook_list_mark(), rb_mark_tbl(), RUBY_GC_INFO, RUBY_MARK_ENTER, RUBY_MARK_UNLESS_NULL, RUBY_NSIG, rb_thread_struct::self, rb_vm_struct::thgroup_default, rb_vm_struct::top_self, and rb_vm_struct::trap_list.
| MJIT_STATIC void rb_vm_pop_cfunc_frame | ( | void | ) |
Definition at line 590 of file vm.c.
References rb_callable_method_entry_struct::called_id, rb_execution_context_struct::cfp, rb_callable_method_entry_struct::def, EXEC_EVENT_HOOK, GET_EC, rb_method_definition_struct::original_id, rb_callable_method_entry_struct::owner, Qnil, rb_vm_frame_method_entry(), RUBY_DTRACE_CMETHOD_RETURN_HOOK, RUBY_EVENT_C_RETURN, and rb_control_frame_struct::self.
Referenced by rb_mod_const_missing().
Definition at line 960 of file vm_backtrace.c.
Definition at line 966 of file vm_backtrace.c.
Definition at line 2281 of file gc.c.
References FL_WB_PROTECTED, RVALUE::flags, and GC_ASSERT.
Definition at line 2274 of file gc.c.
References FL_WB_PROTECTED, RVALUE::flags, and GC_ASSERT.
| void* rb_xcalloc_mul_add_mul | ( | size_t | , |
| size_t | , | ||
| size_t | , | ||
| size_t | |||
| ) |
| void* rb_xmalloc_mul_add_mul | ( | size_t | , |
| size_t | , | ||
| size_t | , | ||
| size_t | |||
| ) |
| void* rb_xrealloc_mul_add | ( | const void * | , |
| size_t | , | ||
| size_t | , | ||
| size_t | |||
| ) |
| char* ruby_dtoa | ( | double | d_, |
| int | mode, | ||
| int | ndigits, | ||
| int * | decpt, | ||
| int * | sign, | ||
| char ** | rve | ||
| ) |
| double ruby_float_mod | ( | double | x, |
| double | y | ||
| ) |
| double ruby_float_step_size | ( | double | beg, |
| double | end, | ||
| double | unit, | ||
| int | excl | ||
| ) |
Definition at line 2495 of file numeric.c.
References DBL_EPSILON, err, HUGE_VAL, and isinf().
Referenced by ruby_float_step().
| RUBY_FUNC_EXPORTED RUBY_FUNC_NONNULL | ( | 1 | , |
| bool | rb_method_basic_definition_p_with_ccstruct rb_call_data *, VALUE, ID | ||
| ) |
| RUBY_FUNC_EXPORTED RUBY_FUNC_NONNULL | ( | 1 | , |
| VALUE | rb_funcallv_with_ccstruct rb_call_data *, VALUE, ID, int, const VALUE * | ||
| ) |
| char* ruby_hdtoa | ( | double | d, |
| const char * | xdigs, | ||
| int | ndigits, | ||
| int * | decpt, | ||
| int * | sign, | ||
| char ** | rve | ||
| ) |
| void ruby_init_setproctitle | ( | int | argc, |
| char * | argv[] | ||
| ) |
| int ruby_is_fd_loadable | ( | int | fd | ) |
| void* ruby_mimmalloc | ( | size_t | size | ) |
Definition at line 10207 of file gc.c.
References malloc, NULL, size, and malloc_obj_info::size.
Referenced by Init_BareVM(), and rb_threadptr_root_fiber_setup().
| void ruby_register_rollback_func_for_ensure | ( | VALUE(*)(VALUE) | ensure_func, |
| VALUE(*)(VALUE) | rollback_func | ||
| ) |
| unsigned long ruby_scan_digits | ( | const char * | str, |
| ssize_t | len, | ||
| int | base, | ||
| size_t * | retlen, | ||
| int * | overflow | ||
| ) |
Definition at line 97 of file util.c.
References len, ruby_digit36_to_number_table, and str.
Referenced by ruby_strtoul().
| void ruby_set_inplace_mode | ( | const char * | ) |
| void void ruby_sized_xfree | ( | void * | x, |
| size_t | size | ||
| ) |
Definition at line 10162 of file gc.c.
Referenced by rb_str_free(), and ruby_xfree().
| RUBY_SYMBOL_EXPORT_BEGIN void* ruby_sized_xrealloc | ( | void * | ptr, |
| size_t | new_size, | ||
| size_t | old_size | ||
| ) |
Definition at line 10127 of file gc.c.
Referenced by ruby_xrealloc_body().
| void* ruby_sized_xrealloc2 | ( | void * | ptr, |
| size_t | new_count, | ||
| size_t | element_size, | ||
| size_t | old_count | ||
| ) |
| int ruby_thread_has_gvl_p | ( | void | ) |
Definition at line 1705 of file thread.c.
References rb_thread_struct::blocking_region_buffer.
| MJIT_STATIC VALUE ruby_vm_special_exception_copy | ( | VALUE | ) |
Definition at line 34 of file vm_insnhelper.c.
References rb_class_real(), rb_obj_alloc(), rb_obj_copy_ivar(), and RBASIC_CLASS.
| STATIC_ASSERT | ( | cachelined | , |
| sizeof(struct rb_call_cache)<= | CACHELINE | ||
| ) |
|
extern |
Definition at line 180 of file enumerator.c.
Referenced by rb_arithmetic_sequence_extract(), and rb_range_values().
|
extern |
Definition at line 25 of file transcode.c.
|
extern |
Definition at line 6 of file escape.c.
Referenced by ruby_scan_digits().
|
extern |
Definition at line 38 of file bignum.c.
Referenced by rb_fix2str().
|
extern |
Definition at line 1481 of file signal.c.
Referenced by ruby_env_debug_option().
|
extern |
Definition at line 59 of file loadpath.c.
Referenced by ruby_init_loadpath().
|
extern |
Definition at line 905 of file gc.c.
Referenced by ruby_env_debug_option().
|
extern |
Definition at line 62 of file loadpath.c.
Referenced by ruby_init_loadpath().
| ID ruby_static_id_status |
Definition at line 1588 of file internal.h.