#include "ruby/defines.h"#include <varargs.h>#include "ruby/st.h"Go to the source code of this file.
Defines | |
| #define | RUBY_INTERN_H 1 |
| #define | UNLIMITED_ARGUMENTS (-1) |
| #define | rb_big2int(x) rb_big2long(x) |
| #define | rb_big2uint(x) rb_big2ulong(x) |
| #define | rb_rational_raw1(x) rb_rational_raw((x), INT2FIX(1)) |
| #define | rb_rational_raw2(x, y) rb_rational_raw((x), (y)) |
| #define | rb_rational_new1(x) rb_rational_new((x), INT2FIX(1)) |
| #define | rb_rational_new2(x, y) rb_rational_new((x), (y)) |
| #define | rb_Rational1(x) rb_Rational((x), INT2FIX(1)) |
| #define | rb_Rational2(x, y) rb_Rational((x), (y)) |
| #define | rb_complex_raw1(x) rb_complex_raw((x), INT2FIX(0)) |
| #define | rb_complex_raw2(x, y) rb_complex_raw((x), (y)) |
| #define | rb_complex_new1(x) rb_complex_new((x), INT2FIX(0)) |
| #define | rb_complex_new2(x, y) rb_complex_new((x), (y)) |
| #define | rb_Complex1(x) rb_Complex((x), INT2FIX(0)) |
| #define | rb_Complex2(x, y) rb_Complex((x), (y)) |
| #define | RETURN_SIZED_ENUMERATOR(obj, argc, argv, size_fn) |
| #define | RETURN_ENUMERATOR(obj, argc, argv) RETURN_SIZED_ENUMERATOR(obj, argc, argv, 0) |
| #define | rb_check_frozen_internal(obj) |
| #define | rb_check_trusted_internal(obj) |
| #define | rb_check_frozen(obj) rb_check_frozen_inline(obj) |
| #define | rb_check_trusted(obj) rb_check_trusted_inline(obj) |
| #define | OBJ_INIT_COPY(obj, orig) ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1)) |
| #define | rb_check_arity(argc, min, max) |
| #define | rb_fd_zero(f) FD_ZERO(f) |
| #define | rb_fd_set(n, f) FD_SET((n), (f)) |
| #define | rb_fd_clr(n, f) FD_CLR((n), (f)) |
| #define | rb_fd_isset(n, f) FD_ISSET((n), (f)) |
| #define | rb_fd_copy(d, s, n) (*(d) = *(s)) |
| #define | rb_fd_dup(d, s) (*(d) = *(s)) |
| #define | rb_fd_resize(n, f) ((void)(f)) |
| #define | rb_fd_ptr(f) (f) |
| #define | rb_fd_init(f) FD_ZERO(f) |
| #define | rb_fd_init_copy(d, s) (*(d) = *(s)) |
| #define | rb_fd_term(f) ((void)(f)) |
| #define | rb_fd_max(f) FD_SETSIZE |
| #define | rb_fd_select(n, rfds, wfds, efds, timeout) select((n), (rfds), (wfds), (efds), (timeout)) |
| #define | rb_disable_super(klass, name) ((void)0) |
| #define | rb_enable_super(klass, name) ((void)0) |
| #define | HAVE_RB_DEFINE_ALLOC_FUNC 1 |
| #define | rb_defout rb_stdout |
| #define | RB_RESERVED_FD_P(fd) rb_reserved_fd_p(fd) |
| #define | RB_NUM_COERCE_FUNCS_NEED_OPID 1 |
| #define | rb_memcmp memcmp |
| #define | HAVE_RB_REG_NEW_STR 1 |
| #define | rb_argv rb_get_argv() |
| #define | rb_str_dup_frozen rb_str_new_frozen |
| #define | rb_hash_uint32(h, i) st_hash_uint32((h), (i)) |
| #define | rb_hash_uint(h, i) st_hash_uint((h), (i)) |
| #define | rb_hash_end(h) st_hash_end(h) |
| #define | rb_str_new2 rb_str_new_cstr |
| #define | rb_str_new3 rb_str_new_shared |
| #define | rb_str_new4 rb_str_new_frozen |
| #define | rb_str_new5 rb_str_new_with_class |
| #define | rb_tainted_str_new2 rb_tainted_str_new_cstr |
| #define | rb_str_buf_new2 rb_str_buf_new_cstr |
| #define | rb_usascii_str_new2 rb_usascii_str_new_cstr |
| #define | RUBY_UBF_IO ((rb_unblock_function_t *)-1) |
| #define | RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1) |
| #define HAVE_RB_DEFINE_ALLOC_FUNC 1 |
| #define HAVE_RB_REG_NEW_STR 1 |
| #define OBJ_INIT_COPY | ( | obj, | |||
| orig | ) | ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1)) |
| #define rb_argv rb_get_argv() |
Referenced by process_options(), process_sflag(), ruby_prog_init(), and ruby_set_argv().
| #define rb_big2int | ( | x | ) | rb_big2long(x) |
| #define rb_big2uint | ( | x | ) | rb_big2ulong(x) |
| #define rb_check_arity | ( | argc, | |||
| min, | |||||
| max | ) |
do { \ if (((argc) < (min)) || ((argc) > (max) && (max) != UNLIMITED_ARGUMENTS)) \ rb_error_arity(argc, min, max); \ } while(0)
Referenced by enum_first(), enumerator_initialize(), esignal_init(), int_chr(), lazy_initialize(), make_exception(), num_step(), proc_curry(), rand_random(), rb_ary_aset(), rb_ary_insert(), rb_ary_shuffle_bang(), rb_check_argv(), rb_f_kill(), rb_f_sleep(), rb_f_test(), rb_file_s_umask(), rb_hash_initialize(), rb_mod_define_method(), rb_obj_extend(), rb_reg_initialize_m(), rb_str_aref_m(), rb_str_aset_m(), rb_str_byteslice(), rb_str_count(), rb_str_delete_bang(), rb_str_match_m(), rb_str_slice_bang(), rb_str_sub_bang(), rb_struct_s_def(), rb_struct_select(), sig_trap(), specific_eval(), str_gsub(), str_transcode0(), test_check(), vm_call0_body(), vm_call0_cfunc_with_frame(), vm_call_cfunc_with_frame(), and vm_call_method().
| #define rb_check_frozen | ( | obj | ) | rb_check_frozen_inline(obj) |
Referenced by check_before_mod_set(), d_lite_initialize_copy(), d_lite_marshal_load(), define_final(), dir_check(), nurat_marshal_load(), ossl_bn_is_prime(), ossl_cipher_copy(), ossl_digest_copy(), ossl_hmac_copy(), ossl_pkcs7_copy(), ossl_sslctx_set_ciphers(), ossl_x509_copy(), ossl_x509crl_copy(), ossl_x509req_copy(), random_init(), rb_ary_modify_check(), rb_check_frozen(), rb_const_remove(), rb_define_final(), rb_digest_base_copy(), rb_enc_associate_index(), rb_enc_set_index(), rb_hash_modify_check(), rb_io_taint_check(), rb_ivar_set(), rb_method_entry_make(), rb_mod_remove_cvar(), rb_obj_init_copy(), rb_obj_remove_instance_variable(), rb_obj_taint(), rb_obj_trust(), rb_obj_untaint(), rb_obj_untrust(), rb_reg_initialize(), rb_str_associate(), rb_str_sub_bang(), rb_struct_modify(), rb_undefine_final(), remove_method(), str_encode_bang(), str_modifiable(), time_modify(), and vm_setivar().
| #define rb_check_frozen_internal | ( | obj | ) |
do { \ VALUE frozen_obj = (obj); \ if (OBJ_FROZEN(frozen_obj)) { \ rb_error_frozen(rb_obj_classname(frozen_obj)); \ } \ } while (0)
Referenced by rb_check_copyable(), and rb_check_frozen().
| #define rb_check_trusted | ( | obj | ) | rb_check_trusted_inline(obj) |
| #define rb_check_trusted_internal | ( | obj | ) |
do { \ VALUE untrusted_obj = (obj); \ if (!OBJ_UNTRUSTED(untrusted_obj)) { \ rb_error_untrusted(untrusted_obj); \ } \ } while (0)
Referenced by rb_check_copyable(), and rb_check_trusted().
| #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)) |
Referenced by nilclass_to_c(), and numeric_to_c().
| #define rb_complex_new2 | ( | x, | |||
| y | ) | rb_complex_new((x), (y)) |
Referenced by read_comp().
| #define rb_complex_raw1 | ( | x | ) | rb_complex_raw((x), INT2FIX(0)) |
Referenced by fix_pow(), flo_pow(), and rb_big_pow().
| #define rb_complex_raw2 | ( | x, | |||
| y | ) | rb_complex_raw((x), (y)) |
| #define rb_defout rb_stdout |
| #define rb_disable_super | ( | klass, | |||
| name | ) | ((void)0) |
Referenced by rb_disable_super().
| #define rb_enable_super | ( | klass, | |||
| name | ) | ((void)0) |
Referenced by rb_enable_super().
| #define rb_fd_clr | ( | n, | |||
| f | ) | FD_CLR((n), (f)) |
| #define rb_fd_copy | ( | d, | |||
| s, | |||||
| n | ) | (*(d) = *(s)) |
Referenced by rb_thread_select().
| #define rb_fd_dup | ( | d, | |||
| s | ) | (*(d) = *(s)) |
Referenced by do_select().
| #define rb_fd_init | ( | f | ) | FD_ZERO(f) |
Referenced by init_set_fd(), rb_f_select(), rb_io_s_copy_stream(), rb_thread_select(), and rb_w32_select_with_thread().
| #define rb_fd_init_copy | ( | d, | |||
| s | ) | (*(d) = *(s)) |
Referenced by do_select().
| #define rb_fd_isset | ( | n, | |||
| f | ) | FD_ISSET((n), (f)) |
Referenced by select_internal(), and select_single().
| #define rb_fd_max | ( | f | ) | FD_SETSIZE |
Referenced by maygvl_copy_stream_wait_read(), and nogvl_copy_stream_wait_write().
| #define rb_fd_ptr | ( | f | ) | (f) |
Referenced by native_fd_select().
| #define rb_fd_resize | ( | n, | |||
| f | ) | ((void)(f)) |
Referenced by native_fd_select(), and rb_thread_fd_select().
| #define rb_fd_select | ( | n, | |||
| rfds, | |||||
| wfds, | |||||
| efds, | |||||
| timeout | ) | select((n), (rfds), (wfds), (efds), (timeout)) |
Referenced by maygvl_select(), native_fd_select(), and nogvl_copy_stream_wait_write().
| #define rb_fd_set | ( | n, | |||
| f | ) | FD_SET((n), (f)) |
Referenced by copy_stream_body(), init_set_fd(), maygvl_copy_stream_wait_read(), nogvl_copy_stream_wait_write(), and select_internal().
| #define rb_fd_term | ( | f | ) | ((void)(f)) |
Referenced by copy_stream_finalize(), do_select(), rb_thread_select(), rb_w32_select_with_thread(), select_end(), and select_single_cleanup().
| #define rb_fd_zero | ( | f | ) | FD_ZERO(f) |
Referenced by maygvl_copy_stream_wait_read(), and nogvl_copy_stream_wait_write().
| #define rb_hash_end | ( | h | ) | st_hash_end(h) |
Referenced by match_hash(), method_hash(), proc_hash(), rb_any_hash(), rb_obj_hash(), recursive_hash(), and reg_hash().
| #define rb_hash_uint | ( | h, | |||
| i | ) | st_hash_uint((h), (i)) |
Referenced by match_hash(), method_hash(), rb_hash_method_definition(), rb_hash_proc(), recursive_hash(), and reg_hash().
| #define rb_hash_uint32 | ( | h, | |||
| i | ) | st_hash_uint32((h), (i)) |
| #define rb_memcmp memcmp |
Referenced by rb_memcmp().
| #define RB_NUM_COERCE_FUNCS_NEED_OPID 1 |
| #define rb_Rational1 | ( | x | ) | rb_Rational((x), INT2FIX(1)) |
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)) |
Referenced by float_rationalize(), integer_to_r(), m_amjd(), minus_dd(), and nilclass_to_r().
| #define rb_rational_new2 | ( | x, | |||
| y | ) | rb_rational_new((x), (y)) |
| #define rb_rational_raw1 | ( | x | ) | rb_rational_raw((x), INT2FIX(1)) |
Referenced by fix_pow(), num_quo(), and rb_big_pow().
| #define rb_rational_raw2 | ( | x, | |||
| y | ) | rb_rational_raw((x), (y)) |
Referenced by nurat_div().
| #define RB_RESERVED_FD_P | ( | fd | ) | rb_reserved_fd_p(fd) |
| #define rb_str_buf_new2 rb_str_buf_new_cstr |
| #define rb_str_dup_frozen rb_str_new_frozen |
Referenced by dir_initialize(), rb_realpath_internal(), realpath_rec(), and RUBY_ALIAS_FUNCTION().
| #define rb_str_new2 rb_str_new_cstr |
Referenced by add_modules(), addrinfo_getnameinfo(), argf_inplace_mode_get(), argf_next_argv(), argf_to_s(), BigDecimal_version(), call_trace_func(), cbsubst_get_all_subst_keys(), cbsubst_get_subst_arg(), cbsubst_get_subst_key(), cbsubst_inspect(), cbsubst_sym_to_subst(), clsid_from_remote(), console_dev(), convert_encoding(), 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(), date_zone_to_diff(), 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(), eval_string_with_cref(), foletype_s_progids(), folevariant_value(), get_eval_string_core(), hash2result(), Init_bigdecimal(), Init_cparse(), Init_curses(), Init_dbm(), Init_dl(), Init_eval(), Init_fiddle(), Init_File(), Init_GC(), Init_gdbm(), Init_generator(), Init_IO(), Init_nkf(), Init_openssl(), Init_ossl_asn1(), Init_ossl_config(), Init_ossl_x509name(), Init_parser(), Init_Proc(), Init_strscan(), Init_tcltklib(), Init_tkutil(), Init_VM(), Init_win32ole(), Init_zlib(), insn_operand_intern(), inspect1(), inspect2(), inspect_range(), inspect_struct(), io_puts_ary(), ip_thread_tkwait(), ip_thread_vwait(), iseq_compile_each(), iseq_data_to_ary(), iseq_s_compile(), iseq_s_compile_file(), key2keyname(), lib_fromUTF8_core(), lib_get_reltype_name(), lib_get_system_encoding(), lib_merge_tklist(), lib_split_tklist_core(), lib_toUTF8_core(), load_file_internal(), main_to_s(), make_addrinfo(), make_econv_exception(), make_hostent_internal(), make_inspect(), make_no_method_exception(), make_writeconv(), mString_Extend_json_create(), mString_to_json_raw_object(), mSyslog_ident(), name_err_mesg_to_str(), 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(), 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_get_errors(), ossl_pkcs7_verify(), ossl_rsa_get_params(), ossl_ssl_cipher_to_ary(), ossl_ssl_get_state(), ossl_ssl_get_version(), 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(), pipe_open(), proc_options(), process_sflag(), rb_autoload(), rb_check_deadlock(), rb_execarg_run_options(), rb_exit(), rb_feature_provided(), rb_insns_name_array(), rb_invalid_str(), rb_iseq_build_for_ruby2cext(), rb_iseq_compile_with_option(), rb_iseq_new_main(), rb_load_internal(), rb_reg_s_union(), rb_require(), rb_set_class_path(), rb_spawn_process(), rb_str_crypt(), rb_str_split(), rb_strftime_with_timespec(), rb_struct_define(), rb_syserr_new(), rb_tainted_str_new_cstr(), rb_thread_status(), rb_threadptr_signal_exit(), rb_zlib_version(), reg_enum_key(), reg_get_val(), rsock_ipaddr(), rsock_make_ipaddr(), RUBY_ALIAS_FUNCTION(), ruby_eval_string_from_file(), sig_list(), sock_s_gethostbyaddr(), sock_s_getnameinfo(), substinfo_inspect(), syserr_initialize(), tcl_protect_core(), tcltklib_compile_info(), tk_cbe_inspect(), tk_install_cmd_core(), tk_uninstall_cmd(), tkNone_inspect(), tkNone_to_s(), TkStringValue(), trap(), typelib_file_from_clsid(), and w_encoding().
| #define rb_str_new3 rb_str_new_shared |
Referenced by rb_reg_preprocess_dregexp(), rb_reg_quote(), and RUBY_ALIAS_FUNCTION().
| #define rb_str_new4 rb_str_new_frozen |
Referenced by ossl_asn1_decode(), ossl_asn1_decode_all(), ossl_asn1_traverse(), rb_file_identical_p(), rb_get_path_check_convert(), rb_io_s_sysopen(), rb_reg_search(), rb_str_drop_bytes(), rb_str_enumerate_chars(), rb_str_enumerate_codepoints(), rb_str_enumerate_lines(), rb_str_format(), rb_str_substr(), rsock_bsock_send(), RUBY_ALIAS_FUNCTION(), ruby_process_options(), sock_connect(), sock_connect_nonblock(), str_byte_substr(), str_replace(), and time_strftime().
| #define rb_str_new5 rb_str_new_with_class |
Referenced by rb_str_dump(), rb_str_justify(), rb_str_reverse(), rb_str_subseq(), rb_str_substr(), rb_str_succ(), rb_str_times(), RUBY_ALIAS_FUNCTION(), and str_byte_substr().
| #define rb_tainted_str_new2 rb_tainted_str_new_cstr |
Referenced by env_assoc(), ip_eval_real(), ip_get_result_string_obj(), ip_get_variable2(), ip_get_variable2_core(), ip_invoke_core(), ip_invoke_real(), ip_retval(), ip_ruby_cmd(), ip_set_variable2(), ip_set_variable2_core(), ip_unset_variable2(), lib_fromUTF8_core(), lib_split_tklist_core(), rb_dir_getwd(), rb_dlcfunc_name(), rb_dlptr_to_s(), rb_fiddle_ptr_to_s(), RUBY_ALIAS_FUNCTION(), sock_s_getservbyport(), tcl2rb_num_or_str(), and tcl2rb_string().
| #define rb_usascii_str_new2 rb_usascii_str_new_cstr |
Referenced by code_page(), date__strptime_internal(), date_strftime_internal(), enc_name(), enc_names_i(), env_to_s(), false_to_s(), flo_to_s(), Init_File(), Init_IO(), inspect_hash(), iso8601_timediv(), jisx0301_date(), m_zone(), make_exception(), mk_ary_of_str(), nil_inspect(), nucomp_inspect(), nurat_inspect(), parser_magic_comment(), parser_tokspace(), rb_ary_inspect(), rb_big2str0(), rb_enc_aliases_enc_i(), rb_enc_name_list_i(), rb_file_dirname(), rb_file_ftype(), rb_fix2str(), rb_hash_inspect(), rb_id2str(), rb_locale_charmap(), rb_mod_to_s(), rb_provide(), RUBY_ALIAS_FUNCTION(), true_to_s(), and unknown_keyword_error().
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(), 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(), 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_enumerate_lines(), rb_str_upto(), str_gsub(), strio_each(), strio_each_byte(), strio_each_char(), and strio_each_codepoint().
do { \ if (!rb_block_given_p()) \ return rb_enumeratorize_with_size((obj), ID2SYM(rb_frame_this_func()),\ (argc), (argv), (size_fn)); \ } while (0)
Referenced by 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_bang(), rb_hash_select(), rb_hash_select_bang(), rb_str_enumerate_bytes(), rb_str_enumerate_chars(), rb_str_enumerate_codepoints(), rb_struct_each(), rb_struct_each_pair(), and rb_struct_select().
| #define RUBY_INTERN_H 1 |
| #define RUBY_UBF_IO ((rb_unblock_function_t *)-1) |
| #define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1) |
Referenced by call_without_gvl(), and rb_waitpid().
| #define UNLIMITED_ARGUMENTS (-1) |
Referenced by enumerator_initialize(), rb_arg_error_new(), rb_ary_insert(), rb_check_argv(), rb_f_kill(), rb_iseq_min_max_arity(), rb_method_entry_min_max_arity(), rb_obj_extend(), rb_proc_arity(), rb_proc_min_max_arity(), rb_scan_args(), rb_str_count(), rb_str_delete_bang(), rb_struct_s_def(), and vm_callee_setup_arg_complex().
1.6.1