Ruby
2.4.2p198(2017-09-14revision59899)
|
Go to the source code of this file.
Typedefs | |
typedef VALUE | rb_enumerator_size_func(VALUE, VALUE, VALUE) |
typedef fd_set | rb_fdset_t |
typedef VALUE(* | rb_alloc_func_t) (VALUE) |
typedef VALUE | rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value) |
typedef void | rb_unblock_function_t(void *) |
typedef VALUE | rb_blocking_function_t(void *) |
Variables | |
RUBY_EXTERN VALUE | rb_fs |
RUBY_EXTERN VALUE | rb_output_fs |
RUBY_EXTERN VALUE | rb_rs |
RUBY_EXTERN VALUE | rb_default_rs |
RUBY_EXTERN VALUE | rb_output_rs |
RUBY_EXTERN VALUE | rb_argv0 |
#define INTEGER_PACK_2COMP 0x80 |
Definition at line 143 of file intern.h.
Referenced by bary_pack(), bary_unpack(), bary_unpack_internal(), integer_unpack_single_bdigit(), pack_pack(), pack_unpack_internal(), rb_big_pack(), rb_big_unpack(), rb_integer_unpack(), and rb_str_format().
#define INTEGER_PACK_BIG_ENDIAN |
Definition at line 152 of file intern.h.
Referenced by big2str_base_poweroftwo(), integer_to_bnptr(), pack_pack(), pack_unpack_internal(), and rb_str_format().
#define INTEGER_PACK_FORCE_BIGNUM 0x100 |
Definition at line 146 of file intern.h.
Referenced by bary_unpack(), and rb_integer_unpack().
#define INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION 0x400 |
Definition at line 144 of file intern.h.
Referenced by bary_pack(), bary_unpack(), bary_unpack_internal(), and rb_integer_unpack().
#define INTEGER_PACK_LITTLE_ENDIAN |
Definition at line 149 of file intern.h.
Referenced by ibf_load_object_bignum(), pack_pack(), pack_unpack_internal(), and r_object0().
#define INTEGER_PACK_LSBYTE_FIRST 0x20 |
Definition at line 141 of file intern.h.
Referenced by bary_pack(), bary_unpack(), integer_pack_loop_setup(), rb_integer_unpack(), and validate_integer_pack_format().
#define INTEGER_PACK_LSWORD_FIRST 0x02 |
Definition at line 139 of file intern.h.
Referenced by bary_pack(), bary_unpack(), bary_unpack_internal(), big_shift2(), limited_big_rand(), make_seed_value(), mt_state(), rand_init(), random_load(), rb_big_bit_length(), rb_big_pack(), rb_big_unpack(), rb_integer_unpack(), and validate_integer_pack_format().
#define INTEGER_PACK_MSBYTE_FIRST 0x10 |
Definition at line 140 of file intern.h.
Referenced by bary_pack(), bary_unpack(), bary_unpack_internal(), integer_pack_loop_setup(), rb_integer_unpack(), and validate_integer_pack_format().
#define INTEGER_PACK_MSWORD_FIRST 0x01 |
Definition at line 138 of file intern.h.
Referenced by bary_pack(), bary_unpack(), bary_unpack_internal(), integer_pack_loop_setup(), random_ulong_limited_big(), rb_integer_unpack(), and validate_integer_pack_format().
#define INTEGER_PACK_NATIVE_BYTE_ORDER 0x40 |
Definition at line 142 of file intern.h.
Referenced by absint_numwords_generic(), bary_pack(), bary_unpack(), bary_unpack_internal(), big_shift2(), integer_pack_loop_setup(), limited_big_rand(), make_seed_value(), mt_state(), rand_init(), random_load(), random_ulong_limited_big(), rb_big_bit_length(), rb_big_pack(), rb_big_unpack(), rb_hash(), rb_integer_unpack(), validate_integer_pack_format(), and w2v().
#define INTEGER_PACK_NEGATIVE 0x200 |
Definition at line 147 of file intern.h.
Referenced by bary_unpack(), bary_unpack_internal(), ibf_load_object_bignum(), integer_unpack_single_bdigit(), r_object0(), and rb_integer_unpack().
#define OBJ_INIT_COPY | ( | obj, | |
orig | |||
) | RB_OBJ_INIT_COPY(obj, orig) |
Definition at line 288 of file intern.h.
Referenced by argf_initialize_copy(), enumerator_init_copy(), generator_init_copy(), match_init_copy(), random_copy(), rb_io_init_copy(), rb_mod_init_copy(), rb_reg_init_copy(), rb_stat_init_copy(), rb_struct_init_copy(), and time_init_copy().
#define rb_argv rb_get_argv() |
Definition at line 683 of file intern.h.
Referenced by process_sflag(), ruby_prog_init(), and ruby_set_argv().
#define rb_ary_new2 rb_ary_new_capa |
Definition at line 90 of file intern.h.
Referenced by ary_make_substitution(), BigDecimal_split(), collect_caller_bindings_cfunc(), collect_caller_bindings_iseq(), cvar_list(), each_slice_i(), econv_primitive_errinfo(), enc_list(), enc_names(), enum_each_cons(), enum_each_slice(), enum_sort_by(), enum_take(), fdbm_values_at(), fgdbm_values_at(), fsdbm_values_at(), generator_each(), Init_Encoding(), Init_ossl_ssl(), iseq_data_to_ary(), JSON_parse_string(), lazy_init_block(), lazy_zip(), lazy_zip_arrays_func(), lazy_zip_func(), make_hostent_internal(), match_array(), match_values_at(), mk_ary_of_str(), nil_to_a(), ossl_generate_cb_2(), ossl_ocspbres_get_responses(), ossl_ocspsres_get_extensions(), ossl_pkcs7_get_recipient(), ossl_pkcs7_get_signer(), ossl_ssl_cipher_to_ary(), ossl_ssl_get_peer_cert_chain(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_get_ciphers(), ossl_sslctx_session_get_cb(), ossl_sslctx_session_new_cb(), ossl_sslctx_session_remove_cb(), ossl_x509_get_extensions(), ossl_x509crl_get_extensions(), ossl_x509crl_get_revoked(), ossl_x509name_to_a(), ossl_x509req_get_attributes(), ossl_x509revoked_get_extensions(), ossl_x509stctx_get_chain(), pty_getpty(), r_object0(), random_dump(), range_first(), rb_ary_collect(), rb_ary_combination(), rb_ary_dup(), rb_ary_new(), rb_ary_new_from_args(), rb_ary_new_from_values(), rb_ary_permutation(), rb_ary_plus(), rb_ary_product(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_reverse_m(), rb_ary_rotate_m(), rb_ary_select(), rb_ary_slice_bang(), rb_ary_to_a(), rb_ary_transpose(), rb_ary_zip(), rb_const_list(), rb_enc_name_list(), rb_get_values_at(), rb_hash_fetch_values(), rb_hash_values_at(), rb_iseq_parameters(), rb_local_constants(), rb_nmin_run(), rb_str_enumerate_bytes(), rb_str_split_m(), rb_sym_all_symbols(), rb_zlib_crc_table(), reg_named_captures_iter(), scan_once(), select_internal(), take_items(), unnamed_parameters(), yield_indexed_values(), zip_ary(), and zip_i().
#define rb_ary_new3 rb_ary_new_from_args |
Definition at line 91 of file intern.h.
Referenced by addrinfo_mdump(), BIGNUM_1c(), check_exec_redirect(), chunk_ii(), d_lite_jisx0301(), d_lite_marshal_dump(), define_final0(), ev_on_event(), group_by_i(), lazy_drop(), lazy_generator_init(), lazy_grep(), lazy_grep_v(), lazy_init_block(), lazy_take(), make_curry_proc(), method_definition_set(), ossl_call_client_cert_cb(), ossl_x509name_initialize(), ossl_x509name_to_a(), parse(), path_split(), rb_Array(), rb_ary_combination(), rb_ary_permutation(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_to_ary(), rb_assoc_new(), rb_check_backtrace(), rb_f_untrace_var(), rb_str_partition(), rb_str_rpartition(), rb_str_split_m(), rb_trace_eval(), rsock_ipaddr(), rt_complete_frags(), run_exec_dup2_child(), signal_exec(), sliceafter_ii(), slicebefore_ii(), slicewhen_ii(), time_to_a(), tracepoint_stat_event_hooks(), unnamed_parameters(), and yyparse().
#define rb_ary_new4 rb_ary_new_from_values |
Definition at line 92 of file intern.h.
Referenced by call_cfunc_m2(), curry(), enum_zip(), enumerator_each(), enumerator_init(), enumerator_with_index_i(), enumerator_with_object_i(), iseq_location(), lazy_add_method(), lazy_zip(), libyaml_version(), make_no_method_exception(), make_passing_arg(), next_ii(), proc_fallback(), rb_ary_resurrect(), rb_ary_slice_bang(), rb_enum_values_pack(), rb_f_p_internal(), rb_scan_args(), rb_struct_to_a(), rb_vm_fstring_table(), take_i(), vm_expandarray(), and vm_yield_with_cfunc().
#define rb_big2int | ( | x | ) | rb_big2long(x) |
#define rb_big2uint | ( | x | ) | rb_big2ulong(x) |
#define rb_check_arity rb_check_arity /* for ifdef */ |
Definition at line 303 of file intern.h.
Referenced by cgiesc_unescape(), chomp_rs(), console_dev(), core_hash_merge_kwd(), default_proc_for_compat_func(), dir_s_home(), dt_lite_iso8601(), dt_lite_jisx0301(), enc_dump(), enum_first(), enumerator_initialize(), env_fetch(), esignal_init(), flo_ceil(), flo_floor(), fole_missing(), folerecord_method_missing(), foletypelib_initialize(), folevariant_initialize(), get_timeout(), gzfile_s_open(), hash_proc_call(), int_ceil(), int_chr(), int_floor(), int_to_s(), int_truncate(), io_getch(), lazy_initialize(), make_exception(), marshal_load(), mSyslog_log(), proc_curry(), proc_wait(), queue_pop_should_block(), rand_random(), random_init(), rb_ary_aset(), rb_ary_dig(), rb_ary_index(), rb_ary_insert(), rb_ary_rindex(), rb_ary_shuffle_bang(), rb_check_argv(), rb_clock_getres(), rb_clock_gettime(), rb_f_abort(), rb_f_exit(), rb_f_exit_bang(), rb_f_kill(), rb_f_rand(), rb_f_sleep(), rb_f_srand(), rb_f_test(), rb_file_s_absolute_path(), rb_file_s_basename(), rb_file_s_expand_path(), rb_file_s_realdirpath(), rb_file_s_realpath(), rb_file_s_umask(), rb_hash_default(), rb_hash_dig(), rb_hash_fetch_m(), rb_hash_initialize(), rb_int_digits(), rb_mod_const_defined(), rb_mod_const_get(), rb_mod_define_method(), rb_mod_include(), rb_mod_prepend(), rb_obj_extend(), rb_obj_methods(), rb_reg_initialize_m(), rb_reg_match_m_p(), rb_stat_sticky(), rb_str_aref_m(), rb_str_aset_m(), rb_str_byteslice(), rb_str_count(), rb_str_delete_bang(), rb_str_match_m(), rb_str_match_m_p(), rb_str_slice_bang(), rb_str_sub_bang(), rb_struct_dig(), rb_struct_s_def(), rb_struct_select(), sig_trap(), specific_eval(), str_gsub(), str_scrub(), str_scrub_bang(), str_transcode0(), strio_read(), szqueue_push_should_block(), test_check(), uncaught_throw_init(), vm_call0(), vm_call0_body(), vm_call0_cfunc_with_frame(), vm_call_cfunc_with_frame(), and vm_call_method_each_type().
#define rb_check_frozen | ( | obj | ) | rb_check_frozen_inline(obj) |
Definition at line 276 of file intern.h.
Referenced by check_before_mod_set(), d_lite_initialize_copy(), d_lite_marshal_load(), dir_get(), enumerator_init(), generator_init(), nurat_marshal_load(), ossl_bn_copy(), ossl_cipher_copy(), ossl_digest_copy(), ossl_hmac_copy(), ossl_ocspbres_initialize_copy(), ossl_ocspcid_initialize_copy(), ossl_ocspreq_initialize_copy(), ossl_ocspres_initialize_copy(), ossl_ocspsres_initialize_copy(), ossl_pkcs12_initialize_copy(), ossl_pkcs7_copy(), ossl_ssl_session_initialize_copy(), ossl_sslctx_set_ciphers(), ossl_sslctx_set_ecdh_curves(), ossl_sslctx_set_options(), ossl_sslctx_set_security_level(), ossl_x509_copy(), ossl_x509attr_initialize_copy(), ossl_x509crl_copy(), ossl_x509ext_initialize_copy(), ossl_x509name_initialize_copy(), ossl_x509req_copy(), ossl_x509revoked_initialize_copy(), random_init(), range_modify(), rb_ary_modify_check(), rb_const_remove(), rb_copy_generic_ivar(), rb_digest_base_copy(), rb_enc_associate_index(), rb_enc_set_index(), rb_hash_modify_check(), rb_io_taint_check(), rb_ivar_delete(), rb_ivar_set(), rb_mod_remove_cvar(), rb_obj_init_copy(), rb_obj_remove_instance_variable(), rb_obj_taint(), rb_obj_untaint(), rb_reg_initialize(), rb_str_sub_bang(), rb_struct_modify(), rb_undefine_finalizer(), set_method_visibility(), should_be_finalizable(), str_encode_bang(), str_modifiable(), time_modify(), and vm_setivar().
#define rb_check_frozen_internal | ( | obj | ) |
Definition at line 260 of file intern.h.
Referenced by rb_check_copyable(), rb_check_frozen(), and rb_check_frozen_inline().
#define rb_check_trusted | ( | obj | ) | rb_check_trusted_inline(obj) |
#define rb_check_trusted_internal | ( | obj | ) | ((void) 0) |
Definition at line 266 of file intern.h.
Referenced by rb_check_trusted_inline().
#define rb_Complex1 | ( | x | ) | rb_Complex((x), INT2FIX(0)) |
#define rb_Complex2 | ( | x, | |
y | |||
) | rb_Complex((x), (y)) |
#define rb_complex_new1 | ( | x | ) | rb_complex_new((x), INT2FIX(0)) |
Definition at line 180 of file intern.h.
Referenced by nilclass_to_c(), and numeric_to_c().
#define rb_complex_new2 | ( | x, | |
y | |||
) | rb_complex_new((x), (y)) |
Definition at line 181 of file intern.h.
Referenced by read_comp().
#define rb_complex_raw1 | ( | x | ) | rb_complex_raw((x), INT2FIX(0)) |
Definition at line 177 of file intern.h.
Referenced by fix_pow(), rb_big_pow(), and rb_float_pow().
#define rb_complex_raw2 | ( | x, | |
y | |||
) | rb_complex_raw((x), (y)) |
#define rb_disable_super | ( | klass, | |
name | |||
) | rb_disable_super() |
#define rb_enc_str_new_lit | ( | str, | |
enc | |||
) | rb_enc_str_new_static((str), rb_strlen_lit(str), (enc)) |
#define rb_enc_str_new_literal | ( | str, | |
enc | |||
) | rb_enc_str_new_lit(str, enc) |
#define rb_exc_new2 rb_exc_new_cstr |
Definition at line 245 of file intern.h.
Referenced by fiber_switch(), gzfile_raise(), make_localjump_error(), next_i(), and raise_zlib_error().
#define rb_exc_new3 rb_exc_new_str |
Definition at line 246 of file intern.h.
Referenced by cannot_be_coerced_into_BigDecimal(), enc_raise(), finish_writeconv(), make_econv_exception(), make_exception(), ossl_make_error(), raise_loaderror(), rb_arity_error_new(), rb_econv_open_exc(), rb_enc_raise(), rb_enc_reg_error_desc(), rb_fatal(), rb_raise(), and rb_vm_register_special_exception().
Definition at line 354 of file intern.h.
Referenced by rb_thread_priority_set().
#define rb_fd_copy | ( | d, | |
s, | |||
n | |||
) | (*(d) = *(s)) |
Definition at line 356 of file intern.h.
Referenced by rb_thread_priority_set().
#define rb_fd_dup | ( | d, | |
s | |||
) | (*(d) = *(s)) |
Definition at line 357 of file intern.h.
Referenced by rb_thread_priority_set().
Definition at line 360 of file intern.h.
Referenced by init_set_fd(), rb_f_select(), rb_io_s_copy_stream(), rb_thread_priority_set(), and rb_w32_select_with_thread().
#define rb_fd_init_copy | ( | d, | |
s | |||
) | (*(d) = *(s)) |
Definition at line 361 of file intern.h.
Referenced by rb_thread_priority_set().
Definition at line 355 of file intern.h.
Referenced by rb_thread_priority_set(), select_internal(), and select_single().
#define rb_fd_max | ( | f | ) | FD_SETSIZE |
Definition at line 363 of file intern.h.
Referenced by maygvl_copy_stream_wait_read(), nogvl_copy_stream_wait_write(), and rb_thread_priority_set().
Definition at line 359 of file intern.h.
Referenced by rb_thread_priority_set().
Definition at line 358 of file intern.h.
Referenced by rb_thread_fd_select(), and rb_thread_priority_set().
#define rb_fd_select | ( | n, | |
rfds, | |||
wfds, | |||
efds, | |||
timeout | |||
) | select((n), (rfds), (wfds), (efds), (timeout)) |
Definition at line 364 of file intern.h.
Referenced by maygvl_select(), nogvl_copy_stream_wait_write(), and rb_thread_priority_set().
Definition at line 353 of file intern.h.
Referenced by copy_stream_body(), init_set_fd(), maygvl_copy_stream_wait_read(), nogvl_copy_stream_wait_write(), rb_thread_priority_set(), and select_internal().
Definition at line 362 of file intern.h.
Referenced by copy_stream_finalize(), rb_thread_priority_set(), rb_w32_select_with_thread(), select_end(), and select_single_cleanup().
Definition at line 352 of file intern.h.
Referenced by maygvl_copy_stream_wait_read(), nogvl_copy_stream_wait_write(), and rb_thread_priority_set().
#define rb_hash_end | ( | h | ) | st_hash_end(h) |
#define rb_hash_uint | ( | h, | |
i | |||
) | st_hash_uint((h), (i)) |
#define rb_hash_uint32 | ( | h, | |
i | |||
) | st_hash_uint32((h), (i)) |
#define RB_OBJ_INIT_COPY | ( | obj, | |
orig | |||
) | ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1)) |
#define rb_Rational1 | ( | x | ) | rb_Rational((x), INT2FIX(1)) |
Definition at line 169 of file intern.h.
Referenced by BigDecimal_to_r(), and time_to_r().
#define rb_Rational2 | ( | x, | |
y | |||
) | rb_Rational((x), (y)) |
#define rb_rational_new1 | ( | x | ) | rb_rational_new((x), INT2FIX(1)) |
Definition at line 166 of file intern.h.
Referenced by float_to_r(), integer_to_r(), m_amjd(), minus_dd(), nilclass_to_r(), and rb_flt_rationalize().
#define rb_rational_new2 | ( | x, | |
y | |||
) | rb_rational_new((x), (y)) |
Definition at line 167 of file intern.h.
Referenced by date__strptime_internal(), datetime_to_datetime(), float_to_r(), Init_date_core(), m_ajd(), ns_to_day(), ns_to_sec(), parse_ddd_cb(), parse_time2_cb(), rb_flt_rationalize(), rb_flt_rationalize_with_prec(), read_num(), sec_fraction(), and sec_to_day().
#define rb_rational_raw1 | ( | x | ) | rb_rational_raw((x), INT2FIX(1)) |
Definition at line 163 of file intern.h.
Referenced by fix_pow(), numeric_quo(), parser_set_integer_literal(), and rb_big_pow().
#define rb_rational_raw2 | ( | x, | |
y | |||
) | rb_rational_raw((x), (y)) |
#define RB_RESERVED_FD_P | ( | fd | ) | rb_reserved_fd_p(fd) |
#define rb_str_buf_cat rb_str_cat |
#define rb_str_buf_cat2 rb_str_cat_cstr |
#define rb_str_buf_new2 rb_str_buf_new_cstr |
#define rb_str_cat2 rb_str_cat_cstr |
#define rb_str_dup_frozen rb_str_new_frozen |
#define rb_str_new2 rb_str_new_cstr |
Definition at line 857 of file intern.h.
Referenced by add_cipher_name_to_ary(), add_modules(), addrinfo_getnameinfo(), allocation_class_path(), allocation_sourcefile(), argf_inplace_mode_get(), argf_next_argv(), argf_to_s(), BigDecimal_version(), call_trace_func(), clsid_from_remote(), console_dev(), cState_aref(), cState_array_nl(), cState_aset(), cState_indent(), cState_object_nl(), cState_space(), cState_space_before(), date_s_httpdate(), date_s_iso8601(), date_s_jisx0301(), date_s_parse(), date_s_rfc2822(), date_s_rfc3339(), date_s_strptime(), date_s_xmlschema(), date_strftime_with_tmx(), datetime_s_httpdate(), datetime_s_iso8601(), datetime_s_jisx0301(), datetime_s_parse(), datetime_s_rfc2822(), datetime_s_rfc3339(), datetime_s_strptime(), datetime_s_xmlschema(), decode_obj(), defined_expr(), dir_s_chdir(), econv_primitive_errinfo(), env_inspect(), establishShell(), foletype_s_progids(), folevariant_value(), hash2result(), ibf_dump_object_string(), Init_bigdecimal(), Init_cparse(), Init_dbm(), Init_fiddle(), Init_File(), Init_gdbm(), Init_generator(), Init_IO(), Init_nkf(), Init_openssl(), Init_ossl_asn1(), Init_ossl_config(), Init_ossl_x509name(), Init_strscan(), Init_VM(), Init_win32ole(), Init_zlib(), inspect1(), inspect2(), inspect_range(), inspect_struct(), io_puts_ary(), iseq_compile_each(), iseq_data_to_ary(), load_file_internal(), main_to_s(), make_addrinfo(), make_econv_exception(), make_hostent_internal(), make_inspect(), make_writeconv(), mString_Extend_json_create(), mString_to_json_raw_object(), mSyslog_ident(), nsdr(), ole_const_load(), ole_excepinfo2msg(), ole_hresult2msg(), ole_method_invoke_kind(), ole_ole_type(), ole_param_ole_type(), ole_ptrtype2val(), ole_typedesc2val(), ole_variable_kind(), ole_variant2val(), oletypelib_path(), ossl_asn1obj_get_ln(), ossl_asn1obj_get_oid(), ossl_asn1obj_get_sn(), ossl_cipher_name(), ossl_dh_get_params(), ossl_digest_name(), ossl_dsa_get_params(), ossl_engine_cmd_flag_to_name(), ossl_engine_get_cmds(), ossl_engine_get_id(), ossl_engine_get_name(), ossl_get_errors(), ossl_ocspres_status_string(), ossl_pkcs7_verify(), ossl_rsa_get_params(), ossl_ssl_cipher_to_ary(), ossl_ssl_get_state(), ossl_ssl_get_version(), ossl_sslctx_add_extra_chain_cert_i(), ossl_x509attr_get_oid(), ossl_x509ext_get_oid(), ossl_x509extfactory_create_ext(), ossl_x509name_to_a(), ossl_x509name_to_s_old(), ossl_x509stctx_get_err_string(), parse(), parse_ddd_cb(), path_check_0(), proc_binding(), proc_options(), process_sflag(), rb_check_deadlock(), rb_execarg_run_options(), rb_exit(), rb_feature_provided(), rb_insn_operand_intern(), rb_insns_name_array(), rb_invalid_str(), rb_load_internal0(), rb_readwrite_syserr_fail(), rb_reg_s_union(), rb_require(), rb_set_class_path(), rb_strftime_with_timespec(), rb_struct_define(), rb_syserr_new(), rb_thread_status(), rb_threadptr_signal_exit(), rb_vm_register_special_exception(), rb_vmdebug_stack_dump_th(), rb_zlib_version(), reachable_object_from_root_i(), reg_enum_key(), reg_get_val(), rsock_ipaddr(), rsock_make_ipaddr(), ruby_eval_string_from_file(), sock_s_gethostbyaddr(), sock_s_getnameinfo(), sock_sysaccept(), trap(), typelib_file_from_clsid(), and VpAlloc().
#define rb_str_new3 rb_str_new_shared |
Definition at line 858 of file intern.h.
Referenced by rb_reg_preprocess_dregexp(), and rb_reg_quote().
#define rb_str_new4 rb_str_new_frozen |
Definition at line 859 of file intern.h.
Referenced by ossl_asn1_decode(), ossl_asn1_decode_all(), ossl_asn1_traverse(), rb_get_path_check_convert(), rb_io_s_sysopen(), rb_reg_search0(), rb_str_format(), rsock_bsock_send(), ruby_process_options(), sock_connect(), sock_connect_nonblock(), and time_strftime().
#define rb_str_new5 rb_str_new_with_class |
#define rb_str_new_lit | ( | str | ) | rb_str_new_static((str), rb_strlen_lit(str)) |
#define rb_str_new_literal | ( | str | ) | rb_str_new_lit(str) |
#define rb_strlen_lit | ( | str | ) | (sizeof(str "") - 1) |
Definition at line 867 of file intern.h.
Referenced by BSD_vfprintf(), iso8601_timediv(), open_dir_handle(), rb_str_dump(), and rb_w32_read_reparse_point().
#define rb_tainted_str_new2 rb_tainted_str_new_cstr |
Definition at line 861 of file intern.h.
Referenced by etc_getlogin(), rb_dir_getwd(), rb_fiddle_ptr_to_s(), and sock_s_getservbyport().
#define rb_usascii_str_new2 rb_usascii_str_new_cstr |
Definition at line 863 of file intern.h.
Referenced by big2str_generic(), date__strptime_internal(), date_strftime_internal(), enc_names_i(), env_to_s(), false_to_s(), flo_to_s(), Init_File(), Init_IO(), inspect_hash(), m_zone(), make_exception(), mk_ary_of_str(), nil_inspect(), nucomp_inspect(), nurat_inspect(), parser_compile_error(), rb_ary_inspect(), rb_big2str1(), rb_enc_aliases_enc_i(), rb_file_dirname(), rb_file_ftype(), rb_fix2str(), rb_hash_inspect(), rb_keyword_error_new(), rb_mod_to_s(), rb_provide(), and true_to_s().
#define rb_usascii_str_new_lit | ( | str | ) | rb_usascii_str_new_static((str), rb_strlen_lit(str)) |
#define rb_usascii_str_new_literal | ( | str | ) | rb_usascii_str_new_lit(str) |
#define rb_utf8_str_new_lit | ( | str | ) | rb_utf8_str_new_static((str), rb_strlen_lit(str)) |
#define rb_utf8_str_new_literal | ( | str | ) | rb_utf8_str_new_lit(str) |
#define RETURN_ENUMERATOR | ( | obj, | |
argc, | |||
argv | |||
) | RETURN_SIZED_ENUMERATOR(obj, argc, argv, 0) |
Definition at line 240 of file intern.h.
Referenced by argf_each_byte(), argf_each_char(), argf_each_codepoint(), argf_each_line(), d_lite_downto(), d_lite_step(), d_lite_upto(), dir_each(), dir_foreach(), enum_drop_while(), enum_find(), enum_find_index(), enum_take_while(), etc_each_passwd(), etc_group(), fdbm_each_key(), fdbm_each_pair(), fdbm_each_value(), fgdbm_each_key(), fgdbm_each_pair(), fgdbm_each_value(), fole_each(), fsdbm_each_key(), fsdbm_each_pair(), fsdbm_each_value(), hist_each(), os_each_obj(), range_bsearch(), rb_ary_bsearch_index(), rb_ary_drop_while(), rb_ary_index(), rb_ary_rindex(), rb_ary_take_while(), rb_gzreader_each(), rb_gzreader_each_byte(), rb_gzreader_each_char(), rb_io_each_byte(), rb_io_each_char(), rb_io_each_codepoint(), rb_io_each_line(), rb_io_s_foreach(), rb_str_upto(), str_gsub(), strio_each(), strio_each_byte(), strio_each_char(), and strio_each_codepoint().
Definition at line 236 of file intern.h.
Referenced by enum_chunk(), enum_collect(), enum_cycle(), enum_each_cons(), enum_each_entry(), enum_each_slice(), enum_each_with_index(), enum_each_with_object(), enum_find_all(), enum_flat_map(), enum_group_by(), enum_max_by(), enum_min_by(), enum_minmax_by(), enum_partition(), enum_reject(), enum_reverse_each(), enum_sort_by(), enumerator_with_index(), enumerator_with_object(), env_delete_if(), env_each_key(), env_each_pair(), env_each_value(), env_keep_if(), env_reject_bang(), env_select(), env_select_bang(), int_dotimes(), int_downto(), int_upto(), num_step(), range_each(), range_step(), rb_ary_collect(), rb_ary_collect_bang(), rb_ary_combination(), rb_ary_cycle(), rb_ary_delete_if(), rb_ary_each(), rb_ary_each_index(), rb_ary_keep_if(), rb_ary_permutation(), rb_ary_reject(), rb_ary_reject_bang(), rb_ary_repeated_combination(), rb_ary_repeated_permutation(), rb_ary_reverse_each(), rb_ary_select(), rb_ary_select_bang(), rb_ary_sort_by_bang(), rb_f_loop(), rb_hash_delete_if(), rb_hash_each_key(), rb_hash_each_pair(), rb_hash_each_value(), rb_hash_keep_if(), rb_hash_reject(), rb_hash_reject_bang(), rb_hash_select(), rb_hash_select_bang(), rb_hash_transform_values(), rb_hash_transform_values_bang(), rb_struct_each(), rb_struct_each_pair(), and rb_struct_select().
#define RUBY_UBF_IO ((rb_unblock_function_t *)-1) |
Definition at line 900 of file intern.h.
Referenced by call_without_gvl(), copy_stream_body(), io_flush_buffer_async2(), maygvl_close(), maygvl_fclose(), mustbe_callable(), rb_execarg_parent_start1(), rb_getaddrinfo(), rb_getnameinfo(), rb_sysopen_internal(), and rb_write_internal2().
#define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1) |
Definition at line 901 of file intern.h.
Referenced by call_without_gvl(), and do_waitpid_nonblocking().
Definition at line 233 of file intern.h.
Referenced by rb_str_enumerate_bytes(), rb_str_enumerate_chars(), rb_str_enumerate_codepoints(), and rb_str_enumerate_lines().
#define UNLIMITED_ARGUMENTS (-1) |
Definition at line 44 of file intern.h.
Referenced by console_dev(), enumerator_initialize(), fole_missing(), gzfile_s_open(), mSyslog_log(), rb_arity_error_new(), rb_ary_dig(), rb_ary_insert(), rb_block_arity(), rb_check_argv(), rb_check_arity(), rb_f_kill(), rb_hash_dig(), rb_iseq_min_max_arity(), rb_method_entry_min_max_arity(), rb_mod_include(), rb_mod_prepend(), rb_obj_extend(), rb_proc_arity(), rb_scan_args(), rb_str_count(), rb_str_delete_bang(), rb_struct_dig(), rb_struct_s_def(), rb_vm_block_min_max_arity(), rb_vm_ifunc_new(), rb_vm_ifunc_proc_new(), setup_parameters_complex(), and uncaught_throw_init().
typedef fd_set rb_fdset_t |
CONSTFUNC | ( | void | rb_error_untrustedVALUE | ) |
CONSTFUNC | ( | VALUE | rb_dbl_cmpdouble, double | ) |
CONSTFUNC | ( | int | rb_is_const_idID | ) |
DEPRECATED | ( | VALUE | rb_complex_set_realVALUE, VALUE | ) |
DEPRECATED | ( | static inline void | rb_disable_supervoid | ) |
DEPRECATED | ( | int | rb_hash_iter_levVALUE | ) |
DEPRECATED | ( | VALUE | rb_hash_ifnoneVALUE | ) |
DEPRECATED | ( | void | rb_autoloadVALUE, ID, const char * | ) |
DEPRECATED | ( | struct st_table * | rb_generic_ivar_tableVALUE | ) |
NORETURN | ( | void | rb_cmperrVALUE, VALUE | ) |
NORETURN | ( | void | rb_invalid_strconst char *, const char * | ) |
NORETURN | ( | DEPRECATED(PRINTF_ARGS(void rb_compile_error(const char *, int, const char *,...), 3, 4)) | ) |
NORETURN | ( | DEPRECATED(PRINTF_ARGS(void rb_compile_error_with_enc(const char *, int, void *, const char *,...), 4, 5)) | ) |
NORETURN | ( | DEPRECATED(PRINTF_ARGS(void rb_compile_error_append(const char *,...), 1, 2)) | ) |
NORETURN | ( | void | rb_error_frozenconst char * | ) |
NORETURN | ( | void | rb_error_frozen_objectVALUE | ) |
NORETURN | ( | void | rb_error_arityint, int, int | ) |
NORETURN | ( | VALUE | rb_f_exitint, const VALUE * | ) |
NORETURN | ( | DEPRECATED(void rb_clear_cache(void)) | ) |
NORETURN | ( | VALUE | rb_f_notimplementint argc, const VALUE *argv, VALUE obj | ) |
NORETURN | ( | void | rb_interruptvoid | ) |
NORETURN | ( | void | rb_jump_tagint | ) |
NORETURN | ( | DEPRECATED(void rb_str_associate(VALUE, VALUE)) | ) |
NORETURN | ( | DEPRECATED(VALUE rb_str_associated(VALUE)) | ) |
NORETURN | ( | VALUE | rb_mod_const_missingVALUE, VALUE | ) |
NORETURN | ( | DEPRECATED(void rb_frame_pop(void)) | ) |
PRINTF_ARGS | ( | NORETURN(void rb_loaderror(const char *,...)) | , |
1 | , | ||
2 | |||
) |
PRINTF_ARGS | ( | NORETURN(void rb_loaderror_with_path(VALUE path, const char *,...)) | , |
2 | , | ||
3 | |||
) |
PRINTF_ARGS | ( | NORETURN(void rb_name_error(ID, const char *,...)) | , |
2 | , | ||
3 | |||
) |
PRINTF_ARGS | ( | NORETURN(void rb_name_error_str(VALUE, const char *,...)) | , |
2 | , | ||
3 | |||
) |
PRINTF_ARGS | ( | VALUE | rb_sprintfconst char *,..., |
1 | , | ||
2 | |||
) |
PRINTF_ARGS | ( | VALUE | rb_str_catfVALUE, const char *,..., |
2 | , | ||
3 | |||
) |
PUREFUNC | ( | int | rb_during_gcvoid | ) |
PUREFUNC | ( | VALUE | rb_obj_taintedVALUE | ) |
PUREFUNC | ( | VALUE | rb_class_inherited_pVALUE, VALUE | ) |
PUREFUNC | ( | size_t | rb_str_capacityVALUE | ) |
size_t rb_absint_numwords | ( | VALUE | val, |
size_t | word_numbits, | ||
size_t * | nlz_bits_ret | ||
) |
Definition at line 3366 of file bignum.c.
References absint_numwords_generic(), absint_numwords_small(), assert, CHAR_BIT, rb_absint_size(), and SIZE_MAX.
Referenced by big2str_base_poweroftwo(), get_double_rshift(), limited_big_rand(), pack_pack(), rand_init(), random_ulong_limited_big(), rb_big_pow(), and rb_str_format().
int rb_absint_singlebit_p | ( | VALUE | val | ) |
Definition at line 3430 of file bignum.c.
References BDIGIT, bdigit_roomof, BDIGITS, BIGDN, BIGLO, BIGNUM_LEN, dp, FIX2LONG, FIXNUM_P, numberof, POW2_P, and rb_to_int().
Referenced by rb_big_bit_length(), and rb_str_format().
size_t rb_absint_size | ( | VALUE | val, |
int * | nlz_bits_ret | ||
) |
Definition at line 3231 of file bignum.c.
References BDIGIT, bdigit_roomof, BDIGITS, BIGDN, BIGLO, BIGNUM_LEN, CHAR_BIT, dp, FIX2LONG, FIXNUM_P, nlz(), numberof, rb_to_int(), and SIZEOF_BDIGIT.
Referenced by integer_to_bnptr(), rb_absint_numwords(), rb_big_bit_length(), rb_num_to_uint(), and v2w().
Definition at line 1526 of file vm_method.c.
References rb_method_entry_struct::called_id, rb_method_entry_struct::def, cache_entry::defined_class, rb_method_entry_struct::defined_class, method_added(), method_entry_set(), METHOD_ENTRY_VISI, METHOD_VISI_UNDEF, NIL_P, NULL, rb_method_definition_struct::original_id, rb_method_entry_struct::owner, Qnil, rb_cObject, rb_eTypeError, rb_frozen_class_p(), rb_method_entry_clone(), rb_method_entry_make(), RB_OBJ_WRITE, rb_print_undef(), rb_raise(), rb_resolve_refined_method(), RB_TYPE_P, RCLASS_SUPER, search_method(), T_MODULE, rb_method_definition_struct::type, UNDEFINED_METHOD_ENTRY_P, UNDEFINED_REFINED_METHOD_P, VM_METHOD_TYPE_ALIAS, VM_METHOD_TYPE_REFINED, and VM_METHOD_TYPE_ZSUPER.
Referenced by Init_signal(), Init_strscan(), m_core_set_method_alias(), rb_define_alias(), and rb_mod_alias_method().
Definition at line 911 of file variable.c.
References ALLOC, rb_global_variable::block_trace, rb_global_variable::counter, rb_global_entry::id, trace_var::next, rb_eRuntimeError, rb_global_entry(), rb_global_tbl, rb_id_table_insert(), rb_id_table_lookup(), rb_raise(), rb_global_variable::trace, rb_global_entry::var, and xfree().
Referenced by Init_load(), and m_core_set_variable_alias().
Definition at line 500 of file object.c.
References CLASS_OF, OBJ_INFECT, PRIsVALUE, rb_class_name(), rb_sprintf(), and rb_str_escape().
Referenced by InitVM_Object(), name_err_mesg_to_str(), rb_hash_fetch_m(), rb_int2str(), rb_io_inspect(), rb_mod_to_s(), rb_obj_as_string(), rb_obj_basic_to_s_p(), rb_obj_inspect(), rb_reg_inspect(), and wmap_inspect_i().
Calls a method.
recv | receiver of the method |
mid | an ID that represents the name of the method |
args | an Array object which contains method arguments |
Definition at line 792 of file vm_eval.c.
References ALLOCA_N, argc, argv, CALL_FCALL, MEMCPY, OBJ_FREEZE, RARRAY_CONST_PTR, RARRAY_LENINT, rb_ary_subseq(), rb_call(), RB_GC_GUARD, and RBASIC_CLEAR_CLASS.
Referenced by exec_callback().
Definition at line 3126 of file object.c.
References NIL_P, rb_ary_new3, rb_check_array_type(), rb_check_convert_type(), and T_ARRAY.
Referenced by console_echo_p(), dir_entries(), range_last(), rb_f_array(), and readline_attempted_completion_function().
Definition at line 1266 of file array.c.
References FIX2LONG, FIXNUM_P, len, NULL, NUM2LONG, Qfalse, Qnil, RARRAY_LEN, rb_ary_entry(), rb_ary_subseq(), rb_range_beg_len(), and rb_scan_args().
Referenced by Init_Array().
Definition at line 3775 of file array.c.
References NIL_P, Qnil, RARRAY_AREF, RARRAY_LEN, rb_check_array_type(), and rb_equal().
Referenced by Init_Array().
Definition at line 917 of file array.c.
References ary_ensure_room_for_push(), ary_memcpy0(), ARY_SET_LEN, and RARRAY_LEN.
Referenced by compile_array_(), enumerator_each(), features_index_add_single(), flatten_i(), generator_each(), rb_ary_push_m(), and rb_obj_info_dump().
Definition at line 3487 of file array.c.
References ary_sort_data::ary, ARY_CAPA, ARY_DEFAULT_SIZE, ARY_EMBED_P, ary_resize_capa(), ARY_SET_LEN, ARY_SHARED_P, FL_SET_EMBED, rb_ary_modify_check(), and rb_ary_unshare().
Referenced by each_slice_i(), fdbm_delete_if(), fgdbm_delete_if(), Init_Array(), iseq_set_arguments(), open_key_args(), r_object0(), rb_queue_clear(), rb_szqueue_clear(), rb_threadptr_pending_interrupt_clear(), reset_coverage_i(), ruby_set_argv(), set_argv(), and wakeup_all_threads().
Definition at line 4028 of file array.c.
References INT2FIX, len, NIL_P, Qnil, Qundef, RARRAY_LEN, rb_check_array_type(), rb_exec_recursive_paired(), and recursive_cmp().
Referenced by Init_Array().
Definition at line 3686 of file array.c.
References ary_append(), and to_ary().
Referenced by argf_readlines(), enum_sort_by(), flat_map_i(), ole_methods(), open_key_args(), rb_ary_concat_multi(), and sort_by_i().
Definition at line 2992 of file array.c.
References ary_resize_smaller(), Qnil, RARRAY_AREF, RARRAY_LEN, rb_ary_store(), rb_block_given_p(), rb_equal(), and rb_yield().
Referenced by delete_current_thread(), env_replace_i(), Init_Array(), and queue_delete_from_waiting().
Definition at line 3045 of file array.c.
References ARY_INCREASE_LEN, len, MEMMOVE, Qnil, RARRAY_AREF, RARRAY_LEN, RARRAY_PTR_USE, and rb_ary_modify().
Referenced by ole_delete_event(), rb_ary_delete_at_m(), rb_ary_slice_bang(), and rb_threadptr_pending_interrupt_deque().
Definition at line 1927 of file array.c.
References ary_memcpy(), ARY_SET_LEN, len, RARRAY_CONST_PTR, RARRAY_LEN, and rb_ary_new2.
Referenced by args_copy(), args_extend(), args_pop_keyword_hash(), args_reduce(), args_stored_kw_argv_to_hash(), ary2sv(), coverage_peek_result_i(), each_cons_i(), enumerator_each(), enumerator_peek_values_m(), lazy_add_method(), method_def_location(), opobj_inspect(), rb_ary_compact(), rb_ary_sample(), rb_ary_shuffle(), rb_ary_sort(), rb_ary_transpose(), rb_ary_uniq(), rb_struct_s_members_m(), save_env_i(), and thread_create_core().
Definition at line 1818 of file array.c.
References ary_enum_length(), RARRAY_AREF, RARRAY_LEN, rb_yield(), and RETURN_SIZED_ENUMERATOR.
Referenced by dir_s_glob(), and Init_Array().
Definition at line 1196 of file array.c.
References len, Qnil, RARRAY_CONST_PTR, and RARRAY_LEN.
Referenced by addrinfo_initialize(), addrinfo_ip_address(), addrinfo_ip_unpack(), addrinfo_mload(), ary2ptr_dispparams(), ary_len_of_dim(), ary_new_dim(), check_exec_redirect(), check_type_val2variant(), collect_caller_bindings(), dimension(), divmodv(), enc_register_at(), EVENTSINK_Invoke(), evs_entry(), foletypelib_initialize(), folevariant_initialize(), folevariant_s_array(), frame_get(), generate_json_array(), generate_json_object(), get_id_entry(), get_loaded_features_index(), ibf_dump_iseq_list(), ibf_load_iseq(), ibf_load_object(), initialize_params(), iseq_build_from_ary_body(), iseq_data_to_ary(), iseq_load(), JSON_parse_string(), lazy_drop_proc(), lazy_drop_while_proc(), lazy_take_proc(), lazy_zip_arrays_func(), lep_svar_get(), match_i(), ole_ary_m_entry(), ole_invoke(), ole_invoke2(), ole_search_event(), ole_search_event_at(), oletypelib_search_registry2(), ossl_asn1cons_to_der(), ossl_call_client_cert_cb(), ossl_call_session_get_cb(), ossl_call_session_new_cb(), ossl_call_session_remove_cb(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_set_ciphers(), ossl_x509name_init_i(), parse_main(), path_split(), pty_close_pty(), rb_ary_aref(), rb_ary_at(), rb_ary_bsearch(), rb_ary_bsearch_index(), rb_ary_product(), rb_ary_values_at(), rb_debug_inspector_frame_binding_get(), rb_debug_inspector_frame_class_get(), rb_debug_inspector_frame_iseq_get(), rb_debug_inspector_frame_self_get(), rb_econv_init_by_convpath(), rb_enc_aliases_enc_i(), rb_enc_from_encoding_index(), rb_error_frozen_object(), rb_iseq_disasm(), rb_reg_s_union(), rb_reg_s_union_m(), rb_struct_each_pair(), rb_struct_to_h(), reduce0(), rescue_callback(), select_internal(), set_id_entry(), set_state_ivars(), sock_initialize(), start_document(), and time_timespec().
void rb_ary_free | ( | VALUE | ) |
Definition at line 547 of file array.c.
References ARY_HEAP_PTR, ARY_HEAP_SIZE, ARY_OWNS_HEAP_P, RUBY_FUNC_EXPORTED, and ruby_sized_xfree().
Referenced by ary_discard(), loaded_features_index_clear_i(), obj_free(), and rb_ary_decrement_share().
Definition at line 403 of file array.c.
References rb_obj_freeze().
Referenced by coverage_peek_result_i(), curry(), make_curry_proc(), and method_definition_set().
Definition at line 3958 of file array.c.
References Qfalse, Qtrue, Qundef, RARRAY_AREF, RARRAY_LEN, rb_equal(), and rb_equal_opt().
Referenced by env_replace_i(), and Init_Array().
Definition at line 2034 of file array.c.
References ary_join_0(), ary_join_1(), FALSE, len, NIL_P, OBJ_TAINT, OBJ_TAINTED, RARRAY_AREF, RARRAY_LEN, rb_check_string_type(), rb_enc_associate(), rb_str_buf_new(), rb_usascii_encoding(), rb_usascii_str_new(), result, RSTRING_LEN, StringValue, TRUE, and val.
Referenced by debug_deadlock_check(), rb_ary_join_m(), rb_ary_times(), rb_insn_operand_intern(), and rb_keyword_error_new().
void rb_ary_modify | ( | VALUE | ) |
Definition at line 316 of file array.c.
References ALLOC_N, ARY_EMBED_PTR, ARY_HEAP_PTR, ARY_SET_CAPA, ARY_SET_EMBED_LEN, ARY_SET_PTR, ARY_SHARED, ARY_SHARED_OCCUPIED, ARY_SHARED_P, FL_SET_EMBED, FL_UNSET_SHARED, len, MEMCPY, MEMMOVE, RARRAY_CONST_PTR, RARRAY_EMBED_LEN_MAX, RARRAY_LEN, RARRAY_PTR_USE, rb_ary_decrement_share(), rb_ary_modify_check(), rb_ary_unshare(), rb_gc_writebarrier_remember(), and shift().
Referenced by ary_ensure_room_for_push(), ary_ensure_room_for_unshift(), ary_resize_smaller(), rb_ary_collect_bang(), rb_ary_compact_bang(), rb_ary_delete_at(), rb_ary_fill(), rb_ary_initialize(), rb_ary_resize(), rb_ary_reverse(), rb_ary_rotate(), rb_ary_select_bang(), rb_ary_shuffle_bang(), rb_ary_sort_bang(), rb_ary_sort_by_bang(), rb_ary_splice(), and rb_ary_store().
VALUE rb_ary_new | ( | void | ) |
Definition at line 493 of file array.c.
References RARRAY_EMBED_LEN_MAX, and rb_ary_new2.
Referenced by add_event_call_back(), add_modules(), addrinfo_list_new(), argf_readlines(), args_rest_array(), ary_new_dim(), backtrace_collect(), check_exec_redirect(), check_exec_redirect1(), class_instance_method_list(), collect_caller_bindings(), collect_values_of_values(), debug_lines(), dir_globs(), econv_convpath(), enum_collect(), enum_cycle(), enum_drop(), enum_drop_while(), enum_find_all(), enum_flat_map(), enum_grep(), enum_grep_v(), enum_partition(), enum_reject(), enum_sort_by(), enum_take_while(), enum_to_a(), enum_zip(), env_each_pair(), env_keys(), env_to_a(), env_values(), env_values_at(), etc_getpwent(), EVENTSINK_Invoke(), fdbm_keys(), fdbm_select(), fdbm_to_a(), fdbm_values(), fev_initialize(), fgdbm_keys(), fgdbm_select(), fgdbm_to_a(), fgdbm_values(), filename_completion_proc_call(), foletype_s_progids(), foletypelib_ole_types(), foletypelib_s_typelibs(), fsdbm_delete_if(), fsdbm_keys(), fsdbm_select(), fsdbm_to_a(), fsdbm_values(), gc_profile_record_get(), get_dns_server_list(), Init_GC(), Init_load(), Init_ossl_asn1(), Init_VM(), Init_win32ole(), Init_win32ole_event(), int_ossl_asn1_decode0_cons(), io_readlines(), iseq_data_to_ary(), JSON_parse_array(), lazy_add_method(), lep_svar_set(), make_addrinfo(), make_hostent_internal(), name_err_local_variables(), nsdr(), ole_method_params(), ole_method_return_type_detail(), ole_methods(), ole_methods_from_typeinfo(), ole_param_ole_type_detail(), ole_type_impl_ole_types(), ole_variable_ole_type_detail(), ole_variables(), ole_variant2val(), ossl_asn1_decode0(), ossl_asn1_decode_all(), ossl_engine_get_cmds(), ossl_engine_s_engines(), ossl_get_errors(), ossl_ocspbres_get_status(), ossl_ocspreq_get_certid(), ossl_pkcs7_get_recipient(), ossl_pkcs7_get_signer(), ossl_s_ciphers(), ossl_sslctx_get_ciphers(), ossl_x509_get_extensions(), ossl_x509crl_get_extensions(), ossl_x509crl_get_revoked(), ossl_x509name_to_a(), ossl_x509req_get_attributes(), ossl_x509revoked_get_extensions(), ossl_x509stctx_get_chain(), pack_pack(), pack_unpack_internal(), parse(), proc_curry(), proc_waitall(), rb_ary_and(), rb_ary_diff(), rb_ary_drop(), rb_ary_reject(), rb_call_end_proc(), rb_check_exec_env(), rb_enc_aliases(), rb_f_global_variables(), rb_f_untrace_var(), rb_fiddle_ptr_free_get(), rb_fix_digits(), rb_gzreader_readlines(), rb_insn_operand_intern(), rb_insns_name_array(), rb_int_digits_bigbase(), rb_iseqw_line_trace_all(), rb_mod_ancestors(), rb_mod_included_modules(), rb_mod_nesting(), rb_mod_s_used_modules(), rb_obj_instance_variables(), rb_obj_singleton_methods(), rb_push_glob(), rb_scan_args(), rb_str_enumerate_bytes(), rb_str_enumerate_lines(), rb_str_scan(), rb_str_split_m(), rb_struct_select(), rb_thread_keys(), rb_thread_list(), rb_thread_variables(), reachable_objects_from(), reduce0(), run_exec_dup2_child(), save_env(), save_redirect_fd(), search_convpath_i(), select_internal(), sock_s_gethostbyaddr(), sock_s_unpack_sockaddr_in(), ssl_renegotiation_cb(), strio_readlines(), thgroup_list(), username_completion_proc_call(), vm_backtrace_to_ary(), vm_expandarray(), wmap_keys(), and wmap_values().
VALUE rb_ary_new_capa | ( | long | capa | ) |
Definition at line 487 of file array.c.
References ary_new(), and rb_cArray.
Referenced by ibf_load_object_array(), match_ary_subseq(), match_names(), rb_ary_sample(), rb_ary_zip(), rb_hash_flatten(), rb_hash_keys(), rb_hash_to_a(), rb_hash_values(), rb_reg_names(), rb_str_enumerate_chars(), and rb_str_enumerate_codepoints().
VALUE rb_ary_new_from_args | ( | long | n, |
... | |||
) |
Definition at line 499 of file array.c.
References ARY_SET, ARY_SET_LEN, and rb_ary_new2.
Referenced by iseq_compile_each(), iseq_data_to_ary(), rb_ary_sample(), rb_fix_digits(), and rb_int_digits_bigbase().
Definition at line 518 of file array.c.
References ary_memcpy(), ARY_SET_LEN, and rb_ary_new2.
Referenced by args_copy(), cycle_i(), lazy_zip_func(), rb_ary_sample(), and rb_insn_operand_intern().
Definition at line 3621 of file array.c.
References ary_memcpy(), ARY_SET_LEN, len, RARRAY_CONST_PTR, RARRAY_LEN, rb_ary_new2, and to_ary().
Referenced by curry(), and Init_Array().
Definition at line 949 of file array.c.
References ARY_CAPA, ARY_DEFAULT_SIZE, ARY_OWNS_HEAP_P, ary_resize_capa(), ARY_SET_LEN, Qnil, RARRAY_AREF, RARRAY_LEN, and rb_ary_modify_check().
Referenced by args_pop_keyword_hash(), cut_stack_tail(), flatten(), r_object0(), rb_ary_pop_m(), rb_str_split_m(), rb_thread_s_handle_interrupt(), and rb_uninterruptible().
Definition at line 905 of file array.c.
References ary_ensure_room_for_push(), ARY_SET_LEN, RARRAY_LEN, RARRAY_PTR_USE, and RB_OBJ_WRITE.
Referenced by add_cipher_name_to_ary(), add_event_call_back(), add_modules(), addrinfo_list_new(), args_extend(), args_setup_kw_parameters(), args_stored_kw_argv_to_hash(), ary_reject(), backtrace_collect(), BigDecimal_split(), cdhash_each(), check_exec_env_i(), check_exec_redirect(), check_exec_redirect1(), chunk_ii(), collect_all(), collect_caller_bindings_cfunc(), collect_caller_bindings_iseq(), collect_i(), collect_trace(), collect_values(), compile_array_(), cv_list_i(), cycle_i(), define_final0(), drop_i(), drop_while_i(), each_cons_i(), each_slice_i(), econv_convpath(), enc_names_i(), env_each_pair(), env_keys(), env_to_a(), env_values(), env_values_at(), etc_getpwent(), EVENTSINK_Invoke(), evs_push(), fdbm_delete_if(), fdbm_keys(), fdbm_select(), fdbm_to_a(), fdbm_values(), fdbm_values_at(), features_index_add_single(), fgdbm_delete_if(), fgdbm_keys(), fgdbm_select(), fgdbm_to_a(), fgdbm_values(), fgdbm_values_at(), filename_completion_proc_call(), find_all_i(), first_i(), flat_map_i(), flatten(), foletype_s_progids(), foletypelib_s_typelibs(), fsdbm_delete_if(), fsdbm_keys(), fsdbm_select(), fsdbm_to_a(), fsdbm_values(), fsdbm_values_at(), gc_profile_record_get(), generator_each(), get_dns_server_list(), grep_i(), grep_iter_i(), group_by_i(), gvar_i(), ibf_dump_object(), ibf_dump_object_list(), ibf_dump_setup(), ibf_load_object_array(), Init_Array(), Init_Encoding(), Init_ossl_ssl(), Init_VM(), ins_methods_push(), int_ossl_asn1_decode0_cons(), io_readlines(), iseq_add_mark_object_compile_time(), iseq_data_to_ary(), iseq_mark_ary_create(), iseq_set_arguments(), iseq_set_arguments_keywords(), ivar_i(), JSON_parse_array(), JSON_parse_string(), keys_i(), lazy_add_method(), lazy_zip(), lazy_zip_arrays_func(), lazy_zip_func(), lex_getline(), list_i(), make_addrinfo(), make_hostent_internal(), make_unknown_kw_hash(), match_array(), match_ary_aref(), match_ary_subseq(), match_i(), match_values_at(), mk_ary_of_str(), nmin_i(), nsdr(), ole_method_params(), ole_methods_sub(), ole_type_impl_ole_types(), ole_typedesc2val(), ole_types_from_typelib(), ole_usertype2val(), ole_variables(), open_key_args(), ossl_asn1_decode0(), ossl_asn1_decode_all(), ossl_engine_get_cmds(), ossl_engine_s_engines(), ossl_get_errors(), ossl_ocspbres_get_responses(), ossl_ocspbres_get_status(), ossl_ocspreq_get_certid(), ossl_ocspsres_get_extensions(), ossl_pkcs7_get_recipient(), ossl_pkcs7_get_signer(), ossl_ssl_cipher_to_ary(), ossl_ssl_get_peer_cert_chain(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_get_ciphers(), ossl_sslctx_session_get_cb(), ossl_sslctx_session_new_cb(), ossl_sslctx_session_remove_cb(), ossl_x509_get_extensions(), ossl_x509crl_get_extensions(), ossl_x509crl_get_revoked(), ossl_x509name_to_a(), ossl_x509req_get_attributes(), ossl_x509revoked_get_extensions(), ossl_x509stctx_get_chain(), pack_pack(), parse(), partition_i(), proc_waitall(), push_include(), push_pattern(), push_value(), queue_do_pop(), queue_do_push(), r_object0(), random_dump(), rb_ary_and(), rb_ary_collect(), rb_ary_diff(), rb_ary_product(), rb_ary_select(), rb_ary_zip(), rb_condvar_wait(), rb_construct_expanded_load_path(), rb_enc_name_list_i(), rb_f_global_variables(), rb_f_untrace_var(), rb_fiddle_ptr_free_get(), rb_fix_digits(), rb_gc_register_mark_object(), rb_get_kwargs(), rb_get_values_at(), rb_gzreader_readlines(), rb_hash_fetch_values(), rb_hash_values_at(), rb_insn_operand_intern(), rb_insns_name_array(), rb_int_digits_bigbase(), rb_iseq_add_mark_object(), rb_iseq_parameters(), rb_local_constants_i(), rb_mod_ancestors(), rb_mod_included_modules(), rb_mod_nesting(), rb_provide_feature(), rb_require_internal(), rb_scan_args(), rb_str_enumerate_bytes(), rb_str_enumerate_chars(), rb_str_enumerate_codepoints(), rb_str_enumerate_lines(), rb_str_scan(), rb_str_split_m(), rb_struct_select(), rb_szqueue_push(), rb_thread_list(), rb_thread_s_handle_interrupt(), rb_threadptr_pending_interrupt_enque(), rb_uninterruptible(), rb_zlib_crc_table(), reachable_object_from_i(), reg_names_iter(), reject_i(), ruby_init_loadpath_safe(), ruby_set_argv(), run_exec_dup2_child(), save_env_i(), save_redirect_fd(), scan_once(), select_internal(), set_argv(), sliceafter_ii(), slicebefore_ii(), slicewhen_ii(), sock_s_gethostbyaddr(), sock_s_unpack_sockaddr_in(), ssl_renegotiation_cb(), strio_readlines(), symbols_i(), take_i(), take_while_i(), thgroup_list(), thread_keys_i(), to_a_i(), unnamed_parameters(), used_modules_i(), username_completion_proc_call(), values_i(), with_gvl_callback(), wmap_keys_i(), wmap_values_i(), yycompile0(), yyparse(), zip_ary(), and zip_i().
Definition at line 3808 of file array.c.
References Qnil, RARRAY_AREF, RARRAY_LEN, rb_equal(), RB_TYPE_P, and T_ARRAY.
Referenced by Init_Array().
Definition at line 3437 of file array.c.
References ARY_HEAP_SIZE, ary_make_shared(), ary_memcpy(), ARY_OWNS_HEAP_P, ARY_SET_LEN, ARY_SET_PTR, ARY_SHARED, ARY_SHARED_P, FL_SET_EMBED, FL_UNSET_EMBED, FL_UNSET_SHARED, RARRAY_CONST_PTR, RARRAY_EMBED_LEN_MAX, RARRAY_LEN, RARRAY_PTR_USE, rb_ary_decrement_share(), rb_ary_modify_check(), rb_ary_set_shared(), rb_ary_unshare_safe(), ruby_sized_xfree(), and to_ary().
Referenced by enc_list(), Init_Array(), rb_ary_flatten_bang(), rb_ary_initialize(), rb_ary_sort_by_bang(), rb_ary_to_a(), rb_construct_expanded_load_path(), and reset_loaded_features_snapshot().
expands or shrinks ary to len elements.
expanded region will be filled with Qnil.
ary | an array |
len | new size |
Definition at line 1650 of file array.c.
References ARY_CAPA, ARY_DEFAULT_SIZE, ary_discard(), ary_double_capa(), ARY_EMBED_P, ARY_EMBED_PTR, ARY_HEAP_PTR, ARY_MAX_SIZE, ary_mem_clear(), ARY_SET_CAPA, ARY_SET_EMBED_LEN, ARY_SET_HEAP_LEN, ARY_SET_LEN, MEMCPY, RARRAY, RARRAY_EMBED_LEN_MAX, RARRAY_LEN, rb_ary_modify(), rb_eIndexError, rb_raise(), and SIZED_REALLOC_N.
Referenced by args_reduce(), args_setup_post_parameters(), enum_sort_by(), match_ary_subseq(), nmin_filter(), rb_get_values_at(), and rb_nmin_run().
Definition at line 1937 of file array.c.
References ary_join_1(), RARRAY_CONST_PTR, RARRAY_LEN, rb_ary_new4, rb_output_fs, and result.
Referenced by obj_resurrect().
Definition at line 2216 of file array.c.
References ary_reverse(), len, RARRAY_LEN, RARRAY_PTR_USE, and rb_ary_modify().
Referenced by collect_caller_bindings(), rb_ary_reverse_bang(), and rb_nmin_run().
Definition at line 2280 of file array.c.
References ary_reverse(), len, Qnil, RARRAY_LEN, RARRAY_PTR, rb_ary_modify(), and rotate_count().
Referenced by rb_ary_rotate_bang().
Definition at line 431 of file array.c.
References ARY_EMBED_P, ARY_SHARED_P, Qfalse, Qtrue, and RARRAY.
Referenced by get_loaded_features_index(), and rb_get_expanded_load_path().
Definition at line 1000 of file array.c.
References ARY_DEFAULT_SIZE, ARY_EMBED_P, ARY_INCREASE_LEN, ARY_INCREASE_PTR, ary_make_shared(), ARY_SET, ARY_SHARED, ARY_SHARED_OCCUPIED, ARY_SHARED_P, assert, len, MEMMOVE, Qnil, RARRAY_AREF, RARRAY_LEN, RARRAY_PTR_USE, rb_ary_modify_check(), and top.
Referenced by argf_next_argv(), each_cons_i(), filename_completion_proc_call(), process_sflag(), queue_do_pop(), rb_ary_shift_m(), rb_szqueue_max_set(), rb_threadptr_pending_interrupt_deque(), require_libraries(), username_completion_proc_call(), and wakeup_first_thread().
Definition at line 2535 of file array.c.
References ary_sort_data::ary, rb_ary_bsearch_index(), rb_ary_dup(), and rb_ary_sort_bang().
Referenced by Init_Array().
Definition at line 2451 of file array.c.
References ary_sort_data::ary, ARY_EMBED_LEN, ARY_EMBED_P, ARY_EMBED_PTR, ARY_HEAP_PTR, ARY_HEAP_SIZE, ary_make_substitution(), ary_memcpy(), ARY_SET_CAPA, ARY_SET_EMBED_LEN, ARY_SET_HEAP_LEN, ARY_SET_LEN, ARY_SET_PTR, ARY_SHARED_P, assert, ary_sort_data::cmp_opt, FL_FREEZE, FL_SET, FL_SET_EMBED, FL_UNSET, FL_UNSET_EMBED, FL_UNSET_SHARED, len, cmp_opt_data::opt_inited, cmp_opt_data::opt_methods, RARRAY_CONST_PTR, RARRAY_LEN, RARRAY_PTR_USE, rb_ary_modify(), rb_ary_unshare(), rb_block_given_p(), rb_cArray, RBASIC_CLEAR_CLASS, RBASIC_SET_CLASS_RAW, ruby_qsort(), ruby_sized_xfree(), sort_1(), and sort_2().
Referenced by enum_sort(), Init_Array(), and rb_ary_sort().
Definition at line 799 of file array.c.
References ARY_CAPA, ary_double_capa(), ARY_MAX_SIZE, ary_mem_clear(), ARY_SET, ARY_SET_LEN, len, RARRAY_LEN, rb_ary_modify(), rb_eIndexError, and rb_raise().
Referenced by addrinfo_ip_unpack(), ary_new_dim(), ary_store_dim(), check_exec_fds(), collect_caller_bindings(), collect_caller_bindings_cfunc(), collect_caller_bindings_iseq(), decorate_convpath(), econv_primitive_errinfo(), enc_register_at(), enum_sort_by(), evs_delete(), get_loaded_features_index(), ibf_dump_iseq(), ibf_load_iseq(), ibf_load_object(), Init_ossl_asn1(), initialize(), iseq_data_to_ary(), lazy_drop_proc(), lazy_drop_while_proc(), lazy_take_proc(), lep_svar_set(), ossl_generate_cb_2(), path_entries(), path_s_glob(), pty_getpty(), rb_ary_aset(), rb_ary_collect_bang(), rb_ary_delete(), rb_ary_delete_same(), rb_ary_initialize(), rb_ary_transpose(), rb_enc_aliases_enc_i(), rb_sym_to_proc(), reg_named_captures_iter(), reject_bang_i(), search_convpath_i(), select_bang_i(), set_id_entry(), struct_set_members(), unnamed_parameters(), zip_ary(), and zip_i().
Definition at line 1212 of file array.c.
References ary_make_partial(), ary_new(), Qnil, RARRAY_LEN, and rb_obj_class().
Referenced by args_rest_array(), get_stack_tail(), initialize(), rb_apply(), rb_ary_aref(), rb_ary_drop(), rb_ary_take(), and take_items().
VALUE rb_ary_tmp_new | ( | long | ) |
Definition at line 532 of file array.c.
References ary_new().
Referenced by args_setup_kw_parameters(), ary_buf_new(), compile_array_(), cont_capture(), coverage(), enum_sort_by(), fdbm_delete_if(), fgdbm_delete_if(), ibf_dump_object_list(), ibf_dump_setup(), ibf_load_setup(), Init_load(), Init_sym(), Init_Thread(), Init_vm_objects(), iseq_mark_ary_create(), iseq_set_arguments(), iseq_set_arguments_keywords(), make_unknown_kw_hash(), open_key_args(), prepare_iseq_build(), r_object0(), rb_ary_concat_multi(), rb_construct_expanded_load_path(), rb_gc_register_mark_object(), rb_get_kwargs(), rb_iseq_disasm(), rb_nmin_run(), rb_obj_info_dump(), rb_struct_new(), rb_sym_to_proc(), set_id_entry(), struct_set_members(), thread_create_core(), and with_gvl_callback().
Definition at line 1555 of file array.c.
References NIL_P, rb_ary_new3, and rb_check_array_type().
Referenced by rb_ary_aset(), and vm_expandarray().
Definition at line 2135 of file array.c.
References rb_ary_inspect().
Definition at line 1178 of file array.c.
References rb_ary_unshift_m().
Referenced by args_copy(), ole_invoke(), and parser_set_encode().
Definition at line 623 of file array.c.
References rb_ary_new3.
Referenced by addrinfo_getnameinfo(), addrinfo_mdump(), any_p_i(), assoc_i(), BigDecimal_coerce(), BigDecimal_divmod(), BigDecimal_prec(), bsock_getpeername(), check_exec_env_i(), check_exec_redirect1(), chunk_i(), chunk_ii(), console_beep(), console_echo_p(), dump_output(), each_pair_i(), econv_convpath(), enum_minmax(), enum_minmax_by(), enum_partition(), env_assoc(), env_each_pair(), env_rassoc(), env_shift(), env_to_a(), fdbm_delete_if(), fdbm_each_pair(), fdbm_select(), fdbm_shift(), fdbm_to_a(), fgdbm_delete_if(), fgdbm_each_pair(), fgdbm_select(), fgdbm_shift(), fgdbm_to_a(), fix_divmod(), flo_coerce(), flo_divmod(), float_decode_internal(), fsdbm_delete_if(), fsdbm_each_pair(), fsdbm_select(), fsdbm_shift(), fsdbm_to_a(), hash_sum_i(), match_offset(), math_frexp(), math_lgamma(), nucomp_coerce(), nucomp_marshal_dump(), nucomp_polar(), nucomp_rect(), num_coerce(), num_divmod(), numeric_polar(), numeric_rect(), nurat_coerce(), nurat_marshal_dump(), ossl_bn_coerce(), proc_wait2(), proc_waitall(), pty_open(), rassoc_i(), rb_big_divmod(), rb_big_divrem_normal(), rb_file_s_split(), rb_gcdlcm(), rb_hash_assoc(), rb_hash_shift(), rb_int_coerce(), rb_io_s_pipe(), rb_struct_each_pair(), rsock_ipaddr(), rsock_s_recvfrom(), rsock_s_recvfrom_nonblock(), save_redirect_fd(), search_convpath_i(), sock_accept(), sock_accept_nonblock(), sock_initialize(), sock_s_getnameinfo(), sock_s_unpack_sockaddr_in(), sock_sysaccept(), sockopt_linger(), to_a_i(), and yyparse().
Definition at line 1138 of file vm_method.c.
References METHOD_VISI_PRIVATE, METHOD_VISI_PROTECTED, METHOD_VISI_PUBLIC, PRIsVALUE, rb_add_method(), rb_id2str, rb_id_attrset(), rb_intern_str, rb_scope_module_func_check(), rb_scope_visibility_get(), rb_sprintf(), rb_warning(), VM_METHOD_TYPE_ATTRSET, and VM_METHOD_TYPE_IVAR.
Referenced by Init_Exception(), Init_ossl_asn1(), Init_ossl_pkcs12(), Init_ossl_pkcs7(), Init_ossl_ssl(), Init_ossl_x509ext(), Init_ossl_x509store(), rb_define_attr(), rb_mod_attr(), rb_mod_attr_accessor(), rb_mod_attr_reader(), and rb_mod_attr_writer().
Definition at line 1273 of file variable.c.
References Qnil, and rb_ivar_lookup().
Referenced by adjust_backtrace_in_eval(), append_method(), call_verify_certificate_identity(), ecerr_destination_encoding(), ecerr_destination_encoding_name(), ecerr_error_bytes(), ecerr_error_char(), ecerr_incomplete_input(), ecerr_readagain_bytes(), ecerr_source_encoding(), ecerr_source_encoding_name(), exc_backtrace(), exc_backtrace_locations(), exc_cause(), exc_equal(), exc_setup_cause(), exc_to_s(), exit_status(), exit_success_p(), gzfile_error_inspect(), ignore_closed_stream(), inspect_enumerator(), lazy_init_yielder(), lazy_zip_arrays_func(), lazy_zip_func(), loop_stop(), mustbe_callable(), name_err_local_variables(), name_err_name(), name_err_receiver(), nometh_err_args(), nometh_err_private_call_p(), ossl_asn1_get_asn1type(), ossl_call_client_cert_cb(), ossl_call_session_remove_cb(), ossl_cipher_is_authenticated(), ossl_cipher_update(), ossl_ssl_initialize(), ossl_ssl_read_internal(), ossl_ssl_setup(), ossl_ssl_verify_callback(), ossl_ssl_write_internal(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_setup(), ossl_start_ssl(), ossl_x509attr_set_value(), private_iv_get(), process_options(), pst_pid(), rb_error_frozen_object(), rb_mod_refine(), rb_mod_to_s(), rb_refinement_module_get_refined_class(), rb_singleton_class_has_metaclass_p(), rb_singleton_class_internal_p(), rb_syntax_error_append(), readline_attempted_completion_function(), readline_s_get_completion_case_fold(), readline_s_get_completion_proc(), readline_s_set_output(), reg_compile_gen(), ruby_th_dtrace_setup(), setup_exception(), sliceafter_i(), slicebefore_i(), slicewhen_i(), sockopt_data(), sockopt_family_m(), sockopt_level(), sockopt_optname(), ssl_renegotiation_cb(), stop_result(), struct_ivar_get(), syserr_eqq(), syserr_errno(), uncaught_throw_to_s(), used_modules_i(), using_module_recursive(), vm_call0_body(), vm_getivar(), and writer().
Definition at line 2198 of file variable.c.
References autoload_defined_p(), autoload_require(), autoload_reset(), autoload_sleep(), autoload_sleep_done(), check_autoload_data, check_autoload_required(), autoload_state::ele, autoload_state::head, id, autoload_state::id, mod, autoload_state::mod, autoload_state::node, Qfalse, rb_ensure(), RB_GC_GUARD, rb_sourcefile(), rb_thread_current(), result, autoload_data_i::state, autoload_state::thread, and autoload_state::waitq.
Referenced by rb_const_search(), and vm_get_ev_const().
Definition at line 2248 of file variable.c.
References autoload_defined_p(), check_autoload_data, check_autoload_required(), autoload_data_i::feature, Qnil, and RCLASS_SUPER.
Referenced by rb_mod_autoload_p().
VALUE rb_backref_get | ( | void | ) |
Definition at line 1207 of file vm.c.
References VM_SVAR_BACKREF, and vm_svar_get().
Referenced by date__httpdate(), date__iso8601(), date__jisx0301(), date__parse(), date__rfc2822(), date__rfc3339(), date__strptime_internal(), date__xmlschema(), last_match_getter(), last_paren_match_getter(), match_getter(), nucomp_s_convert(), nurat_s_convert(), postmatch_getter(), prematch_getter(), rb_backref_set_string(), rb_f_global_variables(), rb_pat_search(), rb_reg_match_m(), rb_reg_s_last_match(), rb_reg_search0(), rb_str_rpartition(), rb_str_split_m(), rb_str_sub_bang(), rb_str_subpat(), rb_str_subpat_set(), scan_once(), and str_gsub().
void rb_backref_set | ( | VALUE | ) |
Definition at line 1213 of file vm.c.
References VM_SVAR_BACKREF, and vm_svar_set().
Referenced by date__httpdate(), date__iso8601(), date__jisx0301(), date__parse(), date__rfc2822(), date__rfc3339(), date__strptime_internal(), date__xmlschema(), match_setter(), nucomp_s_convert(), nurat_s_convert(), rb_backref_set_string(), rb_pat_search(), rb_reg_eqq(), rb_reg_match2(), rb_reg_match_m(), rb_reg_search0(), rb_str_index_m(), rb_str_rindex_m(), and reg_match_pos().
void rb_backtrace | ( | void | ) |
Definition at line 776 of file vm_backtrace.c.
References vm_backtrace_print().
Referenced by rescue_callback().
double rb_big2dbl | ( | VALUE | ) |
Definition at line 5249 of file bignum.c.
References big2dbl(), isinf(), and rb_warning().
Referenced by flo_div(), flo_divmod(), flo_minus(), flo_mod(), flo_mul(), flo_plus(), int_to_f(), ole_val2ptr_variant(), ole_val2variant(), rb_ary_sum(), rb_big_divide(), rb_big_fdiv_double(), rb_big_minus(), rb_big_mul(), rb_big_plus(), rb_big_pow(), rb_float_pow(), and sum_iter().
long rb_big2long | ( | VALUE | ) |
Definition at line 5087 of file bignum.c.
References BDIGIT, BDIGITS, big2ulong(), BIGNUM_LEN, BIGNUM_POSITIVE_P, BIGSIZE, BIGUP, len, LONG_MAX, LONG_MIN, rb_eRangeError, and rb_raise().
Referenced by rb_num2long().
Definition at line 5041 of file bignum.c.
References rb_big2str1().
Referenced by format_value(), GetVpValueWithPrec(), rb_int2str(), and rb_str_format().
unsigned long rb_big2ulong | ( | VALUE | ) |
Definition at line 5072 of file bignum.c.
References big2ulong(), BIGNUM_POSITIVE_P, LONG_MIN, rb_eRangeError, and rb_raise().
Referenced by rb_num2ulong_internal(), and rb_num_to_uint().
void rb_big_2comp | ( | VALUE | ) |
Definition at line 3033 of file bignum.c.
References BDIGIT, and get2comp().
Definition at line 6283 of file bignum.c.
References abs2twocomp(), BDIGIT, BDIGITS, bigand_int(), bignew, bignorm(), FIX2LONG, FIXNUM_P, RB_GC_GUARD, RB_INTEGER_TYPE_P, rb_num_coerce_bit(), twocomp2abs_bang(), big_div_struct::yn, and big_div_struct::zds.
Referenced by fix_and(), and rb_int_and().
Definition at line 3004 of file bignum.c.
References BDIGIT, BDIGITS, bignew_1(), BIGNUM_LEN, BIGNUM_SIGN, CLASS_OF, len, and MEMCPY.
Referenced by rb_big_abs(), rb_big_comp(), and rb_big_uminus().
Definition at line 5346 of file bignum.c.
References bary_cmp(), BDIGITS, bigfixize(), BIGNUM_LEN, BIGNUM_SIGN, cmp(), FIXNUM_P, INT2FIX, RB_BIGNUM_TYPE_P, RB_FLOAT_TYPE_P, rb_integer_float_cmp(), rb_intern, rb_num_coerce_cmp(), and SIGNED_VALUE.
Referenced by big_op(), BigMath_s_log(), fix_cmp(), fix_ge(), fix_gt(), fix_le(), fix_lt(), is_negative(), rb_int_cmp(), and rb_integer_float_cmp().
Definition at line 6022 of file bignum.c.
References rb_big_divide().
Referenced by fix_divide(), and rb_int_div().
Definition at line 6066 of file bignum.c.
References bigdivmod(), bignorm(), div, FIX2LONG, FIXNUM_P, mod, rb_assoc_new(), RB_BIGNUM_TYPE_P, rb_int2big(), rb_intern, and rb_num_coerce_bin().
Referenced by fix_divmod(), and rb_int_divmod().
Definition at line 5451 of file bignum.c.
References BDIGIT, BDIGITS, bignorm(), BIGNUM_LEN, BIGNUM_SIGN, FIXNUM_P, MEMCMP, Qfalse, Qtrue, RB_BIGNUM_TYPE_P, rb_equal(), RB_FLOAT_TYPE_P, and rb_integer_float_eq().
Referenced by fix_equal(), rb_int_equal(), and rb_integer_float_eq().
Definition at line 5471 of file bignum.c.
References BDIGIT, BDIGITS, BIGNUM_LEN, BIGNUM_SIGN, MEMCMP, Qfalse, Qtrue, and RB_BIGNUM_TYPE_P.
Referenced by num_eql().
Definition at line 6028 of file bignum.c.
References rb_big_divide(), and rb_intern.
Referenced by rb_int_idiv().
Definition at line 6544 of file bignum.c.
References big_shift2(), big_shift3(), bignorm(), bit_length, BITSPERDIG, FIX2LONG, FIXNUM_P, RB_BIGNUM_TYPE_P, rb_to_int(), and shift().
Referenced by fix_lshift(), rb_fix_lshift(), and rb_int_lshift().
Definition at line 5780 of file bignum.c.
References bigadd(), bigadd_int(), bignorm(), BIGNUM_SIGN, bigsub_int(), DBL2NUM, FIX2LONG, FIXNUM_P, rb_big2dbl(), RB_BIGNUM_TYPE_P, RB_FLOAT_TYPE_P, rb_num_coerce_bin(), and RFLOAT_VALUE.
Referenced by fix_minus(), int_range_sum(), rand_int(), rand_range(), rb_int_minus(), rb_int_pred(), sub(), and wsub().
Definition at line 6034 of file bignum.c.
References bigdivmod(), bignorm(), FIX2LONG, FIXNUM_P, RB_BIGNUM_TYPE_P, rb_int2big(), and rb_num_coerce_bin().
Referenced by fix_mod(), mod(), and rb_int_modulo().
Definition at line 5867 of file bignum.c.
References bigmul0(), bignorm(), DBL2NUM, FIX2LONG, FIXNUM_P, rb_big2dbl(), RB_BIGNUM_TYPE_P, RB_FLOAT_TYPE_P, rb_int2big(), rb_num_coerce_bin(), and RFLOAT_VALUE.
Referenced by f_imul(), fix_mul(), int_pow(), mul(), rb_fix_mul_fix(), and rb_int_mul().
Definition at line 3136 of file bignum.c.
References bignorm().
Referenced by fix_aref(), negate_lit(), rand_range(), and rb_int_digits_bigbase().
Definition at line 6402 of file bignum.c.
References abs2twocomp(), BDIGIT, BDIGITS, bignew, bignorm(), bigor_int(), FIX2LONG, FIXNUM_P, RB_GC_GUARD, RB_INTEGER_TYPE_P, rb_num_coerce_bit(), twocomp2abs_bang(), big_div_struct::yn, and big_div_struct::zds.
void rb_big_pack | ( | VALUE | val, |
unsigned long * | buf, | ||
long | num_longs | ||
) |
Definition at line 3199 of file bignum.c.
References INTEGER_PACK_2COMP, INTEGER_PACK_LSWORD_FIRST, INTEGER_PACK_NATIVE_BYTE_ORDER, and rb_integer_pack().
Referenced by is_even().
Definition at line 5751 of file bignum.c.
References bigadd(), bigadd_int(), bignorm(), BIGNUM_SIGN, bigsub_int(), DBL2NUM, FIX2LONG, FIXNUM_P, rb_big2dbl(), RB_BIGNUM_TYPE_P, RB_FLOAT_TYPE_P, rb_num_coerce_bin(), and RFLOAT_VALUE.
Referenced by add(), ary_inject_op(), enum_sum(), fix_plus(), rand_range(), rb_ary_sum(), rb_int_plus(), rb_int_succ(), sum_iter(), ulong_to_num_plus_1(), and wadd().
Definition at line 6174 of file bignum.c.
References bigmul0(), bignorm(), BIGNUM_NEGATIVE_P, bigsq(), bigtrunc(), BIGZEROP, DBL2NUM, FIX2LONG, FIXNUM_MAX, FIXNUM_P, INT2FIX, NULL, rb_absint_numwords(), rb_big2dbl(), RB_BIGNUM_TYPE_P, rb_complex_raw1, RB_FLOAT_TYPE_P, rb_funcall(), rb_intern, rb_num_coerce_bin(), rb_rational_raw1, rb_warn(), RFLOAT_VALUE, round(), and SIGNED_VALUE.
Referenced by fix_pow(), int_pow(), and rb_int_pow().
void rb_big_resize | ( | VALUE | big, |
size_t | len | ||
) |
Definition at line 2973 of file bignum.c.
References BIGNUM_SET_LEN, and rb_big_realloc().
Referenced by big_extend_carry(), bigfixize(), and bigtrunc().
Definition at line 6574 of file bignum.c.
References big_shift2(), big_shift3(), bignorm(), bit_length, BITSPERDIG, FIX2LONG, FIXNUM_P, RB_BIGNUM_TYPE_P, rb_to_int(), and shift().
Referenced by get_double_rshift(), rb_fix_rshift(), and rb_int_rshift().
VALUE rb_big_unpack | ( | unsigned long * | buf, |
long | num_longs | ||
) |
Definition at line 3207 of file bignum.c.
References INTEGER_PACK_2COMP, INTEGER_PACK_LSWORD_FIRST, INTEGER_PACK_NATIVE_BYTE_ORDER, and rb_integer_unpack().
Definition at line 6496 of file bignum.c.
References abs2twocomp(), BDIGIT, BDIGITS, bignew, bignorm(), bigxor_int(), FIX2LONG, FIXNUM_P, RB_GC_GUARD, RB_INTEGER_TYPE_P, rb_num_coerce_bit(), twocomp2abs_bang(), big_div_struct::yn, and big_div_struct::zds.
int rb_bigzero_p | ( | VALUE | x | ) |
Definition at line 2903 of file bignum.c.
References BIGZEROP.
Referenced by num_positive_p(), num_zero_p(), rand_int(), and rand_range().
VALUE rb_binding_new | ( | void | ) |
Definition at line 340 of file proc.c.
References rb_thread_struct::cfp, GET_THREAD, and rb_vm_make_binding().
Referenced by call_trace_func(), Init_VM(), and rb_f_binding().
VALUE rb_block_lambda | ( | void | ) |
Definition at line 801 of file proc.c.
References argc, argv, check_argc, proc_new(), rb_cProc, rb_eArgError, rb_raise(), and TRUE.
Referenced by Init_Proc(), Init_VM(), and rb_mod_define_method().
VALUE rb_block_proc | ( | void | ) |
Definition at line 787 of file proc.c.
References FALSE, proc_new(), and rb_cProc.
Referenced by define_final(), enum_chunk(), enum_chunk_while(), enum_slice_after(), enum_slice_before(), enum_slice_when(), enumerator_initialize(), ev_on_event(), generator_initialize(), Init_Proc(), Init_VM(), lazy_add_method(), lazy_to_enum(), m_core_set_postexe(), obj_to_enum(), ossl_x509store_verify(), rb_f_at_exit(), rb_f_trace_var(), rb_fiber_init(), rb_hash_initialize(), rb_method_call(), rb_scan_args(), sig_trap(), thread_create_core(), tracepoint_new_s(), and yielder_initialize().
|
inlinestatic |
Definition at line 297 of file intern.h.
References argc, rb_error_arity(), and UNLIMITED_ARGUMENTS.
Definition at line 635 of file array.c.
References rb_check_convert_type(), and T_ARRAY.
Referenced by addrinfo_initialize(), args_check_block_arg0(), check_exec_redirect(), dir_s_glob(), divmodv(), econv_init(), enum_to_h_i(), enum_zip(), flat_map_i(), flatten(), io_puts_ary(), lazy_flat_map_to_ary(), lazy_zip(), ossl_ocspbres_add_status(), ossl_x509name_initialize(), path_split(), rb_Array(), rb_ary_assoc(), rb_ary_cmp(), rb_ary_initialize(), rb_ary_s_try_convert(), rb_ary_to_ary(), rb_ary_to_h(), rb_check_argv(), rb_econv_init_by_convpath(), rb_hash_s_create(), rb_io_s_popen(), rb_reg_s_union_m(), rb_str_format_m(), rb_yield_splat(), sock_s_getnameinfo(), take_items(), time_timespec(), and vm_callee_setup_block_arg_arg0_check().
Definition at line 2643 of file object.c.
References conversion_mismatch(), convert_type(), FALSE, NIL_P, Qnil, T_DATA, TYPE, and val.
Referenced by ary_join_1(), check_exec_redirect_fd(), cState_configure(), rb_Array(), rb_check_array_type(), rb_check_hash_type(), rb_check_regexp_type(), rb_check_string_type(), rb_check_to_float(), rb_gzwriter_initialize(), rb_hash_set_default_proc(), rb_io_check_io(), rb_stat(), and vm_to_proc().
Definition at line 2490 of file error.c.
References FL_ABLE, FL_TAINT, PRIsVALUE, rb_check_frozen_internal, rb_raise(), rb_safe_level(), and RBASIC.
Referenced by random_init(), and random_load().
void rb_check_frozen | ( | VALUE | ) |
Definition at line 2473 of file error.c.
References rb_check_frozen_internal.
|
inlinestatic |
Definition at line 272 of file intern.h.
References rb_check_frozen_internal.
Definition at line 439 of file vm_eval.c.
References Qundef, and rb_check_funcall_default().
Referenced by check_respond_to_missing(), compare_with_zero(), convert_type(), enum_size(), enum_size_over_p(), enumerator_rewind(), enumerator_size(), exc_equal(), flo_cmp(), io_call_close(), io_close(), is_integer_p(), iterate_check_method(), limit_by_enum_size(), make_exception(), num_exact(), num_funcall_bit_1(), num_step_compare_with_zero(), path_initialize(), rb_fiddle_ptr_s_to_ptr(), rb_get_path_check_to_string(), rb_iseq_load_iseq(), rb_marshal_load_with_proc(), rb_str_cmp_m(), rb_threadptr_error_print(), run_single_final(), set_backtrace(), time_timespec(), and try_convert_to_exception().
Definition at line 736 of file hash.c.
References rb_check_convert_type(), and T_HASH.
Referenced by check_hash(), get_hash(), keyword_hash_p(), rb_econv_prepare_options(), rb_Hash(), rb_hash_s_try_convert(), rb_io_s_popen(), rb_scan_args(), rb_str_sub_bang(), and str_gsub().
Definition at line 2164 of file string.c.
References rb_check_convert_type(), and T_STRING.
Referenced by ary_join_1(), check_gid_switch(), check_rounding_mode_option(), constant_arg(), env_has_value(), env_rassoc(), extract_getline_args(), get_pat(), get_pat_quoted(), gzreader_gets(), io_encoding_set(), make_exception(), month_arg(), prepare_getline_args(), range_each(), range_step(), rb_ary_join(), rb_ary_times(), rb_check_id(), rb_check_sockaddr_string_type(), rb_check_symbol(), rb_convert_to_integer(), rb_digest_instance_equal(), rb_f_kill(), rb_fs_check(), rb_io_extract_encoding_option(), rb_marshal_load_with_proc(), rb_num_get_rounding_option(), rb_str_format(), rb_str_include_range_p(), rb_str_index_m(), rb_str_rindex_m(), rb_str_rpartition(), rb_str_s_try_convert(), rb_String(), rb_threadptr_error_print(), rb_to_encoding_index(), reg_operand(), setup_narg(), string_for_symbol(), trap_handler(), and utc_offset_arg().
Definition at line 3016 of file object.c.
References Qnil, rb_check_convert_type(), rb_cNumeric, rb_obj_is_kind_of(), RB_TYPE_P, T_FLOAT, and val.
Referenced by rand_random(), and rand_range().
Definition at line 2693 of file object.c.
References rb_check_to_integer().
Referenced by exit_initialize(), num_exact(), rand_random(), rand_range(), and rb_file_initialize().
Definition at line 2673 of file object.c.
References convert_type(), FALSE, FIXNUM_P, Qnil, rb_cInteger, rb_obj_is_kind_of(), RB_TYPE_P, T_BIGNUM, and val.
Referenced by esignal_init(), range_include(), range_step(), rb_check_to_int(), rb_io_extract_modeenc(), rb_io_s_sysopen(), and sockopt_s_linger().
|
inlinestatic |
Definition at line 278 of file intern.h.
References rb_check_trusted_internal.
Definition at line 443 of file variable.c.
References rb_class_path(), and rb_class_real().
Referenced by cannot_be_coerced_into_BigDecimal(), const_tbl_update(), dir_inspect(), exc_inspect(), exc_to_s(), Init_class_hierarchy(), method_inspect(), mString_to_json_raw_object(), name_err_mesg_to_str(), r_object0(), rb_any_to_s(), rb_const_search(), rb_const_warn_if_deprecated(), rb_cvar_get(), rb_cvar_set(), rb_io_inspect(), rb_mod_define_method(), rb_mod_freeze(), rb_mod_initialize_clone(), rb_mod_to_s(), rb_obj_inspect(), rb_threadptr_error_print(), umethod_bind(), w_extended(), and wmap_inspect().
Definition at line 1891 of file object.c.
References rb_obj_alloc(), and rb_obj_call_init().
Referenced by console_dev(), copy_stream_body(), domain_error(), each_entry_i(), glob_i(), gzfile_wrap(), Init_Exception(), Init_IO(), Init_Regexp(), InitVM_Object(), io_new_instance(), JSON_parse_array(), JSON_parse_object(), make_no_method_exception(), mark(), new_wrap(), path_basename(), path_dirname(), path_entries(), path_expand_path(), path_f_pathname(), path_readlink(), path_realdirpath(), path_realpath(), path_s_getwd(), path_s_glob(), path_split(), path_sub(), path_sub_ext(), process_sflag(), rb_exit(), rb_f_abort(), rb_fiddle_new_function(), rb_io_initialize(), rb_io_s_new(), rb_io_s_open(), rb_name_error(), rb_name_error_str(), rb_readwrite_syserr_fail(), rb_reg_s_union(), rb_struct_alloc(), rb_struct_new(), rb_syntax_error_append(), rb_sys_fail_str(), rb_syserr_new_str(), rb_throw_obj(), setup_struct(), strio_s_new(), strio_s_open(), time_s_now(), w32error_make_error(), and yycompile0().
Definition at line 294 of file variable.c.
References ivar_cache(), NIL_P, fc_result::path, rb_str_dup(), and rb_tmp_class_path().
Referenced by class2path(), inspect_enumerator(), inspect_struct(), match_inspect(), ossl_cipher_init(), rb_class_name(), rb_define_class_id_under(), rb_profile_frame_classpath(), rb_thread_current_status(), rb_thread_inspect(), and vm_cref_dump().
Definition at line 318 of file variable.c.
References classpath, Qnil, RCLASS_IV_TBL, st_data_t, st_lookup, and tmp_classpath.
Referenced by newobj_i(), rb_const_set(), and rb_raw_obj_info().
Definition at line 1921 of file object.c.
References Qnil, rb_cBasicObject, rb_eTypeError, rb_raise(), RB_TYPE_P, RCLASS_SUPER, and T_ICLASS.
Referenced by get_digest_base_metadata(), InitVM_Object(), and ossl_asn1_default_tag().
void rb_clear_constant_cache | ( | void | ) |
Definition at line 90 of file vm_method.c.
References INC_GLOBAL_CONSTANT_STATE.
Referenced by const_tbl_update(), include_modules_at(), rb_const_remove(), rb_const_set(), and set_const_visibility().
void rb_clear_method_cache_by_class | ( | VALUE | ) |
Definition at line 96 of file vm_method.c.
References INC_GLOBAL_METHOD_STATE, rb_subclass_entry::klass, rb_subclass_entry::next, NULL, Qnil, Qundef, rb_cBasicObject, rb_class2name(), rb_class_clear_method_cache(), rb_cObject, rb_id_table_clear(), rb_mKernel, RCLASS_CALLABLE_M_TBL, RCLASS_EXT, and RUBY_DTRACE_HOOK.
Referenced by include_modules_at(), m_core_undef_method(), rb_add_refined_method_entry(), rb_export_method(), rb_method_entry_make(), rb_using_module(), and remove_method().
int rb_cloexec_dup | ( | int | oldfd | ) |
Definition at line 281 of file io.c.
References rb_cloexec_fcntl_dupfd().
Referenced by close_unless_reserved(), pty_getpty(), readline_s_set_input(), readline_s_set_output(), and ruby_dup().
int rb_cloexec_dup2 | ( | int | oldfd, |
int | newfd | ||
) |
Definition at line 288 of file io.c.
References dup2(), errno, O_CLOEXEC, and rb_maygvl_fd_fix_cloexec().
Referenced by close_unless_reserved(), io_reopen(), and rb_io_reopen().
int rb_cloexec_fcntl_dupfd | ( | int | fd, |
int | minfd | ||
) |
Definition at line 360 of file io.c.
References errno, F_DUPFD, F_DUPFD_CLOEXEC, fcntl(), and rb_maygvl_fd_fix_cloexec().
Referenced by rb_cloexec_dup(), and rb_exec_async_signal_safe().
Definition at line 255 of file io.c.
References O_CLOEXEC, rb_fix_detect_o_cloexec(), and rb_maygvl_fd_fix_cloexec().
Referenced by chfunc(), close_unless_reserved(), console_dev(), get_device_once(), open_load_file(), rb_file_load_ok(), rb_file_s_join(), rb_pipe(), and sysopen_func().
int rb_cloexec_pipe | ( | int | fildes[2] | ) |
void rb_close_before_exec | ( | int | lowfd, |
int | maxhint, | ||
VALUE | noclose_fds | ||
) |
Referenced by rb_execarg_run_options(), and rb_pipe().
Definition at line 2909 of file bignum.c.
References BIGNUM_SIGN, BIGZEROP, FIX2LONG, FIXNUM_P, INT2FIX, NIL_P, RB_BIGNUM_TYPE_P, rb_cmperr(), rb_funcall(), and RTEST.
Referenced by check_step_domain(), cmp(), cmp_equal(), cmpint(), enum_each_cons_size(), f_gt_p(), flo_cmp(), max_by_i(), max_ii(), min_by_i(), min_ii(), minmax_by_i(), minmax_by_i_update(), minmax_ii(), minmax_ii_update(), nmin_block_cmp(), nmin_cmp(), r_less(), range_bsearch(), range_max(), range_min(), rb_ary_bsearch_index(), rb_ary_max(), rb_ary_min(), rb_invcmp(), ruby_num_interval_step_size(), sort_1(), sort_2(), sort_by_cmp(), and wcmp().
Definition at line 1441 of file complex.c.
References nucomp_s_convert(), and rb_cComplex.
Referenced by nurat_coerce().
Definition at line 1429 of file complex.c.
References nucomp_s_canonicalize_internal(), and rb_cComplex.
Referenced by ibf_load_object_complex_rational(), num_imaginary(), and rb_math_sqrt().
Definition at line 1435 of file complex.c.
References f_complex_polar(), and rb_cComplex.
Referenced by read_comp().
Definition at line 1423 of file complex.c.
References nucomp_s_new_internal(), and rb_cComplex.
Referenced by parser_set_number_literal().
Definition at line 2580 of file variable.c.
References FALSE, rb_const_defined_0(), and TRUE.
Referenced by console_dev(), Init_cparse(), Init_strscan(), rb_define_class(), rb_define_module(), rb_mod_const_defined(), and vm_get_ev_const().
Definition at line 2586 of file variable.c.
References FALSE, rb_const_defined_0(), and TRUE.
Referenced by debug_lines(), new_struct(), rb_const_remove(), rb_define_class_id_under(), rb_define_module_id_under(), rb_mod_const_defined(), and vm_search_const_defined_class().
Definition at line 2574 of file variable.c.
References FALSE, rb_const_defined_0(), and TRUE.
Definition at line 2335 of file variable.c.
References FALSE, rb_const_get_0(), and TRUE.
Referenced by console_dev(), cState_from_state_s(), float_arg(), function_call(), generic_to_value(), Init_cparse(), Init_generator(), Init_objspace(), Init_parser(), Init_psych_parser(), process_options(), rb_define_class(), rb_define_module(), rb_execarg_parent_start1(), rb_mod_const_defined(), rb_mod_const_get(), rb_vm_fstring_table(), save_env(), set_argv(), syserr_eqq(), syserr_initialize(), vm_get_ev_const(), vm_set_main_stack(), and with_gvl_callback().
Definition at line 2341 of file variable.c.
References FALSE, rb_const_get_0(), and TRUE.
Referenced by debug_lines(), Init_cparse(), mark(), path_unlink(), rb_define_class_id_under(), rb_define_module_id_under(), rb_mod_const_defined(), and rb_mod_const_get().
Definition at line 2329 of file variable.c.
References FALSE, rb_const_get_0(), and TRUE.
VALUE rb_const_list | ( | void * | ) |
Definition at line 2492 of file variable.c.
References list_i(), st_table::num_entries, rb_ary_new2, st_foreach_safe(), and st_free_table.
Referenced by rb_mod_constants(), and rb_mod_s_constants().
Definition at line 2387 of file variable.c.
References autoload_delete(), ID2SYM, Qnil, Qundef, rb_check_frozen, rb_clear_constant_cache(), rb_const_defined_at(), rb_const_lookup(), rb_id_table_delete(), rb_name_err_raise, RCLASS_CONST_TBL, val, rb_const_entry_struct::value, and xfree().
Referenced by console_dev(), rb_mod_remove_const(), and ruby_init_prelude().
Definition at line 2616 of file variable.c.
References check_before_mod_set(), classpath, CONST_PUBLIC, const_tbl_update(), id, autoload_const_set_args::id, autoload_const_set_args::mod, NIL_P, OBJ_FREEZE, PRIsVALUE, QUOTE_ID, rb_class_path_cached(), rb_clear_constant_cache(), rb_cObject, rb_eTypeError, rb_id2str, rb_id_table_create(), rb_id_table_insert(), rb_ivar_set(), rb_name_class(), rb_raise(), rb_str_append(), rb_str_cat2(), rb_str_dup(), RB_TYPE_P, RCLASS_CONST_TBL, RCLASS_IV_TBL, setup_const_entry(), st_data_t, st_lookup, T_CLASS, T_MODULE, tmp_classpath, val, autoload_const_set_args::value, and ZALLOC.
Referenced by boot_defclass(), console_dev(), Init_class_hierarchy(), Init_strscan(), rb_autoload_str(), rb_define_class(), rb_define_class_id_under(), rb_define_const(), rb_define_module(), rb_define_module_id_under(), rb_mod_const_set(), and ruby_init_loadpath_safe().
Definition at line 2630 of file object.c.
References conversion_mismatch(), convert_type(), TRUE, TYPE, and val.
Referenced by addrinfo_mload(), console_beep(), core_hash_merge_kwd(), cParser_initialize(), cState_configure(), iseq_build_from_ary_body(), iseq_build_from_ary_exception(), nucomp_s_convert(), numeric_quo(), numeric_to_float(), nurat_s_convert(), open_key_args(), path_entries(), path_s_glob(), rb_execarg_parent_start1(), rb_Float(), rb_io_get_io(), rb_num2dbl(), rb_str_to_str(), rb_String(), rb_thread_s_handle_interrupt(), register_label(), strio_copy(), symbol2event_flag(), to_ary(), and to_hash().
Definition at line 1549 of file variable.c.
References FL_EXIVAR, FL_SET, FL_TEST, FL_UNSET, gen_ivar_copy(), gen_ivar_each(), gen_ivtbl_count(), gen_ivtbl_get(), gen_ivtbl_resize(), givar_copy::iv_index_tbl, iv_index_tbl_make(), gen_ivtbl::ivptr, givar_copy::ivtbl, gen_ivtbl::numiv, givar_copy::obj, Qundef, rb_check_frozen, rb_free_generic_ivar(), st_data_t, and st_insert.
Referenced by d_lite_jisx0301(), d_lite_marshal_dump(), d_lite_marshal_load(), init_copy(), nucomp_marshal_dump(), nurat_marshal_dump(), rb_clone_setup(), rb_dup_setup(), rb_hash_dup(), time_mdump(), and time_mload().
Definition at line 4488 of file bignum.c.
References rb_cstr_to_inum().
Referenced by JSON_parse_integer().
double rb_cstr_to_dbl | ( | const char * | , |
int | |||
) |
Definition at line 2785 of file object.c.
References bad, buf, DBL_DIG, errno, ISDIGIT, ISSPACE, OutOfRange, rb_eArgError, rb_invalid_str(), rb_raise(), rb_warning(), and strtod.
Referenced by JSON_parse_float(), rb_str_to_dbl(), and str2num().
Definition at line 3994 of file bignum.c.
References INT2FIX, NIL_P, NULL, rb_cstr_parse_inum(), and rb_invalid_str().
Referenced by ossl_bn_to_i(), parse_numeric(), parse_rational(), rb_cstr2inum(), read_digits(), and str2num().
Definition at line 2975 of file variable.c.
References cv_intern(), and rb_cvar_get().
Definition at line 2968 of file variable.c.
References cv_intern(), and rb_cvar_set().
Definition at line 2949 of file variable.c.
References CVAR_LOOKUP, Qfalse, and Qtrue.
Referenced by rb_mod_cvar_defined(), rb_mod_remove_cvar(), and vm_defined().
Definition at line 2922 of file variable.c.
References BUILTIN_TYPE, CVAR_LOOKUP, id, ID2SYM, original_module(), PRIsVALUE, QUOTE_ID, rb_class_name(), rb_name_err_raise, rb_warning(), RCLASS_IV_TBL, RTEST, ruby_verbose, st_data_t, st_delete, T_CLASS, and autoload_data_i::value.
Referenced by accept_charset(), rb_cv_get(), and rb_mod_cvar_get().
Definition at line 2889 of file variable.c.
References BUILTIN_TYPE, check_before_mod_set(), CVAR_LOOKUP, id, original_module(), PRIsVALUE, QUOTE_ID, rb_class_ivar_set(), rb_class_name(), rb_warning(), RCLASS_IV_TBL, RTEST, ruby_verbose, st_data_t, st_delete, st_init_numtable, and T_CLASS.
Referenced by rb_cv_set(), rb_define_class_variable(), and rb_mod_cvar_set().
VALUE rb_dbl2big | ( | double | ) |
Definition at line 5193 of file bignum.c.
References bignorm(), and dbl2big().
Referenced by BigDecimal_power(), case_when_optimizable_literal(), dbl2ival(), fix_divide(), flo_to_i(), float_decode_internal(), rb_big_divide(), rb_convert_to_integer(), rb_integer_float_cmp(), rb_integer_float_eq(), rb_str_format(), and ruby_num_interval_step_size().
void rb_define_alloc_func | ( | VALUE | , |
rb_alloc_func_t | |||
) |
Referenced by Init_Array(), Init_bigdecimal(), Init_Complex(), Init_Cont(), Init_date_core(), Init_dbm(), Init_digest(), Init_Dir(), Init_Encoding(), Init_fiddle_closure(), Init_fiddle_function(), Init_fiddle_handle(), Init_fiddle_pointer(), Init_File(), Init_GC(), Init_gdbm(), Init_generator(), Init_Hash(), Init_IO(), Init_ossl_bn(), Init_ossl_cipher(), Init_ossl_digest(), Init_ossl_hmac(), Init_ossl_ns_spki(), Init_ossl_ocsp(), Init_ossl_pkcs12(), Init_ossl_pkcs7(), Init_ossl_pkey(), Init_ossl_ssl(), Init_ossl_ssl_session(), Init_ossl_x509attr(), Init_ossl_x509cert(), Init_ossl_x509crl(), Init_ossl_x509ext(), Init_ossl_x509name(), Init_ossl_x509req(), Init_ossl_x509revoked(), Init_ossl_x509store(), Init_parser(), Init_psych_emitter(), Init_psych_parser(), Init_Rational(), Init_Regexp(), Init_sdbm(), Init_String(), Init_stringio(), Init_strscan(), Init_Thread(), Init_thread_sync(), Init_Time(), Init_vm_backtrace(), Init_win32ole(), Init_win32ole_event(), Init_win32ole_method(), Init_win32ole_param(), Init_win32ole_record(), Init_win32ole_type(), Init_win32ole_typelib(), Init_win32ole_variant(), Init_zlib(), InitVM_Enumerator(), InitVM_Object(), InitVM_Random(), InitVM_transcode(), parser_compile_error(), rsock_init_addrinfo(), setup_struct(), and struct_define_without_accessor().
Definition at line 2982 of file variable.c.
References cv_intern(), and rb_cvar_set().
Definition at line 2690 of file gc.c.
References define_final0(), should_be_callable(), and should_be_finalizable().
Referenced by rb_obj_info_dump().
VALUE rb_detach_process | ( | rb_pid_t | pid | ) |
Definition at line 1097 of file process.c.
References detach_process_watcher(), id_pid, PIDT2NUM, rb_cWaiter, rb_thread_create(), rb_thread_local_aset(), and RBASIC_SET_CLASS.
Referenced by proc_detach(), and pty_detach_process().
VALUE rb_dir_getwd | ( | void | ) |
Definition at line 1051 of file dir.c.
References ENCINDEX_ASCII, ENCINDEX_US_ASCII, my_getcwd, OBJ_TAINT, dir_data::path, rb_enc_associate_index(), rb_enc_to_index(), rb_filesystem_encoding(), rb_tainted_str_new2, strlen(), and xfree().
Referenced by dir_s_chdir(), dir_s_getwd(), and rb_realpath_internal().
|
inlinestatic |
Definition at line 380 of file intern.h.
References rb_warning().
Definition at line 31 of file enum.c.
References Qnil, and rb_ary_new4.
Referenced by collect_all(), drop_i(), each_with_index_i(), lazy_grep_v_func(), lazy_grep_v_iter(), lazy_init_yielder(), lazy_uniq_func(), member_i(), take_i(), take_while_i(), zip_ary(), and zip_i().
Definition at line 450 of file enumerator.c.
References argc, argv, lazy_to_enum_i(), enumerator::meth, rb_enumeratorize_with_size(), and enumerator::size_fn.
Referenced by argf_bytes(), argf_chars(), argf_codepoints(), argf_lines(), rb_gzreader_bytes(), rb_gzreader_lines(), rb_io_bytes(), rb_io_chars(), rb_io_codepoints(), rb_io_lines(), strio_bytes(), strio_chars(), strio_codepoints(), and strio_lines().
VALUE rb_enumeratorize_with_size | ( | VALUE | , |
VALUE | , | ||
int | , | ||
const VALUE * | , | ||
rb_enumerator_size_func * | |||
) |
Definition at line 459 of file enumerator.c.
References enumerator_allocate(), enumerator_init(), lazy_to_enum_i(), Qnil, rb_cEnumerator, rb_cLazy, rb_obj_is_kind_of(), and RTEST.
Referenced by obj_to_enum(), and rb_enumeratorize().
VALUE rb_env_clear | ( | void | ) |
Definition at line 3891 of file hash.c.
References env_delete(), env_keys(), envtbl, NIL_P, Qnil, RARRAY_AREF, RARRAY_LEN, rb_f_getenv(), RB_GC_GUARD, and val.
Referenced by Init_Hash(), and rb_execarg_run_options().
int rb_env_path_tainted | ( | void | ) |
Definition at line 3311 of file hash.c.
References env, getenv, PATH_ENV, path_tainted, and path_tainted_p().
Referenced by security().
Definition at line 97 of file object.c.
References id_eql, rb_funcall(), and RTEST.
Referenced by cdhash_cmp(), eql_i(), hash_equal(), rb_any_cmp(), and recursive_eql().
Definition at line 1558 of file vm_eval.c.
References eval_string(), GET_THREAD, OBJ_TAINTED, Qnil, RARRAY_CONST_PTR, RARRAY_LENINT, rb_funcallv(), rb_safe_level(), rb_set_safe_level_force(), RB_TYPE_P, rb_vm_top_self(), RUBY_SAFE_LEVEL_MAX, T_STRING, TH_EXEC_TAG, TH_JUMP_TAG, TH_POP_TAG, TH_PUSH_TAG, val, and VAR_NOCLOBBERED.
Referenced by rb_trace_eval(), and signal_exec().
Definition at line 797 of file error.c.
References rb_funcall(), and rb_str_new().
Referenced by rb_exc_new_cstr(), rb_threadptr_raise(), and setup_exception().
Definition at line 803 of file error.c.
References rb_exc_new(), and strlen().
Referenced by exc_setup_cause().
Definition at line 809 of file error.c.
References rb_funcall(), and StringValue.
Referenced by feature_option(), ole_raise(), raise_from_check(), raise_zlib_error(), rb_econv_init_by_convpath(), rb_file_expand_path_internal(), rb_keyword_error_new(), and unexpected_type().
void rb_exec_end_proc | ( | void | ) |
Definition at line 114 of file eval_jump.c.
References rb_thread_struct::errinfo, error_handle(), exec_end_procs_chain(), EXEC_TAG, GET_THREAD, NIL_P, rb_safe_level(), rb_set_safe_level_force(), end_proc_data::safe, TH_POP_TAG, TH_PUSH_TAG, TH_REPUSH_TAG, TH_TMPPOP_TAG, and VAR_INITIALIZED.
Referenced by ruby_finalize_0().
Definition at line 4697 of file thread.c.
References exec_recursive(), and func.
Referenced by ary_join_1(), enumerator_inspect(), num_funcall0(), range_inspect(), rb_ary_inspect(), rb_file_join(), rb_hash_inspect(), rb_invcmp(), rb_io_puts(), rb_obj_inspect(), and rb_struct_inspect().
Definition at line 4720 of file thread.c.
References exec_recursive(), and func.
Referenced by rb_hash().
Definition at line 4708 of file thread.c.
References exec_recursive(), func, and rb_obj_id().
Referenced by hash_equal(), num_funcall1(), range_eq(), range_eql(), rb_ary_cmp(), rb_ary_eql(), rb_ary_equal(), rb_num_coerce_bit(), rb_struct_eql(), and rb_struct_equal().
Definition at line 4732 of file thread.c.
References exec_recursive(), func, and rb_obj_id().
Referenced by cmp_equal().
Definition at line 1020 of file string.c.
References rb_default_external_encoding(), and rb_external_str_new_with_enc().
Referenced by fsdbm_delete(), fsdbm_delete_if(), fsdbm_each_key(), fsdbm_each_pair(), fsdbm_each_value(), fsdbm_fetch(), fsdbm_invert(), fsdbm_key(), fsdbm_keys(), fsdbm_select(), fsdbm_shift(), fsdbm_to_a(), fsdbm_to_hash(), and fsdbm_values().
Definition at line 1026 of file string.c.
References rb_default_external_encoding(), rb_external_str_new_with_enc(), and strlen().
Referenced by external_str_new_cstr().
VALUE rb_f_global_variables | ( | void | ) |
Definition at line 883 of file variable.c.
References buf, gvar_i(), ID2SYM, NIL_P, rb_ary_new(), rb_ary_push(), rb_backref_get(), rb_global_tbl, rb_id_table_foreach(), rb_intern2(), rb_match_count(), rb_match_nth_defined(), rb_sprintf(), rb_str_intern(), and sym.
Referenced by Init_eval().
Definition at line 407 of file signal.c.
References argc, FIX2INT, GET_THREAD, GET_VM, INT2FIX, kill(), killpg, NIL_P, NUM2PIDT, PRIsVALUE, rb_check_arity, rb_check_string_type(), rb_eArgError, rb_obj_classname(), rb_raise(), rb_str_subseq(), rb_sym2str, rb_sys_fail(), rb_thread_current(), rb_thread_execute_interrupts(), rb_threadptr_check_signal(), RSTRING_LEN, RSTRING_PTR, ruby_kill(), SIGKILL, signal_enque(), signal_ignored(), signame_prefix, signm2signo(), T_FIXNUM, T_STRING, T_SYMBOL, TYPE, and UNLIMITED_ARGUMENTS.
Referenced by InitVM_process().
Definition at line 821 of file load.c.
References rb_require_safe(), and rb_safe_level().
Referenced by Init_load().
Definition at line 455 of file sprintf.c.
References GETNTHARG, and rb_str_format().
Referenced by InitVM_Object(), rb_f_printf(), rb_io_printf(), and syslog_write().
Definition at line 687 of file variable.c.
References ALLOC, trace_var::data, trace_var::func, trace_var::next, NIL_P, OBJ_TAINTED, Qnil, rb_block_proc(), rb_eSecurityError, rb_f_untrace_var(), rb_global_entry(), rb_raise(), rb_scan_args(), rb_to_id(), rb_trace_eval(), trace_var::removed, rb_global_variable::trace, and rb_global_entry::var.
Referenced by Init_eval().
Definition at line 746 of file variable.c.
References rb_global_variable::block_trace, trace_var::data, id, trace_var::next, NIL_P, PRIsVALUE, Qnil, QUOTE, QUOTE_ID, rb_ary_new(), rb_ary_new3, rb_ary_push(), rb_check_id(), rb_global_tbl, rb_id_table_lookup(), rb_name_error(), rb_name_error_str(), rb_scan_args(), remove_trace(), trace_var::removed, and rb_global_entry::var.
Referenced by Init_eval(), and rb_f_trace_var().
void rb_fd_fix_cloexec | ( | int | fd | ) |
Definition at line 231 of file io.c.
References rb_maygvl_fd_fix_cloexec(), and rb_update_max_fd().
Referenced by fdbm_initialize(), fgdbm_initialize(), fgdbm_reorganize(), get_device_once(), ossl_x509_new_from_file(), rb_io_reopen(), rsock_socket0(), and sock_initialize().
Definition at line 528 of file load.c.
References FALSE, IS_DLEXT, IS_RBEXT, IS_SOEXT, Qnil, rb_feature_p(), rb_file_expand_path_fast(), RB_GC_GUARD, rb_get_path(), rb_str_new2, RSTRING_PTR, strchr(), strrchr(), and TRUE.
Referenced by autoload_provided(), and rb_provided().
Definition at line 1549 of file cont.c.
References GetFiberPtr, Qfalse, Qtrue, rb_fiber_struct::status, and TERMINATED.
Referenced by get_next_values(), and ruby_Init_Fiber_as_Coroutine().
VALUE rb_fiber_current | ( | void | ) |
Definition at line 1358 of file cont.c.
References rb_fiber_struct::cont, fiber_current(), and rb_context_struct::self.
Referenced by get_next_values(), next_init(), and rb_fiber_s_current().
Definition at line 1258 of file cont.c.
References fiber_alloc(), fiber_init(), func, rb_cFiber, rb_fiber_terminate(), and rb_proc_new().
Referenced by next_init().
Definition at line 1507 of file cont.c.
References rb_fiber_struct::cont, fiber_switch(), GetFiberPtr, rb_fiber_struct::prev, rb_eFiberError, rb_raise(), ROOT_FIBER_CONTEXT, rb_fiber_struct::transferred, and rb_context_struct::type.
Referenced by get_next_values(), and rb_fiber_m_resume().
Definition at line 1523 of file cont.c.
References fiber_switch(), and return_fiber().
Referenced by next_i(), next_ii(), and rb_fiber_s_yield().
Definition at line 3734 of file file.c.
References check_expand_path_args, expand_path, and EXPAND_PATH_BUFFER.
Referenced by rb_f_require_relative(), and rb_file_s_absolute_path().
Definition at line 1336 of file file.c.
References Qfalse, Qtrue, rb_stat(), and S_ISDIR.
Referenced by dir_s_home(), Init_Dir(), Init_File(), rb_dir_exists_p(), and rb_f_test().
Definition at line 4177 of file file.c.
References FilePathStringValue, isdirsep, name, OBJ_INFECT, rb_enc_copy(), rb_enc_get(), rb_str_cat(), rb_str_new(), rb_usascii_str_new2, RSTRING_LEN, skipprefix, skiproot(), StringValueCStr, strrdirsep, and top.
Referenced by f_current_dirname(), rb_f_require_relative(), rb_file_s_dirname(), and rb_file_s_split().
Definition at line 3686 of file file.c.
References check_expand_path_args, expand_path, and EXPAND_PATH_BUFFER.
Referenced by expand_include_path(), and rb_file_s_expand_path().
Definition at line 5730 of file io.c.
References io_alloc(), rb_cFile, rb_file_open_internal(), and rb_str_new_cstr().
Definition at line 5723 of file io.c.
References FilePathValue, io_alloc(), rb_cFile, and rb_file_open_internal().
Referenced by gzfile_s_open(), and iseqw_s_compile_file().
Definition at line 3754 of file file.c.
References Qnil, rb_check_arity, and rb_file_absolute_path().
Referenced by Init_File().
Definition at line 3727 of file file.c.
References Qnil, rb_check_arity, and rb_file_expand_path().
Referenced by Init_File().
Definition at line 1044 of file string.c.
References rb_external_str_new_with_enc(), and rb_filesystem_encoding().
Referenced by etc_systmpdir().
Definition at line 1050 of file string.c.
References rb_external_str_new_with_enc(), rb_filesystem_encoding(), and strlen().
Referenced by etc_getlogin(), etc_sysconfdir(), load_path_getcwd(), rb_compile_cstr(), rb_compile_string(), rb_parser_compile_cstr(), rb_parser_compile_file(), rb_parser_compile_string(), and search_required().
Definition at line 5837 of file file.c.
References rb_find_file_safe(), and rb_safe_level().
Referenced by file_to_load(), and rb_f_load().
Definition at line 5765 of file file.c.
References rb_find_file_ext_safe(), and rb_safe_level().
Definition at line 5771 of file file.c.
References copy_path_class(), f, file_expand_path_1(), FL_TAINT, FL_UNSET, fpath_check, is_explicit_relative(), MAXPATHLEN, OBJ_TAINTED, RARRAY_AREF, RARRAY_LEN, rb_enc_associate_index(), rb_eSecurityError, rb_file_expand_path_internal(), rb_file_load_ok(), RB_GC_GUARD, rb_get_expanded_load_path(), rb_get_path_check(), rb_is_absolute_path(), rb_raise(), rb_str_cat2(), rb_str_dup(), rb_str_resize(), rb_str_set_len(), rb_str_tmp_new(), rb_usascii_encindex(), RBASIC_CLEAR_CLASS, RSTRING_LEN, RSTRING_PTR, and StringValueCStr.
Referenced by rb_find_file_ext(), and search_required().
Definition at line 5843 of file file.c.
References copy_path_class(), f, file_expand_path_1(), fpath_check, is_explicit_relative(), MAXPATHLEN, OBJ_TAINTED, RARRAY_AREF, RARRAY_LEN, rb_enc_associate_index(), rb_eSecurityError, rb_file_expand_path_internal(), rb_file_load_ok(), RB_GC_GUARD, rb_get_expanded_load_path(), rb_get_path_check(), rb_is_absolute_path(), rb_raise(), rb_str_resize(), rb_str_tmp_new(), rb_usascii_encindex(), RSTRING_LEN, RSTRING_PTR, and StringValueCStr.
Referenced by rb_find_file(), and search_required().
Definition at line 3404 of file numeric.c.
References buf, CHAR_BIT, FIX2LONG, neg, rb_bug(), rb_eArgError, rb_raise(), rb_usascii_str_new(), rb_usascii_str_new2, ruby_digitmap, SIZEOF_VALUE, and val.
Referenced by ole_typedesc2val(), rb_big2str1(), and rb_int2str().
Definition at line 2961 of file object.c.
References DBL2NUM, FUNC_MINIMIZED(), rb_convert_type(), rb_f_float(), rb_str_to_dbl(), T_FLOAT, T_STRING, to_float(), TRUE, and val.
Referenced by flo_coerce(), int_ceil(), int_floor(), int_round(), int_truncate(), num_ceil(), num_coerce(), num_fdiv(), num_floor(), num_round(), num_truncate(), range_bsearch(), rb_f_float(), rb_int_coerce(), rb_str_format(), rb_time_unmagnify_to_float(), time_minus(), and time_to_f().
Definition at line 2195 of file rational.c.
References f, FIX2INT, float_decode_internal(), float_to_r(), FLT_RADIX, INT2FIX, INT_ZERO_P, nurat_eqeq_p(), nurat_rationalize_internal(), ONE, rb_int_lshift(), rb_int_minus(), rb_int_mul(), rb_int_plus(), rb_int_pow(), rb_rational_new1, rb_rational_new2, and TWO.
Referenced by float_rationalize().
Definition at line 2179 of file rational.c.
References f_abs(), f_add(), f_eqeq_p(), f_sub(), float_to_r(), nurat_rationalize_internal(), and rb_rational_new2.
Referenced by float_rationalize().
ID rb_frame_callee | ( | void | ) |
Definition at line 985 of file eval.c.
References frame_called_id(), and GET_THREAD.
Referenced by error_pos_str(), rb_insecure_operation(), rb_secure(), set_const_visibility(), and set_method_visibility().
Definition at line 2047 of file vm.c.
References GET_THREAD, and rb_thread_method_id_and_class().
ID rb_frame_this_func | ( | void | ) |
Definition at line 979 of file eval.c.
References frame_func_id(), and GET_THREAD.
Referenced by argf_forward(), lazy_set_args(), and rb_notimplement().
void rb_free_generic_ivar | ( | VALUE | ) |
Definition at line 1183 of file variable.c.
References key, RUBY_FUNC_EXPORTED, st_data_t, st_delete, st_free_table, and xfree().
Referenced by obj_free(), and rb_copy_generic_ivar().
void rb_frozen_class_p | ( | VALUE | ) |
Definition at line 396 of file eval.c.
References BUILTIN_TYPE, Check_Type, FL_SINGLETON, FL_TEST, get_errinfo(), get_thread_errinfo(), NORETURN(), OBJ_FROZEN, rb_error_frozen(), rb_ivar_get(), rb_longjmp(), SPECIAL_CONST_P, T_CLASS, T_ICLASS, and T_MODULE.
Referenced by ensure_includable(), rb_alias(), rb_deprecate_constant(), rb_method_entry_make(), rb_undef(), remove_method(), and set_const_visibility().
void rb_gc | ( | void | ) |
Definition at line 6656 of file gc.c.
References garbage_collect(), gc_finalize_deferred(), GPR_FLAG_CAPI, rb_objspace, and TRUE.
Referenced by cont_restore_thread(), getDevice(), rb_exec_async_signal_safe(), rb_fdopen(), rb_gc_for_fd(), rb_gc_start(), rb_reg_region_copy(), and rsock_s_accept().
void rb_gc_adjust_memory_usage | ( | ssize_t | ) |
Definition at line 8121 of file gc.c.
References MEMOP_TYPE_REALLOC, objspace_malloc_increase(), and rb_objspace.
void rb_gc_call_finalizer_at_exit | ( | void | ) |
Definition at line 2850 of file gc.c.
References gc_verify_internal_consistency(), Qnil, and rb_objspace_call_finalizer().
Referenced by ruby_finalize_1().
Definition at line 2698 of file gc.c.
References finalizer_table, FL_FINALIZE, FL_SET, FL_TEST, rb_objspace, st_data_t, st_insert, st_lookup, and code_page_table::table.
Referenced by init_copy().
size_t rb_gc_count | ( | void | ) |
Definition at line 6688 of file gc.c.
References rb_objspace::count, and rb_objspace::profile.
Referenced by gc_count(), gc_page_sweep(), gc_reset_malloc_info(), and newobj_i().
VALUE rb_gc_disable | ( | void | ) |
Definition at line 7311 of file gc.c.
References dont_gc, gc_rest(), Qfalse, Qtrue, rb_objspace, and TRUE.
Referenced by gc_mark_roots(), and Init_GC().
VALUE rb_gc_enable | ( | void | ) |
Definition at line 7289 of file gc.c.
References dont_gc, FALSE, Qfalse, Qtrue, and rb_objspace.
Referenced by gc_mark_roots(), and Init_GC().
void rb_gc_finalize_deferred | ( | void | ) |
Definition at line 2818 of file gc.c.
References gc_finalize_deferred().
void rb_gc_force_recycle | ( | VALUE | ) |
Definition at line 6102 of file gc.c.
References CLEAR_IN_BITMAP, gc_report, GET_HEAP_MARK_BITS, GET_HEAP_MARKING_BITS, GET_HEAP_PAGE, GET_HEAP_UNCOLLECTIBLE_BITS, GET_HEAP_WB_UNPROTECTED_BITS, heap_page_add_freeobj(), invalidate_mark_stack(), is_incremental_marking, rb_objspace::mark_stack, MARKED_IN_BITMAP, obj_info(), rb_objspace::old_objects, rb_objspace::profile, rb_objspace, rb_objspace::rgengc, RVALUE_MARKED(), RVALUE_OLD_P(), and rb_objspace::total_freed_objects.
Referenced by dispose_string(), literal_concat_gen(), new_regexp_gen(), parser_heredoc_restore(), parser_yylex(), rb_ary_decrement_share(), rb_f_backquote(), rb_parser_free(), rb_str_tmp_frozen_release(), rb_thread_inspect(), str_cat_conv_enc_opts(), and yyparse().
Definition at line 6803 of file gc.c.
References gc_info_decode(), and rb_objspace.
void rb_gc_mark | ( | VALUE | ) |
Definition at line 4394 of file gc.c.
References gc_mark().
Referenced by addrinfo_mark(), argf_mark(), autoload_i_mark(), backtrace_mark(), bm_mark(), cont_mark(), cparse_params_mark(), d_lite_gc_mark(), dir_mark(), enumerator_mark(), fiddle_ptr_mark(), gc_mark_roots(), gen_ivtbl_mark(), generator_mark(), gzfile_mark(), ibf_dump_mark(), ibf_loader_mark(), iow_mark(), iseqw_mark(), location_mark(), location_mark_entry(), mark_dump_arg(), mark_exec_arg(), mark_marshal_compat_i(), parser_mark(), proc_entry_mark(), random_mark(), rb_fiber_mark_self(), rb_gc_mark_node(), rb_iseq_mark(), rb_mark_end_proc(), rb_thread_mark(), rb_vm_mark(), rb_vm_trace_mark_event_hooks(), strio_mark(), strscan_mark(), thread_shield_mark(), time_mark(), tp_mark(), wmap_mark(), yielder_mark(), and zstream_mark().
Definition at line 4008 of file gc.c.
References gc_mark_locations().
Referenced by cont_mark(), name_err_mesg_mark(), rb_gc_mark_node(), and rb_thread_mark().
void rb_gc_mark_maybe | ( | VALUE | ) |
Definition at line 4247 of file gc.c.
References gc_mark_maybe().
Referenced by gc_mark_roots(), JSON_mark(), mark_global_entry(), rb_gc_mark_node(), rb_gvar_val_marker(), and rb_gvar_var_marker().
size_t rb_gc_stat | ( | VALUE | ) |
Definition at line 7217 of file gc.c.
References gc_stat_internal(), and SYMBOL_P.
unsigned int rb_genrand_int32 | ( | void | ) |
Definition at line 264 of file random.c.
References default_mt(), and genrand_int32().
double rb_genrand_real | ( | void | ) |
Definition at line 271 of file random.c.
References default_mt(), and genrand_real().
unsigned long rb_genrand_ulong_limited | ( | unsigned long | i | ) |
Definition at line 893 of file random.c.
References default_mt(), and limited_rand().
Referenced by bary_sparse_p().
rb_alloc_func_t rb_get_alloc_func | ( | VALUE | ) |
Definition at line 687 of file vm_method.c.
References Check_Type, RCLASS_EXT, RCLASS_SUPER, T_CLASS, and UNDEF_ALLOC_FUNC.
Referenced by obj_alloc_by_klass(), r_fixup_compat(), r_object0(), rb_marshal_define_compat(), rb_obj_alloc(), and w_object().
Definition at line 2775 of file array.c.
References argc, FIX2LONG, FIXNUM_P, func, len, NUM2LONG, RARRAY_LEN, rb_ary_new2, rb_ary_push(), rb_ary_resize(), rb_range_beg_len(), and result.
Referenced by rb_ary_values_at(), and rb_struct_values_at().
VALUE rb_gets | ( | void | ) |
Definition at line 8311 of file io.c.
References ARGF, argf_readline(), next_argv, NIL_P, Qnil, rb_default_rs, rb_f_gets(), rb_io_close(), rb_io_gets(), rb_lastline_set(), and rb_rs.
Definition at line 126 of file hash.c.
References CHAR_BIT, FIXNUM_P, hash_recursive(), hval, INTEGER_PACK_NATIVE_BYTE_ORDER, LONG2FIX, rb_exec_recursive_outer(), rb_integer_pack(), rb_objid_hash(), rb_to_int(), RB_TYPE_P, and T_BIGNUM.
Referenced by cdhash_hash(), hash_i(), nucomp_hash(), nurat_hash(), obj_any_hash(), range_hash(), rb_ary_hash(), rb_struct_hash(), and time_hash().
Definition at line 3157 of file object.c.
References NIL_P, RARRAY_LEN, rb_check_hash_type(), rb_eTypeError, rb_hash_new(), rb_obj_classname(), rb_raise(), RB_TYPE_P, and T_ARRAY.
Referenced by rb_f_hash().
Definition at line 845 of file hash.c.
References rb_hash_default_value(), RHASH, st_lookup, and val.
Referenced by count_imemo_objects_i(), cParser_initialize(), cState_configure(), cto_i(), dump_output(), econv_opts(), econv_primitive_convert(), extract_binmode(), generate_json_object(), group_by_i(), hash2ptr_dispparams(), hash2result(), hash_proc_call(), Init_Hash(), int_param(), io_s_write(), iseq_build_callinfo_from_hash(), JSON_parse_object(), mString_Extend_json_create(), open_key_args(), parse_main(), pruby_get_instance(), rawmode_opt(), rb_econv_open_opts(), rb_econv_prepare_options(), rb_hash_dig(), rb_hash_values_at(), rb_io_extract_modeenc(), rb_io_initialize(), rb_iseq_build_from_ary(), rb_obj_dig(), rb_str_sub_bang(), rb_thread_variable_get(), rb_threadptr_pending_interrupt_check_mask(), rb_vm_fstring_table(), realpath_rec(), recursive_list_access(), str_gsub(), str_transcode0(), tr_setup_table(), transcode_loop(), and zstream_run().
Definition at line 1576 of file hash.c.
References hash_aset(), hash_aset_str(), hash_tbl(), no_new_key(), rb_cString, rb_hash_modify(), rb_obj_class(), RHASH, RHASH_ITER_LEV, RHASH_UPDATE_ITER, st_table::type, and val.
Referenced by add_activated_refinement(), args_kw_argv_to_hash(), args_setup_kw_parameters(), args_stored_kw_argv_to_hash(), cdhash_set_label_i(), check_exec_fds(), check_exec_fds_1(), check_exec_options_i_extract(), collect_values_of_values(), core_hash_merge(), count_imemo_objects_i(), count_nodes(), count_objects(), count_objects_size(), count_symbols(), coverage(), coverage_peek_result_i(), cState_to_h(), cto_i(), debug_lines(), dsymbol_alloc(), enum_to_h_i(), env_select(), env_to_hash(), etc_systmpdir(), fdbm_invert(), fdbm_to_hash(), fgdbm_invert(), fgdbm_to_hash(), fsdbm_invert(), fsdbm_to_hash(), gc_profile_record_get(), group_by_i(), handle_interrupt_arg_check_i(), ibf_load_object_hash(), Init_GC(), Init_Hash(), Init_ossl_asn1(), Init_ossl_x509name(), io_s_write(), iseq_build_from_ary_body(), iseq_data_to_ary(), JSON_parse_object(), kwmerge_i(), make_rest_kw_hash(), match_named_captures_iter(), mString_to_json_raw_object(), ole_const_load(), olerecord_ivar_set(), olerecord_set_ivar(), ossl_dh_get_params(), ossl_dsa_get_params(), ossl_rsa_get_params(), ossl_sslctx_get_session_cache_stats(), parser_set_compile_option_flag(), pruby_register_instance(), r_object0(), rb_ary_to_h(), rb_during_gc(), rb_econv_prepare_options(), rb_enc_aliases_enc_i(), rb_hash_invert_i(), rb_hash_s_create(), rb_inflate_add_dictionary(), rb_mod_refine(), rb_struct_to_h(), rb_thread_variable_set(), rb_uninterruptible(), rb_using_refinement(), rb_vm_add_root_module(), reachable_object_from_root_i(), realpath_rec(), recursive_list_access(), recursive_push(), reg_named_captures_iter(), reject_i(), replace_i(), ripper_init_eventids1_table(), ripper_init_eventids2_table(), select_i(), separate_symbol(), set_if_not_nil(), set_state_ivars(), set_zero(), set_zero_i(), setup_gc_stat_symbols(), sig_list(), tr_setup_table(), tr_trans(), tracepoint_stat_event_hooks(), transform_values_i(), vm_caller_setup_arg_block(), vm_caller_setup_arg_kw(), when_vals(), and yycompile0().
Definition at line 1506 of file hash.c.
References clear_i(), hash(), rb_hash_foreach(), rb_hash_modify_check(), RHASH, RHASH_ITER_LEV, and st_clear().
Referenced by enum_uniq(), Init_Hash(), local_var_list_finish(), and rb_hash_replace().
Definition at line 1138 of file hash.c.
References Qnil, Qundef, and rb_hash_delete_entry().
Referenced by pruby_unregister_instance().
Definition at line 1272 of file hash.c.
References delete_if_i(), hash(), hash_enum_size(), rb_hash_foreach(), rb_hash_modify_check(), RETURN_SIZED_ENUMERATOR, and RHASH.
Referenced by env_reject(), fdbm_reject(), fgdbm_reject(), fsdbm_reject(), and Init_Hash().
Definition at line 457 of file hash.c.
References FL_EXIVAR, FL_TAINT, hash_dup(), HASH_PROC_DEFAULT, rb_copy_generic_ivar(), rb_obj_class(), and RBASIC.
Referenced by args_setup_kw_rest_parameter(), io_s_write(), rb_using_refinement(), and vm_cref_dup().
st_index_t rb_hash_end | ( | st_index_t | ) |
Referenced by match_hash(), method_hash(), proc_hash(), range_hash(), rb_ary_hash(), rb_hash_hash(), rb_struct_hash(), and reg_hash().
Definition at line 931 of file hash.c.
References rb_hash_fetch_m().
Referenced by olerecord_ivar_get(), olerecord_ivar_set(), and rb_hash_fetch_values().
Definition at line 402 of file hash.c.
References hash_foreach_arg::arg, func, hash_foreach_arg::func, hash(), hash_foreach_arg::hash, hash_foreach_call(), hash_foreach_ensure(), rb_ensure(), RHASH, and RHASH_ITER_LEV.
Referenced by core_hash_merge_kwd(), dump_option(), env_replace(), env_update(), hash_le(), hash_sum(), initialize(), inspect_hash(), iseq_data_to_ary(), iseq_set_sequence(), JSON_parse_string(), ole_invoke(), ole_rec2variant(), rb_hash_any_p(), rb_hash_assoc(), rb_hash_clear(), rb_hash_compact(), rb_hash_compact_bang(), rb_hash_delete_if(), rb_hash_each_key(), rb_hash_each_pair(), rb_hash_each_value(), rb_hash_flatten(), rb_hash_has_value(), rb_hash_hash(), rb_hash_invert(), rb_hash_keep_if(), rb_hash_key(), rb_hash_keys(), rb_hash_rassoc(), rb_hash_rehash(), rb_hash_reject(), rb_hash_reject_bang(), rb_hash_replace(), rb_hash_select(), rb_hash_select_bang(), rb_hash_shift(), rb_hash_to_a(), rb_hash_transform_values(), rb_hash_transform_values_bang(), rb_hash_update(), rb_hash_update_by(), rb_hash_values(), rb_mod_s_used_modules(), rb_thread_s_handle_interrupt(), rb_thread_variables(), reachable_objects_from_root(), recursive_eql(), setup_parameters_complex(), using_module_recursive(), and w_object().
Definition at line 76 of file hash.c.
References rb_obj_freeze().
Referenced by rb_coverage_peek_result(), and rb_econv_prepare_options().
Definition at line 867 of file hash.c.
References Qnil, and rb_hash_lookup2().
Referenced by add_activated_refinement(), check_exec_fds(), check_exec_fds_1(), compat_key(), default_proc_for_compat_func(), find_refinement(), ossl_asn1_default_tag(), prepare_iseq_build(), rb_exec_async_signal_safe(), rb_mod_refine(), rb_pipe(), rb_using_refinement(), reachable_object_from_root_i(), recursive_check(), tr_find(), tr_trans(), vm_caller_setup_arg_block(), and when_vals().
Definition at line 856 of file hash.c.
References RHASH, st_lookup, and val.
Referenced by check_rounding_mode_option(), hash_le_i(), lookup2_call(), no_exception_p(), rb_hash_lookup(), rb_io_extract_encoding_option(), rb_str_format(), recursive_check(), recursive_pop(), recursive_push(), and strio_read_nonblock().
VALUE rb_hash_new | ( | void | ) |
Definition at line 441 of file hash.c.
References hash_alloc(), and rb_cHash.
Referenced by args_kw_argv_to_hash(), args_setup_kw_parameters(), args_setup_kw_rest_parameter(), args_stored_kw_argv_to_hash(), ary_tmp_hash_new(), check_exec_fds(), check_exec_options_i_extract(), core_hash_from_ary(), count_nodes(), count_objects(), count_objects_size(), count_symbols(), cState_to_h(), date__httpdate(), date__iso8601(), date__jisx0301(), date__parse(), date__rfc2822(), date__rfc3339(), date__xmlschema(), date_s__strptime_internal(), enum_group_by(), enum_to_h(), enum_uniq(), env_select(), env_to_hash(), etc_systmpdir(), fdbm_invert(), fdbm_to_hash(), fgdbm_invert(), fgdbm_to_hash(), fsdbm_invert(), fsdbm_to_hash(), gc_latest_gc_info(), gc_profile_record_get(), gc_stat(), ibf_load_object_hash(), Init_GC(), Init_ossl_asn1(), Init_ossl_x509name(), Init_sizeof(), Init_VM(), Init_vm_objects(), io_s_write(), iseq_build_from_ary_body(), iseq_compile_each(), iseq_data_to_ary(), JSON_parse_object(), lazy_uniq(), local_var_list_init(), make_compile_option_value(), make_rest_kw_hash(), match_named_captures(), mString_to_json_raw_object(), nil_to_h(), ole_const_load(), olerecord_set_ivar(), ossl_dh_get_params(), ossl_dsa_get_params(), ossl_rsa_get_params(), ossl_sslctx_get_session_cache_stats(), process_options(), pruby_init(), r_object0(), rb_ary_to_h(), rb_coverage_peek_result(), rb_coverage_start(), rb_during_gc(), rb_econv_prepare_options(), rb_enc_aliases(), rb_execarg_parent_start1(), rb_Hash(), rb_hash_compact(), rb_hash_invert(), rb_hash_reject(), rb_hash_select(), rb_hash_transform_values(), rb_ident_hash_new(), rb_inflate_s_allocate(), rb_realpath_internal(), rb_reg_named_captures(), rb_struct_to_h(), rb_vm_fstring_table(), recursive_list_access(), recursive_push(), ripper_init_eventids1_table(), ripper_init_eventids2_table(), ruby_thread_init(), separate_symbol(), setup_gc_stat_symbols(), setup_hash(), sig_list(), tr_setup_table(), tr_trans(), tracepoint_stat_s(), vm_caller_setup_arg_kw(), vm_default_params(), and vm_stat().
Definition at line 93 of file hash.c.
References hash(), RB_OBJ_WRITE, and RHASH.
Definition at line 1678 of file hash.c.
References INT2FIX, and RHASH_SIZE.
Referenced by hash_enum_size(), and Init_Hash().
st_index_t rb_hash_start | ( | st_index_t | ) |
Definition at line 1496 of file random.c.
References seed, and st_hash_start().
Referenced by any_hash(), match_hash(), method_hash(), proc_hash(), range_hash(), rb_ary_hash(), rb_dbl_long_hash(), rb_hash_hash(), rb_ident_hash(), rb_objid_hash(), and rb_struct_hash().
Definition at line 483 of file hash.c.
References hash_tbl(), and OBJ_WB_UNPROTECT.
Referenced by collect_values_of_values().
st_index_t rb_hash_uint | ( | st_index_t | , |
st_index_t | |||
) |
Referenced by match_hash(), range_hash(), rb_ary_hash(), rb_hash_hash(), rb_hash_method_definition(), rb_hash_proc(), rb_struct_hash(), and reg_hash().
st_index_t rb_hash_uint32 | ( | st_index_t | , |
uint32_t | |||
) |
VALUE rb_hash_update_by | ( | VALUE | hash1, |
VALUE | hash2, | ||
rb_hash_update_func * | func | ||
) |
Definition at line 2478 of file hash.c.
References func, update_func_arg::func, update_func_arg::hash, rb_hash_foreach(), rb_hash_modify(), rb_hash_update_func_i(), rb_hash_update_i(), and to_hash().
Definition at line 100 of file symbol.c.
References id, ID_ATTRSET, ID_CLASS, ID_CONST, ID_GLOBAL, ID_INSTANCE, ID_JUNK, ID_LOCAL, id_type(), id_types, intern_str(), is_notop_id, lookup_id_str(), lookup_str_sym(), PRIsVALUE, PRIxVALUE, Qnil, rb_id2str(), rb_name_error(), rb_name_error_str(), rb_str_cat(), rb_str_dup(), rb_sym2id(), sym, tAREF, and tASET.
Referenced by attrset_gen(), iseq_compile_each(), rb_attr(), and setup_struct().
Definition at line 519 of file object.c.
References id_inspect, NULL, rb_default_external_encoding(), rb_default_internal_encoding(), rb_enc_asciicompat, rb_enc_get(), rb_enc_str_asciionly_p(), rb_funcallv, rb_obj_as_string(), and rb_str_escape().
Referenced by append_method(), cannot_be_coerced_into_BigDecimal(), coerce_failed(), control_frame_dump(), env_inspect(), foleparam_inspect(), folerecord_inspect(), folevariable_inspect(), inspect_ary(), inspect_enumerator(), inspect_i(), inspect_range(), inspect_struct(), method_inspect(), name_err_mesg_to_str(), nucomp_inspect(), ole_val2variant_err(), opobj_inspect(), rb_cmperr(), rb_hash_fetch_m(), rb_insn_operand_intern(), rb_mod_to_s(), rb_p(), rb_stat_inspect(), rb_str_format(), rb_vmdebug_debug_print_post(), rb_vmdebug_proc_dump_raw(), rb_vmdebug_stack_dump_th(), ruby__sfvextra(), and wmap_inspect_i().
Definition at line 2736 of file object.c.
References rb_convert_to_integer().
Referenced by asn1time_to_time(), format_value(), function_call(), get_freefunc(), initialize(), ossl_x509stctx_set_time(), rb_fiddle_ptr_initialize(), rb_fiddle_ptr_s_to_ptr(), rb_gzfile_set_mtime(), rb_str_format(), time_mdump(), time_to_time_t(), and value_to_generic().
int rb_integer_pack | ( | VALUE | val, |
void * | words, | ||
size_t | numwords, | ||
size_t | wordsize, | ||
size_t | nails, | ||
int | flags | ||
) |
Definition at line 3531 of file bignum.c.
References bary_pack(), BDIGIT, bdigit_roomof, BDIGITS, BIGDN, BIGLO, BIGNUM_LEN, BIGNUM_POSITIVE_P, FIX2LONG, FIXNUM_P, numberof, RB_GC_GUARD, and rb_to_int().
Referenced by big2str_base_poweroftwo(), big_shift2(), integer_to_bnptr(), limited_big_rand(), pack_pack(), rand_init(), random_load(), random_ulong_limited_big(), rb_big_pack(), rb_hash(), rb_str_format(), and w2v().
VALUE rb_integer_unpack | ( | const void * | words, |
size_t | numwords, | ||
size_t | wordsize, | ||
size_t | nails, | ||
int | flags | ||
) |
Definition at line 3617 of file bignum.c.
References bary_unpack_internal(), bary_zero_p(), BDIGIT, BDIGIT_DBL, BDIGIT_DBL_SIGNED, BDIGIT_MSB, BDIGITS, big_extend_carry(), bignew, bignorm(), BIGNUM_LEN, BIGNUM_SET_SIGN, bigtrunc(), BIGUP, INTEGER_PACK_2COMP, INTEGER_PACK_FORCE_BIGNUM, INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION, INTEGER_PACK_LSBYTE_FIRST, INTEGER_PACK_LSWORD_FIRST, INTEGER_PACK_MSBYTE_FIRST, INTEGER_PACK_MSWORD_FIRST, INTEGER_PACK_NATIVE_BYTE_ORDER, INTEGER_PACK_NEGATIVE, integer_unpack_num_bdigits(), LONG2FIX, LONG_MAX, MEMCPY, NEGFIXABLE, numberof, POSFIXABLE, Qfalse, rb_eArgError, rb_raise(), val, and validate_integer_pack_format().
Referenced by ibf_load_object_bignum(), limited_big_rand(), make_seed_value(), mt_state(), pack_unpack_internal(), r_object0(), random_ulong_limited_big(), rb_big_bit_length(), and rb_big_unpack().
Definition at line 1530 of file io.c.
References rb_io_t::fd, fsync, binwrite_arg::ptr, rb_io_write(), and rb_w32_get_osfhandle().
Referenced by Init_IO().
Definition at line 4882 of file io.c.
References GetOpenFile, and io_ascii8bit_binmode().
Referenced by argf_binmode_m(), argf_next_argv(), rb_io_binmode_m(), and rsock_init_sock().
Definition at line 4836 of file io.c.
References ECONV_NEWLINE_DECORATOR_MASK, rb_io_t::fd, FMODE_BINMODE, FMODE_TEXTMODE, GetOpenFile, rb_io_t::mode, O_BINARY, rb_econv_binmode(), rb_io_t::readconv, SET_BINARY_MODE_WITH_SEEK_CUR, rb_io_t::writeconv, and rb_io_t::writeconv_pre_ecflags.
Referenced by argf_next_argv(), io_reopen(), rb_io_init_copy(), and seek_before_access().
Definition at line 4469 of file io.c.
References fptr_waitpid(), io_close_fptr(), and Qnil.
Referenced by argf_next_argv(), bsock_close_read(), bsock_close_write(), console_dev(), gzfile_wrap(), io_s_write(), iseqw_s_compile_file(), load_file_internal(), pty_close_pty(), rb_f_backquote(), rb_gets(), rb_io_close_m(), rb_io_close_read(), rb_io_close_write(), rb_io_make_open_file(), rb_io_s_binread(), rb_io_s_foreach(), rb_io_s_pipe(), rb_io_s_read(), rb_io_s_readlines(), and restore_load_file().
Definition at line 1827 of file io.c.
References rb_io_t::fd, binwrite_arg::fptr, GetOpenFile, io_fillbuf(), NEED_NEWLINE_DECORATOR_ON_READ, NEED_READCONV, Qfalse, Qtrue, rb_io_check_char_readable(), READ_CHAR_PENDING, READ_CHECK, and READ_DATA_PENDING.
Referenced by argf_eof(), and Init_IO().
Definition at line 7453 of file io.c.
References prep_io(), rb_cFile, rb_cIO, and rb_io_oflags_fmode().
Referenced by open_load_file().
Definition at line 1590 of file io.c.
References rb_io_flush_raw().
Referenced by dump_output(), dump_result(), Init_IO(), process_options(), rb_f_p_internal(), rb_io_getbyte(), rb_io_init_copy(), and rb_io_s_popen().
Definition at line 3896 of file io.c.
References rb_io_t::fd, FMODE_TTY, GetOpenFile, INT2FIX, io_fillbuf(), rb_io_t::mode, Qnil, rb_io_check_byte_readable(), rb_io_flush(), rb_stdout, RB_TYPE_P, rb_io_t::rbuf, READ_CHECK, and T_FILE.
Referenced by argf_getbyte(), Init_IO(), io_strip_bom(), load_file_internal(), and rb_io_readbyte().
Definition at line 3261 of file io.c.
References FALSE, rb_default_rs, and rb_io_getline_1().
Referenced by argf_getline(), io_getch(), load_file_internal(), parser_compile_error(), and rb_gets().
Definition at line 7040 of file io.c.
References argc, NIL_P, Qnil, rb_io_write(), rb_lastline_get(), rb_output_fs, and rb_output_rs.
Referenced by Init_IO(), and rb_f_print().
Definition at line 6979 of file io.c.
References Qnil, rb_f_sprintf(), and rb_io_write().
Referenced by Init_IO().
Definition at line 7212 of file io.c.
References argc, io_puts_ary(), Qnil, rb_default_rs, rb_exec_recursive(), rb_io_write(), rb_obj_as_string(), RB_TYPE_P, RSTRING_LEN, str_end_with_asciichar(), and T_STRING.
Referenced by Init_IO(), io_puts_ary(), rb_f_abort(), rb_f_puts(), and rb_warn_m().
Definition at line 3957 of file io.c.
References FIX2INT, FIXNUM_P, GetOpenFile, io_ungetbyte(), NIL_P, Qnil, rb_io_check_byte_readable(), rb_str_new(), and SafeStringValue.
Referenced by Init_IO(), io_strip_bom(), and load_file_internal().
Definition at line 3992 of file io.c.
References rb_io_t::cbuf, FIX2UINT, FIXNUM_P, GetOpenFile, io_read_encoding(), io_ungetbyte(), len, make_readconv(), MEMMOVE, NEED_NEWLINE_DECORATOR_ON_READ_CHECK, NEED_READCONV, NIL_P, NUM2UINT, Qnil, rb_eIOError, rb_enc_uint_chr(), rb_io_check_char_readable(), rb_raise(), RB_TYPE_P, RSTRING_LEN, RSTRING_PTR, SafeStringValue, SET_BINARY_MODE, and T_BIGNUM.
Referenced by Init_IO().
Definition at line 1508 of file io.c.
References id_write, and rb_funcallv.
Referenced by argf_write(), copy_stream_body(), copy_stream_fallback_body(), gc_profile_report(), io_getch(), oldbt_print_to(), process_options(), rb_f_printf(), rb_io_addstr(), rb_io_print(), rb_io_printf(), rb_io_putc(), rb_io_puts(), rb_marshal_dump_limited(), rb_obj_display(), rb_p(), rb_parser_printf(), rb_write_error2(), rb_write_error_str(), show_bitstack(), trace_lex_state(), and w_nbyte().
int rb_is_absolute_path | ( | const char * | ) |
Definition at line 5591 of file file.c.
References isdirsep.
Referenced by path_check_0(), rb_construct_expanded_load_path(), rb_file_expand_path_internal(), rb_find_file_ext_safe(), and rb_find_file_safe().
st_index_t rb_ivar_count | ( | VALUE | ) |
Definition at line 1613 of file variable.c.
References BUILTIN_TYPE, count, FL_EXIVAR, FL_TEST, gen_ivtbl_count(), gen_ivtbl_get(), gen_ivtbl::ivptr, st_table::num_entries, Qundef, RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, SPECIAL_CONST_P, T_CLASS, T_MODULE, and T_OBJECT.
Referenced by rb_obj_inspect().
Definition at line 1421 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, generic_ivar_defined(), Qfalse, Qtrue, Qundef, RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, SPECIAL_CONST_P, st_data_t, st_lookup, T_CLASS, T_MODULE, T_OBJECT, and val.
Referenced by copy_ivar_i(), exc_setup_cause(), get_digest_base_metadata(), rb_obj_ivar_defined(), setup_exception(), and vm_defined().
Definition at line 1591 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, func, gen_ivar_each(), obj_ivar_each(), RCLASS_IV_TBL, SPECIAL_CONST_P, st_foreach_safe(), T_CLASS, T_MODULE, and T_OBJECT.
Referenced by has_ivars(), inspect_obj(), r_copy_ivar(), rb_obj_instance_variables(), w_ivar(), and w_objivar().
Definition at line 1260 of file variable.c.
References PRIsVALUE, Qnil, Qundef, QUOTE_ID, rb_ivar_lookup(), rb_warning(), RTEST, and ruby_verbose.
Referenced by add_event_call_back(), call_trace_func(), chunk_i(), cState_aref(), cvar_front_klass(), echild_status(), enc_get_index_str(), error_handle(), esignal_signo(), EVENTSINK_Invoke(), fev_get_handler(), fev_off_event(), fole_s_show_help(), folemethod_event(), folemethod_name(), foleparam_name(), folerecord_to_h(), folerecord_typename(), foletype_name(), folevariable_name(), get_digest_base_metadata(), get_strpath(), initialize_params(), lazy_drop_size(), lazy_size(), lazy_take_size(), method_inspect(), nucomp_loader(), nurat_loader(), olerecord_ivar_get(), olerecord_ivar_set(), pst_to_i(), range_loader(), rb_frozen_class_p(), rb_inflate_add_dictionary(), rb_iv_get(), rb_method_name_error(), rb_mod_to_s(), rb_obj_ivar_get(), rb_profile_frame_classpath(), rb_singleton_class_get(), rb_thread_variable_get(), rb_thread_variable_p(), rb_thread_variable_set(), rb_thread_variables(), reduce(), ruby_cleanup(), singleton_class_of(), sliceafter_i(), slicebefore_i(), slicewhen_i(), sysexit_status(), uncaught_throw_tag(), uncaught_throw_value(), vm_getivar(), and zstream_run().
Definition at line 1364 of file variable.c.
References ALLOC_N, BUILTIN_TYPE, generic_ivar_set(), ivar_update::index, ivar_update::iv_extended, ivar_update::iv_index_tbl, iv_index_tbl_extend(), iv_index_tbl_make(), iv_index_tbl_newsize(), len, MEMCPY, Qundef, rb_check_frozen, rb_class_ivar_set(), RB_OBJ_WRITE, RBASIC, RCLASS_IV_TBL, REALLOC_N, ROBJECT, ROBJECT_EMBED, ROBJECT_EMBED_LEN_MAX, ROBJECT_IVPTR, ROBJECT_NUMIV, st_init_numtable, T_CLASS, T_MODULE, T_OBJECT, ivar_update::u, and val.
Referenced by add_event_call_back(), adjust_backtrace_in_eval(), copy_ivar_i(), create_win32ole_param(), create_win32ole_variable(), cState_aset(), enc_set_index(), enum_chunk(), enum_chunk_while(), enum_slice_after(), enum_slice_before(), enum_slice_when(), enumerable_lazy(), esignal_init(), exc_initialize(), exc_set_backtrace(), exc_setup_cause(), exit_initialize(), fev_initialize(), fev_set_handler(), gzfile_raise(), initialize(), initialize_params(), int_ossl_asn1_decode0_prim(), iseq_compile_each(), ivar_cache(), lazy_init_block(), lazy_initialize(), lazy_set_args(), lazy_zip_arrays_func(), lazy_zip_func(), make_econv_exception(), mustbe_callable(), name_err_initialize(), name_err_local_variables(), next_i(), nometh_err_initialize(), nucomp_marshal_load(), nurat_marshal_load(), olemethod_set_member(), oleparam_ole_param_from_index(), olerecord_set_ivar(), oletype_set_member(), ossl_cipher_init(), ossl_cipher_is_authenticated(), ossl_cipher_pkcs5_keyivgen(), ossl_cipher_set_key(), ossl_ssl_initialize(), ossl_ssl_set_session(), ossl_ssl_verify_callback(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_session_get_cb(), ossl_sslctx_session_new_cb(), ossl_sslctx_setup(), ossl_start_ssl(), ossl_tmp_dh_callback(), parse_main(), pipe_open(), process_options(), r_ivar(), raise_argument_error(), raise_loaderror(), range_dumper(), rb_const_set(), rb_inflate_s_allocate(), rb_io_init_copy(), rb_iv_set(), rb_last_status_set(), rb_mod_refine(), rb_name_class(), rb_name_err_new(), rb_obj_ivar_set(), rb_set_class_path(), rb_set_class_path_string(), rb_threadptr_setup_exception(), readline_s_get_completion_proc(), readline_s_set_completion_case_fold(), readline_s_set_completion_proc(), readline_s_set_output(), ruby_init_loadpath_safe(), ruby_thread_init(), set_strpath(), setup_exception(), sockopt_initialize(), ssl_renegotiation_cb(), str_associate(), struct_ivar_get(), struct_set_members(), syserr_initialize(), time_mdump(), time_mload(), uncaught_throw_init(), vm_call0_body(), and vm_setivar().
VALUE rb_last_status_get | ( | void | ) |
Definition at line 479 of file process.c.
References GET_THREAD.
Referenced by detach_process_watcher(), InitVM_process(), proc_wait2(), proc_waitall(), pty_check(), raise_from_check(), and rb_f_system().
void rb_last_status_set | ( | int | status, |
rb_pid_t | pid | ||
) |
Definition at line 485 of file process.c.
References GET_THREAD, id_pid, id_status, INT2FIX, rb_thread_struct::last_status, PIDT2NUM, rb_cProcessStatus, rb_ivar_set(), and rb_obj_alloc().
Referenced by pipe_finalize(), rb_spawn_process(), and rb_waitpid().
VALUE rb_lastline_get | ( | void | ) |
Definition at line 1219 of file vm.c.
References vm_svar_get(), and VM_SVAR_LASTLINE.
Referenced by Init_IO(), rb_io_print(), rb_reg_match2(), and uscore_get().
void rb_lastline_set | ( | VALUE | ) |
Definition at line 1225 of file vm.c.
References VM_SVAR_LASTLINE, and vm_svar_set().
Referenced by argf_gets(), Init_IO(), io_s_foreach(), rb_f_chomp(), rb_f_chop(), rb_f_gsub(), rb_f_sub(), rb_gets(), rb_gzreader_gets(), rb_io_gets_m(), and strio_gets().
void rb_load | ( | VALUE | , |
int | |||
) |
Definition at line 662 of file load.c.
References file_to_load(), and rb_load_internal().
void* rb_load_file | ( | const char * | ) |
Definition at line 1992 of file ruby.c.
References rb_load_file_str(), and rb_str_new_cstr().
void* rb_load_file_str | ( | VALUE | ) |
Definition at line 1999 of file ruby.c.
References cmdline_options_init(), load_file(), load_file_arg::opt, and rb_parser_new().
Referenced by rb_load_file().
void rb_load_protect | ( | VALUE | , |
int | , | ||
int * | |||
) |
Definition at line 668 of file load.c.
References EXEC_TAG, file_to_load(), GET_THREAD, POP_TAG, PUSH_TAG, and rb_load_internal0().
Definition at line 1032 of file string.c.
References rb_external_str_new_with_enc(), and rb_locale_encoding().
Referenced by readline_attempted_completion_function().
Definition at line 1038 of file string.c.
References rb_external_str_new_with_enc(), rb_locale_encoding(), and strlen().
Referenced by etc_getlogin(), filename_completion_proc_call(), hist_each(), hist_get(), rb_remove_history(), readline_attempted_completion_function(), readline_readline(), readline_s_get_completion_case_fold(), and username_completion_proc_call().
VALUE rb_make_backtrace | ( | void | ) |
Definition at line 811 of file vm_backtrace.c.
Referenced by parser_set_encode().
Definition at line 763 of file eval.c.
References make_exception(), and TRUE.
Referenced by parser_set_encode(), rb_f_raise(), and rb_threadptr_raise().
void rb_mark_hash | ( | struct st_table * | ) |
Definition at line 4084 of file gc.c.
References mark_hash().
Referenced by com_hash_mark(), mark_dump_arg(), and mark_load_arg().
void rb_mark_set | ( | struct st_table * | ) |
void rb_mark_tbl | ( | struct st_table * | ) |
Definition at line 4229 of file gc.c.
References mark_tbl().
Referenced by autoload_mark(), mark_load_arg(), rb_thread_mark(), and rb_vm_mark().
void rb_marshal_define_compat | ( | VALUE | newclass, |
VALUE | oldclass, | ||
VALUE(*)(VALUE) | dumper, | ||
VALUE(*)(VALUE, VALUE) | loader | ||
) |
Definition at line 134 of file marshal.c.
References ALLOC, compat_allocator_table(), marshal_compat_t::dumper, marshal_compat_t::loader, marshal_compat_t::newclass, marshal_compat_t::oldclass, Qnil, rb_eTypeError, rb_get_alloc_func(), rb_raise(), st_data_t, and st_insert.
Referenced by Init_Complex(), Init_Encoding(), Init_Range(), Init_Rational(), and Init_vm_backtrace().
Definition at line 2249 of file marshal.c.
References rb_marshal_dump_limited().
Definition at line 2255 of file marshal.c.
References Qnil, and rb_marshal_load_with_proc().
Referenced by date_s__load().
void rb_match_busy | ( | VALUE | ) |
Definition at line 1260 of file re.c.
Referenced by date__httpdate(), date__iso8601(), date__jisx0301(), date__parse(), date__rfc2822(), date__rfc3339(), date__strptime_internal(), date__xmlschema(), nucomp_s_convert(), and nurat_s_convert().
void rb_mem_clear | ( | register VALUE * | , |
register | long | ||
) |
Definition at line 135 of file array.c.
References Qnil.
Referenced by ary_mem_clear(), rb_struct_initialize_m(), and struct_alloc().
Definition at line 79 of file re.c.
Referenced by parser_encode_length(), and rb_num_get_rounding_option().
st_index_t rb_memhash | ( | const void * | ptr, |
long | len | ||
) |
Definition at line 1502 of file random.c.
References seed, sip_hash24, and sip_uint64_t::u32.
Referenced by BigDecimal_hash(), d_lite_hash(), match_hash(), nucomp_hash(), nurat_hash(), ossl_bn_hash(), rb_big_hash(), rb_dbl_long_hash(), rb_str_hash(), and reg_hash().
Definition at line 1880 of file vm_method.c.
References FALSE, cache_entry::me, METHOD_ENTRY_BASIC, rb_method_entry(), and TRUE.
Referenced by ary_inject_op(), basic_to_f_p(), dig_basic_p(), enum_inject(), enum_sum(), rb_get_backtrace(), rb_hash_default_value(), rb_mod_const_get(), rb_p(), respond_to_missing_p(), send_internal(), set_backtrace(), vm_call_opt_send(), and vm_caller_setup_arg_block().
Definition at line 1069 of file vm_method.c.
References BOUND_RESPONDS, rb_method_entry_struct::def, METHOD_ENTRY_VISI, METHOD_VISI_PRIVATE, METHOD_VISI_PROTECTED, rb_method_entry_without_refinements(), rb_method_definition_struct::type, and VM_METHOD_TYPE_NOTIMPLEMENTED.
Referenced by basic_obj_respond_to(), check_funcall_failed(), rb_mod_method_defined(), and vm_defined().
Definition at line 2082 of file proc.c.
References Qnil, rb_block_given_p(), rb_block_proc(), and rb_method_call_with_block().
Referenced by Init_Proc(), and method_fallback().
Definition at line 2126 of file proc.c.
References call_method_data(), call_method_data_safe(), GET_THREAD, OBJ_TAINTED, Qundef, rb_eTypeError, rb_raise(), rb_safe_level(), rb_set_safe_level_force(), METHOD::recv, RUBY_SAFE_LEVEL_MAX, and TypedData_Get_Struct.
Referenced by bmcall(), and rb_method_call().
Definition at line 3068 of file variable.c.
References cvar_list(), mod_cvar_at(), mod_cvar_of(), Qtrue, rb_scan_args(), and RTEST.
Referenced by InitVM_Object().
void* rb_mod_const_at | ( | VALUE | , |
void * | |||
) |
Definition at line 2457 of file variable.c.
References rb_id_table_foreach(), RCLASS_CONST_TBL, st_init_numtable, and sv_i().
Referenced by rb_mod_const_of(), and rb_mod_s_constants().
void* rb_mod_const_of | ( | VALUE | , |
void * | |||
) |
Definition at line 2470 of file variable.c.
References mod, rb_cObject, rb_mod_const_at(), and RCLASS_SUPER.
Referenced by rb_mod_constants(), and rb_mod_s_constants().
Definition at line 2524 of file variable.c.
References Qtrue, rb_const_list(), rb_local_constants(), rb_mod_const_of(), rb_scan_args(), and RTEST.
Referenced by InitVM_Object(), and rb_mod_s_constants().
Definition at line 2420 of file proc.c.
References METHOD::me, original_method_entry(), and rb_method_entry_arity().
Referenced by rb_obj_method_arity().
Definition at line 1799 of file vm_eval.c.
References specific_eval().
Referenced by Init_vm_eval(), and rb_struct_s_def().
Definition at line 1827 of file vm_eval.c.
References yield_under().
Referenced by Init_vm_eval(), and rb_mod_initialize().
Definition at line 228 of file variable.c.
References classname(), NIL_P, fc_result::path, and rb_str_dup().
Referenced by InitVM_Object().
Definition at line 2375 of file variable.c.
References id_for_var, rb_const_remove(), and rb_name_err_raise.
Referenced by InitVM_Object(), and new_struct().
Definition at line 3109 of file variable.c.
References id, ID2SYM, id_for_var_message, rb_check_frozen, rb_cvar_defined(), rb_name_err_raise, RCLASS_IV_TBL, st_data_t, st_delete, and val.
Referenced by InitVM_Object().
void rb_must_asciicompat | ( | VALUE | ) |
Definition at line 2032 of file string.c.
References rb_eEncCompatError, rb_enc_asciicompat, rb_enc_get(), rb_enc_name, and rb_raise().
Referenced by dir_s_home(), rb_str2big_karatsuba(), rb_str2big_normal(), rb_str2big_poweroftwo(), rb_str_to_inum(), rb_warning_s_warn(), string_to_c(), string_to_c_strict(), string_to_r(), and string_to_r_strict().
Definition at line 241 of file thread_sync.c.
References rb_mutex_struct::allow_trap, FALSE, GET_THREAD, GetMutexPtr, GVL_UNLOCK_BEGIN, GVL_UNLOCK_END, rb_thread_struct::interrupt_mask, rb_mutex_struct::lock, lock_func(), lock_interrupt(), rb_thread_struct::locking_mutex, mutex_locked(), NULL, Qfalse, rb_check_deadlock(), rb_eThreadError, rb_mutex_trylock(), rb_raise(), reset_unblock_function(), RUBY_VM_CHECK_INTS_BLOCKING, set_unblock_function(), rb_vm_struct::sleeper, rb_thread_struct::status, rb_mutex_struct::th, THREAD_STOPPED_FOREVER, TRAP_INTERRUPT_MASK, rb_thread_struct::vm, and vm_living_thread_num().
Referenced by Init_thread_sync(), rb_mutex_sleep(), rb_mutex_synchronize(), rb_thread_shield_new(), and rb_thread_shield_wait().
Definition at line 130 of file thread_sync.c.
References GetMutexPtr, Qfalse, Qtrue, and rb_mutex_struct::th.
Referenced by Init_thread_sync().
VALUE rb_mutex_new | ( | void | ) |
Definition at line 118 of file thread_sync.c.
References mutex_alloc(), and rb_cMutex.
Referenced by io_binwrite().
Definition at line 436 of file thread_sync.c.
References INT2FIX, NIL_P, Qnil, rb_ensure(), rb_mutex_lock(), rb_mutex_sleep_forever(), rb_mutex_unlock(), rb_mutex_wait_for(), and rb_time_interval().
Referenced by mutex_sleep().
Definition at line 488 of file thread_sync.c.
References func, rb_ensure(), rb_mutex_lock(), and rb_mutex_unlock().
Referenced by fptr_finalize_flush(), io_binwrite(), io_flush_buffer(), and rb_mutex_synchronize_m().
Definition at line 157 of file thread_sync.c.
References GET_THREAD, GetMutexPtr, rb_mutex_struct::lock, mutex_locked(), Qfalse, Qtrue, and rb_mutex_struct::th.
Referenced by Init_thread_sync(), and rb_mutex_lock().
Definition at line 371 of file thread_sync.c.
References err, GET_THREAD, GetMutexPtr, rb_thread_struct::keeping_mutexes, rb_thread_struct::locking_mutex, rb_mutex_struct::next_mutex, NULL, Qfalse, rb_eThreadError, rb_mutex_unlock_th(), rb_raise(), and rb_mutex_struct::th.
Referenced by Init_thread_sync(), rb_mutex_sleep(), rb_mutex_synchronize(), rb_thread_shield_destroy(), rb_thread_shield_release(), and rb_thread_shield_wait().
Definition at line 437 of file variable.c.
References classid, ID2SYM, and rb_ivar_set().
Referenced by boot_defclass(), rb_const_set(), rb_define_class(), and rb_define_module_id().
Definition at line 3020 of file numeric.c.
References FIX2LONG, FIXABLE, FIXNUM_P, FLOAT_OUT_OF_RANGE, LONG2FIX, NIL_P, rb_eRangeError, rb_eTypeError, rb_num2long(), rb_raise(), rb_to_int(), RB_TYPE_P, RFLOAT_VALUE, T_BIGNUM, T_FALSE, T_FIXNUM, T_FLOAT, T_NIL, T_STRING, T_TRUE, and val.
Definition at line 509 of file numeric.c.
References do_coerce(), rb_funcall(), and TRUE.
Referenced by f_divide(), fix_divide(), fix_divmod(), fix_fdiv_double(), fix_minus(), fix_mod(), fix_mul(), fix_plus(), fix_pow(), flo_div(), flo_divmod(), flo_minus(), flo_mod(), flo_mul(), flo_plus(), nucomp_expt(), nucomp_sub(), nurat_div(), nurat_expt(), nurat_mul(), nurat_sub(), rb_big_divide(), rb_big_divmod(), rb_big_fdiv_double(), rb_big_minus(), rb_big_modulo(), rb_big_mul(), rb_big_plus(), rb_big_pow(), rb_big_remainder(), rb_complex_mul(), rb_complex_plus(), rb_float_pow(), rb_int_minus(), rb_int_mul(), rb_int_plus(), and rb_rational_plus().
Definition at line 4317 of file numeric.c.
References coerce_failed(), do_coerce(), num_funcall_bit_1(), Qundef, rb_exec_recursive_paired(), and TRUE.
Referenced by fix_and(), fix_or(), fix_xor(), rb_big_and(), rb_big_or(), and rb_big_xor().
Definition at line 516 of file numeric.c.
References do_coerce(), FALSE, Qnil, and rb_funcall().
Referenced by BigDecimalCmp(), cmp_gen(), equal_gen(), fix_cmp(), flo_cmp(), rb_big_cmp(), rb_rational_cmp(), and ruby_num_interval_step_size().
Definition at line 524 of file numeric.c.
References do_coerce(), FALSE, NIL_P, Qnil, rb_cmperr(), and rb_funcall().
Referenced by big_op(), BigDecimalCmp(), fix_ge(), fix_gt(), fix_le(), fix_lt(), flo_ge(), flo_le(), flo_lt(), and rb_float_gt().
Definition at line 1845 of file object.c.
References FL_SINGLETON, FL_TEST, rb_cBasicObject, rb_class2name(), rb_class_real(), rb_eTypeError, rb_get_alloc_func(), rb_obj_class(), rb_raise(), rb_undefined_alloc(), RCLASS_SUPER, and RUBY_DTRACE_CREATE_HOOK.
Referenced by bsock_s_for_fd(), build_exception(), enum_chunk(), enum_chunk_while(), enum_slice_after(), enum_slice_before(), enum_slice_when(), Init_Hash(), Init_readline(), Init_Thread(), Init_top_self(), InitVM_Object(), int_ossl_asn1_decode0_cons(), int_ossl_asn1_decode0_prim(), obj_alloc_by_klass(), ossl_sslctx_session_new_cb(), ossl_sslctx_session_remove_cb(), pty_getpty(), pty_open(), r_object0(), rb_catch(), rb_class_new_instance(), rb_digest_class_s_digest(), rb_f_catch(), rb_io_s_for_fd(), rb_last_status_set(), rb_name_err_new(), rb_obj_clone2(), rb_obj_dup(), rb_range_new(), rsock_s_accept(), rsock_s_accept_nonblock(), ruby_vm_special_exception_copy(), sock_initialize(), and str_cat_conv_enc_opts().
Definition at line 1364 of file string.c.
References FL_ABLE, FL_TEST_RAW, OBJ_INFECT_RAW, rb_any_to_s(), rb_funcall(), RB_TYPE_P, RSTRING_FSTR, and T_STRING.
Referenced by ary_join_1(), exc_inspect(), fdbm_store(), init_libraries(), io_write(), io_write_nonblock(), name_err_mesg_to_str(), pack_pack(), pruby_eval(), pruby_obj_to_var(), range_to_s(), rb_gzwriter_write(), rb_inspect(), rb_io_puts(), rb_io_s_new(), rb_io_syswrite(), rb_p(), rb_str_format(), rb_str_sub_bang(), readline_attempted_completion_function(), reg_fragment_check_gen(), ruby__sfvextra(), setup_exception(), str_gsub(), strio_s_new(), and strio_write().
Definition at line 1422 of file eval.c.
References PASS_PASSED_BLOCK_HANDLER, and rb_funcallv.
Referenced by rb_class_new_instance(), rb_digest_class_s_digest(), rb_proc_s_new(), and thread_s_new().
Definition at line 229 of file object.c.
References CLASS_OF, and rb_class_real().
Referenced by ary_make_shared_copy(), BIGNUM_1c(), cannot_be_coerced_into_BigDecimal(), coerce_failed(), conversion_mismatch(), convert_type(), copy_path_class(), d_lite_inspect(), d_lite_plus(), d_lite_to_s(), divmodv(), dup_obj(), dup_obj_as_complex(), enc_inspect(), encoded_dup(), ensure_class_or_module(), enum_zip(), exc_equal(), extract_user_token(), flatten(), gen_ivar_each(), generator_initialize(), generic_ivar_defined(), generic_ivar_delete(), generic_ivar_get(), generic_ivar_remove(), get_new_timeval(), get_timeval(), InitVM_Object(), inspect_enumerator(), inspect_struct(), io_reopen(), iv_index_tbl_make(), lazy_zip(), match_inspect(), method_super_method(), mString_to_json_raw_object(), mSyslog_log(), must_respond_to(), name_err_mesg_equal(), not_encoding(), nucomp_coerce(), num_exact(), num_init_copy(), num_sadded(), numeric_to_float(), ossl_asn1_default_tag(), ossl_asn1cons_to_der(), ossl_cipher_init(), ossl_dh_to_public_key(), ossl_dsa_to_public_key(), ossl_engine_inspect(), ossl_rsa_to_public_key(), ossl_x509_inspect(), parser_compile_error(), path_basename(), path_dirname(), path_each_entry(), path_entries(), path_expand_path(), path_readlink(), path_realdirpath(), path_realpath(), path_split(), path_sub(), path_sub_ext(), raise_method_missing(), random_equal(), rb_ary_bsearch_index(), rb_ary_slice_bang(), rb_ary_subseq(), rb_ary_times(), rb_ary_to_a(), rb_ary_to_h(), rb_ary_uniq(), rb_check_inheritable(), rb_check_typeddata(), rb_cmperr(), rb_define_class(), rb_define_class_id_under(), rb_define_module(), rb_define_module_id_under(), rb_digest_base_block_length(), rb_digest_base_copy(), rb_digest_base_digest_length(), rb_digest_base_finish(), rb_digest_base_reset(), rb_digest_base_update(), rb_dup_setup(), rb_generic_ivar_table(), rb_hash_aset(), rb_hash_dup(), rb_hash_to_h(), rb_obj_alloc(), rb_obj_clone2(), rb_obj_dup(), rb_obj_init_copy(), rb_obj_is_instance_of(), rb_profile_frame_classpath(), rb_stat_cmp(), rb_str_dup(), rb_str_justify(), rb_str_new_frozen(), rb_str_new_shared(), rb_str_new_with_class(), rb_str_times(), rb_str_to_s(), rb_struct_eql(), rb_struct_equal(), rb_struct_hash(), rb_struct_initialize_m(), rb_struct_members(), rb_struct_members_m(), rb_thread_inspect(), rb_tmp_class_path(), rb_vm_bugreport(), setup_exception(), should_be_callable(), str_byte_substr(), str_gsub(), str_substr(), strscan_inspect(), struct_member_pos(), syserr_initialize(), take_items(), time_dup(), time_timespec(), undumpable(), unexpected_type(), vm_search_super_method(), and w_object().
Definition at line 388 of file object.c.
References NULL, and rb_obj_clone2().
Referenced by exc_exception(), rb_digest_instance_digest(), rb_digest_instance_hexdigest(), rb_digest_instance_new(), rb_eval_string_wrap(), and rb_load_internal0().
Definition at line 437 of file object.c.
References id_init_dup, init_copy(), rb_funcall(), rb_obj_alloc(), rb_obj_class(), and special_object_p().
Referenced by argf_initialize_copy(), enumerator_each(), InitVM_Object(), path_initialize(), path_to_s(), rb_hash_merge(), rb_io_init_copy(), and setup_exception().
Definition at line 1111 of file object.c.
References OBJ_FREEZE, OBJ_FROZEN, rb_bug(), and SPECIAL_CONST_P.
Referenced by console_dev(), env_enc_str_new(), ibf_load_object_array(), ibf_load_object_bignum(), ibf_load_object_complex_rational(), ibf_load_object_hash(), ibf_load_object_regexp(), ibf_load_object_struct(), Init_File(), Init_ossl_ssl(), Init_strscan(), Init_VM(), InitVM_Object(), iseq_compile_each(), mk_ary_of_str(), ossl_sslctx_setup(), prep_io(), process_options(), pty_getpty(), pty_open(), rb_ary_flatten_bang(), rb_ary_freeze(), rb_construct_expanded_load_path(), rb_hash_freeze(), rb_insns_name_array(), rb_mod_freeze(), rb_str_freeze(), rb_vm_register_special_exception(), ruby_init_loadpath_safe(), setup_gc_stat_symbols(), str_upto_each(), and vm_default_params().
Definition at line 3100 of file gc.c.
References FIXNUM_FLAG, FLONUM_P, LONG2NUM, nonspecial_obj_id, SIGNED_VALUE, SPECIAL_CONST_P, STATIC_SYM_P, and SYM2ID.
Referenced by exec_recursive(), Init_GC(), iow_internal_object_id(), rb_exec_recursive_paired(), rb_exec_recursive_paired_outer(), and rb_obj_equal().
Definition at line 470 of file object.c.
References rb_check_frozen, rb_check_trusted(), rb_eTypeError, rb_obj_class(), rb_raise(), and TYPE.
Referenced by InitVM_Object().
Definition at line 1740 of file vm_eval.c.
References singleton_class_for_eval(), and specific_eval().
Referenced by Init_vm_eval().
Definition at line 1765 of file vm_eval.c.
References singleton_class_for_eval(), and yield_under().
Referenced by Init_vm_eval().
Definition at line 1681 of file variable.c.
References ivar_i(), rb_ary_new(), and rb_ivar_foreach().
Definition at line 653 of file object.c.
References class_or_module_required(), Qfalse, Qtrue, and rb_obj_class().
Referenced by error_handle(), InitVM_Object(), ossl_pkey_initialize(), ossl_ssl_session_initialize(), ossl_ssl_session_set_time(), ossl_sslctx_flush_sessions(), and ossl_sslctx_session_get_cb().
Definition at line 690 of file object.c.
References CLASS_OF, class_or_module_required(), class_search_ancestor(), Qfalse, Qtrue, and RCLASS_ORIGIN.
Referenced by case_when_optimizable_literal(), check_match(), check_step_domain(), check_type_val2variant(), cState_from_state_s(), discrete_object_p(), errinfo_getter(), error_handle(), ev_advise(), EVENTSINK_Invoke(), f_kind_of_p(), fole_s_const_load(), fole_s_show_help(), folemethod_initialize(), foleparam_initialize(), folerecord_initialize(), GetCipherPtr(), gzfile_read_raw_rescue(), host_str(), ibf_dump_object_struct(), InitVM_Object(), linear_object_p(), make_exception(), numeric_to_float(), ole_invoke(), ole_val2variant(), ole_val2variant_err(), os_obj_of_i(), ossl_asn1cons_to_der(), ossl_asn1data_to_der(), ossl_bn_coerce(), ossl_bn_eql(), ossl_bn_initialize(), ossl_sslctx_add_extra_chain_cert_i(), ossl_x509name_eql(), parse(), path_cmp(), path_eq(), range_eq(), range_eql(), range_max(), range_size(), range_step(), range_step_size(), rb_ary_bsearch_index(), rb_check_to_float(), rb_check_to_integer(), rb_digest_instance_equal(), rb_enumeratorize_with_size(), rb_fiddle_ptr2cptr(), rb_fiddle_ptr_aset(), rb_fiddle_ptr_cmp(), rb_fiddle_ptr_eql(), rb_fiddle_ptr_s_to_ptr(), rb_method_call_status(), rb_mod_eqq(), rb_range_values(), rb_rescue2(), rb_set_errinfo(), rb_stat_cmp(), rb_thread_pending_interrupt_p(), rb_to_integer(), ruby_cleanup(), setup_exception(), syserr_eqq(), thread_start_func_2(), total_i(), try_convert_to_bn(), umethod_bind(), vm_call_method(), vm_defined(), and vm_search_super_method().
Definition at line 1349 of file proc.c.
References Qfalse, Qtrue, and rb_typeddata_is_kind_of().
Referenced by method_eq(), rb_econv_prepare_options(), rb_mod_define_method(), and transcode_loop().
Definition at line 117 of file proc.c.
References METHOD::klass, Qfalse, Qtrue, rb_proc_create(), and rb_typeddata_is_kind_of().
Referenced by generator_initialize(), iseqw_s_of(), rb_econv_prepare_options(), rb_hash_set_default_proc(), rb_mod_define_method(), rb_raw_obj_info(), set_trace_func(), thread_add_trace_func(), transcode_loop(), VM_BH_FROM_PROC(), VM_BH_TO_PROC(), vm_block_handler_type(), vm_block_type(), vm_proc_block(), vm_proc_iseq(), and vm_to_proc().
Definition at line 1723 of file proc.c.
References FALSE, and obj_method().
Referenced by Init_Proc(), and wmap_allocate().
Definition at line 2428 of file proc.c.
References CLASS_OF, and rb_mod_method_arity().
Definition at line 1734 of file variable.c.
References BUILTIN_TYPE, FL_EXIVAR, FL_TEST, generic_ivar_remove(), id, id_for_var, NORETURN(), Qnil, Qundef, rb_check_frozen, rb_name_err_raise, RCLASS_IV_TBL, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, st_data_t, st_delete, st_lookup, T_CLASS, T_MODULE, T_OBJECT, uninitialized_constant(), UNREACHABLE, and val.
Referenced by InitVM_Object().
Definition at line 1985 of file vm_method.c.
References basic_obj_respond_to(), CLASS_OF, GET_THREAD, and vm_respond_to().
Referenced by r_object0(), rb_respond_to(), should_be_callable(), and w_object().
Definition at line 1008 of file object.c.
References OBJ_TAINT, OBJ_TAINTABLE, OBJ_TAINTED, and rb_check_frozen.
Referenced by InitVM_Object(), pack_pack(), path_taint(), rb_file_path(), rb_obj_untrust(), rsock_s_recvfrom(), and rsock_s_recvfrom_nonblock().
Definition at line 1074 of file object.c.
References rb_obj_untaint(), and rb_warning().
Referenced by InitVM_Object().
Definition at line 1028 of file object.c.
References FL_TAINT, FL_UNSET, OBJ_TAINTED, and rb_check_frozen.
Referenced by InitVM_Object(), path_untaint(), and rb_obj_trust().
Definition at line 1059 of file object.c.
References rb_obj_taint(), and rb_warning().
Referenced by InitVM_Object().
Definition at line 431 of file variable.c.
References rb_path_to_class(), and rb_str_new_cstr().
Referenced by convert_UTF8_to_JSON(), convert_UTF8_to_JSON_ASCII(), dump_output(), Init_bubblebabble(), Init_generator(), Init_md5(), Init_ossl_digest(), Init_parser(), Init_rmd160(), Init_sha1(), Init_sha2(), and w32error_make_error().
int rb_path_check | ( | const char * | ) |
Definition at line 5670 of file file.c.
References path_check_0(), PATH_SEP_CHAR, rb_str_new(), strchr(), strlen(), and TRUE.
Referenced by path_tainted_p().
Definition at line 389 of file variable.c.
References FALSE, id, fc_result::path, PRIsVALUE, Qundef, QUOTE, rb_check_id_cstr(), rb_cObject, rb_const_search(), rb_eArgError, rb_enc_asciicompat, rb_enc_get(), rb_eTypeError, RB_GC_GUARD, rb_raise(), rb_str_subseq(), RB_TYPE_P, RSTRING_LEN, RSTRING_PTR, T_CLASS, T_MODULE, and TRUE.
Referenced by class2path(), path2class(), r_object0(), and rb_path2class().
int rb_pipe | ( | int * | pipes | ) |
Definition at line 5822 of file io.c.
References buf, dup2(), err, errno, F_GETFD, F_SETFD, fcntl(), FD_CLOEXEC, FMODE_READABLE, FMODE_WRITABLE, INT2FIX, max(), max_file_descriptor, memcmp(), NIL_P, NULL, Qnil, rb_cloexec_open(), rb_cloexec_pipe(), rb_close_before_exec(), rb_exec_async_signal_safe(), rb_execarg_commandline(), rb_execarg_parent_start(), rb_gc_for_fd(), rb_hash_lookup(), rb_update_max_fd(), RTEST, and ruby_strtoul().
Referenced by pipe_open(), rb_exec_async_signal_safe(), and rb_io_s_pipe().
int rb_proc_arity | ( | VALUE | ) |
Definition at line 1009 of file proc.c.
References rb_proc_t::block, GetProcPtr, rb_proc_t::is_lambda, max(), rb_vm_block_min_max_arity(), and UNLIMITED_ARGUMENTS.
Referenced by proc_arity(), rb_proc_parameters(), and set_proc_default().
Definition at line 879 of file proc.c.
References check_argc, GET_THREAD, GetProcPtr, RARRAY_CONST_PTR, RARRAY_LEN, RB_GC_GUARD, rb_vm_invoke_proc(), and VM_BLOCK_HANDLER_NONE.
Referenced by generator_each(), proc_fallback(), rb_call_end_proc(), and yielder_yield().
Definition at line 899 of file proc.c.
References GET_THREAD, GetProcPtr, proc_to_block_handler(), RB_GC_GUARD, and rb_vm_invoke_proc().
Referenced by call_trace_func(), curry(), lazy_grep_iter_proc(), lazyenum_yield(), lazyenum_yield_values(), tp_call_trace(), and vm_once_exec().
int rb_proc_exec | ( | const char * | ) |
Definition at line 1322 of file process.c.
References after_exec(), before_exec(), preserving_errno, proc_exec_sh(), and Qfalse.
Definition at line 255 of file proc.c.
References GetProcPtr, rb_proc_t::is_lambda, Qfalse, and Qtrue.
Referenced by Init_Proc(), proc_curry(), set_proc_default(), and yield_under().
Definition at line 2661 of file proc.c.
References func, mproc(), and rb_iterate().
Referenced by gc_stat_internal(), make_curry_proc(), rb_fiber_new(), rb_obj_info_dump(), and yielder_new().
Definition at line 891 of file eval.c.
References rb_thread_struct::cfp, GET_THREAD, MEMCPY, rb_vm_protect_tag::prev, rb_thread_struct::protect_tag, Qnil, rb_vm_rewind_cfp(), result, SAVE_ROOT_JMPBUF, TH_EXEC_TAG, TH_POP_TAG, and TH_PUSH_TAG.
Referenced by BigDecimal_save_exception_mode(), BigDecimal_save_limit(), BigDecimal_save_rounding_mode(), decode_enum(), decode_int(), decode_time(), EVENTSINK_Invoke(), exc_equal(), fdbm_delete_if(), fgdbm_delete_if(), fsdbm_delete_if(), goruby_run_node(), gzfile_wrap(), init_libraries(), io_s_write(), name_err_mesg_to_str(), ossl_buf2str(), ossl_client_cert_cb(), ossl_generate_cb_2(), ossl_ocspbres_add_status(), ossl_pem_passwd_cb(), ossl_pkcs12_initialize(), ossl_pkey_new(), ossl_protect_membio2str(), ossl_ssl_verify_callback(), ossl_sslctx_add_extra_chain_cert_i(), ossl_sslctx_session_get_cb(), ossl_sslctx_session_new_cb(), ossl_sslctx_session_remove_cb(), ossl_tmp_dh_callback(), ossl_verify_cb_call(), parse(), pipe_open(), pruby_obj_to_var(), rb_eval_string_protect(), rb_exec_async_signal_safe(), rb_execarg_parent_start(), rb_glob_caller(), rb_hash_fetch_m(), rb_io_s_binread(), rb_io_s_pipe(), rb_io_s_read(), readline_readline(), ruby_eval_string_from_file_protect(), ssl_renegotiation_cb(), sys_enc_warning_in(), ttymode(), zstream_expand_buffer(), and zstream_expand_buffer_protect().
void rb_provide | ( | const char * | ) |
Definition at line 572 of file load.c.
References load_failed(), NORETURN(), rb_iseq_load_iseq(), rb_provide_feature(), and rb_usascii_str_new2.
Referenced by Init_Complex(), init_golf(), Init_Rational(), Init_thread_sync(), and InitVM_Enumerator().
int rb_provided | ( | const char * | ) |
Definition at line 522 of file load.c.
References rb_feature_provided().
Referenced by ruby_init_ext().
Definition at line 1107 of file random.c.
References genrand_bytes(), NULL, obj_random_bytes(), and try_get_rnd().
unsigned int rb_random_int32 | ( | VALUE | rnd | ) |
Definition at line 921 of file random.c.
References obj_random_bytes(), random_int32(), and try_get_rnd().
double rb_random_real | ( | VALUE | rnd | ) |
Definition at line 956 of file random.c.
References genrand_real(), id_rand, rb_random_t::mt, NUM2DBL, rb_eRangeError, rb_funcallv, rb_raise(), and try_get_rnd().
unsigned long rb_random_ulong_limited | ( | VALUE | rnd, |
unsigned long | limit | ||
) |
Definition at line 1016 of file random.c.
References id_rand, limited_rand(), rb_random_t::mt, NUM2ULONG, rb_eRangeError, rb_funcallv_public(), rb_num_negative_p(), rb_raise(), rb_to_int(), try_get_rnd(), and ulong_to_num_plus_1().
Definition at line 1019 of file range.c.
References len, NUM2LONG, Qfalse, Qnil, Qtrue, rb_eRangeError, rb_raise(), and rb_range_values().
Referenced by match_ary_aref(), rb_ary_aref(), rb_ary_aset(), rb_ary_fill(), rb_ary_slice_bang(), rb_get_values_at(), rb_str_aref(), rb_str_aset(), str_byte_aref(), and vm_backtrace_to_ary().
Definition at line 72 of file range.c.
References range, range_init(), rb_cRange, rb_obj_alloc(), and RBOOL.
Referenced by ibf_load_object_struct(), and iseq_compile_each().
Definition at line 995 of file range.c.
References EXCL, id_beg, id_end, Qfalse, Qtrue, RANGE_BEG, RANGE_END, rb_cRange, rb_funcall(), rb_intern, rb_obj_is_kind_of(), rb_respond_to(), and RTEST.
Referenced by enum_sum(), ibf_dump_object_struct(), range_values(), and rb_range_beg_len().
Definition at line 1904 of file rational.c.
References nurat_s_convert(), and rb_cRational.
Referenced by BigDecimal_to_r().
Definition at line 1919 of file rational.c.
References nurat_denominator().
Definition at line 1898 of file rational.c.
References nurat_s_canonicalize_internal(), and rb_cRational.
Referenced by date_zone_to_diff(), ibf_load_object_complex_rational(), and parse_rational().
Definition at line 1913 of file rational.c.
References nurat_numerator().
Definition at line 1892 of file rational.c.
References nurat_s_new_internal(), and rb_cRational.
VALUE rb_reg_alloc | ( | void | ) |
Definition at line 2786 of file re.c.
References rb_cRegexp, and rb_reg_s_alloc().
Referenced by rb_enc_reg_new(), rb_reg_compile(), and rb_reg_new_str().
Definition at line 1146 of file re.c.
References match_backref_number().
Referenced by rb_str_subpat(), and rb_str_subpat_set().
Definition at line 2798 of file re.c.
References err, NULL, rb_reg_initialize_str(), and rb_reg_raise_str().
Referenced by rb_reg_init_copy(), rb_reg_initialize_m(), and rb_reg_new_str().
Definition at line 1636 of file re.c.
References rb_reg_nth_match().
Referenced by last_match_getter(), match_to_s(), and vm_getspecial().
Definition at line 3074 of file re.c.
References LONG2FIX, Qnil, rb_str_sublen(), and reg_match_pos().
Referenced by Init_Regexp(), and rb_str_match().
Definition at line 3133 of file re.c.
References LONG2FIX, Qnil, rb_backref_set(), rb_lastline_get(), rb_reg_search(), rb_str_sublen(), RB_TYPE_P, and T_STRING.
Referenced by Init_Regexp().
Definition at line 1699 of file re.c.
References BEG, match_check(), NIL_P, re_registers::num_regs, Qnil, rb_reg_nth_match(), and RMATCH_REGS.
Referenced by last_paren_match_getter(), and vm_getspecial().
Definition at line 1681 of file re.c.
References BEG, END, match_check(), NIL_P, OBJ_TAINT, OBJ_TAINTED, Qnil, rb_str_subseq(), RMATCH, RMATCH_REGS, and RSTRING_LEN.
Referenced by Init_Regexp(), postmatch_getter(), and vm_getspecial().
Definition at line 1654 of file re.c.
References BEG, match_check(), NIL_P, OBJ_TAINT, OBJ_TAINTED, Qnil, rb_str_subseq(), RMATCH, and RMATCH_REGS.
Referenced by Init_Regexp(), prematch_getter(), and vm_getspecial().
Definition at line 2844 of file re.c.
References rb_ascii8bit_encoding(), and rb_enc_reg_new().
Referenced by date__strptime_internal(), proc_options(), and regcomp().
Definition at line 2792 of file re.c.
References rb_reg_alloc(), and rb_reg_init_str().
Referenced by r_object0(), rb_reg_new_ary(), rb_reg_regcomp(), and rb_reg_s_union().
Definition at line 1592 of file re.c.
References BEG, match_check(), NIL_P, re_registers::num_regs, Qfalse, Qnil, Qtrue, and RMATCH_REGS.
Definition at line 1610 of file re.c.
References BEG, END, re_registers::end, len, match_check(), NIL_P, re_registers::num_regs, OBJ_INFECT, Qnil, rb_str_subseq(), RMATCH, and RMATCH_REGS.
Referenced by date__strptime_internal(), httpdate_type1_cb(), httpdate_type2_cb(), httpdate_type3_cb(), iso8601_bas_datetime_cb(), iso8601_ext_datetime_cb(), iso8601_ext_time_cb(), jisx0301_cb(), match_aref(), match_ary_aref(), match_ary_subseq(), match_inspect(), match_named_captures_iter(), match_regexp(), match_values_at(), parse_day_cb(), parse_ddd_cb(), parse_dot(), parse_dot_cb(), parse_eu_cb(), parse_frag_cb(), parse_iso21_cb(), parse_iso22_cb(), parse_iso23_cb(), parse_iso24_cb(), parse_iso25_cb(), parse_iso26_cb(), parse_iso_cb(), parse_jis_cb(), parse_mday_cb(), parse_mon_cb(), parse_sla(), parse_sla_cb(), parse_time(), parse_time2_cb(), parse_time_cb(), parse_us_cb(), parse_vms11_cb(), parse_vms12_cb(), parse_year_cb(), rb_reg_last_match(), rb_reg_match_last(), rb_reg_s_last_match(), rb_str_rpartition(), rb_str_sub_bang(), rb_str_subpat(), rfc2822_cb(), rfc3339_cb(), scan_once(), str_gsub(), vm_getspecial(), xmlschema_datetime_cb(), xmlschema_time_cb(), and xmlschema_trunc_cb().
int rb_reg_options | ( | VALUE | ) |
Definition at line 3474 of file re.c.
References ARG_ENCODING_FIXED, ARG_ENCODING_NONE, ARG_REG_OPTION_MASK, KCODE_FIXED, options(), rb_reg_check(), RBASIC, REG_ENCODING_NONE, and RREGEXP_PTR.
Referenced by ibf_dump_object_regexp(), rb_reg_init_copy(), rb_reg_initialize_m(), rb_reg_options_m(), and w_object().
Definition at line 1000 of file vm_method.c.
References rb_intern, and remove_method().
Definition at line 1040 of file load.c.
References JUMP_TAG, load_failed(), Qfalse, Qtrue, rb_errinfo(), rb_exc_raise(), rb_require_internal(), loaded_feature_searching::result, TAG_RAISE, and TAG_RETURN.
Referenced by load_transcoder_entry(), rb_f_require(), rb_f_require_relative(), and rb_require().
int rb_reserved_fd_p | ( | int | fd | ) |
Referenced by close_unless_reserved(), rb_io_initialize(), and rsock_init_sock().
void rb_reset_random_seed | ( | void | ) |
Definition at line 1560 of file random.c.
References default_rand, INT2FIX, rb_random_t::mt, rb_random_t::seed, and uninit_genrand.
Referenced by rb_thread_start_timer_thread().
Definition at line 1995 of file vm_method.c.
References FALSE, and rb_obj_respond_to().
Referenced by copy_stream_body(), copy_stream_fallback_body(), discrete_object_p(), do_coerce(), enum_zip(), enumerator_initialize(), generate_json(), gzfile_close(), gzfile_write_raw(), hash_equal(), iseq_translate(), lazy_flat_map_proc(), lazy_zip(), must_respond_to(), mustbe_callable(), num_exact(), ole_search_handler_method(), ossl_ssl_initialize(), ossl_to_der_if_possible(), parse(), parser_compile_error(), range_values(), rb_ary_equal(), rb_econv_prepare_options(), rb_f_open(), rb_gzreader_initialize(), rb_gzwriter_flush(), rb_gzwriter_initialize(), rb_marshal_dump_limited(), rb_marshal_load_with_proc(), rb_range_values(), rb_str_equal(), and syserr_eqq().
Definition at line 366 of file variable.c.
References classid, classpath, ivar_cache(), OBJ_FREEZE, rb_cObject, rb_ivar_set(), rb_str_cat2(), rb_str_dup(), rb_str_intern(), rb_str_new2, rb_str_new_cstr(), rb_tmp_class_path(), and tmp_classpath.
Referenced by Init_IO().
Definition at line 343 of file variable.c.
References classid, classpath, ivar_cache(), OBJ_FREEZE, rb_cObject, rb_ivar_set(), rb_str_append(), rb_str_cat2(), rb_str_dup(), rb_str_intern(), rb_str_new_frozen(), rb_tmp_class_path(), and tmp_classpath.
Referenced by rb_define_class_id_under(), and rb_define_module_id_under().
Definition at line 60 of file eval_jump.c.
References ALLOC, end_proc_data::data, end_procs, ephemeral_end_procs, end_proc_data::func, GET_THREAD, link(), list, end_proc_data::next, rb_safe_level(), end_proc_data::safe, and rb_thread_struct::top_wrapper.
Referenced by m_core_set_postexe(), and rb_f_at_exit().
const char* rb_sourcefile | ( | void | ) |
Definition at line 1247 of file vm.c.
References rb_iseq_struct::body, rb_thread_struct::cfp, GET_THREAD, rb_control_frame_struct::iseq, rb_iseq_constant_body::location, rb_iseq_location_struct::path, rb_vm_get_ruby_level_next_cfp(), and RSTRING_PTR.
Referenced by rb_autoload_load().
int rb_sourceline | ( | void | ) |
Definition at line 1261 of file vm.c.
References rb_thread_struct::cfp, GET_THREAD, rb_vm_get_ruby_level_next_cfp(), and rb_vm_get_sourceline().
Referenced by update_coverage().
Definition at line 4006 of file process.c.
References NULL, and rb_spawn_internal().
Definition at line 4000 of file process.c.
References rb_spawn_internal().
Definition at line 4494 of file bignum.c.
References rb_str_to_inum().
Definition at line 2818 of file string.c.
References rb_str_buf_append(), and StringValue.
Referenced by append_method(), argf_read(), dir_inspect(), dt_lite_iso8601(), dt_lite_jisx0301(), fc_path(), gzfile_error_inspect(), insn_data_to_s_detail(), inspect_range(), inspect_struct(), io_fillbuf(), join_der_i(), make_version_str(), match_inspect(), method_inspect(), ole_raise(), ossl_sslctx_set_ciphers(), ossl_x509extfactory_create_ext(), parser_here_document(), path_sub_ext(), range_to_s(), rb_const_set(), rb_io_inspect(), rb_iseq_disasm(), rb_load_fail(), rb_mod_to_s(), rb_reg_s_union(), rb_set_class_path_string(), rb_stat_inspect(), rb_str_concat(), rb_str_ellipsize(), rb_str_insert(), rb_str_prepend_multi(), sockopt_inspect(), strscan_concat(), syserr_fail2_in(), and wmap_inspect_i().
Definition at line 2802 of file string.c.
References ENC_CODERANGE, ENC_CODERANGE_SET, ENCODING_GET, OBJ_INFECT, RSTRING_LEN, and RSTRING_PTR.
Referenced by append_method(), ary_join_0(), ary_join_1(), env_inspect(), exc_inspect(), gc_profile_result(), inspect_ary(), inspect_i(), literal_concat0(), match_inspect(), method_inspect(), rb_digest_instance_inspect(), rb_file_join(), rb_reg_preprocess_dregexp(), rb_str_append(), rb_str_concat_multi(), str_gsub(), and strio_write().
Referenced by append_utf8(), appendline(), enc_str_scrub(), encodes(), env_inspect(), exc_inspect(), fill_envp_buf_i(), json_string_unescape(), match_inspect(), pack_pack(), pack_unpack_internal(), parser_nextline(), qpencode(), rb_exec_fillarg(), rb_execarg_parent_start1(), rb_reg_expr_str(), rb_reg_to_s(), rb_str_buf_cat_escaped_char(), rb_str_buf_new_cstr(), rb_str_cat_cstr(), RUBY_ALIAS_FUNCTION(), ssl_renegotiation_cb(), unescape_escaped_nonascii(), unescape_nonascii(), w_nbyte(), zstream_append_buffer(), and zstream_append_input().
Definition at line 2778 of file string.c.
References ALLOCA_N, buf, ENC_CODERANGE_7BIT, ENC_CODERANGE_VALID, ENCODING_GET, rb_enc_asciicompat, rb_enc_codelen(), rb_enc_from_index(), rb_enc_mbcput, rb_enc_mbmaxlen, and strlen().
Referenced by check_getline_args(), inspect_i(), and rb_reg_s_union().
VALUE rb_str_buf_new | ( | long | ) |
Definition at line 1247 of file string.c.
References ALLOC_N, RString::capa, FL_SET, rb_cString, RSTRING, str_alloc(), STR_BUF_MIN_SIZE, and STR_NOEMBED.
Referenced by appendline(), copy_stream_body(), copy_stream_fallback_body(), enc_str_scrub(), gc_profile_result(), JSON_parse_string(), optimized_escape(), optimized_escape_html(), optimized_unescape(), optimized_unescape_html(), pack_pack(), parser_nextline(), pst_to_s(), rb_ary_join(), rb_digest_instance_inspect(), rb_econv_append(), rb_enc_vsprintf(), rb_exec_fillarg(), rb_execarg_parent_start1(), rb_file_join(), rb_marshal_dump_limited(), rb_reg_preprocess(), rb_reg_regsub(), rb_reg_s_union(), rb_str_buf_new_cstr(), rb_str_conv_enc_opts(), rb_str_encode_ospath(), rb_str_escape(), rb_str_format(), rb_str_inspect(), str_gsub(), zstream_append_buffer(), zstream_append_input(), and zstream_expand_buffer_into().
Definition at line 1263 of file string.c.
References len, rb_str_buf_cat(), rb_str_buf_new(), and strlen().
Referenced by rb_load_fail().
Definition at line 2664 of file string.c.
References rb_eArgError, rb_raise(), and str_buf_cat().
Referenced by append_lex_state_name(), date_strftime_internal(), flo_to_s(), ibf_dump_write(), init_env(), inspect1(), inspect_range(), io_getc(), io_shift_cbuf(), moreswitches(), mustbe_callable(), ole_excepinfo2msg(), optimized_escape(), optimized_escape_html(), optimized_unescape(), optimized_unescape_html(), parser_here_document(), process_sflag(), r_bytes1_buffered(), range_to_s(), rb_file_dirname(), rb_id_attrset(), rb_io_inspect(), rb_str_cat_conv_enc_opts(), rb_str_concat(), rb_str_ellipsize(), rb_str_encode_ospath(), realpath_rec(), rsock_inspect_sockaddr(), show_bitstack(), and zstream_append_buffer().
Referenced by addrinfo_inspect(), argf_next_argv(), cannot_be_coerced_into_BigDecimal(), clsid_from_remote(), cState_aset(), dir_inspect(), econv_description(), econv_inspect(), err_vcatf(), f_format(), fc_path(), foleparam_inspect(), gzfile_error_inspect(), insn_data_to_s_detail(), inspect2(), inspect_errno(), inspect_i(), inspect_obj(), inspect_struct(), make_inspect(), make_version_str(), nucomp_inspect(), nurat_inspect(), oldbt_print_to(), ole_excepinfo2msg(), ole_hresult2msg(), ole_raise(), oletypelib_path(), ossl_make_error(), ossl_ssl_get_state(), ossl_sslctx_set_ciphers(), path_check_0(), proc_options(), process_sflag(), pst_inspect(), pst_message(), rb_const_set(), rb_econv_open_exc(), rb_find_file_ext_safe(), rb_if_indextoname(), rb_io_inspect(), rb_iseq_disasm(), rb_iseq_disasm_insn(), rb_load_fail(), rb_mod_to_s(), rb_set_class_path(), rb_set_class_path_string(), rb_syntax_error_append(), realpath_rec(), rsock_inspect_sockaddr(), search_required(), sockopt_inspect(), syserr_fail2_in(), warn_vsprintf(), wmap_inspect(), and wmap_inspect_i().
Definition at line 2674 of file string.c.
References must_not_null(), rb_str_buf_cat(), and strlen().
Referenced by append_lex_state_name(), feature_option(), html_escaped_cat(), location_format(), optimized_escape(), rb_if_indextoname(), rb_syntax_error_append(), show_bitstack(), thread_start_func_2(), and trace_lex_state().
Definition at line 3050 of file string.c.
References ENCODING_GET, lesser, memcmp(), rb_str_comparable(), and RSTRING_GETMEM.
Referenced by iseq_location_setup(), ole_method_event(), ole_search_event(), ole_search_event_at(), oleclass_from_typelib(), oletypelib_search_registry(), rb_digest_instance_equal(), rb_str_cmp_m(), recordinfo_from_itypelib(), sort_2(), str_upto_each(), typeinfo_from_ole(), and typelib_file_from_typelib().
Definition at line 3025 of file string.c.
References ENC_CODERANGE_7BIT, ENCODING_GET, FALSE, rb_enc_asciicompat, rb_enc_from_index(), rb_enc_str_coderange(), RSTRING_LEN, and TRUE.
Referenced by rb_str_cmp(), rb_str_hash_cmp(), and str_eql().
Definition at line 2890 of file string.c.
References ALLOCA_N, buf, ENC_CODERANGE, ENC_CODERANGE_7BIT, ENC_CODERANGE_SET, ENC_CODERANGE_VALID, ENCINDEX_ASCII, ENCINDEX_US_ASCII, FIX2LONG, FIXNUM_P, len, memcpy, ONIGERR_INVALID_CODE_POINT_VALUE, ONIGERR_TOO_BIG_WIDE_CHAR_VALUE, rb_enc_associate_index(), rb_enc_codelen(), rb_enc_mbcput, rb_enc_name, rb_enc_precise_mbclen(), rb_enc_to_index(), rb_eRangeError, RB_INTEGER_TYPE_P, rb_num_to_uint(), rb_raise(), rb_str_append(), rb_str_cat(), rb_str_resize(), RSTRING_LEN, RSTRING_PTR, and STR_ENC_GET.
Referenced by clsid_from_remote(), cState_aref(), cState_aset(), debug_deadlock_check(), defined_expr(), f_format(), foleparam_inspect(), Init_String(), insn_data_to_s_detail(), iseq_compile_each(), make_inspect(), nucomp_inspect(), nurat_inspect(), ole_typedesc2val(), oletypelib_path(), pruby_eval(), rb_iseq_disasm(), rb_iseq_disasm_insn(), rb_mod_to_s(), and rb_str_concat_multi().
Definition at line 4331 of file string.c.
References ENC_CODERANGE_CLEAR, len, memmove(), RString::ptr, rb_str_new_frozen(), RBASIC, RSTRING, RSTRING_LEN, RSTRING_PTR, STR_EMBEDDABLE_P, str_modifiable(), STR_NOEMBED, STR_NOFREE, STR_SET_EMBED, STR_SET_EMBED_LEN, STR_SHARED, STR_SHARED_P, TERM_LEN, and xfree().
Referenced by econv_primitive_convert(), and rb_str_splice_0().
Definition at line 5771 of file string.c.
References ENC_CODERANGE_7BIT, ENC_CODERANGE_SET, IS_EVSTR, ISPRINT, len, LONG_MAX, MBCLEN_CHARFOUND_LEN, MBCLEN_CHARFOUND_P, OnigEncodingTypeST::name, OBJ_INFECT_RAW, rb_ascii8bit_encindex(), rb_enc_asciicompat, rb_enc_associate_index(), rb_enc_from_index(), rb_enc_get_index(), rb_enc_mbc_to_codepoint, rb_enc_precise_mbclen(), rb_eRuntimeError, rb_raise(), rb_str_new_with_class(), rb_strlen_lit, rb_utf8_encindex(), result, RSTRING_LEN, RSTRING_PTR, snprintf, and strlen().
Referenced by Init_String(), inspect1(), inspect2(), make_econv_exception(), rb_econv_prepare_options(), and sockopt_inspect().
Definition at line 1436 of file string.c.
References rb_obj_class(), and str_duplicate().
Referenced by argf_next_argv(), cannot_be_coerced_into_BigDecimal(), convert_encoding(), cParser_source(), cState_aset(), date__parse(), dir_path(), econv_convert(), encoded_dup(), exc_inspect(), fc_path(), fdbm_delete_if(), fdbm_fetch(), fgdbm_delete_if(), fole_missing(), fsdbm_delete_if(), gettable_gen(), inspect_range(), intern_str(), iseq_compile_each(), make_inspectname(), optimized_escape(), optimized_escape_html(), optimized_unescape(), optimized_unescape_html(), process_options(), range_to_s(), rb_autoload_str(), rb_class_path(), rb_class_path_no_cache(), rb_const_set(), rb_deflate_init_copy(), rb_file_path(), rb_find_file_ext_safe(), rb_gzfile_comment(), rb_gzfile_orig_name(), rb_gzfile_set_comment(), rb_gzfile_set_orig_name(), rb_id_attrset(), rb_insn_operand_intern(), rb_mod_name(), rb_mod_to_s(), rb_reg_source(), rb_set_class_path(), rb_set_class_path_string(), rb_str_aref(), rb_str_capitalize(), rb_str_casemap(), rb_str_chomp(), rb_str_conv_enc_opts(), rb_str_delete(), rb_str_downcase(), rb_str_intern(), rb_str_justify(), rb_str_lstrip(), rb_str_reverse(), rb_str_rstrip(), rb_str_squeeze(), rb_str_strip(), rb_str_sub(), rb_str_swapcase(), rb_str_times(), rb_str_tr(), rb_str_tr_s(), rb_str_upcase(), realpath_rec(), reg_set_source(), rsock_ipaddr(), ruby_set_script_name(), str_gsub(), str_scrub(), str_uminus(), str_uplus(), and str_upto_each().
Referenced by dir_initialize(), rb_dir_s_empty_p(), rb_realpath_internal(), and realpath_rec().
Shortens str and adds three dots, an ellipsis, if it is longer than len characters.
str | the string to ellipsize. |
len | the maximum string length. |
Definition at line 9169 of file string.c.
References Qnil, rb_eIndexError, rb_enc_asciicompat, rb_enc_associate(), rb_enc_from_encoding(), rb_enc_get(), rb_enc_mbminlen, rb_enc_nth(), rb_enc_step_back, rb_raise(), rb_str_append(), rb_str_cat(), rb_str_encode(), rb_str_new_with_class(), rb_str_subseq(), rb_usascii_str_new(), RSTRING_LEN, and RSTRING_PTR.
Referenced by intern_str(), rb_hash_fetch_m(), and syserr_fail2_in().
Definition at line 223 of file file.c.
References gzfile::enc, ENCINDEX_ASCII, ENCINDEX_UTF_8, ENCODING_GET, FALSE, len, MBCLEN_CHARFOUND_LEN, MBCLEN_CHARFOUND_P, NULL, gzfile::path, rb_enc_associate(), rb_enc_from_index(), rb_enc_mbc_to_codepoint, rb_enc_precise_mbclen(), rb_filesystem_encindex(), rb_str_buf_new(), rb_str_cat(), rb_str_conv_enc(), rb_str_modify_expand(), rb_str_set_len(), rb_utf8_encoding(), RSTRING_LEN, and RSTRING_PTR.
Referenced by apply2files(), argf_next_argv(), check_dirname(), dir_initialize(), dir_s_chdir(), do_opendir(), join_path(), load_file(), push_glob(), rb_dir_s_empty_p(), rb_execarg_addopt(), rb_execarg_parent_start1(), rb_f_load(), rb_file_chmod(), rb_file_chown(), rb_file_executable_p(), rb_file_executable_real_p(), rb_file_expand_path_internal(), rb_file_grpowned_p(), rb_file_lstat(), rb_file_readable_p(), rb_file_readable_real_p(), rb_file_s_ftype(), rb_file_s_join(), rb_file_s_lstat(), rb_file_s_rename(), rb_file_symlink_p(), rb_file_writable_p(), rb_file_writable_real_p(), rb_io_reopen(), rb_require_internal(), rb_stat(), rb_stat_init(), rb_stat_sticky(), rb_sysopen(), realpath_rec(), and syserr_fail2_in().
Definition at line 3105 of file string.c.
References Qfalse, Qtrue, rb_equal(), rb_respond_to(), RB_TYPE_P, str_eql(), and T_STRING.
Referenced by init_addrinfo_getaddrinfo(), Init_String(), match_equal(), opt_eq_func(), path_eq(), r_object0(), rb_get_expanded_load_path(), and str_upto_each().
Definition at line 461 of file sprintf.c.
References argc, argv, BIGNUM_NEGATIVE_P, BIT_DIGITS, buf, CHAR_BIT, CHECK, CHECK_FOR_FLAGS, CHECK_FOR_WIDTH, CHECKNAMEARG, ENC_CODERANGE_7BIT, ENC_CODERANGE_BROKEN, ENC_CODERANGE_SET, ENC_CODERANGE_UNKNOWN, ffs(), FILL, FILL_, FIX2LONG, FIXABLE, FIXNUM_P, float_value(), FMINUS, fmt_setup(), FNONE, FPLUS, FPREC, FPREC0, FSHARP, FSPACE, FWIDTH, FZERO, get_hash(), GETARG, GETASTER, GETNUM, GETPOSARG, hash(), INT2FIX, INTEGER_PACK_2COMP, INTEGER_PACK_BIG_ENDIAN, isinf(), isnan, len, LONG2FIX, memcpy, NIL_P, NULL, NUM2INT, OBJ_TAINT, OBJ_TAINTED, PRIsVALUE, PRIuSIZE, PUSH, PUSH_, Qnil, Qundef, rb_absint_numwords(), rb_absint_singlebit_p(), rb_big2str(), rb_big_uminus(), rb_check_string_type(), rb_check_symbol_cstr(), rb_dbl2big(), rb_eArgError, rb_eKeyError, rb_enc_associate(), rb_enc_check(), rb_enc_codelen(), rb_enc_codepoint_len(), rb_enc_copy(), rb_enc_get(), rb_enc_isprint, rb_enc_mbclen(), rb_enc_mbcput, rb_enc_nth(), rb_enc_raise(), rb_enc_right_char_head, rb_enc_strlen(), rb_enc_toupper(), rb_Float(), RB_GC_GUARD, rb_hash_default_value(), rb_hash_lookup2(), rb_inspect(), rb_int2str(), rb_int_idiv(), rb_int_mul(), rb_int_plus(), rb_int_positive_pow(), rb_Integer(), rb_integer_pack(), RB_INTEGER_TYPE_P, rb_long2int, rb_obj_as_string(), rb_raise(), rb_rational_den(), rb_rational_num(), rb_str_buf_new(), rb_str_coderange_scan_restartable(), rb_str_new(), rb_str_new4, rb_str_resize(), rb_str_set_len(), rb_str_to_inum(), rb_sym2str, rb_sym_intern(), RB_TYPE_P, rb_warn(), result, RFLOAT_VALUE, RSTRING_END, RSTRING_LEN, RSTRING_PTR, RTEST, ruby_debug, ruby_digitmap, ruby_verbose, sign_bits(), SIGNED_VALUE, snprintf, StringValue, strlen(), sym, T_BIGNUM, T_FIXNUM, T_FLOAT, T_RATIONAL, T_STRING, term, TRUE, TYPE, val, and zero().
Referenced by date_strftime_with_tmx(), name_err_mesg_to_str(), rb_f_sprintf(), rb_str_format_m(), rb_strftime_with_timespec(), str_upto_each(), and uncaught_throw_to_s().
void rb_str_free | ( | VALUE | ) |
Definition at line 1281 of file string.c.
References FL_TEST, NULL, rb_vm_fstring_table(), RSTRING_FSTR, RUBY_FUNC_EXPORTED, ruby_sized_xfree(), st_data_t, st_delete, STR_EMBED_P, STR_HEAP_PTR, STR_HEAP_SIZE, STR_NOFREE, and STR_SHARED.
Referenced by dispose_string(), and obj_free().
Definition at line 2467 of file string.c.
References OBJ_FROZEN, rb_obj_freeze(), rb_str_resize(), and RSTRING_LEN.
Referenced by get_loaded_features_index(), Init_String(), path_freeze(), rb_construct_expanded_load_path(), rb_provide_feature(), and str_uminus().
st_index_t rb_str_hash | ( | VALUE | ) |
Definition at line 2985 of file string.c.
References ENC_CODERANGE_7BIT, ENCODING_GET, rb_enc_str_coderange(), rb_memhash(), RSTRING_LEN, and RSTRING_PTR.
Referenced by any_hash(), cdhash_hash(), dsymbol_alloc(), match_hash(), path_hash(), and rb_str_hash_m().
Definition at line 2995 of file string.c.
References memcmp(), rb_str_comparable(), and RSTRING_GETMEM.
Referenced by cdhash_cmp(), and rb_any_cmp().
Definition at line 5664 of file string.c.
References buf, CHAR_ESC_LEN, ENCODING_GET, get_actual_encoding(), ISPRINT, MBCLEN_CHARFOUND_LEN, MBCLEN_CHARFOUND_P, NULL, OBJ_INFECT_RAW, rb_default_external_encoding(), rb_default_internal_encoding(), rb_enc_asciicompat, rb_enc_associate(), rb_enc_codepoint, rb_enc_from_index(), rb_enc_isascii, rb_enc_isprint, rb_enc_mbc_to_codepoint, rb_enc_mbminlen, rb_enc_precise_mbclen(), rb_enc_unicode_p(), rb_str_buf_cat_escaped_char(), rb_str_buf_new(), rb_usascii_encoding(), result, RSTRING_END, RSTRING_PTR, snprintf, str_buf_cat(), str_buf_cat2, and strlen().
Referenced by check_path_encoding(), gzfile_error_inspect(), id_to_name(), Init_String(), location_inspect_m(), match_inspect(), rb_str_quote_unprintable(), and sym_inspect().
Definition at line 661 of file symbol.c.
References dsymbol_alloc(), id, ID2SYM, ID_JUNK, IDSET_ATTRSET_FOR_INTERN, intern_str(), lookup_str_sym(), OBJ_FREEZE, rb_cSymbol, rb_enc_associate(), rb_enc_get(), rb_fstring(), rb_str_dup(), rb_str_new_frozen(), rb_str_symname_type(), rb_usascii_encoding(), sym, and sym_check_asciionly().
Referenced by hash2ptr_dispparams(), hash2result(), Init_String(), JSON_parse_string(), r_object0(), rb_f_global_variables(), rb_mod_const_get(), rb_set_class_path(), rb_set_class_path_string(), rb_sym_intern(), rb_to_symbol(), register_label(), send_internal(), set_state_ivars(), sym_capitalize(), sym_downcase(), sym_each_i(), sym_step_i(), sym_succ(), sym_swapcase(), sym_upcase(), vm_call_opt_send(), w_unique(), and yyparse().
Definition at line 1749 of file string.c.
References LONG2NUM, NULL, and str_strlen().
Referenced by Init_String(), rb_reg_match_p(), rb_str_each_char_size(), reg_match_pos(), strscan_get_charpos(), and sym_length().
Referenced by rb_io_sysread(), rb_str_locktmp_ensure(), and readline_readline().
void rb_str_modify | ( | VALUE | ) |
Definition at line 1980 of file string.c.
References ENC_CODERANGE_CLEAR, str_independent(), and str_make_independent().
Referenced by dedent_string(), econv_primitive_convert(), io_set_read_length(), io_setstrbuf(), ossl_ssl_read_internal(), rb_str_cat_conv_enc_opts(), rb_str_splice_0(), rb_str_sub_bang(), rb_str_succ_bang(), rb_str_vcatf(), rsock_strbuf(), setup_narg(), str_buf_cat(), string_to_c(), string_to_c_strict(), string_to_r(), string_to_r_strict(), strio_extend(), and strio_read().
void rb_str_modify_expand | ( | VALUE | , |
long | |||
) |
Definition at line 1988 of file string.c.
References ENC_CODERANGE_CLEAR, len, LONG_MAX, rb_eArgError, rb_raise(), RESIZE_CAPA_TERM, RSTRING_LEN, str_independent(), str_make_independent_expand(), and TERM_LEN.
Referenced by append_wstr(), check_gid_switch(), io_setstrbuf(), rb_file_expand_path_internal(), rb_str_encode_ospath(), read_all(), resize_buffer(), rsock_strbuf(), ruby_init_loadpath_safe(), sock_sysaccept(), strio_unget_bytes(), zstream_append_buffer(), zstream_expand_buffer_into(), and zstream_expand_buffer_non_stream().
Definition at line 736 of file string.c.
References rb_cString, and str_new().
Referenced by addrinfo_ipv4_multicast_p(), addrinfo_mdump(), addrinfo_to_sockaddr(), appendline(), argf_getpartial(), asn1str_to_str(), BigDecimal_dump(), BigDecimal_inspect(), BigDecimal_split(), BigDecimal_to_f(), BigDecimal_to_s(), bsock_getpeername(), bsock_getsockname(), bsock_getsockopt(), bubblebabble_str_new(), check_pipe_command(), cState_array_nl(), cState_indent(), cState_object_nl(), cState_space(), cState_space_before(), cState_to_h(), date_strftime_internal(), decode_bstr(), decode_eoc(), dir_s_home(), econv_convert(), econv_description(), econv_finish(), econv_primitive_errinfo(), econv_putback(), etc_systmpdir(), extract_user_token(), fbuffer_append_char(), genrand_bytes(), gzfile_getc(), gzfile_read(), gzfile_read_all(), gzfile_read_header(), gzfile_readpartial(), gzreader_gets(), ibf_dump_setup(), ibf_load_object_string(), infected_str_new(), inspect1(), inspect2(), int_chr(), int_ossl_asn1_decode0_prim(), io_getc(), io_setstrbuf(), io_shift_cbuf(), iseq_ibf_load_extra_data(), join_der(), load_file_internal(), load_transcoder_entry(), make_econv_exception(), match_to_s(), Messaging_HandleMessage(), ossl_asn1cons_to_der(), ossl_asn1data_to_der(), ossl_asn1eoc_initialize(), ossl_bn_to_s(), ossl_cipher_final(), ossl_cipher_is_authenticated(), ossl_cipher_update(), ossl_dh_compute_key(), ossl_dh_to_der(), ossl_digest_finish(), ossl_dsa_sign(), ossl_dsa_to_der(), ossl_hmac_digest(), ossl_hmac_hexdigest(), ossl_hmac_s_digest(), ossl_hmac_s_hexdigest(), ossl_make_error(), ossl_membio2str0(), ossl_ocspbres_to_der(), ossl_ocspcid_get_issuer_key_hash(), ossl_ocspcid_get_issuer_name_hash(), ossl_ocspcid_to_der(), ossl_ocspreq_to_der(), ossl_ocspres_to_der(), ossl_ocspsres_to_der(), ossl_pkcs12_to_der(), ossl_pkcs5_pbkdf2_hmac_sha1(), ossl_pkcs7_to_der(), ossl_pkey_sign(), ossl_rand_bytes(), ossl_rsa_private_decrypt(), ossl_rsa_private_encrypt(), ossl_rsa_public_decrypt(), ossl_rsa_public_encrypt(), ossl_rsa_to_der(), ossl_spki_get_challenge(), ossl_spki_to_der(), ossl_ssl_get_client_ca_list(), ossl_ssl_read_internal(), ossl_ssl_session_get_id(), ossl_ssl_session_to_der(), ossl_sslctx_session_get_cb(), ossl_sslctx_set_ciphers(), ossl_str_new(), ossl_x509_to_der(), ossl_x509attr_get_value(), ossl_x509attr_to_der(), ossl_x509ext_to_der(), ossl_x509name_to_der(), ossl_x509req_to_der(), pack_pack(), parse(), proc_options(), push_include(), r_bytes0(), r_bytes1_buffered(), random_raw_seed(), rb_compile_cstr(), rb_digest_base_finish(), rb_enc_str_new(), rb_exc_new(), rb_execarg_commandline(), rb_execarg_parent_start1(), rb_execarg_run_options(), rb_f_backquote(), rb_file_dirname(), rb_file_join(), rb_file_s_basename(), rb_file_s_extname(), rb_gdbm_fetch(), rb_gdbm_firstkey(), rb_gdbm_nextkey(), rb_inflate_inflate(), rb_io_getline_fast(), rb_io_putc(), rb_io_ungetbyte(), rb_iseq_disasm(), rb_iseq_disasm_insn(), rb_nkf_convert(), rb_parser_compile_cstr(), rb_parser_printf(), rb_path_check(), rb_reg_compile(), rb_reg_quote(), rb_str_concat_literals(), rb_str_enumerate_lines(), rb_str_format(), rb_str_new_cstr(), rb_str_slice_bang(), rb_tainted_str_new(), rb_usascii_str_new(), rb_write_error2(), reg_named_captures_iter(), rsock_addrinfo_inspect_sockaddr(), rsock_ipaddr(), ruby_init_loadpath(), ruby_init_loadpath_safe(), s3e(), set_file_encoding(), set_option_encoding_once(), sock_s_gethostbyaddr(), sock_s_pack_sockaddr_in(), sock_s_unpack_sockaddr_in(), sock_sockaddr(), sock_sysaccept(), ssl_renegotiation_cb(), str_new(), strio_gets(), strio_putc(), strio_read(), strio_substr(), time_mdump(), zstream_detach_buffer(), zstream_detach_input(), and zstream_shift_buffer().
Definition at line 770 of file string.c.
References must_not_null(), rb_str_new(), and strlen().
Referenced by addrinfo_mdump(), cv_intern(), debug_deadlock_check(), decorate_convpath(), dir_inspect(), dump_output(), econv_convpath(), encoding_name(), etc_systmpdir(), finish_writeconv(), gc_profile_dump_on(), get_dns_server_list(), hist_to_s(), Init_readline(), inspect1(), load_file_internal(), opobj_inspect(), ossl_make_error(), prep_io(), process_options(), pty_getpty(), pty_open(), rb_econv_open_exc(), rb_exec_fillarg(), rb_file_expand_path_internal(), rb_file_open(), rb_insn_operand_intern(), rb_io_inspect(), rb_iseq_defined_string(), rb_load_file(), rb_parser_dump_tree(), rb_path2class(), rb_set_class_path(), rb_str_crypt(), rb_str_split(), rb_strftime_with_timespec(), rb_sys_fail_str(), rb_tainted_str_new_cstr(), rb_throw_obj(), rb_usascii_str_new_cstr(), rb_utf8_str_new_cstr(), ruby_eval_string_from_file(), ruby_eval_string_from_file_protect(), ruby_init_loadpath(), search_convpath_i(), sig_signame(), syserr_fail2_in(), time_zone_name(), and trace_lex_state().
Definition at line 1123 of file string.c.
References OBJ_FROZEN, OBJ_INFECT, rb_obj_class(), and str_new_frozen().
Referenced by hash_aset_str(), parser_compile_error(), parser_compile_string(), rb_check_argv(), rb_econv_prepare_options(), rb_econv_substr_append(), rb_file_open_generic(), rb_pat_search(), rb_set_class_path_string(), rb_str_drop_bytes(), rb_str_enumerate_chars(), rb_str_enumerate_codepoints(), rb_str_enumerate_lines(), rb_str_include_range_p(), rb_str_intern(), rb_str_subseq(), rb_thread_setname(), set_arg0(), str_byte_substr(), str_replace_shared_without_enc(), str_substr(), time_mload(), and yycompile().
Definition at line 1114 of file string.c.
References OBJ_INFECT, rb_obj_class(), and str_new_shared().
Referenced by mustbe_callable(), rb_file_s_basename(), and rb_str_subseq().
Definition at line 829 of file string.c.
References rb_cString, and str_new_static().
Definition at line 1230 of file string.c.
References rb_obj_class(), str_new0(), and TERM_LEN.
Referenced by rb_str_casemap(), rb_str_dump(), rb_str_ellipsize(), rb_str_reverse(), rb_str_subseq(), rb_str_succ(), str_byte_substr(), str_new_empty(), and str_substr().
long rb_str_offset | ( | VALUE | , |
long | |||
) |
Definition at line 2266 of file string.c.
References RSTRING_END, RSTRING_PTR, single_byte_optimizable(), STR_ENC_GET, and str_offset().
Referenced by rb_str_rpartition(), and reg_match_pos().
Definition at line 1800 of file string.c.
References ENC_CODERANGE, ENC_CODERANGE_AND, ENCODING_CODERANGE_SET, FL_SET_RAW, LONG_MAX, memcpy, OBJ_TAINTED_RAW, rb_cString, rb_eArgError, rb_enc_check_str(), rb_enc_mbminlen, rb_enc_to_index(), RB_GC_GUARD, rb_raise(), RSTRING_GETMEM, RSTRING_PTR, str_new0(), StringValue, and TERM_FILL.
Referenced by Init_String().
Definition at line 5097 of file string.c.
References str_discard(), str_modifiable(), str_replace(), and StringValue.
Referenced by Init_String(), rb_str_init(), and str_scrub_bang().
Definition at line 2562 of file string.c.
References RString::as, RString::capa, ENC_CODERANGE_CLEAR, len, MEMCPY, RString::ptr, rb_eArgError, rb_raise(), REALLOC_N, RSTRING, RSTRING_LEN, ruby_xfree(), STR_EMBED_P, STR_EMBEDDABLE_P, STR_HEAP_PTR, str_independent(), str_make_independent_expand(), STR_SET_EMBED, STR_SET_EMBED_LEN, TERM_FILL, and TERM_LEN.
Referenced by append_fspath(), appendline(), argf_getpartial(), argf_read(), big2str_generic(), BigDecimal_dump(), BigDecimal_inspect(), BigDecimal_split(), BigDecimal_to_s(), check_gid_switch(), copy_home_path(), copy_stream_body(), copy_stream_fallback_body(), do_opendir(), econv_primitive_convert(), flo_to_s(), glob_helper(), gzfile_error_inspect(), gzfile_readpartial(), join_path(), JSON_parse_string(), literal_concat0(), moreswitches(), new_regexp_gen(), ossl_cipher_update(), ossl_digest_finish(), ossl_ssl_read_internal(), push_include(), r_object0(), rb_econv_append(), rb_enc_vsprintf(), rb_feature_p(), rb_file_expand_path_internal(), rb_find_file_ext_safe(), rb_find_file_safe(), rb_gzfile_set_comment(), rb_gzfile_set_orig_name(), rb_io_getline_fast(), rb_iseq_disasm(), rb_marshal_dump_limited(), rb_nkf_putchar(), rb_reg_quote(), rb_reg_to_s(), rb_str_concat(), rb_str_format(), rb_str_freeze(), rb_str_vcatf(), rb_strftime_with_timespec(), realpath_rec(), ruby_init_loadpath(), ruby_init_loadpath_safe(), set_file_encoding(), setup_narg(), sock_sysaccept(), str_cat_conv_enc_opts(), str_shrink(), str_transcoding_resize(), strio_extend(), strio_init(), strio_read(), strio_truncate(), sym_inspect(), VpAlloc(), and w_nbyte().
Definition at line 1442 of file string.c.
References rb_cString, RSTRING_LEN, RUBY_DTRACE_CREATE_HOOK, str_duplicate(), and STRING.
Referenced by dump_result(), gzfile_raise(), gzfile_reader_get_unused(), obj_resurrect(), and rb_str_concat_literals().
str | the string to be scrubbed |
repl | the replacement character |
Definition at line 9232 of file string.c.
References ENC_CODERANGE, enc_str_scrub(), and STR_ENC_GET.
Referenced by str_scrub(), and str_scrub_bang().
void rb_str_set_len | ( | VALUE | , |
long | |||
) |
Definition at line 2545 of file string.c.
References RString::capa, rb_bug(), rb_eRuntimeError, rb_raise(), RSTRING_PTR, str_capacity(), str_modifiable(), STR_SET_LEN, STR_SHARED_P, TERM_FILL, and TERM_LEN.
Referenced by append_wstr(), appendline(), check_gid_switch(), dedent_string(), econv_primitive_convert(), io_set_read_length(), load_transcoder_entry(), mustbe_callable(), ole_wc2vstr(), ossl_cipher_final(), ossl_cipher_update(), ossl_dh_compute_key(), ossl_dsa_sign(), ossl_hmac_digest(), ossl_pkey_sign(), ossl_rsa_private_decrypt(), ossl_rsa_private_encrypt(), ossl_rsa_public_decrypt(), ossl_rsa_public_encrypt(), ossl_ssl_read_internal(), pack_pack(), pack_unpack_internal(), r_object0(), rb_big2str_generic(), rb_deflate_params(), rb_econv_append(), rb_execarg_parent_start1(), rb_execarg_run_options(), rb_file_expand_path_internal(), rb_file_join(), rb_find_file_ext_safe(), rb_io_getline_0(), rb_nkf_convert(), rb_realpath_internal(), rb_str_encode_ospath(), rb_str_format(), rb_strftime_with_timespec(), rb_sys_enc_warning(), rb_sys_warning(), read_all(), resize_buffer(), rsock_s_recvfrom(), rsock_s_recvfrom_nonblock(), rsock_strbuf(), ruby__sfvwrite(), ruby_init_loadpath_safe(), str_cat_conv_enc_opts(), str_transcode0(), strio_unget_bytes(), zstream_buffer_ungets(), zstream_run_func(), and zstream_shift_buffer().
Definition at line 1314 of file string.c.
References str_shared_replace().
Referenced by str_encode_bang().
Definition at line 7450 of file string.c.
References rb_str_new_cstr(), rb_str_split_m(), and StringValue.
Referenced by ossl_sslctx_set_ecdh_curves().
long rb_str_strlen | ( | VALUE | ) |
Definition at line 1735 of file string.c.
References NULL, and str_strlen().
Referenced by ibf_dump_pos().
long rb_str_sublen | ( | VALUE | , |
long | |||
) |
Definition at line 2313 of file string.c.
References ENC_CODERANGE, enc_strlen(), RSTRING_PTR, single_byte_optimizable(), and STR_ENC_GET.
Referenced by rb_reg_match(), rb_reg_match2(), rb_str_aset(), rb_str_index_m(), rb_str_rindex_m(), rb_str_rpartition(), and readline_attempted_completion_function().
char* rb_str_subpos | ( | VALUE | , |
long | , | ||
long * | |||
) |
Definition at line 2348 of file string.c.
References ENC_CODERANGE, ENC_CODERANGE_VALID, L, len, rb_enc_mbmaxlen, rb_enc_mbminlen, rb_enc_prev_char, RB_GC_GUARD, rb_utf8_encoding(), RSTRING_LEN, RSTRING_PTR, single_byte_optimizable(), STR_ENC_GET, str_nth_len(), str_offset(), str_strlen(), and str_substr().
Referenced by rb_reg_match_p(), and str_substr().
Definition at line 2324 of file string.c.
References len, OBJ_INFECT, rb_enc_cr_str_copy_for_substr(), RB_GC_GUARD, rb_str_new_frozen(), rb_str_new_shared(), rb_str_new_with_class(), RSTRING, RSTRING_LEN, RSTRING_PTR, SHARABLE_SUBSTRING_P, STR_EMBEDDABLE_P, and TERM_LEN.
Referenced by check_dirname(), enc_subseq(), features_index_add(), fole_missing(), lex_get_str(), match_array(), olerecord_ivar_set(), path_sub_ext(), rb_f_kill(), rb_file_s_extname(), rb_mod_const_defined(), rb_mod_const_get(), rb_path_to_class(), rb_realpath_internal(), rb_reg_match_post(), rb_reg_match_pre(), rb_reg_nth_match(), rb_reg_regsub(), rb_str_chomp(), rb_str_chop(), rb_str_ellipsize(), rb_str_enumerate_chars(), rb_str_enumerate_lines(), rb_str_lstrip(), rb_str_partition(), rb_str_rpartition(), rb_str_rstrip(), rb_str_split_m(), rb_str_strip(), rb_str_sub_bang(), rb_threadptr_error_print(), realpath_rec(), search_required(), str_gsub(), and trap_signm().
Definition at line 2435 of file string.c.
References str_substr(), and TRUE.
Referenced by rb_io_putc(), rb_str_aref(), rb_str_aref_m(), rb_str_chr(), set_state_ivars(), strio_putc(), and zstream_discard_input().
Definition at line 3889 of file string.c.
References OBJ_INFECT, rb_enc_cr_str_copy_for_substr(), rb_str_new_with_class(), RSTRING_LEN, RSTRING_PTR, and str_succ().
Referenced by Init_String(), and sym_succ().
Definition at line 1842 of file string.c.
References INT2FIX, len, LONG_MAX, memcpy, NUM2LONG, OBJ_INFECT, rb_eArgError, rb_enc_copy(), rb_enc_cr_str_copy_for_substr(), rb_obj_class(), rb_raise(), rb_str_dup(), RSTRING_LEN, RSTRING_PTR, str_alloc(), str_new0(), STR_SET_LEN, TERM_FILL, and TERM_LEN.
Referenced by Init_String().
VALUE rb_str_tmp_new | ( | long | ) |
Definition at line 1275 of file string.c.
References str_new().
Referenced by check_gid_switch(), ISEQ_ORIGINAL_ISEQ_ALLOC(), iseq_set_arguments_keywords(), moreswitches(), mustbe_callable(), rb_feature_p(), rb_find_file_ext_safe(), rb_find_file_safe(), rb_str_concat_multi(), rb_str_prepend_multi(), str_transcode0(), and VpAlloc().
double rb_str_to_dbl | ( | VALUE | , |
int | |||
) |
Definition at line 2869 of file object.c.
References ALLOCV, ALLOCV_END, len, MEMCPY, rb_cstr_to_dbl(), rb_eArgError, rb_raise(), RSTRING_LEN, RSTRING_PTR, and StringValue.
Referenced by f_to_f(), rb_Float(), and rb_str_to_f().
Definition at line 4205 of file bignum.c.
References INT2FIX, invalid_integer(), len, NIL_P, NULL, rb_cstr_parse_inum(), rb_must_asciicompat(), RSTRING_GETMEM, and StringValue.
Referenced by fun1(), obj2int(), obj2subsecx(), obj2vint(), rb_convert_to_integer(), rb_str2inum(), rb_str_format(), rb_str_hex(), rb_str_oct(), rb_str_to_i(), str_upto_each(), and usec2subsecx().
Definition at line 2528 of file string.c.
References FL_TEST, FL_UNSET, rb_eRuntimeError, rb_raise(), RUBY_FUNC_EXPORTED, and STR_TMPLOCK.
Referenced by rb_io_sysread(), rb_str_locktmp_ensure(), and readline_readline().
Definition at line 4396 of file string.c.
References assert, ENC_CODERANGE, ENC_CODERANGE_AND, ENC_CODERANGE_BROKEN, ENC_CODERANGE_SET, rb_eIndexError, rb_enc_associate(), rb_enc_check(), rb_raise(), rb_str_splice_0(), RSTRING_END, RSTRING_PTR, single_byte_optimizable(), str_modify_keep_cr(), str_nth(), str_strlen(), and StringValue.
Referenced by rb_str_prepend_multi().
Definition at line 1453 of file sprintf.c.
References __SSTR, __SWR, BSD_vfprintf(), f, rb_str_capacity(), rb_str_modify(), rb_str_resize(), RBASIC, RBASIC_CLEAR_CLASS, RBASIC_SET_CLASS_RAW, RSTRING_END, RSTRING_PTR, ruby__sfvextra(), ruby__sfvwrite(), StringValue, and rb_printf_buffer_extra::value.
Referenced by dump_append(), err_vcatf(), init_env(), rb_parser_printf(), and rb_str_catf().
Definition at line 3097 of file object.c.
References NIL_P, rb_check_string_type(), rb_convert_type(), and T_STRING.
Referenced by exc_to_s(), make_version_str(), nucomp_to_s(), ossl_sslctx_set_ciphers(), and rb_f_string().
Definition at line 599 of file struct.c.
References RARRAY_CONST_PTR, RARRAY_LENINT, and rb_class_new_instance().
Definition at line 328 of file struct.c.
References struct_alloc().
Referenced by Init_thread_sync(), and range_alloc().
Definition at line 896 of file struct.c.
References invalid_struct_pos(), rb_struct_pos(), and RSTRUCT_GET.
Referenced by InitVM_Struct(), rb_vm_opt_struct_aref(), and struct_entry().
Definition at line 923 of file struct.c.
References FUNC_MINIMIZED(), invalid_struct_pos(), NOINLINE(), rb_struct_lookup(), rb_struct_lookup_default(), rb_struct_modify(), rb_struct_pos(), RSTRUCT_SET, and val.
Referenced by InitVM_Struct(), and rb_vm_opt_struct_aset().
Definition at line 410 of file struct.c.
References anonymous_struct(), RString::ary, new_struct(), rb_cStruct, rb_str_new2, setup_struct(), and struct_make_members_list().
Definition at line 425 of file struct.c.
References RString::ary, rb_cStruct, rb_define_class_under(), setup_struct(), and struct_make_members_list().
Referenced by Init_etc(), and InitVM_process().
VALUE rb_struct_define_without_accessor | ( | const char * | , |
VALUE | , | ||
rb_alloc_func_t | , | ||
... | |||
) |
Definition at line 397 of file struct.c.
References struct_define_without_accessor(), and struct_make_members_list().
Referenced by Init_Range().
VALUE rb_struct_define_without_accessor_under | ( | VALUE | outer, |
const char * | class_name, | ||
VALUE | super, | ||
rb_alloc_func_t | alloc, | ||
... | |||
) |
Definition at line 384 of file struct.c.
References struct_define_without_accessor(), and struct_make_members_list().
Referenced by Init_thread_sync().
Definition at line 205 of file struct.c.
References ID2SYM, rb_name_err_raise, RSTRUCT_GET, struct_member_pos(), and UNREACHABLE.
Definition at line 571 of file struct.c.
References RARRAY_CONST_PTR, RARRAY_LENINT, and rb_struct_initialize_m().
Referenced by r_object0().
Definition at line 65 of file struct.c.
References RARRAY_LEN, rb_eTypeError, rb_obj_class(), rb_raise(), rb_struct_s_members(), and RSTRUCT_LEN.
Referenced by inspect_struct(), rb_struct_each_pair(), rb_struct_to_h(), and w_object().
Definition at line 605 of file struct.c.
References N_REF_FUNC, num_members(), numberof, RARRAY_PTR, rb_ary_tmp_new(), rb_class_new_instance(), rb_long2int, and size.
Referenced by etc_getlogin(), etc_getpwent(), and p_gid_switch().
Definition at line 51 of file struct.c.
References id_members, NIL_P, rb_eTypeError, rb_raise(), RB_TYPE_P, struct_ivar_get(), and T_ARRAY.
Referenced by r_object0(), rb_struct_members(), and rb_struct_s_members_m().
Definition at line 1130 of file struct.c.
References LONG2FIX, and RSTRUCT_LEN.
Referenced by InitVM_Struct(), and struct_enum_size().
VALUE rb_sym_all_symbols | ( | void | ) |
Definition at line 814 of file symbol.c.
References RString::ary, global_symbols, st_table::num_entries, rb_ary_new2, st_foreach, symbols::str_sym, and symbols_i().
Referenced by Init_String().
int rb_sym_interned_p | ( | VALUE | ) |
Definition at line 9693 of file string.c.
References rb_cString, rb_sym2str, and str_new_shared().
Referenced by Init_String().
int rb_symname_p | ( | const char * | ) |
Definition at line 190 of file symbol.c.
References rb_ascii8bit_encoding(), and rb_enc_symname_p().
void rb_syswait | ( | rb_pid_t | pid | ) |
Definition at line 3885 of file process.c.
References rb_waitpid().
Referenced by rb_exec_async_signal_safe().
Definition at line 853 of file string.c.
References OBJ_TAINT, and rb_str_new().
Referenced by env_rassoc(), fdbm_delete(), fdbm_delete_if(), fdbm_each_key(), fdbm_each_pair(), fdbm_each_value(), fdbm_fetch(), fdbm_invert(), fdbm_key(), fdbm_keys(), fdbm_select(), fdbm_shift(), fdbm_to_a(), fdbm_to_hash(), fdbm_values(), pack_unpack_internal(), rb_fiddle_ptr_aref(), rb_fiddle_ptr_to_s(), rb_fiddle_ptr_to_str(), and rsock_strbuf().
Definition at line 871 of file string.c.
References len, OBJ_TAINT, RString::ptr, rb_str_new_cstr(), and str_cat_conv_enc_opts().
Referenced by addrinfo_firstonly_new(), addrinfo_list_new(), and init_addrinfo_getaddrinfo().
int rb_thread_alone | ( | void | ) |
Definition at line 3274 of file thread.c.
References GET_VM, and vm_living_thread_num().
Referenced by rb_thread_schedule_limits(), rb_thread_stop(), and thread_start_func_2().
void rb_thread_atfork | ( | void | ) |
Definition at line 4172 of file thread.c.
Referenced by pipe_open(), rb_exec_async_signal_safe(), and rb_thread_start_timer_thread().
void rb_thread_atfork_before_exec | ( | void | ) |
Definition at line 4177 of file thread.c.
Referenced by rb_thread_start_timer_thread().
void rb_thread_check_ints | ( | void | ) |
Definition at line 1215 of file thread.c.
References GET_THREAD, RUBY_VM_CHECK_INTS_BLOCKING, and waiting_fd::th.
Referenced by bary_short_mul(), BigMath_s_exp(), collect_all(), enum_to_h_i(), io_binwrite(), mustbe_callable(), rb_execarg_parent_start1(), rb_io_wait_readable(), and rb_io_wait_writable().
Definition at line 823 of file thread.c.
References rb_cThread, rb_thread_alloc(), and thread_create_core().
Referenced by rb_detach_process().
VALUE rb_thread_current | ( | void | ) |
Definition at line 2504 of file thread.c.
References GET_THREAD.
Referenced by chdir_yield(), check_autoload_required(), const_tbl_update(), copy_stream_body(), delete_current_thread(), dir_s_chdir(), exec_recursive(), parser_compile_error(), pipe_close(), queue_do_pop(), rb_autoload_load(), rb_autoloading_value(), rb_condvar_wait(), rb_f_kill(), rb_szqueue_push(), thread_s_current(), VpGetException(), VpGetPrecLimit(), and VpGetRoundMode().
void rb_thread_fd_close | ( | int | ) |
Definition at line 2226 of file thread.c.
References rb_notify_fd_close(), and rb_thread_schedule().
int rb_thread_fd_select | ( | int | , |
rb_fdset_t * | , | ||
rb_fdset_t * | , | ||
rb_fdset_t * | , | ||
struct timeval * | |||
) |
Definition at line 3795 of file thread.c.
References BLOCKING_REGION, do_select(), errno, FALSE, waiting_fd::fd, GET_THREAD, NULL, rb_fd_resize, rb_thread_sleep_forever(), rb_thread_wait_for(), rb_wait_for_single_fd(), RB_WAITFD_IN, RB_WAITFD_OUT, RB_WAITFD_PRI, result, retryable(), RUBY_VM_CHECK_INTS_BLOCKING, waiting_fd::th, timeofday(), timespec::tv_nsec, timeval::tv_sec, timespec::tv_sec, and timeval::tv_usec.
Referenced by maygvl_select(), select_internal(), and select_single().
int rb_thread_fd_writable | ( | int | ) |
Definition at line 3788 of file thread.c.
References rb_thread_wait_fd_rw(), and TRUE.
Referenced by io_binwrite_string(), and rb_io_wait_writable().
int rb_thread_interrupted | ( | VALUE | thval | ) |
Definition at line 1233 of file thread.c.
References GetThreadPtr, RUBY_VM_INTERRUPTED, and waiting_fd::th.
Referenced by maygvl_copy_stream_continue_p().
Definition at line 2283 of file thread.c.
References eKillSignal, EXIT_SUCCESS, GET_THREAD, GetThreadPtr, rb_vm_struct::main_thread, PRI_THREAD_ID, rb_exit(), rb_threadptr_interrupt(), rb_threadptr_pending_interrupt_enque(), rb_threadptr_to_kill(), rb_thread_struct::status, waiting_fd::th, thread_debug, thread_id_str, THREAD_KILLED, threadptr_check_pending_interrupt_queue(), rb_thread_struct::to_kill, and rb_thread_struct::vm.
Referenced by Init_Thread(), rb_thread_exit(), and rb_thread_s_kill().
Definition at line 3049 of file thread.c.
References GetThreadPtr, waiting_fd::th, and threadptr_local_aref().
Referenced by detach_process_pid(), rb_thread_aref(), VpGetException(), VpGetPrecLimit(), and VpGetRoundMode().
Definition at line 3146 of file thread.c.
References GetThreadPtr, OBJ_FROZEN, rb_error_frozen(), waiting_fd::th, and threadptr_local_aset().
Referenced by rb_detach_process(), and rb_thread_aset().
VALUE rb_thread_main | ( | void | ) |
Definition at line 2427 of file thread.c.
References rb_thread_schedule(), and rb_thread_wakeup().
Referenced by Init_Thread().
void rb_thread_schedule | ( | void | ) |
Definition at line 1264 of file thread.c.
References GET_THREAD, rb_thread_schedule_limits(), and RUBY_VM_CHECK_INTS.
Referenced by io_close_fptr(), mustbe_callable(), rb_thread_fd_close(), rb_thread_run(), and thread_s_pass().
void rb_thread_sleep | ( | int | ) |
Definition at line 1241 of file thread.c.
References INT2FIX, rb_thread_wait_for(), and rb_time_timeval().
Referenced by pipe_open(), and rb_exec_async_signal_safe().
void rb_thread_sleep_deadly | ( | void | ) |
Definition at line 1163 of file thread.c.
References GET_THREAD, sleep_forever(), thread_debug, and TRUE.
Referenced by autoload_sleep(), and rb_thread_stop().
void rb_thread_sleep_forever | ( | void | ) |
Definition at line 1156 of file thread.c.
References FALSE, GET_THREAD, sleep_forever(), thread_debug, and TRUE.
Referenced by rb_f_sleep(), and rb_thread_fd_select().
VALUE rb_thread_stop | ( | void | ) |
Definition at line 2451 of file thread.c.
References Qnil, rb_eThreadError, rb_raise(), rb_thread_alone(), and rb_thread_sleep_deadly().
Referenced by Init_Thread().
void rb_thread_wait_fd | ( | int | ) |
Definition at line 3782 of file thread.c.
References rb_thread_wait_fd_rw().
Referenced by open_load_file(), ossl_ssl_read_internal(), rb_io_read_check(), rb_io_sysread(), and rb_io_wait_readable().
void rb_thread_wait_for | ( | struct timeval | ) |
Definition at line 1201 of file thread.c.
References GET_THREAD, sleep_timeval(), and waiting_fd::th.
Referenced by rb_f_sleep(), rb_file_flock(), rb_thread_fd_select(), and rb_thread_sleep().
Definition at line 2381 of file thread.c.
References rb_eThreadError, rb_raise(), rb_thread_wakeup_alive(), and RTEST.
Referenced by Init_Thread(), and rb_thread_run().
Definition at line 2390 of file thread.c.
References GetThreadPtr, Qnil, rb_threadptr_ready(), rb_thread_struct::status, waiting_fd::th, THREAD_KILLED, THREAD_RUNNABLE, THREAD_STOPPED, and THREAD_STOPPED_FOREVER.
Referenced by autoload_reset(), rb_szqueue_max_set(), rb_thread_wakeup(), wakeup_all_threads(), and wakeup_first_thread().
Definition at line 2286 of file time.c.
References time_timeval(), and TRUE.
Referenced by get_timeout(), io_wait_readwrite(), rb_f_select(), rb_f_sleep(), and rb_mutex_sleep().
VALUE rb_time_nano_new | ( | time_t | , |
long | |||
) |
Definition at line 2157 of file time.c.
References nsec2timew(), rb_cTime, and time_new_timew().
Referenced by stat_atime(), stat_ctime(), and stat_mtime().
VALUE rb_time_new | ( | time_t | , |
long | |||
) |
Definition at line 2130 of file time.c.
References NDIV, nsec2timew(), rb_cTime, rb_eRangeError, rb_raise(), and time_new_timew().
Referenced by rb_gzfile_mtime().
Definition at line 2191 of file time.c.
References NIL_P, rb_cTime, rb_time_magnify(), time_new_timew(), time_set_utc_offset(), utc_offset_arg(), v2w(), and validate_utc_offset().
Definition at line 3670 of file time.c.
References GetTimeval, rb_cTime, rb_warn(), TIME_COPY_GMT, time_new_timew(), TIME_SCALE, wadd(), and WINT2FIXWV.
Definition at line 2309 of file time.c.
References FALSE, GetTimeval, IsTimeval, time_timespec(), and timew2timespec().
Referenced by rb_file_s_utime().
Returns a time object with UTC/localtime/fixed offset.
offset is -86400 < fixoff < 86400 or INT_MAX (localtime) or INT_MAX-1 (utc)
Definition at line 2168 of file time.c.
References GetTimeval, INT2FIX, nsec2timew(), rb_cTime, rb_eArgError, rb_raise(), time_new_timew(), TIME_SET_FIXOFF, TIME_SET_UTC, timespec::tv_nsec, and timespec::tv_sec.
Definition at line 2292 of file time.c.
Referenced by rb_thread_sleep().
void rb_timespec_now | ( | struct timespec * | ) |
Definition at line 1743 of file time.c.
References clock_gettime(), CLOCK_REALTIME, gettimeofday(), rb_sys_fail(), timespec::tv_nsec, timeval::tv_sec, timespec::tv_sec, and timeval::tv_usec.
Referenced by time_init_0().
Definition at line 3006 of file object.c.
References numeric_to_float(), T_FLOAT, to_float(), and val.
Referenced by pack_pack(), and rand_range().
Definition at line 2687 of file object.c.
References rb_to_integer().
Referenced by check_exec_redirect(), check_step_domain(), econv_args(), econv_primitive_convert(), enumerator_initialize(), enumerator_with_index(), fix_aref(), obj2vint(), pack_pack(), random_bytes(), random_init(), random_load(), range_bsearch(), rb_absint_singlebit_p(), rb_absint_size(), rb_big_lshift(), rb_big_rshift(), rb_f_rand(), rb_f_srand(), rb_hash(), rb_int_digits(), rb_integer_pack(), rb_io_extract_modeenc(), rb_num2fix(), rb_num2long(), rb_num2ulong_internal(), rb_random_ulong_limited(), sockopt_pack_byte(), sockopt_pack_int(), time_nsec(), time_round(), and time_usec().
void rb_trap_exec | ( | void | ) |
void rb_trap_exit | ( | void | ) |
Definition at line 999 of file signal.c.
References rb_vm_struct::cmd, GET_VM, rb_vm_struct::safe, signal_exec(), and rb_vm_struct::trap_list.
Referenced by ruby_finalize_0().
Definition at line 1173 of file vm_method.c.
References CALL_METHOD_HOOK, rb_method_entry_struct::def, cache_entry::me, METHOD_VISI_PUBLIC, NIL_P, object_id, Qnil, rb_add_method(), rb_eTypeError, rb_frozen_class_p(), rb_id2name(), rb_id2str, rb_method_name_error(), rb_raise(), rb_resolve_refined_method(), rb_warn(), search_method(), rb_method_definition_struct::type, undefined, UNDEFINED_METHOD_ENTRY_P, UNDEFINED_REFINED_METHOD_P, VM_METHOD_TYPE_REFINED, and VM_METHOD_TYPE_UNDEF.
Referenced by m_core_undef_method(), and rb_mod_undef_method().
void rb_undef_alloc_func | ( | VALUE | ) |
Definition at line 681 of file vm_method.c.
References rb_define_alloc_func(), and UNDEF_ALLOC_FUNC.
Referenced by Init_Binding(), Init_cparse(), Init_ISeq(), Init_Numeric(), Init_ossl_engine(), Init_Proc(), Init_String(), Init_VM(), Init_vm_backtrace(), Init_vm_trace(), Init_zlib(), InitVM_Object(), InitVM_process(), InitVM_Struct(), and ruby_Init_Continuation_body().
Definition at line 2595 of file gc.c.
References finalizer_table, FL_FINALIZE, FL_UNSET, rb_check_frozen, rb_objspace, st_data_t, and st_delete.
Referenced by undefine_final().
void rb_update_max_fd | ( | int | fd | ) |
Definition at line 189 of file io.c.
References ATOMIC_CAS, errno, fstat, max_file_descriptor, rb_bug(), and stat.
Referenced by chfunc(), console_dev(), get_device_once(), io_reopen(), open_load_file(), prep_io(), pty_getpty(), rb_exec_async_signal_safe(), rb_execarg_parent_start1(), rb_fd_fix_cloexec(), rb_file_load_ok(), rb_file_s_join(), rb_io_initialize(), rb_pipe(), rb_sysopen_internal(), rsock_detect_cloexec(), rsock_init_sock(), rsock_s_accept(), rsock_s_accept_nonblock(), rsock_socket(), ruby_dup(), run_exec_dup2(), run_exec_dup2_child(), save_redirect_fd(), and sock_initialize().
Definition at line 742 of file string.c.
References ENC_CODERANGE_7BIT, ENCODING_CODERANGE_SET, rb_str_new(), and rb_usascii_encindex().
Referenced by arg_ambiguous_gen(), big2str_alloc(), big2str_base_poweroftwo(), date__strptime(), flo_to_s(), hexencode_str_new(), int_chr(), nil_to_s(), pack_unpack_internal(), rb_ary_join(), rb_big2str_generic(), rb_fix2str(), rb_io_getline_0(), rb_str_ellipsize(), and strftimev().
Definition at line 777 of file string.c.
References ENC_CODERANGE_7BIT, ENCODING_CODERANGE_SET, rb_str_new_cstr(), and rb_usascii_encindex().
Referenced by eval_string_with_cref(), flo_to_s(), inspect_ary(), pruby_eval(), rb_locale_charmap(), str_upto_each(), and time_zone().
Definition at line 835 of file string.c.
References ENCINDEX_US_ASCII, rb_cString, and str_new_static().
Definition at line 750 of file string.c.
References rb_cString, rb_enc_associate_index(), rb_utf8_encindex(), and str_new().
Referenced by env_enc_str_new(), and ruby_init_loadpath_safe().
Definition at line 785 of file string.c.
References rb_enc_associate_index(), rb_str_new_cstr(), and rb_utf8_encindex().
Referenced by external_str_new_cstr(), and push_pattern().
Definition at line 841 of file string.c.
References ENCINDEX_UTF_8, rb_cString, and str_new_static().
int rb_uv_to_utf8 | ( | char | [6], |
unsigned | long | ||
) |
Definition at line 1903 of file pack.c.
References castchar, rb_eRangeError, rb_raise(), and UNREACHABLE.
Referenced by append_utf8(), and pack_pack().
Definition at line 1434 of file sprintf.c.
References NULL, and rb_enc_vsprintf().
Referenced by ole_raise(), ossl_make_error(), parser_compile_error(), rb_fatal(), rb_name_error(), rb_name_error_str(), rb_raise(), and rb_sprintf().
rb_pid_t rb_waitpid | ( | rb_pid_t | pid, |
int * | status, | ||
int | flags | ||
) |
Definition at line 902 of file process.c.
References do_waitpid(), do_waitpid_nonblocking(), errno, GET_THREAD, rb_last_status_set(), result, RUBY_VM_CHECK_INTS, and WNOHANG.
Referenced by detach_process_watcher(), fptr_waitpid(), proc_wait(), proc_waitall(), pty_check(), pty_detach_process(), rb_f_system(), and rb_syswait().
void rb_write_error | ( | const char * | ) |
Definition at line 7387 of file io.c.
References rb_write_error2(), and strlen().
void rb_write_error2 | ( | const char * | , |
long | |||
) |
Definition at line 7373 of file io.c.
References rb_io_t::fd, orig_stderr, rb_io_write(), rb_stderr, rb_str_new(), and RFILE.
Referenced by init_env(), and rb_write_error().
void ruby_default_signal | ( | int | ) |
Definition at line 360 of file signal.c.
References sighandler(), signal_enque(), and signal_ignored().
Referenced by ruby_cleanup().
const char* ruby_signal_name | ( | int | ) |
Definition at line 327 of file hash.c.
References foreach_safe_arg::arg, foreach_safe_i(), func, foreach_safe_arg::func, rb_eRuntimeError, rb_raise(), st_data_t, st_foreach_check(), and foreach_safe_arg::tbl.
Referenced by cvar_list(), gen_ivar_each(), mod_cvar_at(), obj_ivar_each(), rb_const_list(), rb_generic_ivar_table(), and rb_ivar_foreach().
RUBY_EXTERN VALUE rb_argv0 |
RUBY_EXTERN VALUE rb_default_rs |
Definition at line 537 of file intern.h.
Referenced by chompped_length(), io_getch(), and rb_str_enumerate_lines().
RUBY_EXTERN VALUE rb_fs |
Definition at line 534 of file intern.h.
Referenced by proc_options().
RUBY_EXTERN VALUE rb_output_fs |
RUBY_EXTERN VALUE rb_output_rs |
Definition at line 538 of file intern.h.
Referenced by proc_options().
RUBY_EXTERN VALUE rb_rs |
Definition at line 536 of file intern.h.
Referenced by chomp_rs(), gzreader_gets(), prepare_getline_args(), proc_options(), and rb_str_enumerate_lines().