Ruby  2.1.10p492(2016-04-01revision54464)
Data Structures | Macros | Typedefs | Functions | Variables
intern.h File Reference
#include "ruby/defines.h"
#include <varargs.h>
#include "ruby/st.h"

Go to the source code of this file.

Data Structures

struct  rb_exec_arg
 

Macros

#define UNLIMITED_ARGUMENTS   (-1)
 
#define rb_ary_new2   rb_ary_new_capa
 
#define rb_ary_new3   rb_ary_new_from_args
 
#define rb_ary_new4   rb_ary_new_from_values
 
#define rb_big2int(x)   rb_big2long(x)
 
#define rb_big2uint(x)   rb_big2ulong(x)
 
#define INTEGER_PACK_MSWORD_FIRST   0x01
 
#define INTEGER_PACK_LSWORD_FIRST   0x02
 
#define INTEGER_PACK_MSBYTE_FIRST   0x10
 
#define INTEGER_PACK_LSBYTE_FIRST   0x20
 
#define INTEGER_PACK_NATIVE_BYTE_ORDER   0x40
 
#define INTEGER_PACK_2COMP   0x80
 
#define INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION   0x400
 
#define INTEGER_PACK_FORCE_BIGNUM   0x100
 
#define INTEGER_PACK_NEGATIVE   0x200
 
#define INTEGER_PACK_LITTLE_ENDIAN
 
#define INTEGER_PACK_BIG_ENDIAN
 
#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 rb_enumeratorize_with_size(obj, id, argc, argv, size_fn)   rb_enumeratorize_with_size(obj, id, argc, argv, (rb_enumerator_size_func *)(size_fn))
 
#define RETURN_SIZED_ENUMERATOR(obj, argc, argv, size_fn)
 
#define RETURN_ENUMERATOR(obj, argc, argv)   RETURN_SIZED_ENUMERATOR(obj, argc, argv, 0)
 
#define rb_exc_new2   rb_exc_new_cstr
 
#define rb_exc_new3   rb_exc_new_str
 
#define rb_check_frozen_internal(obj)
 
#define rb_check_trusted_internal(obj)   ((void) 0)
 
#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   rb_check_arity /* for ifdef */
 
#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)
 

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 *)
 

Functions

void rb_mem_clear (register VALUE *, register long)
 
VALUE rb_assoc_new (VALUE, VALUE)
 
VALUE rb_check_array_type (VALUE)
 
VALUE rb_ary_new (void)
 
VALUE rb_ary_new_capa (long capa)
 
VALUE rb_ary_new_from_args (long n,...)
 
VALUE rb_ary_new_from_values (long n, const VALUE *elts)
 
VALUE rb_ary_tmp_new (long)
 
void rb_ary_free (VALUE)
 
void rb_ary_modify (VALUE)
 
VALUE rb_ary_freeze (VALUE)
 
VALUE rb_ary_shared_with_p (VALUE, VALUE)
 
VALUE rb_ary_aref (int, VALUE *, VALUE)
 
VALUE rb_ary_subseq (VALUE, long, long)
 
void rb_ary_store (VALUE, long, VALUE)
 
VALUE rb_ary_dup (VALUE)
 
VALUE rb_ary_resurrect (VALUE ary)
 
VALUE rb_ary_to_ary (VALUE)
 
VALUE rb_ary_to_s (VALUE)
 
VALUE rb_ary_cat (VALUE, const VALUE *, long)
 
VALUE rb_ary_push (VALUE, VALUE)
 
VALUE rb_ary_pop (VALUE)
 
VALUE rb_ary_shift (VALUE)
 
VALUE rb_ary_unshift (VALUE, VALUE)
 
VALUE rb_ary_entry (VALUE, long)
 
VALUE rb_ary_each (VALUE)
 
VALUE rb_ary_join (VALUE, VALUE)
 
VALUE rb_ary_reverse (VALUE)
 
VALUE rb_ary_rotate (VALUE, long)
 
VALUE rb_ary_sort (VALUE)
 
VALUE rb_ary_sort_bang (VALUE)
 
VALUE rb_ary_delete (VALUE, VALUE)
 
VALUE rb_ary_delete_at (VALUE, long)
 
VALUE rb_ary_clear (VALUE)
 
VALUE rb_ary_plus (VALUE, VALUE)
 
VALUE rb_ary_concat (VALUE, VALUE)
 
VALUE rb_ary_assoc (VALUE, VALUE)
 
VALUE rb_ary_rassoc (VALUE, VALUE)
 
VALUE rb_ary_includes (VALUE, VALUE)
 
VALUE rb_ary_cmp (VALUE, VALUE)
 
VALUE rb_ary_replace (VALUE copy, VALUE orig)
 
VALUE rb_get_values_at (VALUE, long, int, VALUE *, VALUE(*)(VALUE, long))
 
VALUE rb_ary_resize (VALUE ary, long len)
 expands or shrinks ary to len elements. More...
 
VALUE rb_big_new (long, int)
 
int rb_bigzero_p (VALUE x)
 
VALUE rb_big_clone (VALUE)
 
void rb_big_2comp (VALUE)
 
VALUE rb_big_norm (VALUE)
 
void rb_big_resize (VALUE big, long len)
 
VALUE rb_cstr_to_inum (const char *, int, int)
 
VALUE rb_str_to_inum (VALUE, int, int)
 
VALUE rb_cstr2inum (const char *, int)
 
VALUE rb_str2inum (VALUE, int)
 
VALUE rb_big2str (VALUE, int)
 
 DEPRECATED (VALUE rb_big2str0(VALUE, int, int))
 
SIGNED_VALUE rb_big2long (VALUE)
 
VALUE rb_big2ulong (VALUE)
 
 DEPRECATED (VALUE rb_big2ulong_pack(VALUE x))
 
 DEPRECATED (void rb_quad_pack(char *, VALUE))
 
 DEPRECATED (VALUE rb_quad_unpack(const char *, int))
 
void rb_big_pack (VALUE val, unsigned long *buf, long num_longs)
 
VALUE rb_big_unpack (unsigned long *buf, long num_longs)
 
int rb_uv_to_utf8 (char[6], unsigned long)
 
VALUE rb_dbl2big (double)
 
double rb_big2dbl (VALUE)
 
VALUE rb_big_cmp (VALUE, VALUE)
 
VALUE rb_big_eq (VALUE, VALUE)
 
VALUE rb_big_eql (VALUE, VALUE)
 
VALUE rb_big_plus (VALUE, VALUE)
 
VALUE rb_big_minus (VALUE, VALUE)
 
VALUE rb_big_mul (VALUE, VALUE)
 
VALUE rb_big_div (VALUE, VALUE)
 
VALUE rb_big_idiv (VALUE, VALUE)
 
VALUE rb_big_modulo (VALUE, VALUE)
 
VALUE rb_big_divmod (VALUE, VALUE)
 
VALUE rb_big_pow (VALUE, VALUE)
 
VALUE rb_big_and (VALUE, VALUE)
 
VALUE rb_big_or (VALUE, VALUE)
 
VALUE rb_big_xor (VALUE, VALUE)
 
VALUE rb_big_lshift (VALUE, VALUE)
 
VALUE rb_big_rshift (VALUE, VALUE)
 
int rb_integer_pack (VALUE val, void *words, size_t numwords, size_t wordsize, size_t nails, int flags)
 
VALUE rb_integer_unpack (const void *words, size_t numwords, size_t wordsize, size_t nails, int flags)
 
size_t rb_absint_size (VALUE val, int *nlz_bits_ret)
 
size_t rb_absint_numwords (VALUE val, size_t word_numbits, size_t *nlz_bits_ret)
 
int rb_absint_singlebit_p (VALUE val)
 
VALUE rb_rational_raw (VALUE, VALUE)
 
VALUE rb_rational_new (VALUE, VALUE)
 
VALUE rb_Rational (VALUE, VALUE)
 
VALUE rb_flt_rationalize_with_prec (VALUE, VALUE)
 
VALUE rb_flt_rationalize (VALUE)
 
VALUE rb_complex_raw (VALUE, VALUE)
 
VALUE rb_complex_new (VALUE, VALUE)
 
VALUE rb_complex_polar (VALUE, VALUE)
 
VALUE rb_Complex (VALUE, VALUE)
 
VALUE rb_class_boot (VALUE)
 A utility function that wraps class_alloc. More...
 
VALUE rb_class_new (VALUE)
 Creates a new class. More...
 
VALUE rb_mod_init_copy (VALUE, VALUE)
 
VALUE rb_singleton_class_clone (VALUE)
 
void rb_singleton_class_attached (VALUE, VALUE)
 Attach a object to a singleton class. More...
 
VALUE rb_make_metaclass (VALUE, VALUE)
 
void rb_check_inheritable (VALUE)
 Ensures a class can be derived from super. More...
 
VALUE rb_class_inherited (VALUE, VALUE)
 Calls Class::inherited. More...
 
VALUE rb_define_class_id (ID, VALUE)
 Defines a new class. More...
 
VALUE rb_define_class_id_under (VALUE, ID, VALUE)
 Defines a class under the namespace of outer. More...
 
VALUE rb_module_new (void)
 
VALUE rb_define_module_id (ID)
 
VALUE rb_define_module_id_under (VALUE, ID)
 
VALUE rb_include_class_new (VALUE, VALUE)
 
VALUE rb_mod_included_modules (VALUE)
 
VALUE rb_mod_include_p (VALUE, VALUE)
 
VALUE rb_mod_ancestors (VALUE)
 
VALUE rb_class_instance_methods (int, VALUE *, VALUE)
 
VALUE rb_class_public_instance_methods (int, VALUE *, VALUE)
 
VALUE rb_class_protected_instance_methods (int, VALUE *, VALUE)
 
VALUE rb_class_private_instance_methods (int, VALUE *, VALUE)
 
VALUE rb_obj_singleton_methods (int, VALUE *, VALUE)
 
void rb_define_method_id (VALUE, ID, VALUE(*)(ANYARGS), int)
 
void rb_frozen_class_p (VALUE)
 
void rb_undef (VALUE, ID)
 
void rb_define_protected_method (VALUE, const char *, VALUE(*)(ANYARGS), int)
 
void rb_define_private_method (VALUE, const char *, VALUE(*)(ANYARGS), int)
 
void rb_define_singleton_method (VALUE, const char *, VALUE(*)(ANYARGS), int)
 Defines a singleton method for obj. More...
 
VALUE rb_singleton_class (VALUE)
 Returns the singleton class of obj. More...
 
int rb_cmpint (VALUE, VALUE, VALUE)
 
 NORETURN (void rb_cmperr(VALUE, VALUE))
 
VALUE rb_fiber_new (VALUE(*)(ANYARGS), VALUE)
 
VALUE rb_fiber_resume (VALUE fib, int argc, VALUE *args)
 
VALUE rb_fiber_yield (int argc, VALUE *args)
 
VALUE rb_fiber_current (void)
 
VALUE rb_fiber_alive_p (VALUE)
 
VALUE rb_enum_values_pack (int, const VALUE *)
 
VALUE rb_enumeratorize (VALUE, VALUE, int, VALUE *)
 
VALUE rb_enumeratorize_with_size (VALUE, VALUE, int, VALUE *, rb_enumerator_size_func *)
 
VALUE rb_exc_new (VALUE, const char *, long)
 
VALUE rb_exc_new_cstr (VALUE, const char *)
 
VALUE rb_exc_new_str (VALUE, VALUE)
 
 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)
 
 NORETURN (void rb_invalid_str(const char *, const char *))
 
 PRINTF_ARGS (void rb_compile_error(const char *, int, const char *,...), 3, 4)
 
 PRINTF_ARGS (void rb_compile_error_with_enc(const char *, int, void *, const char *,...), 4, 5)
 
 PRINTF_ARGS (void rb_compile_error_append(const char *,...), 1, 2)
 
 NORETURN (void rb_error_frozen(const char *))
 
void rb_error_untrusted (VALUE)
 
void rb_check_frozen (VALUE)
 
void rb_check_trusted (VALUE)
 
static void rb_check_frozen_inline (VALUE obj)
 
static void rb_check_trusted_inline (VALUE obj)
 
void rb_check_copyable (VALUE obj, VALUE orig)
 
int rb_sourceline (void)
 
const char * rb_sourcefile (void)
 
VALUE rb_check_funcall (VALUE, ID, int, const VALUE *)
 
 NORETURN (void rb_error_arity(int, int, int))
 
static void rb_check_arity (int argc, int min, int max)
 
 NORETURN (void rb_exc_raise(VALUE))
 
VALUE rb_f_exit (int, VALUE *)
 
VALUE rb_f_abort (int, VALUE *)
 
void rb_remove_method (VALUE, const char *)
 
void rb_remove_method_id (VALUE, ID)
 
void rb_define_alloc_func (VALUE, rb_alloc_func_t)
 
void rb_undef_alloc_func (VALUE)
 
rb_alloc_func_t rb_get_alloc_func (VALUE)
 
void rb_clear_cache (void)
 
void rb_clear_constant_cache (void)
 
void rb_clear_method_cache_by_class (VALUE)
 
void rb_alias (VALUE, ID, ID)
 
void rb_attr (VALUE, ID, int, int, int)
 
int rb_method_boundp (VALUE, ID, int)
 
int rb_method_basic_definition_p (VALUE, ID)
 
VALUE rb_eval_cmd (VALUE, VALUE, int)
 
int rb_obj_respond_to (VALUE, ID, int)
 
int rb_respond_to (VALUE, ID)
 
VALUE rb_f_notimplement (int argc, VALUE *argv, VALUE obj)
 
void rb_interrupt (void)
 
VALUE rb_apply (VALUE, ID, VALUE)
 Calls a method. More...
 
void rb_backtrace (void)
 
ID rb_frame_this_func (void)
 
VALUE rb_obj_instance_eval (int, VALUE *, VALUE)
 
VALUE rb_obj_instance_exec (int, VALUE *, VALUE)
 
VALUE rb_mod_module_eval (int, VALUE *, VALUE)
 
VALUE rb_mod_module_exec (int, VALUE *, VALUE)
 
void rb_load (VALUE, int)
 
void rb_load_protect (VALUE, int, int *)
 
 NORETURN (void rb_jump_tag(int))
 
int rb_provided (const char *)
 
int rb_feature_provided (const char *, const char **)
 
void rb_provide (const char *)
 
VALUE rb_f_require (VALUE, VALUE)
 
VALUE rb_require_safe (VALUE, int)
 
void rb_obj_call_init (VALUE, int, VALUE *)
 
VALUE rb_class_new_instance (int, VALUE *, VALUE)
 
VALUE rb_block_proc (void)
 
VALUE rb_block_lambda (void)
 
VALUE rb_proc_new (VALUE(*)(ANYARGS), VALUE)
 
VALUE rb_obj_is_proc (VALUE)
 
VALUE rb_proc_call (VALUE, VALUE)
 
VALUE rb_proc_call_with_block (VALUE, int argc, const VALUE *argv, VALUE)
 
int rb_proc_arity (VALUE)
 
VALUE rb_proc_lambda_p (VALUE)
 
VALUE rb_binding_new (void)
 
VALUE rb_obj_method (VALUE, VALUE)
 
VALUE rb_obj_is_method (VALUE)
 
VALUE rb_method_call (int, VALUE *, VALUE)
 
VALUE rb_method_call_with_block (int, VALUE *, VALUE, VALUE)
 
int rb_mod_method_arity (VALUE, ID)
 
int rb_obj_method_arity (VALUE, ID)
 
VALUE rb_protect (VALUE(*)(VALUE), VALUE, int *)
 
void rb_set_end_proc (void(*)(VALUE), VALUE)
 
void rb_exec_end_proc (void)
 
void rb_thread_schedule (void)
 
void rb_thread_wait_fd (int)
 
int rb_thread_fd_writable (int)
 
void rb_thread_fd_close (int)
 
int rb_thread_alone (void)
 
 DEPRECATED (void rb_thread_polling(void))
 
void rb_thread_sleep (int)
 
void rb_thread_sleep_forever (void)
 
void rb_thread_sleep_deadly (void)
 
VALUE rb_thread_stop (void)
 
VALUE rb_thread_wakeup (VALUE)
 
VALUE rb_thread_wakeup_alive (VALUE)
 
VALUE rb_thread_run (VALUE)
 
VALUE rb_thread_kill (VALUE)
 
VALUE rb_thread_create (VALUE(*)(ANYARGS), void *)
 
 DEPRECATED (int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *))
 
int rb_thread_fd_select (int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *)
 
void rb_thread_wait_for (struct timeval)
 
VALUE rb_thread_current (void)
 
VALUE rb_thread_main (void)
 
VALUE rb_thread_local_aref (VALUE, ID)
 
VALUE rb_thread_local_aset (VALUE, ID, VALUE)
 
void rb_thread_atfork (void)
 
void rb_thread_atfork_before_exec (void)
 
VALUE rb_exec_recursive (VALUE(*)(VALUE, VALUE, int), VALUE, VALUE)
 
VALUE rb_exec_recursive_paired (VALUE(*)(VALUE, VALUE, int), VALUE, VALUE, VALUE)
 
VALUE rb_exec_recursive_outer (VALUE(*)(VALUE, VALUE, int), VALUE, VALUE)
 
VALUE rb_exec_recursive_paired_outer (VALUE(*)(VALUE, VALUE, int), VALUE, VALUE, VALUE)
 
VALUE rb_dir_getwd (void)
 
VALUE rb_file_s_expand_path (int, VALUE *)
 
VALUE rb_file_expand_path (VALUE, VALUE)
 
VALUE rb_file_s_absolute_path (int, VALUE *)
 
VALUE rb_file_absolute_path (VALUE, VALUE)
 
VALUE rb_file_dirname (VALUE fname)
 
int rb_find_file_ext_safe (VALUE *, const char *const *, int)
 
VALUE rb_find_file_safe (VALUE, int)
 
int rb_find_file_ext (VALUE *, const char *const *)
 
VALUE rb_find_file (VALUE)
 
VALUE rb_file_directory_p (VALUE, VALUE)
 
VALUE rb_str_encode_ospath (VALUE)
 
int rb_is_absolute_path (const char *)
 
 NORETURN (void rb_memerror(void))
 
int rb_during_gc (void)
 
void rb_gc_mark_locations (VALUE *, VALUE *)
 
void rb_mark_tbl (struct st_table *)
 
void rb_mark_set (struct st_table *)
 
void rb_mark_hash (struct st_table *)
 
void rb_gc_mark_maybe (VALUE)
 
void rb_gc_mark (VALUE)
 
void rb_gc_force_recycle (VALUE)
 
void rb_gc (void)
 
void rb_gc_copy_finalizer (VALUE, VALUE)
 
void rb_gc_finalize_deferred (void)
 
void rb_gc_call_finalizer_at_exit (void)
 
VALUE rb_gc_enable (void)
 
VALUE rb_gc_disable (void)
 
VALUE rb_gc_start (void)
 
VALUE rb_define_finalizer (VALUE, VALUE)
 
VALUE rb_undefine_finalizer (VALUE)
 
size_t rb_gc_count (void)
 
size_t rb_gc_stat (VALUE)
 
VALUE rb_gc_latest_gc_info (VALUE)
 
void st_foreach_safe (struct st_table *, int(*)(ANYARGS), st_data_t)
 
VALUE rb_check_hash_type (VALUE)
 
void rb_hash_foreach (VALUE, int(*)(ANYARGS), VALUE)
 
VALUE rb_hash (VALUE)
 
VALUE rb_hash_new (void)
 
VALUE rb_hash_dup (VALUE)
 
VALUE rb_hash_freeze (VALUE)
 
VALUE rb_hash_aref (VALUE, VALUE)
 
VALUE rb_hash_lookup (VALUE, VALUE)
 
VALUE rb_hash_lookup2 (VALUE, VALUE, VALUE)
 
VALUE rb_hash_fetch (VALUE, VALUE)
 
VALUE rb_hash_aset (VALUE, VALUE, VALUE)
 
VALUE rb_hash_clear (VALUE)
 
VALUE rb_hash_delete_if (VALUE)
 
VALUE rb_hash_delete (VALUE, VALUE)
 
VALUE rb_hash_set_ifnone (VALUE hash, VALUE ifnone)
 
VALUE rb_hash_update_by (VALUE hash1, VALUE hash2, rb_hash_update_func *func)
 
struct st_tablerb_hash_tbl (VALUE)
 
int rb_path_check (const char *)
 
int rb_env_path_tainted (void)
 
VALUE rb_env_clear (void)
 
VALUE rb_io_write (VALUE, VALUE)
 
VALUE rb_io_gets (VALUE)
 
VALUE rb_io_getbyte (VALUE)
 
VALUE rb_io_ungetc (VALUE, VALUE)
 
VALUE rb_io_ungetbyte (VALUE, VALUE)
 
VALUE rb_io_close (VALUE)
 
VALUE rb_io_flush (VALUE)
 
VALUE rb_io_eof (VALUE)
 
VALUE rb_io_binmode (VALUE)
 
VALUE rb_io_ascii8bit_binmode (VALUE)
 
VALUE rb_io_addstr (VALUE, VALUE)
 
VALUE rb_io_printf (int, VALUE *, VALUE)
 
VALUE rb_io_print (int, VALUE *, VALUE)
 
VALUE rb_io_puts (int, VALUE *, VALUE)
 
VALUE rb_io_fdopen (int, int, const char *)
 
VALUE rb_io_get_io (VALUE)
 
VALUE rb_file_open (const char *, const char *)
 
VALUE rb_file_open_str (VALUE, const char *)
 
VALUE rb_gets (void)
 
void rb_write_error (const char *)
 
void rb_write_error2 (const char *, long)
 
void rb_close_before_exec (int lowfd, int maxhint, VALUE noclose_fds)
 
int rb_pipe (int *pipes)
 
int rb_reserved_fd_p (int fd)
 
int rb_cloexec_open (const char *pathname, int flags, mode_t mode)
 
int rb_cloexec_dup (int oldfd)
 
int rb_cloexec_dup2 (int oldfd, int newfd)
 
int rb_cloexec_pipe (int fildes[2])
 
int rb_cloexec_fcntl_dupfd (int fd, int minfd)
 
void rb_update_max_fd (int fd)
 
void rb_fd_fix_cloexec (int fd)
 
VALUE rb_marshal_dump (VALUE, VALUE)
 
VALUE rb_marshal_load (VALUE)
 
void rb_marshal_define_compat (VALUE newclass, VALUE oldclass, VALUE(*dumper)(VALUE), VALUE(*loader)(VALUE, VALUE))
 
VALUE rb_num_coerce_bin (VALUE, VALUE, ID)
 
VALUE rb_num_coerce_cmp (VALUE, VALUE, ID)
 
VALUE rb_num_coerce_relop (VALUE, VALUE, ID)
 
VALUE rb_num_coerce_bit (VALUE, VALUE, ID)
 
VALUE rb_num2fix (VALUE)
 
VALUE rb_fix2str (VALUE, int)
 
VALUE rb_dbl_cmp (double, double)
 
int rb_eql (VALUE, VALUE)
 
VALUE rb_any_to_s (VALUE)
 
VALUE rb_inspect (VALUE)
 
VALUE rb_obj_is_instance_of (VALUE, VALUE)
 
VALUE rb_obj_is_kind_of (VALUE, VALUE)
 
VALUE rb_obj_alloc (VALUE)
 
VALUE rb_obj_clone (VALUE)
 
VALUE rb_obj_dup (VALUE)
 
VALUE rb_obj_init_copy (VALUE, VALUE)
 
VALUE rb_obj_taint (VALUE)
 
VALUE rb_obj_tainted (VALUE)
 
VALUE rb_obj_untaint (VALUE)
 
VALUE rb_obj_untrust (VALUE)
 
VALUE rb_obj_untrusted (VALUE)
 
VALUE rb_obj_trust (VALUE)
 
VALUE rb_obj_freeze (VALUE)
 
VALUE rb_obj_frozen_p (VALUE)
 
VALUE rb_obj_id (VALUE)
 
VALUE rb_obj_class (VALUE)
 
VALUE rb_class_real (VALUE)
 
VALUE rb_class_inherited_p (VALUE, VALUE)
 
VALUE rb_class_superclass (VALUE)
 
VALUE rb_class_get_superclass (VALUE)
 
VALUE rb_convert_type (VALUE, int, const char *, const char *)
 
VALUE rb_check_convert_type (VALUE, int, const char *, const char *)
 
VALUE rb_check_to_integer (VALUE, const char *)
 
VALUE rb_check_to_float (VALUE)
 
VALUE rb_to_int (VALUE)
 
VALUE rb_check_to_int (VALUE)
 
VALUE rb_Integer (VALUE)
 
VALUE rb_to_float (VALUE)
 
VALUE rb_Float (VALUE)
 
VALUE rb_String (VALUE)
 
VALUE rb_Array (VALUE)
 
VALUE rb_Hash (VALUE)
 
double rb_cstr_to_dbl (const char *, int)
 
double rb_str_to_dbl (VALUE, int)
 
ID rb_id_attrset (ID)
 
int rb_is_const_id (ID)
 
int rb_is_global_id (ID)
 
int rb_is_instance_id (ID)
 
int rb_is_attrset_id (ID)
 
int rb_is_class_id (ID)
 
int rb_is_local_id (ID)
 
int rb_is_junk_id (ID)
 
int rb_symname_p (const char *)
 
int rb_sym_interned_p (VALUE)
 
VALUE rb_backref_get (void)
 
void rb_backref_set (VALUE)
 
VALUE rb_lastline_get (void)
 
void rb_lastline_set (VALUE)
 
VALUE rb_sym_all_symbols (void)
 
void rb_last_status_set (int status, rb_pid_t pid)
 
VALUE rb_last_status_get (void)
 
 DEPRECATED (int rb_proc_exec_n(int, VALUE *, const char *))
 
int rb_proc_exec (const char *)
 
 DEPRECATED (VALUE rb_exec_arg_init(int argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e))
 
 DEPRECATED (int rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val))
 
 DEPRECATED (void rb_exec_arg_fixup(struct rb_exec_arg *e))
 
 DEPRECATED (int rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s))
 
 DEPRECATED (int rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char *, size_t))
 
 DEPRECATED (int rb_exec(const struct rb_exec_arg *))
 
 DEPRECATED (int rb_exec_err(const struct rb_exec_arg *, char *, size_t))
 
 DEPRECATED (rb_pid_t rb_fork(int *, int(*)(void *), void *, VALUE))
 
 DEPRECATED (rb_pid_t rb_fork_err(int *, int(*)(void *, char *, size_t), void *, VALUE, char *, size_t))
 
VALUE rb_f_exec (int, VALUE *)
 
rb_pid_t rb_waitpid (rb_pid_t pid, int *status, int flags)
 
void rb_syswait (rb_pid_t pid)
 
rb_pid_t rb_spawn (int, VALUE *)
 
rb_pid_t rb_spawn_err (int, VALUE *, char *, size_t)
 
VALUE rb_proc_times (VALUE)
 
VALUE rb_detach_process (rb_pid_t pid)
 
VALUE rb_range_new (VALUE, VALUE, int)
 
VALUE rb_range_beg_len (VALUE, long *, long *, long, int)
 
int rb_range_values (VALUE range, VALUE *begp, VALUE *endp, int *exclp)
 
unsigned int rb_genrand_int32 (void)
 
double rb_genrand_real (void)
 
void rb_reset_random_seed (void)
 
VALUE rb_random_bytes (VALUE rnd, long n)
 
VALUE rb_random_int (VALUE rnd, VALUE max)
 
unsigned int rb_random_int32 (VALUE rnd)
 
double rb_random_real (VALUE rnd)
 
unsigned long rb_random_ulong_limited (VALUE rnd, unsigned long limit)
 
unsigned long rb_genrand_ulong_limited (unsigned long i)
 
int rb_memcicmp (const void *, const void *, long)
 
void rb_match_busy (VALUE)
 
VALUE rb_reg_nth_defined (int, VALUE)
 
VALUE rb_reg_nth_match (int, VALUE)
 
int rb_reg_backref_number (VALUE match, VALUE backref)
 
VALUE rb_reg_last_match (VALUE)
 
VALUE rb_reg_match_pre (VALUE)
 
VALUE rb_reg_match_post (VALUE)
 
VALUE rb_reg_match_last (VALUE)
 
VALUE rb_reg_new_str (VALUE, int)
 
VALUE rb_reg_new (const char *, long, int)
 
VALUE rb_reg_alloc (void)
 
VALUE rb_reg_init_str (VALUE re, VALUE s, int options)
 
VALUE rb_reg_match (VALUE, VALUE)
 
VALUE rb_reg_match2 (VALUE)
 
int rb_reg_options (VALUE)
 
VALUE rb_get_argv (void)
 
void * rb_load_file (const char *)
 
void * rb_load_file_str (VALUE)
 
VALUE rb_f_kill (int, VALUE *)
 
void rb_trap_exit (void)
 
void rb_trap_exec (void)
 
const char * ruby_signal_name (int)
 
void ruby_default_signal (int)
 
VALUE rb_f_sprintf (int, const VALUE *)
 
 PRINTF_ARGS (VALUE rb_sprintf(const char *,...), 1, 2)
 
VALUE rb_vsprintf (const char *, va_list)
 
 PRINTF_ARGS (VALUE rb_str_catf(VALUE, const char *,...), 2, 3)
 
VALUE rb_str_vcatf (VALUE, const char *, va_list)
 
VALUE rb_str_format (int, const VALUE *, VALUE)
 
VALUE rb_str_new (const char *, long)
 
VALUE rb_str_new_cstr (const char *)
 
VALUE rb_str_new_shared (VALUE)
 
VALUE rb_str_new_frozen (VALUE)
 
VALUE rb_str_new_with_class (VALUE, const char *, long)
 
VALUE rb_tainted_str_new_cstr (const char *)
 
VALUE rb_tainted_str_new (const char *, long)
 
VALUE rb_external_str_new (const char *, long)
 
VALUE rb_external_str_new_cstr (const char *)
 
VALUE rb_locale_str_new (const char *, long)
 
VALUE rb_locale_str_new_cstr (const char *)
 
VALUE rb_filesystem_str_new (const char *, long)
 
VALUE rb_filesystem_str_new_cstr (const char *)
 
VALUE rb_str_buf_new (long)
 
VALUE rb_str_buf_new_cstr (const char *)
 
VALUE rb_str_buf_new2 (const char *)
 
VALUE rb_str_tmp_new (long)
 
VALUE rb_usascii_str_new (const char *, long)
 
VALUE rb_usascii_str_new_cstr (const char *)
 
void rb_str_free (VALUE)
 
void rb_str_shared_replace (VALUE, VALUE)
 
VALUE rb_str_buf_append (VALUE, VALUE)
 
VALUE rb_str_buf_cat (VALUE, const char *, long)
 
VALUE rb_str_buf_cat2 (VALUE, const char *)
 
VALUE rb_str_buf_cat_ascii (VALUE, const char *)
 
VALUE rb_obj_as_string (VALUE)
 
VALUE rb_check_string_type (VALUE)
 
void rb_must_asciicompat (VALUE)
 
VALUE rb_str_dup (VALUE)
 
VALUE rb_str_resurrect (VALUE str)
 
VALUE rb_str_locktmp (VALUE)
 
VALUE rb_str_unlocktmp (VALUE)
 
VALUE rb_str_dup_frozen (VALUE)
 
VALUE rb_str_plus (VALUE, VALUE)
 
VALUE rb_str_times (VALUE, VALUE)
 
long rb_str_sublen (VALUE, long)
 
VALUE rb_str_substr (VALUE, long, long)
 
VALUE rb_str_subseq (VALUE, long, long)
 
char * rb_str_subpos (VALUE, long, long *)
 
void rb_str_modify (VALUE)
 
void rb_str_modify_expand (VALUE, long)
 
VALUE rb_str_freeze (VALUE)
 
void rb_str_set_len (VALUE, long)
 
VALUE rb_str_resize (VALUE, long)
 
VALUE rb_str_cat (VALUE, const char *, long)
 
VALUE rb_str_cat2 (VALUE, const char *)
 
VALUE rb_str_append (VALUE, VALUE)
 
VALUE rb_str_concat (VALUE, VALUE)
 
st_index_t rb_memhash (const void *ptr, long len)
 
st_index_t rb_hash_start (st_index_t)
 
st_index_t rb_hash_uint32 (st_index_t, uint32_t)
 
st_index_t rb_hash_uint (st_index_t, st_index_t)
 
st_index_t rb_hash_end (st_index_t)
 
st_index_t rb_str_hash (VALUE)
 
int rb_str_hash_cmp (VALUE, VALUE)
 
int rb_str_comparable (VALUE, VALUE)
 
int rb_str_cmp (VALUE, VALUE)
 
VALUE rb_str_equal (VALUE str1, VALUE str2)
 
VALUE rb_str_drop_bytes (VALUE, long)
 
void rb_str_update (VALUE, long, long, VALUE)
 
VALUE rb_str_replace (VALUE, VALUE)
 
VALUE rb_str_inspect (VALUE)
 
VALUE rb_str_dump (VALUE)
 
VALUE rb_str_split (VALUE, const char *)
 
void rb_str_associate (VALUE, VALUE)
 
VALUE rb_str_associated (VALUE)
 
void rb_str_setter (VALUE, ID, VALUE *)
 
VALUE rb_str_intern (VALUE)
 
VALUE rb_sym_to_s (VALUE)
 
long rb_str_strlen (VALUE)
 
VALUE rb_str_length (VALUE)
 
long rb_str_offset (VALUE, long)
 
size_t rb_str_capacity (VALUE)
 
VALUE rb_str_ellipsize (VALUE, long)
 Shortens str and adds three dots, an ellipsis, if it is longer than len characters. More...
 
VALUE rb_str_scrub (VALUE, VALUE)
 
VALUE rb_struct_new (VALUE,...)
 
VALUE rb_struct_define (const char *,...)
 
VALUE rb_struct_define_under (VALUE, const char *,...)
 
VALUE rb_struct_alloc (VALUE, VALUE)
 
VALUE rb_struct_initialize (VALUE, VALUE)
 
VALUE rb_struct_aref (VALUE, VALUE)
 
VALUE rb_struct_aset (VALUE, VALUE, VALUE)
 
VALUE rb_struct_getmember (VALUE, ID)
 
 DEPRECATED (VALUE rb_struct_iv_get(VALUE, const char *))
 
VALUE rb_struct_s_members (VALUE)
 
VALUE rb_struct_members (VALUE)
 
VALUE rb_struct_alloc_noinit (VALUE)
 
VALUE rb_struct_define_without_accessor (const char *, VALUE, rb_alloc_func_t,...)
 
VALUE rb_struct_define_without_accessor_under (VALUE outer, const char *class_name, VALUE super, rb_alloc_func_t alloc,...)
 
void rb_thread_check_ints (void)
 
int rb_thread_interrupted (VALUE thval)
 
 DEPRECATED (VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, rb_unblock_function_t *ubf, void *data2))
 
VALUE rb_mutex_new (void)
 
VALUE rb_mutex_locked_p (VALUE mutex)
 
VALUE rb_mutex_trylock (VALUE mutex)
 
VALUE rb_mutex_lock (VALUE mutex)
 
VALUE rb_mutex_unlock (VALUE mutex)
 
VALUE rb_mutex_sleep (VALUE self, VALUE timeout)
 
VALUE rb_mutex_synchronize (VALUE mutex, VALUE(*func)(VALUE arg), VALUE arg)
 
VALUE rb_time_new (time_t, long)
 
VALUE rb_time_nano_new (time_t, long)
 
VALUE rb_time_num_new (VALUE, VALUE)
 
struct timeval rb_time_interval (VALUE num)
 
struct timeval rb_time_timeval (VALUE time)
 
struct timespec rb_time_timespec (VALUE time)
 
VALUE rb_mod_name (VALUE)
 
VALUE rb_class_path (VALUE)
 
VALUE rb_class_path_cached (VALUE)
 
void rb_set_class_path (VALUE, VALUE, const char *)
 
void rb_set_class_path_string (VALUE, VALUE, VALUE)
 
VALUE rb_path_to_class (VALUE)
 
VALUE rb_path2class (const char *)
 
void rb_name_class (VALUE, ID)
 
VALUE rb_class_name (VALUE)
 
void rb_autoload (VALUE, ID, const char *)
 
VALUE rb_autoload_load (VALUE, ID)
 
VALUE rb_autoload_p (VALUE, ID)
 
VALUE rb_f_trace_var (int, VALUE *)
 
VALUE rb_f_untrace_var (int, VALUE *)
 
VALUE rb_f_global_variables (void)
 
void rb_alias_variable (ID, ID)
 
struct st_tablerb_generic_ivar_table (VALUE)
 
void rb_copy_generic_ivar (VALUE, VALUE)
 
void rb_free_generic_ivar (VALUE)
 
VALUE rb_ivar_get (VALUE, ID)
 
VALUE rb_ivar_set (VALUE, ID, VALUE)
 
VALUE rb_ivar_defined (VALUE, ID)
 
void rb_ivar_foreach (VALUE, int(*)(ANYARGS), st_data_t)
 
st_index_t rb_ivar_count (VALUE)
 
VALUE rb_attr_get (VALUE, ID)
 
VALUE rb_obj_instance_variables (VALUE)
 
VALUE rb_obj_remove_instance_variable (VALUE, VALUE)
 
void * rb_mod_const_at (VALUE, void *)
 
void * rb_mod_const_of (VALUE, void *)
 
VALUE rb_const_list (void *)
 
VALUE rb_mod_constants (int, VALUE *, VALUE)
 
VALUE rb_mod_remove_const (VALUE, VALUE)
 
int rb_const_defined (VALUE, ID)
 
int rb_const_defined_at (VALUE, ID)
 
int rb_const_defined_from (VALUE, ID)
 
VALUE rb_const_get (VALUE, ID)
 
VALUE rb_const_get_at (VALUE, ID)
 
VALUE rb_const_get_from (VALUE, ID)
 
void rb_const_set (VALUE, ID, VALUE)
 
VALUE rb_const_remove (VALUE, ID)
 
VALUE rb_mod_const_missing (VALUE, VALUE)
 
VALUE rb_cvar_defined (VALUE, ID)
 
void rb_cvar_set (VALUE, ID, VALUE)
 
VALUE rb_cvar_get (VALUE, ID)
 
void rb_cv_set (VALUE, const char *, VALUE)
 
VALUE rb_cv_get (VALUE, const char *)
 
void rb_define_class_variable (VALUE, const char *, VALUE)
 
VALUE rb_mod_class_variables (int, VALUE *, VALUE)
 
VALUE rb_mod_remove_cvar (VALUE, VALUE)
 
ID rb_frame_callee (void)
 
VALUE rb_str_succ (VALUE)
 
VALUE rb_time_succ (VALUE)
 
int rb_frame_method_id_and_class (ID *idp, VALUE *klassp)
 
VALUE rb_make_backtrace (void)
 
VALUE rb_make_exception (int, VALUE *)
 

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 int ruby_sourceline
 
RUBY_EXTERN char * ruby_sourcefile
 
RUBY_EXTERN VALUE rb_argv0
 

Macro Definition Documentation

◆ HAVE_RB_DEFINE_ALLOC_FUNC

#define HAVE_RB_DEFINE_ALLOC_FUNC   1

Definition at line 373 of file intern.h.

◆ HAVE_RB_REG_NEW_STR

#define HAVE_RB_REG_NEW_STR   1

Definition at line 672 of file intern.h.

◆ INTEGER_PACK_2COMP

#define INTEGER_PACK_2COMP   0x80

◆ INTEGER_PACK_BIG_ENDIAN

#define INTEGER_PACK_BIG_ENDIAN
Value:
INTEGER_PACK_MSBYTE_FIRST)
#define INTEGER_PACK_MSWORD_FIRST
Definition: intern.h:142

Definition at line 156 of file intern.h.

Referenced by big2str_base_poweroftwo(), pack_unpack(), and rb_str_format().

◆ INTEGER_PACK_FORCE_BIGNUM

#define INTEGER_PACK_FORCE_BIGNUM   0x100

Definition at line 150 of file intern.h.

Referenced by bary_unpack(), int_pair_to_real_inclusive(), and rb_integer_unpack().

◆ INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION

#define INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION   0x400

Definition at line 148 of file intern.h.

Referenced by bary_pack(), bary_unpack(), bary_unpack_internal(), and rb_integer_unpack().

◆ INTEGER_PACK_LITTLE_ENDIAN

#define INTEGER_PACK_LITTLE_ENDIAN
Value:
INTEGER_PACK_LSBYTE_FIRST)
#define INTEGER_PACK_LSWORD_FIRST
Definition: intern.h:143

Definition at line 153 of file intern.h.

Referenced by pack_unpack(), and r_object0().

◆ INTEGER_PACK_LSBYTE_FIRST

#define INTEGER_PACK_LSBYTE_FIRST   0x20

◆ INTEGER_PACK_LSWORD_FIRST

#define INTEGER_PACK_LSWORD_FIRST   0x02

◆ INTEGER_PACK_MSBYTE_FIRST

#define INTEGER_PACK_MSBYTE_FIRST   0x10

◆ INTEGER_PACK_MSWORD_FIRST

#define INTEGER_PACK_MSWORD_FIRST   0x01

◆ INTEGER_PACK_NATIVE_BYTE_ORDER

#define INTEGER_PACK_NATIVE_BYTE_ORDER   0x40

◆ INTEGER_PACK_NEGATIVE

#define INTEGER_PACK_NEGATIVE   0x200

◆ OBJ_INIT_COPY

#define OBJ_INIT_COPY (   obj,
  orig 
)    ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1))

◆ rb_argv

#define rb_argv   rb_get_argv()

Definition at line 681 of file intern.h.

Referenced by process_options(), process_sflag(), ruby_prog_init(), and ruby_set_argv().

◆ rb_ary_new2

#define rb_ary_new2   rb_ary_new_capa

Definition at line 90 of file intern.h.

Referenced by ary2list(), ary2list2(), ary_make_substitution(), assoc2kv(), assoc2kv_enc(), BigDecimal_split(), cbsubst_scan_args(), collect_caller_bindings_cfunc(), collect_caller_bindings_iseq(), coverage(), 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(), hash2kv(), hash2kv_enc(), Init_Encoding(), Init_ossl_ssl(), Init_tcltklib(), ip_ruby_cmd(), iseq_data_to_ary(), JSON_parse_string(), lazy_zip(), lazy_zip_arrays_func(), lazy_zip_func(), lib_split_tklist_core(), make_hostent_internal(), match_array(), mk_ary_of_str(), nil_to_a(), ossl_generate_cb(), ossl_pkcs7_get_recipient(), ossl_pkcs7_get_signer(), ossl_ssl_cipher_to_ary(), ossl_ssl_get_peer_cert_chain(), 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_values_at(), rb_iseq_parameters(), rb_local_constants(), 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(), tk_conv_args(), unnamed_parameters(), yield_indexed_values(), zip_ary(), and zip_i().

◆ rb_ary_new3

#define rb_ary_new3   rb_ary_new_from_args

◆ rb_ary_new4

#define rb_ary_new4   rb_ary_new_from_values

◆ rb_big2int

#define rb_big2int (   x)    rb_big2long(x)

Definition at line 107 of file intern.h.

◆ rb_big2uint

#define rb_big2uint (   x)    rb_big2ulong(x)

Definition at line 109 of file intern.h.

◆ rb_check_arity

#define rb_check_arity   rb_check_arity /* for ifdef */

◆ rb_check_frozen

#define rb_check_frozen (   obj)    rb_check_frozen_inline(obj)

◆ rb_check_frozen_internal

#define rb_check_frozen_internal (   obj)
Value:
do { \
VALUE frozen_obj = (obj); \
if (OBJ_FROZEN(frozen_obj)) { \
rb_error_frozen(rb_obj_classname(frozen_obj)); \
} \
} while (0)
const char * rb_obj_classname(VALUE)
Definition: variable.c:406
#define OBJ_FROZEN(x)
Definition: ruby.h:1193

Definition at line 261 of file intern.h.

Referenced by rb_check_copyable(), rb_check_frozen(), and rb_check_frozen_inline().

◆ rb_check_trusted

#define rb_check_trusted (   obj)    rb_check_trusted_inline(obj)

◆ rb_check_trusted_internal

#define rb_check_trusted_internal (   obj)    ((void) 0)

Definition at line 267 of file intern.h.

Referenced by rb_check_trusted_inline().

◆ rb_Complex1

#define rb_Complex1 (   x)    rb_Complex((x), INT2FIX(0))

Definition at line 186 of file intern.h.

◆ rb_Complex2

#define rb_Complex2 (   x,
 
)    rb_Complex((x), (y))

Definition at line 187 of file intern.h.

◆ rb_complex_new1

#define rb_complex_new1 (   x)    rb_complex_new((x), INT2FIX(0))

Definition at line 182 of file intern.h.

Referenced by nilclass_to_c(), and numeric_to_c().

◆ rb_complex_new2

#define rb_complex_new2 (   x,
 
)    rb_complex_new((x), (y))

Definition at line 183 of file intern.h.

Referenced by read_comp().

◆ rb_complex_raw1

#define rb_complex_raw1 (   x)    rb_complex_raw((x), INT2FIX(0))

Definition at line 179 of file intern.h.

Referenced by fix_pow(), flo_pow(), and rb_big_pow().

◆ rb_complex_raw2

#define rb_complex_raw2 (   x,
 
)    rb_complex_raw((x), (y))

Definition at line 180 of file intern.h.

◆ rb_defout

#define rb_defout   rb_stdout

Definition at line 515 of file intern.h.

◆ rb_disable_super

#define rb_disable_super (   klass,
  name 
)    ((void)0)

Definition at line 371 of file intern.h.

◆ rb_enable_super

#define rb_enable_super (   klass,
  name 
)    ((void)0)

Definition at line 372 of file intern.h.

◆ rb_enumeratorize_with_size

#define rb_enumeratorize_with_size (   obj,
  id,
  argc,
  argv,
  size_fn 
)    rb_enumeratorize_with_size(obj, id, argc, argv, (rb_enumerator_size_func *)(size_fn))

Definition at line 234 of file intern.h.

◆ rb_exc_new2

#define rb_exc_new2   rb_exc_new_cstr

◆ rb_exc_new3

#define rb_exc_new3   rb_exc_new_str

◆ rb_fd_clr

#define rb_fd_clr (   n,
  f 
)    FD_CLR((n), (f))

Definition at line 351 of file intern.h.

◆ rb_fd_copy

#define rb_fd_copy (   d,
  s,
 
)    (*(d) = *(s))

Definition at line 353 of file intern.h.

Referenced by rb_thread_select().

◆ rb_fd_dup

#define rb_fd_dup (   d,
 
)    (*(d) = *(s))

Definition at line 354 of file intern.h.

Referenced by do_select().

◆ rb_fd_init

#define rb_fd_init (   f)    FD_ZERO(f)

◆ rb_fd_init_copy

#define rb_fd_init_copy (   d,
 
)    (*(d) = *(s))

Definition at line 358 of file intern.h.

Referenced by do_select().

◆ rb_fd_isset

#define rb_fd_isset (   n,
  f 
)    FD_ISSET((n), (f))

Definition at line 352 of file intern.h.

Referenced by select_internal(), and select_single().

◆ rb_fd_max

#define rb_fd_max (   f)    FD_SETSIZE

Definition at line 360 of file intern.h.

Referenced by maygvl_copy_stream_wait_read(), and nogvl_copy_stream_wait_write().

◆ rb_fd_ptr

#define rb_fd_ptr (   f)    (f)

Definition at line 356 of file intern.h.

◆ rb_fd_resize

#define rb_fd_resize (   n,
  f 
)    ((void)(f))

Definition at line 355 of file intern.h.

Referenced by rb_thread_fd_select().

◆ rb_fd_select

#define rb_fd_select (   n,
  rfds,
  wfds,
  efds,
  timeout 
)    select((n), (rfds), (wfds), (efds), (timeout))

Definition at line 361 of file intern.h.

Referenced by maygvl_select(), and nogvl_copy_stream_wait_write().

◆ rb_fd_set

#define rb_fd_set (   n,
  f 
)    FD_SET((n), (f))

◆ rb_fd_term

#define rb_fd_term (   f)    ((void)(f))

◆ rb_fd_zero

#define rb_fd_zero (   f)    FD_ZERO(f)

Definition at line 349 of file intern.h.

Referenced by maygvl_copy_stream_wait_read(), and nogvl_copy_stream_wait_write().

◆ rb_hash_end

#define rb_hash_end (   h)    st_hash_end(h)

Definition at line 760 of file intern.h.

◆ rb_hash_uint

#define rb_hash_uint (   h,
 
)    st_hash_uint((h), (i))

Definition at line 759 of file intern.h.

◆ rb_hash_uint32

#define rb_hash_uint32 (   h,
 
)    st_hash_uint32((h), (i))

Definition at line 758 of file intern.h.

◆ rb_memcmp

#define rb_memcmp   memcmp

Definition at line 662 of file intern.h.

◆ RB_NUM_COERCE_FUNCS_NEED_OPID

#define RB_NUM_COERCE_FUNCS_NEED_OPID   1

Definition at line 559 of file intern.h.

◆ rb_Rational1

#define rb_Rational1 (   x)    rb_Rational((x), INT2FIX(1))

Definition at line 173 of file intern.h.

Referenced by BigDecimal_to_r(), and time_to_r().

◆ rb_Rational2

#define rb_Rational2 (   x,
 
)    rb_Rational((x), (y))

Definition at line 174 of file intern.h.

◆ rb_rational_new1

#define rb_rational_new1 (   x)    rb_rational_new((x), INT2FIX(1))

Definition at line 170 of file intern.h.

Referenced by integer_to_r(), m_amjd(), minus_dd(), nilclass_to_r(), and rb_flt_rationalize().

◆ rb_rational_new2

#define rb_rational_new2 (   x,
 
)    rb_rational_new((x), (y))

◆ rb_rational_raw1

#define rb_rational_raw1 (   x)    rb_rational_raw((x), INT2FIX(1))

Definition at line 167 of file intern.h.

Referenced by fix_pow(), numeric_quo(), parser_set_integer_literal(), and rb_big_pow().

◆ rb_rational_raw2

#define rb_rational_raw2 (   x,
 
)    rb_rational_raw((x), (y))

Definition at line 168 of file intern.h.

◆ RB_RESERVED_FD_P

#define RB_RESERVED_FD_P (   fd)    rb_reserved_fd_p(fd)

Definition at line 550 of file intern.h.

◆ rb_str_buf_new2

#define rb_str_buf_new2   rb_str_buf_new_cstr

Definition at line 845 of file intern.h.

◆ rb_str_dup_frozen

#define rb_str_dup_frozen   rb_str_new_frozen

Definition at line 737 of file intern.h.

◆ rb_str_new2

#define rb_str_new2   rb_str_new_cstr

Definition at line 840 of file intern.h.

Referenced by add_modules(), addrinfo_getnameinfo(), allocation_class_path(), allocation_sourcefile(), 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(), create_encoding_table_core(), 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(), dir_s_chdir(), econv_primitive_errinfo(), encoding_table_get_name_core(), env_inspect(), establishShell(), eval_string_with_cref(), foletype_s_progids(), folevariant_value(), get_eval_string_core(), hash2result(), Init_bigdecimal(), Init_cparse(), 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(), 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_x509_inspect(), 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(), path_check_0(), pipe_open(), proc_options(), process_sflag(), rb_autoload(), rb_check_deadlock(), rb_execarg_run_options(), rb_exit(), rb_feature_provided(), rb_insn_operand_intern(), rb_insns_name_array(), rb_invalid_str(), rb_iseq_build_for_ruby2cext(), rb_iseq_compile_with_option(), rb_iseq_new_main(), rb_load_internal0(), rb_readwrite_sys_fail(), 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_usascii_str_new_cstr(), rb_zlib_version(), reachable_object_from_root_i(), reg_enum_key(), reg_get_val(), rsock_ipaddr(), rsock_make_ipaddr(), 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(), update_encoding_table(), and w_encoding().

◆ rb_str_new3

#define rb_str_new3   rb_str_new_shared

Definition at line 841 of file intern.h.

Referenced by rb_reg_preprocess_dregexp(), and rb_reg_quote().

◆ rb_str_new4

#define rb_str_new4   rb_str_new_frozen

◆ rb_str_new5

#define rb_str_new5   rb_str_new_with_class

◆ rb_tainted_str_new2

#define rb_tainted_str_new2   rb_tainted_str_new_cstr

◆ rb_usascii_str_new2

#define rb_usascii_str_new2   rb_usascii_str_new_cstr

◆ RETURN_ENUMERATOR

#define RETURN_ENUMERATOR (   obj,
  argc,
  argv 
)    RETURN_SIZED_ENUMERATOR(obj, argc, argv, 0)

◆ RETURN_SIZED_ENUMERATOR

#define RETURN_SIZED_ENUMERATOR (   obj,
  argc,
  argv,
  size_fn 
)
Value:
do { \
if (!rb_block_given_p()) \
(argc), (argv), (size_fn)); \
} while (0)
int rb_block_given_p(void)
Definition: eval.c:712
int argc
Definition: ruby.c:131
ID rb_frame_this_func(void)
Definition: eval.c:943
#define rb_enumeratorize_with_size(obj, id, argc, argv, size_fn)
Definition: intern.h:234
#define ID2SYM(x)
Definition: ruby.h:355
char ** argv
Definition: ruby.c:132

Definition at line 237 of file intern.h.

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(), 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().

◆ RUBY_UBF_IO

#define RUBY_UBF_IO   ((rb_unblock_function_t *)-1)

◆ RUBY_UBF_PROCESS

#define RUBY_UBF_PROCESS   ((rb_unblock_function_t *)-1)

Definition at line 873 of file intern.h.

Referenced by call_without_gvl(), and rb_waitpid().

◆ UNLIMITED_ARGUMENTS

#define UNLIMITED_ARGUMENTS   (-1)

Typedef Documentation

◆ rb_alloc_func_t

typedef VALUE(* rb_alloc_func_t) (VALUE)

Definition at line 374 of file intern.h.

◆ rb_blocking_function_t

typedef VALUE rb_blocking_function_t(void *)

Definition at line 865 of file intern.h.

◆ rb_enumerator_size_func

typedef VALUE rb_enumerator_size_func(VALUE, VALUE, VALUE)

Definition at line 231 of file intern.h.

◆ rb_fdset_t

typedef fd_set rb_fdset_t

Definition at line 348 of file intern.h.

◆ rb_hash_update_func

typedef VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value)

Definition at line 508 of file intern.h.

◆ rb_unblock_function_t

typedef void rb_unblock_function_t(void *)

Definition at line 864 of file intern.h.

Function Documentation

◆ DEPRECATED() [1/18]

DEPRECATED ( VALUE   rb_big2str0VALUE, int, int)

◆ DEPRECATED() [2/18]

DEPRECATED ( VALUE   rb_big2ulong_packVALUE x)

◆ DEPRECATED() [3/18]

DEPRECATED ( void   rb_quad_packchar *, VALUE)

◆ DEPRECATED() [4/18]

DEPRECATED ( VALUE   rb_quad_unpackconst char *, int)

◆ DEPRECATED() [5/18]

DEPRECATED ( void   rb_thread_pollingvoid)

◆ DEPRECATED() [6/18]

DEPRECATED ( int   rb_thread_selectint, fd_set *, fd_set *, fd_set *, struct timeval *)

◆ DEPRECATED() [7/18]

DEPRECATED ( int   rb_proc_exec_nint, VALUE *, const char *)

◆ DEPRECATED() [8/18]

DEPRECATED ( VALUE   rb_exec_arg_initint argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e)

◆ DEPRECATED() [9/18]

DEPRECATED ( int   rb_exec_arg_addoptstruct rb_exec_arg *e, VALUE key, VALUE val)

◆ DEPRECATED() [10/18]

DEPRECATED ( void   rb_exec_arg_fixupstruct rb_exec_arg *e)

◆ DEPRECATED() [11/18]

DEPRECATED ( int   rb_run_exec_optionsconst struct rb_exec_arg *e, struct rb_exec_arg *s)

◆ DEPRECATED() [12/18]

DEPRECATED ( int   rb_run_exec_options_errconst struct rb_exec_arg *e, struct rb_exec_arg *s, char *, size_t)

◆ DEPRECATED() [13/18]

DEPRECATED ( int   rb_execconst struct rb_exec_arg *)

◆ DEPRECATED() [14/18]

DEPRECATED ( int   rb_exec_errconst struct rb_exec_arg *, char *, size_t)

◆ DEPRECATED() [15/18]

DEPRECATED ( rb_pid_t   rb_forkint *, int(*)(void *), void *, VALUE)

◆ DEPRECATED() [16/18]

DEPRECATED ( rb_pid_t   rb_fork_errint *, int(*)(void *, char *, size_t), void *, VALUE, char *, size_t)

◆ DEPRECATED() [17/18]

DEPRECATED ( VALUE   rb_struct_iv_getVALUE, const char *)

◆ DEPRECATED() [18/18]

DEPRECATED ( VALUE   rb_thread_blocking_regionrb_blocking_function_t *func, void *data1, rb_unblock_function_t *ubf, void *data2)

◆ NORETURN() [1/7]

NORETURN ( void   rb_cmperrVALUE, VALUE)

◆ NORETURN() [2/7]

NORETURN ( void   rb_invalid_strconst char *, const char *)

◆ NORETURN() [3/7]

NORETURN ( void   rb_error_frozenconst char *)

◆ NORETURN() [4/7]

NORETURN ( void   rb_error_arityint, int, int)

◆ NORETURN() [5/7]

NORETURN ( void   rb_exc_raiseVALUE)

◆ NORETURN() [6/7]

NORETURN ( void   rb_jump_tagint)

◆ NORETURN() [7/7]

NORETURN ( void   rb_memerrorvoid)

◆ PRINTF_ARGS() [1/9]

PRINTF_ARGS ( NORETURN(void rb_loaderror(const char *,...))  ,
,
 
)

◆ PRINTF_ARGS() [2/9]

PRINTF_ARGS ( NORETURN(void rb_loaderror_with_path(VALUE path, const char *,...))  ,
,
 
)

◆ PRINTF_ARGS() [3/9]

PRINTF_ARGS ( NORETURN(void rb_name_error(ID, const char *,...))  ,
,
 
)

◆ PRINTF_ARGS() [4/9]

PRINTF_ARGS ( NORETURN(void rb_name_error_str(VALUE, const char *,...))  ,
,
 
)

◆ PRINTF_ARGS() [5/9]

PRINTF_ARGS ( void   rb_compile_errorconst char *, int, const char *,...,
,
 
)

◆ PRINTF_ARGS() [6/9]

PRINTF_ARGS ( void   rb_compile_error_with_encconst char *, int, void *, const char *,...,
,
 
)

◆ PRINTF_ARGS() [7/9]

PRINTF_ARGS ( void   rb_compile_error_appendconst char *,...,
,
 
)

◆ PRINTF_ARGS() [8/9]

PRINTF_ARGS ( VALUE   rb_sprintfconst char *,...,
,
 
)

◆ PRINTF_ARGS() [9/9]

PRINTF_ARGS ( VALUE   rb_str_catfVALUE, const char *,...,
,
 
)

◆ rb_absint_numwords()

size_t rb_absint_numwords ( VALUE  val,
size_t  word_numbits,
size_t *  nlz_bits_ret 
)

◆ rb_absint_singlebit_p()

int rb_absint_singlebit_p ( VALUE  val)

Definition at line 3430 of file bignum.c.

References BDIGIT, bdigit_roomof, BDIGITS, BIGDN, BIGLO, dp, FIX2LONG, FIXNUM_P, numberof, POW2_P, rb_to_int(), RBIGNUM_LEN, and val.

Referenced by rb_big_bit_length(), and rb_str_format().

◆ rb_absint_size()

size_t rb_absint_size ( VALUE  val,
int *  nlz_bits_ret 
)

◆ rb_alias()

void rb_alias ( VALUE  ,
ID  ,
ID   
)

◆ rb_alias_variable()

void rb_alias_variable ( ID  ,
ID   
)

◆ rb_any_to_s()

VALUE rb_any_to_s ( VALUE  )

◆ rb_apply()

VALUE rb_apply ( VALUE  recv,
ID  mid,
VALUE  args 
)

Calls a method.

Parameters
recvreceiver of the method
midan ID that represents the name of the method
argsan Array object which contains method arguments
Precondition
args must refer an Array object.

Definition at line 752 of file vm_eval.c.

References ALLOCA_N, argc, argv, CALL_FCALL, MEMCPY, OBJ_FREEZE, RARRAY_CONST_PTR, RARRAY_LENINT, RARRAY_PTR, rb_ary_subseq(), rb_call(), RB_GC_GUARD, RBASIC_CLEAR_CLASS, and rescue_funcall_args::recv.

Referenced by ary2list(), ary2list2(), exec_callback(), ip_ruby_cmd_core(), and tk_do_callback().

◆ rb_Array()

VALUE rb_Array ( VALUE  )

◆ rb_ary_aref()

VALUE rb_ary_aref ( int  ,
VALUE ,
VALUE   
)

◆ rb_ary_assoc()

VALUE rb_ary_assoc ( VALUE  ,
VALUE   
)

Definition at line 3648 of file array.c.

References ary_sort_data::ary, key, NIL_P, Qnil, RARRAY_AREF, RARRAY_LEN, rb_check_array_type(), and rb_equal().

Referenced by Init_Array().

◆ rb_ary_cat()

VALUE rb_ary_cat ( VALUE  ,
const VALUE ,
long   
)

◆ rb_ary_clear()

VALUE rb_ary_clear ( VALUE  )

◆ rb_ary_cmp()

VALUE rb_ary_cmp ( VALUE  ,
VALUE   
)

Definition at line 3888 of file array.c.

References INT2FIX, NIL_P, Qnil, Qundef, RARRAY_LEN, rb_check_array_type(), rb_exec_recursive_paired(), and recursive_cmp().

Referenced by Init_Array().

◆ rb_ary_concat()

VALUE rb_ary_concat ( VALUE  ,
VALUE   
)

◆ rb_ary_delete()

VALUE rb_ary_delete ( VALUE  ,
VALUE   
)

◆ rb_ary_delete_at()

VALUE rb_ary_delete_at ( VALUE  ,
long   
)

◆ rb_ary_dup()

VALUE rb_ary_dup ( VALUE  )

◆ rb_ary_each()

VALUE rb_ary_each ( VALUE  )

◆ rb_ary_entry()

VALUE rb_ary_entry ( VALUE  ,
long   
)

Definition at line 1179 of file array.c.

References RARRAY_LEN, and rb_ary_elt().

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_loaded_features_index(), hash2named_arg(), initialize_params(), iseq_build_from_ary_body(), iseq_data_to_ary(), iseq_load(), JSON_parse_string(), 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_set_ciphers(), ossl_x509name_init_i(), parse_main(), path_split(), pty_close_pty(), rb_ary_aref(), rb_ary_at(), rb_ary_bsearch(), 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_execarg_addopt(), rb_iseq_build_from_ary(), 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_state_ivars(), start_document(), time_timespec(), and wdivmod().

◆ rb_ary_free()

void rb_ary_free ( VALUE  )

◆ rb_ary_freeze()

VALUE rb_ary_freeze ( VALUE  )

Definition at line 401 of file array.c.

References rb_obj_freeze().

Referenced by coverage_result_i(), curry(), make_curry_proc(), and rb_add_method().

◆ rb_ary_includes()

VALUE rb_ary_includes ( VALUE  ,
VALUE   
)

Definition at line 3829 of file array.c.

References ary_sort_data::ary, Qfalse, Qtrue, RARRAY_AREF, RARRAY_LEN, and rb_equal().

Referenced by env_replace_i(), and Init_Array().

◆ rb_ary_join()

VALUE rb_ary_join ( VALUE  ,
VALUE   
)

◆ rb_ary_modify()

void rb_ary_modify ( VALUE  )

◆ rb_ary_new()

VALUE rb_ary_new ( void  )

Definition at line 499 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(), ary_new_dim(), backtrace_collect(), cbsubst_get_extra_args_tbl(), cbsubst_table_setup(), 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_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(), 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(), Init_GC(), Init_load(), Init_ossl_asn1(), Init_VM(), Init_win32ole(), int_ossl_asn1_decode0_cons(), iseq_data_to_ary(), JSON_parse_array(), lep_svar_set(), make_addrinfo(), make_hostent_internal(), 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_get_errors(), ossl_pkcs7_get_recipient(), ossl_pkcs7_get_signer(), 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_unpack(), parse(), prepare_iseq_build(), 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_execarg_addopt(), rb_f_global_variables(), rb_f_local_variables(), rb_f_untrace_var(), rb_fiddle_ptr_free_get(), rb_gzreader_readlines(), rb_insn_operand_intern(), rb_insns_name_array(), rb_io_readlines(), rb_iseq_disasm(), rb_iseq_line_trace_all(), rb_mod_ancestors(), rb_mod_included_modules(), rb_mod_nesting(), rb_obj_instance_variables(), rb_obj_singleton_methods(), rb_push_glob(), rb_reg_names(), 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(), save_env(), save_redirect_fd(), search_convpath_i(), select_internal(), sock_s_gethostbyaddr(), strio_readlines(), thgroup_list(), tk_hash_kv(), username_completion_proc_call(), vm_backtrace_to_ary(), vm_expandarray(), vm_yield_setup_block_args(), wmap_keys(), and wmap_values().

◆ rb_ary_new_capa()

VALUE rb_ary_new_capa ( long  capa)

◆ rb_ary_new_from_args()

VALUE rb_ary_new_from_args ( long  n,
  ... 
)

Definition at line 505 of file array.c.

References ARY_SET_LEN, RARRAY_ASET, and rb_ary_new2.

Referenced by rb_ary_sample().

◆ rb_ary_new_from_values()

VALUE rb_ary_new_from_values ( long  n,
const VALUE elts 
)

Definition at line 524 of file array.c.

References ary_memcpy(), ARY_SET_LEN, and rb_ary_new2.

Referenced by lazy_zip_func(), and rb_ary_sample().

◆ rb_ary_plus()

VALUE rb_ary_plus ( VALUE  ,
VALUE   
)

◆ rb_ary_pop()

VALUE rb_ary_pop ( VALUE  )

◆ rb_ary_push()

VALUE rb_ary_push ( VALUE  ,
VALUE   
)

Definition at line 900 of file array.c.

References ary_ensure_room_for_push(), ARY_SET_LEN, RARRAY_ASET, and RARRAY_LEN.

Referenced by add_event_call_back(), add_modules(), addrinfo_list_new(), ary2list(), ary2list2(), ary_reject(), assoc2kv(), assoc2kv_enc(), backtrace_collect(), BigDecimal_split(), callback(), cbsubst_scan_args(), cdhash_each(), check_exec_env_i(), check_exec_redirect1(), chunk_ii(), collect_all(), collect_caller_bindings_cfunc(), collect_caller_bindings_iseq(), collect_i(), collect_local_variables_in_iseq(), 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(), 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(), grep_i(), grep_iter_i(), group_by_i(), gvar_i(), Init_Array(), Init_Encoding(), Init_ossl_ssl(), Init_VM(), ins_methods_push(), int_ossl_asn1_decode0_cons(), ip_ruby_cmd(), iseq_add_mark_object_compile_time(), iseq_data_to_ary(), iseq_set_arguments(), ivar_i(), JSON_parse_array(), JSON_parse_string(), keys_i(), lazy_init_iterator(), lazy_zip(), lazy_zip_arrays_func(), lazy_zip_func(), lex_getline(), lib_eventloop_launcher(), lib_split_tklist_core(), list_i(), make_addrinfo(), make_hostent_internal(), match_array(), match_i(), mk_ary_of_str(), 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_get_errors(), ossl_pkcs7_get_recipient(), ossl_pkcs7_get_signer(), ossl_ssl_cipher_to_ary(), ossl_ssl_get_peer_cert_chain(), 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(), parse(), partition_i(), proc_waitall(), push_include(), push_kv(), push_kv_enc(), 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_execarg_addopt(), rb_f_global_variables(), rb_f_local_variables(), rb_f_untrace_var(), rb_fiddle_ptr_free_get(), rb_gc_register_mark_object(), rb_get_kwargs(), rb_get_values_at(), rb_gzreader_readlines(), rb_hash_values_at(), rb_insn_operand_intern(), rb_insns_name_array(), rb_io_readlines(), 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_safe(), 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_define(), rb_struct_define_under(), rb_struct_define_without_accessor(), rb_struct_define_without_accessor_under(), rb_struct_select(), rb_szqueue_push(), 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(), ruby_vm_at_exit(), save_env_i(), save_redirect_fd(), scan_once(), select_internal(), set_argv(), slicebefore_ii(), sock_s_gethostbyaddr(), strio_readlines(), symbols_i(), take_i(), take_while_i(), thgroup_list_i(), thread_keys_i(), thread_list_i(), tk_conv_args(), to_a_i(), unnamed_parameters(), username_completion_proc_call(), values_i(), waitall_each(), wmap_keys_i(), wmap_values_i(), yycompile0(), yyparse(), zip_ary(), and zip_i().

◆ rb_ary_rassoc()

VALUE rb_ary_rassoc ( VALUE  ,
VALUE   
)

Definition at line 3681 of file array.c.

References ary_sort_data::ary, Qnil, RARRAY_AREF, RARRAY_LEN, rb_equal(), RB_TYPE_P, and T_ARRAY.

Referenced by Init_Array().

◆ rb_ary_replace()

VALUE rb_ary_replace ( VALUE  copy,
VALUE  orig 
)

◆ rb_ary_resize()

VALUE rb_ary_resize ( VALUE  ary,
long  len 
)

expands or shrinks ary to len elements.

expanded region will be filled with Qnil.

Parameters
aryan array
lennew size
Returns
ary
Postcondition
the size of ary is len.

Definition at line 1626 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 enum_sort_by(), and rb_get_values_at().

◆ rb_ary_resurrect()

VALUE rb_ary_resurrect ( VALUE  ary)

Definition at line 1909 of file array.c.

References RARRAY_CONST_PTR, RARRAY_LEN, and rb_ary_new4.

Referenced by obj_resurrect().

◆ rb_ary_reverse()

VALUE rb_ary_reverse ( VALUE  )

Definition at line 2187 of file array.c.

References ary_reverse(), RARRAY_LEN, RARRAY_PTR_USE, and rb_ary_modify().

Referenced by collect_caller_bindings(), and rb_ary_reverse_bang().

◆ rb_ary_rotate()

VALUE rb_ary_rotate ( VALUE  ,
long   
)

Definition at line 2251 of file array.c.

References ary_reverse(), cnt, Qnil, RARRAY_LEN, RARRAY_PTR, rb_ary_modify(), and rotate_count().

Referenced by rb_ary_rotate_bang().

◆ rb_ary_shared_with_p()

VALUE rb_ary_shared_with_p ( VALUE  ,
VALUE   
)

Definition at line 429 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().

◆ rb_ary_shift()

VALUE rb_ary_shift ( VALUE  )

◆ rb_ary_sort()

VALUE rb_ary_sort ( VALUE  )

Definition at line 2518 of file array.c.

References ary_sort_data::ary, rb_ary_dup(), and rb_ary_sort_bang().

Referenced by enum_sort(), and Init_Array().

◆ rb_ary_sort_bang()

VALUE rb_ary_sort_bang ( VALUE  )

◆ rb_ary_store()

void rb_ary_store ( VALUE  ,
long  ,
VALUE   
)

◆ rb_ary_subseq()

VALUE rb_ary_subseq ( VALUE  ,
long  ,
long   
)

◆ rb_ary_tmp_new()

VALUE rb_ary_tmp_new ( long  )

◆ rb_ary_to_ary()

VALUE rb_ary_to_ary ( VALUE  )

Definition at line 1530 of file array.c.

References NIL_P, rb_ary_new3, and rb_check_array_type().

Referenced by rb_ary_splice(), and vm_expandarray().

◆ rb_ary_to_s()

VALUE rb_ary_to_s ( VALUE  )

Definition at line 2107 of file array.c.

References rb_ary_inspect().

◆ rb_ary_unshift()

VALUE rb_ary_unshift ( VALUE  ,
VALUE   
)

Definition at line 1161 of file array.c.

References rb_ary_unshift_m().

Referenced by check_funcall_exec(), ole_invoke(), parser_set_encode(), and vm_call0_body().

◆ rb_assoc_new()

VALUE rb_assoc_new ( VALUE  ,
VALUE   
)

◆ rb_attr()

void rb_attr ( VALUE  ,
ID  ,
int  ,
int  ,
int   
)

◆ rb_attr_get()

VALUE rb_attr_get ( VALUE  ,
ID   
)

◆ rb_autoload()

void rb_autoload ( VALUE  ,
ID  ,
const char *   
)

◆ rb_autoload_load()

VALUE rb_autoload_load ( VALUE  ,
ID   
)

◆ rb_autoload_p()

VALUE rb_autoload_p ( VALUE  ,
ID   
)

◆ rb_backref_get()

VALUE rb_backref_get ( void  )

◆ rb_backref_set()

void rb_backref_set ( VALUE  )

◆ rb_backtrace()

void rb_backtrace ( void  )

Definition at line 782 of file vm_backtrace.c.

References vm_backtrace_print().

Referenced by rescue_callback().

◆ rb_big2dbl()

double rb_big2dbl ( VALUE  )

◆ rb_big2long()

SIGNED_VALUE rb_big2long ( VALUE  )

Definition at line 5101 of file bignum.c.

References big2ulong(), LONG_MAX, LONG_MIN, rb_eRangeError, rb_raise(), and RBIGNUM_POSITIVE_P.

Referenced by rb_num2long().

◆ rb_big2str()

VALUE rb_big2str ( VALUE  ,
int   
)

Definition at line 5014 of file bignum.c.

References big2str_struct::base, and rb_big2str1().

Referenced by GetVpValueWithPrec(), rb_big_to_s(), and rb_str_format().

◆ rb_big2ulong()

VALUE rb_big2ulong ( VALUE  )

Definition at line 5084 of file bignum.c.

References big2ulong(), LONG_MAX, LONG_MIN, rb_eRangeError, rb_raise(), and RBIGNUM_POSITIVE_P.

Referenced by rb_num2ulong_internal(), and rb_num_to_uint().

◆ rb_big_2comp()

void rb_big_2comp ( VALUE  )

Definition at line 3033 of file bignum.c.

References get2comp().

◆ rb_big_and()

VALUE rb_big_and ( VALUE  ,
VALUE   
)

◆ rb_big_clone()

VALUE rb_big_clone ( VALUE  )

Definition at line 3004 of file bignum.c.

References BDIGIT, BDIGITS, bignew_1(), CLASS_OF, MEMCPY, RBIGNUM_LEN, and RBIGNUM_SIGN.

Referenced by rb_big_abs(), rb_big_neg(), and rb_big_uminus().

◆ rb_big_cmp()

VALUE rb_big_cmp ( VALUE  ,
VALUE   
)

◆ rb_big_div()

VALUE rb_big_div ( VALUE  ,
VALUE   
)

Definition at line 6161 of file bignum.c.

References rb_big_divide().

Referenced by fix_divide(), and Init_Bignum().

◆ rb_big_divmod()

VALUE rb_big_divmod ( VALUE  ,
VALUE   
)

◆ rb_big_eq()

VALUE rb_big_eq ( VALUE  ,
VALUE   
)

◆ rb_big_eql()

VALUE rb_big_eql ( VALUE  ,
VALUE   
)

Definition at line 5561 of file bignum.c.

References BDIGIT, BDIGITS, MEMCMP, Qfalse, Qtrue, RB_BIGNUM_TYPE_P, RBIGNUM_LEN, and RBIGNUM_SIGN.

Referenced by Init_Bignum().

◆ rb_big_idiv()

VALUE rb_big_idiv ( VALUE  ,
VALUE   
)

Definition at line 6174 of file bignum.c.

References rb_big_divide(), and rb_intern.

Referenced by Init_Bignum().

◆ rb_big_lshift()

VALUE rb_big_lshift ( VALUE  ,
VALUE   
)

◆ rb_big_minus()

VALUE rb_big_minus ( VALUE  ,
VALUE   
)

◆ rb_big_modulo()

VALUE rb_big_modulo ( VALUE  ,
VALUE   
)

Definition at line 6189 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(), Init_Bignum(), and mod().

◆ rb_big_mul()

VALUE rb_big_mul ( VALUE  ,
VALUE   
)

◆ rb_big_new()

VALUE rb_big_new ( long  ,
int   
)

Definition at line 2998 of file bignum.c.

References bignew.

◆ rb_big_norm()

VALUE rb_big_norm ( VALUE  )

Definition at line 3136 of file bignum.c.

References bignorm().

Referenced by fix_aref(), and rand_range().

◆ rb_big_or()

VALUE rb_big_or ( VALUE  ,
VALUE   
)

◆ rb_big_pack()

void rb_big_pack ( VALUE  val,
unsigned long *  buf,
long  num_longs 
)

◆ rb_big_plus()

VALUE rb_big_plus ( VALUE  ,
VALUE   
)

◆ rb_big_pow()

VALUE rb_big_pow ( VALUE  ,
VALUE   
)

◆ rb_big_resize()

void rb_big_resize ( VALUE  big,
long  len 
)

Definition at line 2973 of file bignum.c.

References rb_big_realloc(), and RBIGNUM_SET_LEN.

Referenced by big_extend_carry(), bigfixize(), and bigtrunc().

◆ rb_big_rshift()

VALUE rb_big_rshift ( VALUE  ,
VALUE   
)

◆ rb_big_unpack()

VALUE rb_big_unpack ( unsigned long *  buf,
long  num_longs 
)

◆ rb_big_xor()

VALUE rb_big_xor ( VALUE  ,
VALUE   
)

◆ rb_bigzero_p()

int rb_bigzero_p ( VALUE  x)

Definition at line 2903 of file bignum.c.

References BIGZEROP.

Referenced by rand_int(), and rand_range().

◆ rb_binding_new()

VALUE rb_binding_new ( void  )

Definition at line 326 of file proc.c.

References rb_thread_struct::cfp, GET_THREAD(), and rb_binding_new_with_cfp().

Referenced by call_trace_func(), Init_VM(), and rb_f_binding().

◆ rb_block_lambda()

VALUE rb_block_lambda ( void  )

Definition at line 634 of file proc.c.

References proc_new(), rb_cProc, and TRUE.

Referenced by Init_Proc(), Init_VM(), rb_f_lambda(), and rb_mod_define_method().

◆ rb_block_proc()

VALUE rb_block_proc ( void  )

◆ rb_check_arity()

static void rb_check_arity ( int  argc,
int  min,
int  max 
)
inlinestatic

Definition at line 298 of file intern.h.

References argc, max(), rb_error_arity(), and UNLIMITED_ARGUMENTS.

◆ rb_check_array_type()

VALUE rb_check_array_type ( VALUE  )

◆ rb_check_convert_type()

VALUE rb_check_convert_type ( VALUE  ,
int  ,
const char *  ,
const char *   
)

◆ rb_check_copyable()

void rb_check_copyable ( VALUE  obj,
VALUE  orig 
)

◆ rb_check_frozen()

void rb_check_frozen ( VALUE  )

Definition at line 2084 of file error.c.

References rb_check_frozen_internal.

◆ rb_check_frozen_inline()

static void rb_check_frozen_inline ( VALUE  obj)
inlinestatic

Definition at line 273 of file intern.h.

References rb_check_frozen_internal.

◆ rb_check_funcall()

VALUE rb_check_funcall ( VALUE  ,
ID  ,
int  ,
const VALUE  
)

◆ rb_check_hash_type()

VALUE rb_check_hash_type ( VALUE  )

◆ rb_check_string_type()

VALUE rb_check_string_type ( VALUE  )

◆ rb_check_to_float()

VALUE rb_check_to_float ( VALUE  )

Definition at line 2977 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().

◆ rb_check_to_int()

VALUE rb_check_to_int ( VALUE  )

Definition at line 2706 of file object.c.

References rb_check_to_integer(), and val.

Referenced by exit_initialize().

◆ rb_check_to_integer()

VALUE rb_check_to_integer ( VALUE  ,
const char *   
)

◆ rb_check_trusted()

void rb_check_trusted ( VALUE  )

Definition at line 2096 of file error.c.

◆ rb_check_trusted_inline()

static void rb_check_trusted_inline ( VALUE  obj)
inlinestatic

Definition at line 279 of file intern.h.

References rb_check_trusted_internal.

◆ rb_class_get_superclass()

VALUE rb_class_get_superclass ( VALUE  )

Definition at line 1905 of file object.c.

References RCLASS.

◆ rb_class_inherited_p()

VALUE rb_class_inherited_p ( VALUE  ,
VALUE   
)

◆ rb_class_name()

VALUE rb_class_name ( VALUE  )

◆ rb_class_new_instance()

VALUE rb_class_new_instance ( int  ,
VALUE ,
VALUE   
)

◆ rb_class_path()

VALUE rb_class_path ( VALUE  )

◆ rb_class_path_cached()

VALUE rb_class_path_cached ( VALUE  )

Definition at line 281 of file variable.c.

References classpath, fc_result::klass, Qnil, RCLASS_IV_TBL, st_data_t, st_lookup(), and tmp_classpath.

Referenced by newobj_i().

◆ rb_class_real()

VALUE rb_class_real ( VALUE  )

◆ rb_class_superclass()

VALUE rb_class_superclass ( VALUE  )

◆ rb_clear_cache()

void rb_clear_cache ( void  )

Definition at line 52 of file vm_method.c.

References INC_GLOBAL_CONSTANT_STATE, INC_GLOBAL_METHOD_STATE, and rb_warning().

◆ rb_clear_constant_cache()

void rb_clear_constant_cache ( void  )

◆ rb_clear_method_cache_by_class()

void rb_clear_method_cache_by_class ( VALUE  )

◆ rb_cloexec_dup()

int rb_cloexec_dup ( int  oldfd)

◆ rb_cloexec_dup2()

int rb_cloexec_dup2 ( int  oldfd,
int  newfd 
)

Definition at line 251 of file io.c.

References dup2(), errno, O_CLOEXEC, and rb_maygvl_fd_fix_cloexec().

Referenced by io_reopen(), and rb_io_reopen().

◆ rb_cloexec_fcntl_dupfd()

int rb_cloexec_fcntl_dupfd ( int  fd,
int  minfd 
)

Definition at line 323 of file io.c.

References errno, F_DUPFD, fcntl(), and rb_maygvl_fd_fix_cloexec().

Referenced by rb_cloexec_dup().

◆ rb_cloexec_open()

int rb_cloexec_open ( const char *  pathname,
int  flags,
mode_t  mode 
)

◆ rb_cloexec_pipe()

int rb_cloexec_pipe ( int  fildes[2])

Definition at line 286 of file io.c.

References errno, O_CLOEXEC, and rb_maygvl_fd_fix_cloexec().

Referenced by rb_pipe().

◆ rb_close_before_exec()

void rb_close_before_exec ( int  lowfd,
int  maxhint,
VALUE  noclose_fds 
)

Referenced by rb_execarg_run_options().

◆ rb_cmpint()

int rb_cmpint ( VALUE  ,
VALUE  ,
VALUE   
)

◆ rb_Complex()

VALUE rb_Complex ( VALUE  ,
VALUE   
)

Definition at line 1339 of file complex.c.

References nucomp_s_convert(), and rb_cComplex.

Referenced by nurat_coerce().

◆ rb_complex_new()

VALUE rb_complex_new ( VALUE  ,
VALUE   
)

Definition at line 1325 of file complex.c.

References nucomp_s_canonicalize_internal(), and rb_cComplex.

Referenced by num_imaginary().

◆ rb_complex_polar()

VALUE rb_complex_polar ( VALUE  ,
VALUE   
)

Definition at line 1331 of file complex.c.

References f_complex_polar(), and rb_cComplex.

Referenced by read_comp().

◆ rb_complex_raw()

VALUE rb_complex_raw ( VALUE  ,
VALUE   
)

Definition at line 1319 of file complex.c.

References nucomp_s_new_internal(), and rb_cComplex.

Referenced by parser_set_number_literal().

◆ rb_const_defined()

int rb_const_defined ( VALUE  ,
ID   
)

◆ rb_const_defined_at()

int rb_const_defined_at ( VALUE  ,
ID   
)

◆ rb_const_defined_from()

int rb_const_defined_from ( VALUE  ,
ID   
)

Definition at line 2121 of file variable.c.

References FALSE, rb_const_defined_0(), and TRUE.

◆ rb_const_get()

VALUE rb_const_get ( VALUE  ,
ID   
)

◆ rb_const_get_at()

VALUE rb_const_get_at ( VALUE  ,
ID   
)

◆ rb_const_get_from()

VALUE rb_const_get_from ( VALUE  ,
ID   
)

Definition at line 1874 of file variable.c.

References FALSE, rb_const_get_0(), and TRUE.

◆ rb_const_list()

VALUE rb_const_list ( void *  )

◆ rb_const_remove()

VALUE rb_const_remove ( VALUE  ,
ID   
)

◆ rb_const_set()

void rb_const_set ( VALUE  ,
ID  ,
VALUE   
)

◆ rb_convert_type()

VALUE rb_convert_type ( VALUE  ,
int  ,
const char *  ,
const char *   
)

◆ rb_copy_generic_ivar()

void rb_copy_generic_ivar ( VALUE  ,
VALUE   
)

◆ rb_cstr2inum()

VALUE rb_cstr2inum ( const char *  ,
int   
)

Definition at line 4373 of file bignum.c.

References rb_cstr_to_inum().

Referenced by JSON_parse_integer().

◆ rb_cstr_to_dbl()

double rb_cstr_to_dbl ( const char *  ,
int   
)

◆ rb_cstr_to_inum()

VALUE rb_cstr_to_inum ( const char *  ,
int  ,
int   
)

◆ rb_cv_get()

VALUE rb_cv_get ( VALUE  ,
const char *   
)

Definition at line 2429 of file variable.c.

References name, rb_cvar_get(), rb_intern, rb_is_class_id(), and rb_name_error().

◆ rb_cv_set()

void rb_cv_set ( VALUE  ,
const char *  ,
VALUE   
)

Definition at line 2419 of file variable.c.

References name, rb_cvar_set(), rb_intern, rb_is_class_id(), rb_name_error(), and val.

◆ rb_cvar_defined()

VALUE rb_cvar_defined ( VALUE  ,
ID   
)

Definition at line 2411 of file variable.c.

References CVAR_LOOKUP, Qfalse, and Qtrue.

Referenced by rb_mod_cvar_defined(), and rb_mod_remove_cvar().

◆ rb_cvar_get()

VALUE rb_cvar_get ( VALUE  ,
ID   
)

◆ rb_cvar_set()

void rb_cvar_set ( VALUE  ,
ID  ,
VALUE   
)

◆ rb_dbl2big()

VALUE rb_dbl2big ( double  )

◆ rb_dbl_cmp()

VALUE rb_dbl_cmp ( double  ,
double   
)

Definition at line 1133 of file numeric.c.

References INT2FIX, isnan, and Qnil.

Referenced by flo_cmp().

◆ rb_define_alloc_func()

void rb_define_alloc_func ( VALUE  ,
rb_alloc_func_t   
)

◆ rb_define_class_variable()

void rb_define_class_variable ( VALUE  ,
const char *  ,
VALUE   
)

Definition at line 2439 of file variable.c.

References name, rb_cvar_set(), rb_intern, rb_is_class_id(), rb_name_error(), and val.

◆ rb_define_finalizer()

VALUE rb_define_finalizer ( VALUE  ,
VALUE   
)

Definition at line 1990 of file gc.c.

References define_final0(), should_be_callable(), and should_be_finalizable().

◆ rb_detach_process()

VALUE rb_detach_process ( rb_pid_t  pid)

◆ rb_dir_getwd()

VALUE rb_dir_getwd ( void  )

◆ rb_during_gc()

int rb_during_gc ( void  )

Definition at line 5201 of file gc.c.

References during_gc, objspace_and_reason::objspace, and rb_objspace.

◆ rb_enum_values_pack()

VALUE rb_enum_values_pack ( int  ,
const VALUE  
)

◆ rb_enumeratorize()

VALUE rb_enumeratorize ( VALUE  ,
VALUE  ,
int  ,
VALUE  
)

◆ rb_enumeratorize_with_size()

VALUE rb_enumeratorize_with_size ( VALUE  ,
VALUE  ,
int  ,
VALUE ,
rb_enumerator_size_func  
)

◆ rb_env_clear()

VALUE rb_env_clear ( void  )

Definition at line 3225 of file hash.c.

References env_delete(), env_keys(), envtbl, NIL_P, Qnil, RARRAY_AREF, RARRAY_LEN, rb_f_getenv(), and val.

Referenced by Init_Hash(), and rb_execarg_run_options().

◆ rb_env_path_tainted()

int rb_env_path_tainted ( void  )

Definition at line 2685 of file hash.c.

References getenv, PATH_ENV, path_tainted, and path_tainted_p().

Referenced by security().

◆ rb_eql()

int rb_eql ( VALUE  ,
VALUE   
)

Definition at line 100 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().

◆ rb_error_untrusted()

void rb_error_untrusted ( VALUE  )

Definition at line 2090 of file error.c.

◆ rb_eval_cmd()

VALUE rb_eval_cmd ( VALUE  ,
VALUE  ,
int   
)

◆ rb_exc_new()

VALUE rb_exc_new ( VALUE  ,
const char *  ,
long   
)

Definition at line 573 of file error.c.

References rb_funcall(), rb_intern, and rb_str_new().

Referenced by rb_exc_new_cstr(), rb_threadptr_raise(), and setup_exception().

◆ rb_exc_new_cstr()

VALUE rb_exc_new_cstr ( VALUE  ,
const char *   
)

Definition at line 579 of file error.c.

References rb_exc_new(), and strlen().

Referenced by exc_setup_cause().

◆ rb_exc_new_str()

VALUE rb_exc_new_str ( VALUE  ,
VALUE   
)

Definition at line 585 of file error.c.

References rb_funcall(), rb_intern, and StringValue.

Referenced by create_ip_exc(), ole_raise(), raise_from_check(), and raise_zlib_error().

◆ rb_exec_end_proc()

void rb_exec_end_proc ( void  )

◆ rb_exec_recursive()

VALUE rb_exec_recursive ( VALUE(*)(VALUE, VALUE, int)  ,
VALUE  ,
VALUE   
)

◆ rb_exec_recursive_outer()

VALUE rb_exec_recursive_outer ( VALUE(*)(VALUE, VALUE, int)  ,
VALUE  ,
VALUE   
)

Definition at line 5015 of file thread.c.

References exec_recursive_params::arg, exec_recursive(), func, and exec_recursive_params::obj.

Referenced by rb_hash().

◆ rb_exec_recursive_paired()

VALUE rb_exec_recursive_paired ( VALUE(*)(VALUE, VALUE, int)  ,
VALUE  ,
VALUE  ,
VALUE   
)

◆ rb_exec_recursive_paired_outer()

VALUE rb_exec_recursive_paired_outer ( VALUE(*)(VALUE, VALUE, int)  ,
VALUE  ,
VALUE  ,
VALUE   
)

Definition at line 5027 of file thread.c.

References exec_recursive_params::arg, exec_recursive(), func, exec_recursive_params::obj, and rb_obj_id().

Referenced by cmp_eq().

◆ rb_external_str_new()

VALUE rb_external_str_new ( const char *  ,
long   
)

◆ rb_external_str_new_cstr()

VALUE rb_external_str_new_cstr ( const char *  )

Definition at line 713 of file string.c.

References rb_default_external_encoding(), rb_external_str_new_with_enc(), and strlen().

Referenced by ruby_set_argv().

◆ rb_f_abort()

VALUE rb_f_abort ( int  ,
VALUE  
)

◆ rb_f_exec()

VALUE rb_f_exec ( int  ,
VALUE  
)

◆ rb_f_exit()

VALUE rb_f_exit ( int  ,
VALUE  
)

Definition at line 3712 of file process.c.

References argc, argv, exit_status_code(), EXIT_SUCCESS, rb_exit(), rb_scan_args(), and UNREACHABLE.

Referenced by Init_process().

◆ rb_f_global_variables()

VALUE rb_f_global_variables ( void  )

Definition at line 853 of file variable.c.

References buf, gvar_i(), ID2SYM, rb_ary_new(), rb_ary_push(), rb_global_tbl, rb_intern2(), and st_foreach_safe().

Referenced by Init_eval().

◆ rb_f_kill()

VALUE rb_f_kill ( int  ,
VALUE  
)

◆ rb_f_notimplement()

VALUE rb_f_notimplement ( int  argc,
VALUE argv,
VALUE  obj 
)

Definition at line 85 of file vm_method.c.

References rb_notimplement(), and UNREACHABLE.

Referenced by rb_add_method(), and rb_add_method_cfunc().

◆ rb_f_require()

VALUE rb_f_require ( VALUE  ,
VALUE   
)

Definition at line 817 of file load.c.

References rb_require_safe(), and rb_safe_level.

Referenced by Init_load().

◆ rb_f_sprintf()

VALUE rb_f_sprintf ( int  ,
const VALUE  
)

◆ rb_f_trace_var()

VALUE rb_f_trace_var ( int  ,
VALUE  
)

◆ rb_f_untrace_var()

VALUE rb_f_untrace_var ( int  ,
VALUE  
)

◆ rb_fd_fix_cloexec()

void rb_fd_fix_cloexec ( int  fd)

◆ rb_feature_provided()

int rb_feature_provided ( const char *  ,
const char **   
)

◆ rb_fiber_alive_p()

VALUE rb_fiber_alive_p ( VALUE  )

Definition at line 1533 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().

◆ rb_fiber_current()

VALUE rb_fiber_current ( void  )

◆ rb_fiber_new()

VALUE rb_fiber_new ( VALUE(*)(ANYARGS ,
VALUE   
)

Definition at line 1231 of file cont.c.

References fiber_alloc(), fiber_init(), func, rb_cFiber, and rb_proc_new().

Referenced by next_init().

◆ rb_fiber_resume()

VALUE rb_fiber_resume ( VALUE  fib,
int  argc,
VALUE args 
)

◆ rb_fiber_yield()

VALUE rb_fiber_yield ( int  argc,
VALUE args 
)

Definition at line 1505 of file cont.c.

References argc, argv, rb_fiber_transfer(), and return_fiber().

Referenced by next_i(), next_ii(), and rb_fiber_s_yield().

◆ rb_file_absolute_path()

VALUE rb_file_absolute_path ( VALUE  ,
VALUE   
)

Definition at line 3476 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().

◆ rb_file_directory_p()

VALUE rb_file_directory_p ( VALUE  ,
VALUE   
)

Definition at line 1216 of file file.c.

References Qfalse, Qtrue, rb_stat(), S_ISDIR, and stat.

Referenced by Init_Dir(), Init_File(), rb_dir_exists_p(), and rb_f_test().

◆ rb_file_dirname()

VALUE rb_file_dirname ( VALUE  fname)

◆ rb_file_expand_path()

VALUE rb_file_expand_path ( VALUE  ,
VALUE   
)

◆ rb_file_open()

VALUE rb_file_open ( const char *  ,
const char *   
)

◆ rb_file_open_str()

VALUE rb_file_open_str ( VALUE  ,
const char *   
)

◆ rb_file_s_absolute_path()

VALUE rb_file_s_absolute_path ( int  ,
VALUE  
)

Definition at line 3496 of file file.c.

References argc, argv, Qnil, rb_file_absolute_path(), and rb_scan_args().

Referenced by Init_File().

◆ rb_file_s_expand_path()

VALUE rb_file_s_expand_path ( int  ,
VALUE  
)

Definition at line 3463 of file file.c.

References argc, argv, Qnil, rb_file_expand_path(), and rb_scan_args().

Referenced by Init_File().

◆ rb_filesystem_str_new()

VALUE rb_filesystem_str_new ( const char *  ,
long   
)

Definition at line 731 of file string.c.

References rb_external_str_new_with_enc(), and rb_filesystem_encoding().

◆ rb_filesystem_str_new_cstr()

VALUE rb_filesystem_str_new_cstr ( const char *  )

◆ rb_find_file()

VALUE rb_find_file ( VALUE  )

Definition at line 5508 of file file.c.

References rb_find_file_safe(), and rb_safe_level.

Referenced by rb_f_load(), and rb_load().

◆ rb_find_file_ext()

int rb_find_file_ext ( VALUE ,
const char *const  
)

Definition at line 5437 of file file.c.

References rb_find_file_ext_safe(), and rb_safe_level.

◆ rb_find_file_ext_safe()

int rb_find_file_ext_safe ( VALUE ,
const char *const ,
int   
)

◆ rb_find_file_safe()

VALUE rb_find_file_safe ( VALUE  ,
int   
)

◆ rb_fix2str()

VALUE rb_fix2str ( VALUE  ,
int   
)

◆ rb_Float()

VALUE rb_Float ( VALUE  )

◆ rb_flt_rationalize()

VALUE rb_flt_rationalize ( VALUE  )

◆ rb_flt_rationalize_with_prec()

VALUE rb_flt_rationalize_with_prec ( VALUE  ,
VALUE   
)

Definition at line 2022 of file rational.c.

References f_abs, f_add(), f_eqeq_p(), f_sub(), f_to_r, nurat_rationalize_internal(), and rb_rational_new2.

Referenced by float_rationalize().

◆ rb_frame_callee()

ID rb_frame_callee ( void  )

◆ rb_frame_method_id_and_class()

int rb_frame_method_id_and_class ( ID idp,
VALUE klassp 
)

Definition at line 1706 of file vm.c.

References GET_THREAD(), and rb_thread_method_id_and_class().

◆ rb_frame_this_func()

ID rb_frame_this_func ( void  )

◆ rb_free_generic_ivar()

void rb_free_generic_ivar ( VALUE  )

Definition at line 1030 of file variable.c.

References generic_iv_tbl, key, st_data_t, st_delete(), and st_free_table().

Referenced by obj_free(), and rb_copy_generic_ivar().

◆ rb_frozen_class_p()

void rb_frozen_class_p ( VALUE  )

◆ rb_gc()

void rb_gc ( void  )

◆ rb_gc_call_finalizer_at_exit()

void rb_gc_call_finalizer_at_exit ( void  )

Definition at line 2144 of file gc.c.

References rb_objspace_call_finalizer().

Referenced by ruby_finalize_1().

◆ rb_gc_copy_finalizer()

void rb_gc_copy_finalizer ( VALUE  ,
VALUE   
)

Definition at line 1998 of file gc.c.

References finalizer_table, FL_FINALIZE, FL_SET, FL_TEST, rb_objspace, st_data_t, st_insert(), and st_lookup().

Referenced by init_copy().

◆ rb_gc_count()

size_t rb_gc_count ( void  )

◆ rb_gc_disable()

VALUE rb_gc_disable ( void  )

◆ rb_gc_enable()

VALUE rb_gc_enable ( void  )

◆ rb_gc_finalize_deferred()

void rb_gc_finalize_deferred ( void  )

Definition at line 2112 of file gc.c.

References gc_finalize_deferred().

◆ rb_gc_force_recycle()

void rb_gc_force_recycle ( VALUE  )

◆ rb_gc_latest_gc_info()

VALUE rb_gc_latest_gc_info ( VALUE  )

◆ rb_gc_mark()

void rb_gc_mark ( VALUE  )

◆ rb_gc_mark_locations()

void rb_gc_mark_locations ( VALUE ,
VALUE  
)

Definition at line 3314 of file gc.c.

References gc_mark_locations(), and heap_page::start.

◆ rb_gc_mark_maybe()

void rb_gc_mark_maybe ( VALUE  )

Definition at line 3540 of file gc.c.

References gc_mark_maybe().

Referenced by gc_mark_roots(), JSON_mark(), mark_global_entry(), val_marker(), and var_marker().

◆ rb_gc_start()

VALUE rb_gc_start ( void  )

Definition at line 5186 of file gc.c.

References Qnil, and rb_gc().

◆ rb_gc_stat()

size_t rb_gc_stat ( VALUE  )

Definition at line 5558 of file gc.c.

References gc_stat_internal(), key, and SYMBOL_P.

◆ rb_generic_ivar_table()

struct st_table* rb_generic_ivar_table ( VALUE  )

Definition at line 907 of file variable.c.

References FL_EXIVAR, FL_TEST, generic_iv_tbl, st_data_t, and st_lookup().

◆ rb_genrand_int32()

unsigned int rb_genrand_int32 ( void  )

Definition at line 251 of file random.c.

References default_mt(), and genrand_int32().

◆ rb_genrand_real()

double rb_genrand_real ( void  )

Definition at line 258 of file random.c.

References default_mt(), and genrand_real().

◆ rb_genrand_ulong_limited()

unsigned long rb_genrand_ulong_limited ( unsigned long  i)

Definition at line 789 of file random.c.

References default_mt(), and limited_rand().

Referenced by bary_sparse_p().

◆ rb_get_alloc_func()

rb_alloc_func_t rb_get_alloc_func ( VALUE  )

◆ rb_get_argv()

VALUE rb_get_argv ( void  )

Definition at line 11670 of file io.c.

References ARGF.

◆ rb_get_values_at()

VALUE rb_get_values_at ( VALUE  ,
long  ,
int  ,
VALUE ,
VALUE(*)(VALUE, long)   
)

◆ rb_gets()

VALUE rb_gets ( void  )

◆ rb_hash()

VALUE rb_hash ( VALUE  )

◆ rb_Hash()

VALUE rb_Hash ( VALUE  )

◆ rb_hash_aref()

VALUE rb_hash_aref ( VALUE  ,
VALUE   
)

◆ rb_hash_aset()

VALUE rb_hash_aset ( VALUE  ,
VALUE  ,
VALUE   
)

Definition at line 1402 of file hash.c.

References hash(), hash_aset(), hash_aset_str(), hash_tbl(), identhash, key, 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(), ary_add_hash(), ary_add_hash_by(), cbsubst_table_setup(), cdhash_set_label_i(), check_exec_fds(), check_exec_fds_1(), check_exec_options_i_extract(), collect_values_of_values(), core_hash_merge(), count_nodes(), count_objects(), count_objects_size(), coverage(), coverage_result_i(), create_encoding_table_core(), cState_to_h(), cto_i(), date_zone_to_diff(), debug_lines(), enum_to_h_i(), env_select(), env_to_hash(), fdbm_invert(), fdbm_to_hash(), fgdbm_invert(), fgdbm_to_hash(), fsdbm_invert(), fsdbm_to_hash(), gc_profile_record_get(), group_by_i(), Init_GC(), Init_Hash(), Init_ossl_asn1(), Init_ossl_x509name(), io_s_write(), iseq_data_to_ary(), JSON_parse_object(), mString_to_json_raw_object(), ole_const_load(), ossl_dh_get_params(), ossl_dsa_get_params(), ossl_rsa_get_params(), ossl_sslctx_get_session_cache_stats(), pruby_register_instance(), r_object0(), rb_ary_to_h(), 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_state_ivars(), set_zero(), set_zero_i(), sig_list(), tk_install_cmd_core(), to_strkey(), tr_setup_table(), tr_trans(), update_encoding_table(), and when_vals().

◆ rb_hash_clear()

VALUE rb_hash_clear ( VALUE  )

Definition at line 1333 of file hash.c.

References clear_i(), hash(), rb_hash_foreach(), rb_hash_modify_check(), RHASH, RHASH_ITER_LEV, and st_clear().

Referenced by Init_Hash(), and rb_hash_replace().

◆ rb_hash_delete()

VALUE rb_hash_delete ( VALUE  ,
VALUE   
)

◆ rb_hash_delete_if()

VALUE rb_hash_delete_if ( VALUE  )

◆ rb_hash_dup()

VALUE rb_hash_dup ( VALUE  )

Definition at line 329 of file hash.c.

References hash(), rb_hash_dup_empty(), RHASH, RHASH_EMPTY_P, and st_copy().

Referenced by io_s_write(), and rb_using_refinement().

◆ rb_hash_end()

st_index_t rb_hash_end ( st_index_t  )

◆ rb_hash_fetch()

VALUE rb_hash_fetch ( VALUE  ,
VALUE   
)

Definition at line 791 of file hash.c.

References hash(), key, and rb_hash_fetch_m().

◆ rb_hash_foreach()

void rb_hash_foreach ( VALUE  ,
int(*)(ANYARGS ,
VALUE   
)

◆ rb_hash_freeze()

VALUE rb_hash_freeze ( VALUE  )

Definition at line 62 of file hash.c.

References hash(), and rb_obj_freeze().

Referenced by rb_coverage_result(), and rb_econv_prepare_options().

◆ rb_hash_lookup()

VALUE rb_hash_lookup ( VALUE  ,
VALUE   
)

Definition at line 728 of file hash.c.

References hash(), key, Qnil, and rb_hash_lookup2().

◆ rb_hash_lookup2()

VALUE rb_hash_lookup2 ( VALUE  ,
VALUE  ,
VALUE   
)

◆ rb_hash_new()

VALUE rb_hash_new ( void  )

Definition at line 307 of file hash.c.

References hash_alloc(), and rb_cHash.

Referenced by allocate_cbsubst_info(), ary_tmp_hash_new(), check_exec_fds(), check_exec_options_i_extract(), core_hash_from_ary(), count_nodes(), count_objects(), count_objects_size(), count_tdata_objects(), create_encoding_table_core(), cState_to_h(), date_s__strptime_internal(), date_zone_to_diff(), enum_group_by(), enum_to_h(), env_select(), env_to_hash(), 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(), hidden_identity_hash_new(), ident_hash_new(), Init_BareVM(), Init_GC(), Init_ossl_asn1(), Init_ossl_x509name(), Init_sizeof(), Init_tkutil(), Init_VM(), io_s_write(), iseq_compile_each(), iseq_data_to_ary(), JSON_parse_object(), make_compile_option_value(), mString_to_json_raw_object(), nil_to_h(), ole_const_load(), ossl_dh_get_params(), ossl_dsa_get_params(), ossl_rsa_get_params(), ossl_sslctx_get_session_cache_stats(), pruby_init(), r_object0(), rb_ary_to_h(), rb_coverage_result(), rb_coverage_start(), rb_econv_prepare_options(), rb_enc_aliases(), rb_execarg_fixup(), rb_Hash(), rb_hash_invert(), rb_hash_reject(), rb_hash_select(), rb_hash_to_h(), rb_inflate_s_allocate(), rb_realpath_internal(), rb_reg_named_captures(), rb_struct_to_h(), rb_uninterruptible(), reachable_object_from_root_i(), reachable_objects_from_root(), recursive_push(), ripper_init_eventids1_table(), ripper_init_eventids2_table(), ruby_thread_init(), separate_symbol(), sig_list(), tk_symbolkey2str(), tr_setup_table(), tr_trans(), vm_callee_setup_keyword_arg(), vm_default_params(), and vm_stat().

◆ rb_hash_set_ifnone()

VALUE rb_hash_set_ifnone ( VALUE  hash,
VALUE  ifnone 
)

Definition at line 73 of file hash.c.

References hash(), RB_OBJ_WRITE, and RHASH.

◆ rb_hash_start()

st_index_t rb_hash_start ( st_index_t  )

◆ rb_hash_tbl()

struct st_table* rb_hash_tbl ( VALUE  )

Definition at line 353 of file hash.c.

References hash(), hash_tbl(), and OBJ_WB_UNPROTECT.

Referenced by collect_values_of_values().

◆ rb_hash_uint()

st_index_t rb_hash_uint ( st_index_t  ,
st_index_t   
)

◆ rb_hash_uint32()

st_index_t rb_hash_uint32 ( st_index_t  ,
uint32_t   
)

◆ rb_hash_update_by()

VALUE rb_hash_update_by ( VALUE  hash1,
VALUE  hash2,
rb_hash_update_func func 
)

◆ rb_id_attrset()

ID rb_id_attrset ( ID  )

◆ rb_inspect()

VALUE rb_inspect ( VALUE  )

◆ rb_Integer()

VALUE rb_Integer ( VALUE  )

◆ rb_integer_pack()

int rb_integer_pack ( VALUE  val,
void *  words,
size_t  numwords,
size_t  wordsize,
size_t  nails,
int  flags 
)

◆ rb_integer_unpack()

VALUE rb_integer_unpack ( const void *  words,
size_t  numwords,
size_t  wordsize,
size_t  nails,
int  flags 
)

◆ rb_interrupt()

void rb_interrupt ( void  )

Definition at line 585 of file eval.c.

References rb_eInterrupt, and rb_raise().

Referenced by rb_signal_exec().

◆ rb_io_addstr()

VALUE rb_io_addstr ( VALUE  ,
VALUE   
)

Definition at line 1449 of file io.c.

References rb_io_write(), and binwrite_arg::str.

Referenced by Init_IO().

◆ rb_io_ascii8bit_binmode()

VALUE rb_io_ascii8bit_binmode ( VALUE  )

Definition at line 4748 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().

◆ rb_io_binmode()

VALUE rb_io_binmode ( VALUE  )

◆ rb_io_close()

VALUE rb_io_close ( VALUE  )

◆ rb_io_eof()

VALUE rb_io_eof ( VALUE  )

◆ rb_io_fdopen()

VALUE rb_io_fdopen ( int  ,
int  ,
const char *   
)

Definition at line 7247 of file io.c.

References prep_io(), rb_cFile, rb_cIO, and rb_io_oflags_fmode().

Referenced by load_file_internal().

◆ rb_io_flush()

VALUE rb_io_flush ( VALUE  )

◆ rb_io_get_io()

VALUE rb_io_get_io ( VALUE  )

Definition at line 627 of file io.c.

◆ rb_io_getbyte()

VALUE rb_io_getbyte ( VALUE  )

◆ rb_io_gets()

VALUE rb_io_gets ( VALUE  )

Definition at line 3189 of file io.c.

References rb_default_rs, and rb_io_getline_1().

Referenced by argf_getline(), lex_io_gets(), load_file_internal(), and rb_gets().

◆ rb_io_print()

VALUE rb_io_print ( int  ,
VALUE ,
VALUE   
)

Definition at line 6846 of file io.c.

References argc, argv, NIL_P, Qnil, rb_io_write(), rb_lastline_get(), rb_output_fs, and rb_output_rs.

Referenced by Init_IO(), and rb_f_print().

◆ rb_io_printf()

VALUE rb_io_printf ( int  ,
VALUE ,
VALUE   
)

Definition at line 6787 of file io.c.

References argc, argv, Qnil, rb_f_sprintf(), and rb_io_write().

Referenced by Init_IO().

◆ rb_io_puts()

VALUE rb_io_puts ( int  ,
VALUE ,
VALUE   
)

◆ rb_io_ungetbyte()

VALUE rb_io_ungetbyte ( VALUE  ,
VALUE   
)

◆ rb_io_ungetc()

VALUE rb_io_ungetc ( VALUE  ,
VALUE   
)

◆ rb_io_write()

VALUE rb_io_write ( VALUE  ,
VALUE   
)

◆ rb_is_absolute_path()

int rb_is_absolute_path ( const char *  )

◆ rb_is_attrset_id()

int rb_is_attrset_id ( ID  )

Definition at line 17336 of file ripper.c.

References is_attrset_id.

◆ rb_is_class_id()

int rb_is_class_id ( ID  )

◆ rb_is_const_id()

int rb_is_const_id ( ID  )

◆ rb_is_global_id()

int rb_is_global_id ( ID  )

Definition at line 17324 of file ripper.c.

References is_global_id.

◆ rb_is_instance_id()

int rb_is_instance_id ( ID  )

◆ rb_is_junk_id()

int rb_is_junk_id ( ID  )

Definition at line 17348 of file ripper.c.

References is_junk_id.

◆ rb_is_local_id()

int rb_is_local_id ( ID  )

Definition at line 17342 of file ripper.c.

References is_local_id.

Referenced by check_local_id(), collect_local_variables_in_iseq(), inspect_struct(), and rb_is_attr_id().

◆ rb_ivar_count()

st_index_t rb_ivar_count ( VALUE  )

◆ rb_ivar_defined()

VALUE rb_ivar_defined ( VALUE  ,
ID   
)

◆ rb_ivar_foreach()

void rb_ivar_foreach ( VALUE  ,
int(*)(ANYARGS ,
st_data_t   
)

◆ rb_ivar_get()

VALUE rb_ivar_get ( VALUE  ,
ID   
)

◆ rb_ivar_set()

VALUE rb_ivar_set ( VALUE  ,
ID  ,
VALUE   
)

Definition at line 1133 of file variable.c.

References ALLOC_N, st_table::as, BUILTIN_TYPE, generic_ivar_set(), MEMCPY, st_table::num_entries, Qundef, rb_check_frozen, rb_obj_class(), RB_OBJ_WRITE, rb_st_insert_id_and_value(), RBASIC, RCLASS_IV_INDEX_TBL, RCLASS_IV_TBL, REALLOC_N, ROBJECT, ROBJECT_EMBED, ROBJECT_EMBED_LEN_MAX, ROBJECT_IV_INDEX_TBL, ROBJECT_IVPTR, ROBJECT_NUMIV, SPECIAL_CONST_P, st_add_direct(), st_data_t, st_init_numtable(), st_lookup(), T_CLASS, T_MODULE, T_OBJECT, and val.

Referenced by add_event_call_back(), ary2list(), ary2list2(), cbsubst_initialize(), copy_ivar_i(), create_encoding_table_core(), create_ip_exc(), cState_aset(), enc_set_index(), enum_chunk(), enum_slice_before(), enumerable_lazy(), eval_string_with_cref(), exc_setup_cause(), fev_initialize(), fev_set_handler(), gzfile_raise(), Init_md5(), Init_rmd160(), Init_sha1(), initialize_params(), int_ossl_asn1_decode0_prim(), lazy_drop_func(), lazy_drop_while_func(), lazy_initialize(), lazy_set_method(), lazy_take_func(), lazy_zip_arrays_func(), lazy_zip_func(), lib_fromUTF8_core(), lib_split_tklist_core(), lib_toUTF8_core(), lib_UTF_backslash_core(), make_econv_exception(), next_i(), nucomp_marshal_load(), nurat_marshal_load(), ole_method_params(), ole_variables(), olemethod_set_member(), oleparam_ole_param_from_index(), oletype_set_member(), ossl_sslctx_session_get_cb(), ossl_sslctx_session_new_cb(), ossl_start_ssl(), parse_main(), pipe_open(), r_ivar(), raise_loaderror(), range_dumper(), rb_class2name(), rb_class_path(), rb_inflate_s_allocate(), rb_io_init_copy(), rb_iv_set(), rb_mod_refine(), rb_name_class(), rb_obj_ivar_set(), rb_set_class_path(), rb_set_class_path_string(), readline_s_set_completion_case_fold(), readline_s_set_completion_proc(), ruby_init_loadpath_safe(), ruby_thread_init(), set_strpath(), setup_struct(), sockopt_initialize(), struct_define_without_accessor(), time_mdump(), time_mload(), vm_call0_body(), and vm_setivar().

◆ rb_last_status_get()

VALUE rb_last_status_get ( void  )

◆ rb_last_status_set()

void rb_last_status_set ( int  status,
rb_pid_t  pid 
)

◆ rb_lastline_get()

VALUE rb_lastline_get ( void  )

Definition at line 959 of file vm.c.

References vm_svar_get().

Referenced by Init_IO(), rb_io_print(), rb_reg_match2(), and uscore_get().

◆ rb_lastline_set()

void rb_lastline_set ( VALUE  )

◆ rb_load()

void rb_load ( VALUE  ,
int   
)

Definition at line 648 of file load.c.

References FilePathValue, load_failed(), rb_find_file(), and rb_load_internal().

Referenced by rb_load_protect().

◆ rb_load_file()

void* rb_load_file ( const char *  )

◆ rb_load_file_str()

void* rb_load_file_str ( VALUE  )

Definition at line 1776 of file ruby.c.

References cmdline_options_init(), load_file(), and rb_parser_new().

Referenced by rb_load_file(), and rb_load_internal0().

◆ rb_load_protect()

void rb_load_protect ( VALUE  ,
int  ,
int *   
)

Definition at line 656 of file load.c.

References EXEC_TAG, POP_TAG, PUSH_TAG, and rb_load().

◆ rb_locale_str_new()

VALUE rb_locale_str_new ( const char *  ,
long   
)

Definition at line 719 of file string.c.

References rb_external_str_new_with_enc(), and rb_locale_encoding().

Referenced by env_str_new().

◆ rb_locale_str_new_cstr()

VALUE rb_locale_str_new_cstr ( const char *  )

◆ rb_make_backtrace()

VALUE rb_make_backtrace ( void  )

Definition at line 817 of file vm_backtrace.c.

Referenced by parser_set_encode().

◆ rb_make_exception()

VALUE rb_make_exception ( int  ,
VALUE  
)

Definition at line 682 of file eval.c.

References argc, argv, make_exception(), and TRUE.

Referenced by parser_set_encode(), rb_f_raise(), and rb_threadptr_raise().

◆ rb_mark_hash()

void rb_mark_hash ( struct st_table )

Definition at line 3384 of file gc.c.

References mark_hash().

Referenced by Init_win32ole(), mark_dump_arg(), and mark_load_arg().

◆ rb_mark_set()

void rb_mark_set ( struct st_table )

Definition at line 3360 of file gc.c.

References mark_set().

Referenced by mark_dump_arg().

◆ rb_mark_tbl()

void rb_mark_tbl ( struct st_table )

◆ rb_marshal_define_compat()

void rb_marshal_define_compat ( VALUE  newclass,
VALUE  oldclass,
VALUE(*)(VALUE dumper,
VALUE(*)(VALUE, VALUE loader 
)

◆ rb_marshal_dump()

VALUE rb_marshal_dump ( VALUE  ,
VALUE   
)

Definition at line 2157 of file marshal.c.

References argc, argv, marshal_dump(), and NIL_P.

◆ rb_marshal_load()

VALUE rb_marshal_load ( VALUE  )

Definition at line 2169 of file marshal.c.

References marshal_load().

Referenced by date_s__load().

◆ rb_match_busy()

void rb_match_busy ( VALUE  )

Definition at line 1246 of file re.c.

Referenced by date__strptime_internal(), nucomp_s_convert(), and nurat_s_convert().

◆ rb_mem_clear()

void rb_mem_clear ( register VALUE ,
register  long 
)

Definition at line 35 of file array.c.

References Qnil, and size.

Referenced by ary_mem_clear(), rb_struct_initialize_m(), and struct_alloc().

◆ rb_memcicmp()

int rb_memcicmp ( const void *  ,
const void *  ,
long   
)

Definition at line 80 of file re.c.

Referenced by parser_encode_length(), and rb_file_identical_p().

◆ rb_memhash()

st_index_t rb_memhash ( const void *  ptr,
long  len 
)

◆ rb_method_basic_definition_p()

int rb_method_basic_definition_p ( VALUE  ,
ID   
)

◆ rb_method_boundp()

int rb_method_boundp ( VALUE  ,
ID  ,
int   
)

◆ rb_method_call()

VALUE rb_method_call ( int  ,
VALUE ,
VALUE   
)

Definition at line 1791 of file proc.c.

References argc, argv, Qnil, rb_block_given_p(), rb_block_proc(), and rb_method_call_with_block().

Referenced by Init_Proc(), and method_fallback().

◆ rb_method_call_with_block()

VALUE rb_method_call_with_block ( int  ,
VALUE ,
VALUE  ,
VALUE   
)

◆ rb_mod_class_variables()

VALUE rb_mod_class_variables ( int  ,
VALUE ,
VALUE   
)

Definition at line 2531 of file variable.c.

References argc, argv, cvar_list(), mod, mod_cvar_at(), mod_cvar_of(), Qtrue, rb_scan_args(), and RTEST.

Referenced by Init_Object().

◆ rb_mod_const_at()

void* rb_mod_const_at ( VALUE  ,
void *   
)

Definition at line 2004 of file variable.c.

References mod, RCLASS_CONST_TBL, st_data_t, st_foreach_safe(), st_init_numtable(), and sv_i().

Referenced by rb_mod_const_of(), and rb_mod_s_constants().

◆ rb_mod_const_missing()

VALUE rb_mod_const_missing ( VALUE  ,
VALUE   
)

Definition at line 1519 of file variable.c.

References name, rb_to_id(), rb_vm_pop_cfunc_frame(), uninitialized_constant(), and UNREACHABLE.

Referenced by Init_Object().

◆ rb_mod_const_of()

void* rb_mod_const_of ( VALUE  ,
void *   
)

Definition at line 2017 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().

◆ rb_mod_constants()

VALUE rb_mod_constants ( int  ,
VALUE ,
VALUE   
)

◆ rb_mod_method_arity()

int rb_mod_method_arity ( VALUE  ,
ID   
)

Definition at line 2111 of file proc.c.

References METHOD::me, mod, original_method_entry(), and rb_method_entry_arity().

Referenced by rb_obj_method_arity().

◆ rb_mod_module_eval()

VALUE rb_mod_module_eval ( int  ,
VALUE ,
VALUE   
)

Definition at line 1684 of file vm_eval.c.

References argc, argv, mod, and specific_eval().

Referenced by Init_vm_eval(), and rb_struct_s_def().

◆ rb_mod_module_exec()

VALUE rb_mod_module_exec ( int  ,
VALUE ,
VALUE   
)

Definition at line 1712 of file vm_eval.c.

References argc, argv, mod, rb_ary_new4, and yield_under().

Referenced by Init_vm_eval(), and rb_mod_initialize().

◆ rb_mod_name()

VALUE rb_mod_name ( VALUE  )

Definition at line 206 of file variable.c.

References classname(), mod, NIL_P, fc_result::path, and rb_str_dup().

Referenced by Init_Object().

◆ rb_mod_remove_const()

VALUE rb_mod_remove_const ( VALUE  ,
VALUE   
)

◆ rb_mod_remove_cvar()

VALUE rb_mod_remove_cvar ( VALUE  ,
VALUE   
)

◆ rb_must_asciicompat()

void rb_must_asciicompat ( VALUE  )

◆ rb_mutex_lock()

VALUE rb_mutex_lock ( VALUE  mutex)

◆ rb_mutex_locked_p()

VALUE rb_mutex_locked_p ( VALUE  mutex)

Definition at line 4267 of file thread.c.

References GetMutexPtr, Qfalse, Qtrue, and rb_mutex_struct::th.

Referenced by Init_Thread().

◆ rb_mutex_new()

VALUE rb_mutex_new ( void  )

Definition at line 4255 of file thread.c.

References mutex_alloc(), and rb_cMutex.

Referenced by io_binwrite().

◆ rb_mutex_sleep()

VALUE rb_mutex_sleep ( VALUE  self,
VALUE  timeout 
)

◆ rb_mutex_synchronize()

VALUE rb_mutex_synchronize ( VALUE  mutex,
VALUE(*)(VALUE arg)  func,
VALUE  arg 
)

◆ rb_mutex_trylock()

VALUE rb_mutex_trylock ( VALUE  mutex)

◆ rb_mutex_unlock()

VALUE rb_mutex_unlock ( VALUE  mutex)

◆ rb_name_class()

void rb_name_class ( VALUE  ,
ID   
)

Definition at line 385 of file variable.c.

References classid, ID2SYM, fc_result::klass, and rb_ivar_set().

Referenced by boot_defclass(), rb_define_class(), and rb_define_module_id().

◆ rb_num2fix()

VALUE rb_num2fix ( VALUE  )

Definition at line 2282 of file numeric.c.

References FIXABLE, FIXNUM_P, LONG2FIX, rb_eRangeError, rb_num2long(), rb_raise(), and val.

◆ rb_num_coerce_bin()

VALUE rb_num_coerce_bin ( VALUE  ,
VALUE  ,
ID   
)

◆ rb_num_coerce_bit()

VALUE rb_num_coerce_bit ( VALUE  ,
VALUE  ,
ID   
)

Definition at line 3319 of file numeric.c.

References bit_coerce(), func, rb_funcall(), and TRUE.

Referenced by rb_big_and(), rb_big_or(), and rb_big_xor().

◆ rb_num_coerce_cmp()

VALUE rb_num_coerce_cmp ( VALUE  ,
VALUE  ,
ID   
)

◆ rb_num_coerce_relop()

VALUE rb_num_coerce_relop ( VALUE  ,
VALUE  ,
ID   
)

◆ rb_obj_alloc()

VALUE rb_obj_alloc ( VALUE  )

◆ rb_obj_as_string()

VALUE rb_obj_as_string ( VALUE  )

◆ rb_obj_call_init()

void rb_obj_call_init ( VALUE  ,
int  ,
VALUE  
)

◆ rb_obj_class()

VALUE rb_obj_class ( VALUE  )

Definition at line 226 of file object.c.

References CLASS_OF, and rb_class_real().

Referenced by ary_make_shared_copy(), BigDecimal_new(), cannot_be_coerced_into_BigDecimal(), cbsubst_initialize(), coerce_failed(), copy_path_class(), d_lite_plus(), dup_obj(), dup_obj_as_complex(), enc_inspect(), encoded_dup(), exc_equal(), extract_user_token(), get_new_timeval(), get_timeval(), Init_Object(), inspect_enumerator(), inspect_struct(), io_reopen(), ip_eval(), ip_invoke_with_position(), mString_to_json_raw_object(), mSyslog_log(), name_err_mesg_equal(), not_encoding(), ossl_asn1_default_tag(), ossl_cipher_init(), ossl_x509_inspect(), 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(), random_equal(), rb_ary_slice_bang(), rb_ary_subseq(), rb_ary_times(), rb_ary_to_a(), rb_ary_uniq(), 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_dlptr_inspect(), rb_fiddle_ptr_inspect(), rb_hash_aset(), rb_hash_dup_empty(), rb_hash_to_h(), rb_ivar_set(), rb_obj_alloc(), rb_obj_clone(), rb_obj_dup(), rb_obj_init_copy(), rb_obj_is_instance_of(), rb_profile_frame_classpath(), rb_stat_cmp(), rb_str_dup(), rb_str_new_frozen(), rb_str_new_shared(), rb_str_new_with_class(), rb_str_substr(), 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_tmp_class_path(), str_byte_substr(), str_gsub(), strscan_inspect(), syserr_initialize(), take_items(), tcl_protect_core(), time_dup(), tk_funcall(), undumpable(), and vm_search_super_method().

◆ rb_obj_clone()

VALUE rb_obj_clone ( VALUE  )

◆ rb_obj_dup()

VALUE rb_obj_dup ( VALUE  )

◆ rb_obj_freeze()

VALUE rb_obj_freeze ( VALUE  )

◆ rb_obj_frozen_p()

VALUE rb_obj_frozen_p ( VALUE  )

Definition at line 1096 of file object.c.

References immediate_frozen_tbl, OBJ_FROZEN, Qfalse, Qtrue, SPECIAL_CONST_P, and st_lookup().

Referenced by dump_object(), generic_ivar_set(), and Init_Object().

◆ rb_obj_id()

VALUE rb_obj_id ( VALUE  )

◆ rb_obj_init_copy()

VALUE rb_obj_init_copy ( VALUE  ,
VALUE   
)

Definition at line 422 of file object.c.

References rb_check_frozen, rb_check_trusted, rb_eTypeError, rb_obj_class(), rb_raise(), and TYPE.

Referenced by Init_Object().

◆ rb_obj_instance_eval()

VALUE rb_obj_instance_eval ( int  ,
VALUE ,
VALUE   
)

◆ rb_obj_instance_exec()

VALUE rb_obj_instance_exec ( int  ,
VALUE ,
VALUE   
)

◆ rb_obj_instance_variables()

VALUE rb_obj_instance_variables ( VALUE  )

Definition at line 1371 of file variable.c.

References ivar_i(), rb_ary_new(), and rb_ivar_foreach().

◆ rb_obj_is_instance_of()

VALUE rb_obj_is_instance_of ( VALUE  ,
VALUE   
)

◆ rb_obj_is_kind_of()

VALUE rb_obj_is_kind_of ( VALUE  ,
VALUE   
)

Definition at line 646 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_type_val2variant(), cState_from_state_s(), discrete_object_p(), encoding_table_get_name_core(), encoding_table_get_obj_core(), error_handle(), ev_advise(), EVENTSINK_Invoke(), f_kind_of_p(), fole_s_const_load(), fole_s_show_help(), folemethod_initialize(), foleparam_initialize(), get_eval_string_core(), GetBNPtr(), gzfile_read_raw_rescue(), host_str(), Init_Object(), ip_eval(), ip_invoke_with_position(), ip_is_slave_of_p(), ip_rbTkWaitCommand(), ip_rbUpdateCommand(), ip_rbVwaitCommand(), linear_object_p(), make_exception(), ole_invoke(), ole_val2variant(), os_obj_of_i(), ossl_asn1cons_to_der(), ossl_asn1data_to_der(), ossl_bn_coerce(), ossl_bn_initialize(), parse(), path_cmp(), path_eq(), pending_exception_check0(), pending_exception_check1(), range_eq(), range_eql(), range_max(), range_size(), range_step(), range_step_size(), rb_ary_bsearch(), rb_check_to_float(), rb_check_to_integer(), rb_digest_instance_equal(), rb_dlptr2cptr(), rb_dlptr_aset(), rb_dlptr_cmp(), rb_dlptr_eql(), rb_dlptr_s_to_ptr(), 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_float(), rb_to_integer(), ruby_cleanup(), setup_exception(), syserr_eqq(), tcl_protect_core(), thread_start_func_2(), tk_funcall(), total_i(), umethod_bind(), vm_call_method(), and vm_search_super_method().

◆ rb_obj_is_method()

VALUE rb_obj_is_method ( VALUE  )

◆ rb_obj_is_proc()

VALUE rb_obj_is_proc ( VALUE  )

◆ rb_obj_method()

VALUE rb_obj_method ( VALUE  ,
VALUE   
)

Definition at line 1450 of file proc.c.

References CLASS_OF, FALSE, mnew(), rb_check_id(), rb_cMethod, and rb_method_name_error().

Referenced by Init_Proc(), and wmap_allocate().

◆ rb_obj_method_arity()

int rb_obj_method_arity ( VALUE  ,
ID   
)

Definition at line 2119 of file proc.c.

References CLASS_OF, and rb_mod_method_arity().

Referenced by rb_obj_respond_to().

◆ rb_obj_remove_instance_variable()

VALUE rb_obj_remove_instance_variable ( VALUE  ,
VALUE   
)

◆ rb_obj_respond_to()

int rb_obj_respond_to ( VALUE  ,
ID  ,
int   
)

◆ rb_obj_taint()

VALUE rb_obj_taint ( VALUE  )

◆ rb_obj_tainted()

VALUE rb_obj_tainted ( VALUE  )

Definition at line 939 of file object.c.

References OBJ_TAINTED, Qfalse, and Qtrue.

Referenced by Init_Object(), and rb_obj_untrusted().

◆ rb_obj_trust()

VALUE rb_obj_trust ( VALUE  )

Definition at line 1034 of file object.c.

References rb_obj_untaint(), and rb_warning().

Referenced by Init_Object().

◆ rb_obj_untaint()

VALUE rb_obj_untaint ( VALUE  )

Definition at line 987 of file object.c.

References FL_TAINT, FL_UNSET, OBJ_TAINTED, rb_check_frozen, and rb_secure().

Referenced by Init_Object(), path_untaint(), rb_obj_trust(), and time_zone().

◆ rb_obj_untrust()

VALUE rb_obj_untrust ( VALUE  )

Definition at line 1019 of file object.c.

References rb_obj_taint(), and rb_warning().

Referenced by Init_Object(), and tk_obj_untrust().

◆ rb_obj_untrusted()

VALUE rb_obj_untrusted ( VALUE  )

Definition at line 1005 of file object.c.

References rb_obj_tainted(), and rb_warning().

Referenced by Init_Object().

◆ rb_path2class()

VALUE rb_path2class ( const char *  )

◆ rb_path_check()

int rb_path_check ( const char *  )

Definition at line 5361 of file file.c.

References path_check_0(), PATH_SEP_CHAR, rb_str_new(), strchr(), strlen(), and TRUE.

Referenced by path_tainted_p().

◆ rb_path_to_class()

VALUE rb_path_to_class ( VALUE  )

◆ rb_pipe()

int rb_pipe ( int *  pipes)

Definition at line 5679 of file io.c.

References errno, rb_cloexec_pipe(), rb_gc(), and rb_update_max_fd().

Referenced by pipe_open(), and rb_io_s_pipe().

◆ rb_proc_arity()

int rb_proc_arity ( VALUE  )

◆ rb_proc_call()

VALUE rb_proc_call ( VALUE  ,
VALUE   
)

◆ rb_proc_call_with_block()

VALUE rb_proc_call_with_block ( VALUE  ,
int  argc,
const VALUE argv,
VALUE   
)

◆ rb_proc_exec()

int rb_proc_exec ( const char *  )

Definition at line 1359 of file process.c.

References after_exec(), before_exec(), preserving_errno, proc_exec_sh(), and Qfalse.

◆ rb_proc_lambda_p()

VALUE rb_proc_lambda_p ( VALUE  )

Definition at line 234 of file proc.c.

References GetProcPtr, rb_proc_t::is_lambda, Qfalse, and Qtrue.

Referenced by default_proc_arity_check(), Init_Proc(), and proc_curry().

◆ rb_proc_new()

VALUE rb_proc_new ( VALUE(*)(ANYARGS ,
VALUE   
)

◆ rb_proc_times()

VALUE rb_proc_times ( VALUE  )

◆ rb_protect()

VALUE rb_protect ( VALUE(*)(VALUE ,
VALUE  ,
int *   
)

◆ rb_provide()

void rb_provide ( const char *  )

Definition at line 572 of file load.c.

References rb_provide_feature(), and rb_usascii_str_new2.

Referenced by Init_thread(), and InitVM_Enumerator().

◆ rb_provided()

int rb_provided ( const char *  )

Definition at line 523 of file load.c.

References rb_feature_provided().

◆ rb_random_bytes()

VALUE rb_random_bytes ( VALUE  rnd,
long  n 
)

◆ rb_random_int()

VALUE rb_random_int ( VALUE  rnd,
VALUE  max 
)

◆ rb_random_int32()

unsigned int rb_random_int32 ( VALUE  rnd)

◆ rb_random_real()

double rb_random_real ( VALUE  rnd)

◆ rb_random_ulong_limited()

unsigned long rb_random_ulong_limited ( VALUE  rnd,
unsigned long  limit 
)

◆ rb_range_beg_len()

VALUE rb_range_beg_len ( VALUE  ,
long *  ,
long *  ,
long  ,
int   
)

◆ rb_range_new()

VALUE rb_range_new ( VALUE  ,
VALUE  ,
int   
)

Definition at line 70 of file range.c.

References range, range_init(), rb_cRange, rb_obj_alloc(), and RBOOL.

Referenced by fixup_nodes().

◆ rb_range_values()

int rb_range_values ( VALUE  range,
VALUE begp,
VALUE endp,
int *  exclp 
)

◆ rb_Rational()

VALUE rb_Rational ( VALUE  ,
VALUE   
)

Definition at line 1770 of file rational.c.

References nurat_s_convert(), and rb_cRational.

Referenced by BigDecimal_to_r().

◆ rb_rational_new()

VALUE rb_rational_new ( VALUE  ,
VALUE   
)

Definition at line 1762 of file rational.c.

References nurat_s_canonicalize_internal(), and rb_cRational.

Referenced by parser_yylex().

◆ rb_rational_raw()

VALUE rb_rational_raw ( VALUE  ,
VALUE   
)

Definition at line 1756 of file rational.c.

References nurat_s_new_internal(), and rb_cRational.

◆ rb_reg_alloc()

VALUE rb_reg_alloc ( void  )

Definition at line 2531 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().

◆ rb_reg_backref_number()

int rb_reg_backref_number ( VALUE  match,
VALUE  backref 
)

Definition at line 1132 of file re.c.

References match(), and match_backref_number().

Referenced by rb_str_subpat(), and rb_str_subpat_set().

◆ rb_reg_init_str()

VALUE rb_reg_init_str ( VALUE  re,
VALUE  s,
int  options 
)

Definition at line 2543 of file re.c.

References err, NULL, options(), rb_reg_initialize_str(), and rb_reg_raise_str().

Referenced by rb_reg_new_str().

◆ rb_reg_last_match()

VALUE rb_reg_last_match ( VALUE  )

Definition at line 1541 of file re.c.

References match(), and rb_reg_nth_match().

Referenced by last_match_getter(), match_to_s(), and vm_getspecial().

◆ rb_reg_match()

VALUE rb_reg_match ( VALUE  ,
VALUE   
)

Definition at line 2797 of file re.c.

References LONG2FIX, Qnil, rb_str_sublen(), and reg_match_pos().

Referenced by Init_Regexp(), and rb_str_match().

◆ rb_reg_match2()

VALUE rb_reg_match2 ( VALUE  )

Definition at line 2856 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().

◆ rb_reg_match_last()

VALUE rb_reg_match_last ( VALUE  )

◆ rb_reg_match_post()

VALUE rb_reg_match_post ( VALUE  )

◆ rb_reg_match_pre()

VALUE rb_reg_match_pre ( VALUE  )

◆ rb_reg_new()

VALUE rb_reg_new ( const char *  ,
long  ,
int   
)

Definition at line 2574 of file re.c.

References options(), rb_ascii8bit_encoding(), and rb_enc_reg_new().

Referenced by date__strptime_internal(), proc_options(), and regcomp().

◆ rb_reg_new_str()

VALUE rb_reg_new_str ( VALUE  ,
int   
)

Definition at line 2537 of file re.c.

References options(), rb_reg_alloc(), and rb_reg_init_str().

Referenced by r_object0(), rb_reg_new_ary(), rb_reg_regcomp(), and rb_reg_s_union().

◆ rb_reg_nth_defined()

VALUE rb_reg_nth_defined ( int  ,
VALUE   
)

Definition at line 1497 of file re.c.

References BEG, match(), match_check(), NIL_P, re_registers::num_regs, Qfalse, Qnil, Qtrue, and RMATCH_REGS.

◆ rb_reg_nth_match()

VALUE rb_reg_nth_match ( int  ,
VALUE   
)

◆ rb_reg_options()

int rb_reg_options ( VALUE  )

◆ rb_remove_method()

void rb_remove_method ( VALUE  ,
const char *   
)

Definition at line 767 of file vm_method.c.

References name, rb_intern, and remove_method().

◆ rb_remove_method_id()

void rb_remove_method_id ( VALUE  ,
ID   
)

Definition at line 761 of file vm_method.c.

References cache_entry::mid, and remove_method().

Referenced by num_sadded().

◆ rb_require_safe()

VALUE rb_require_safe ( VALUE  ,
int   
)

◆ rb_reserved_fd_p()

int rb_reserved_fd_p ( int  fd)

◆ rb_reset_random_seed()

void rb_reset_random_seed ( void  )

Definition at line 1323 of file random.c.

References default_rand, INT2FIX, rb_random_t::mt, rb_random_t::seed, and uninit_genrand.

Referenced by rb_thread_atfork().

◆ rb_respond_to()

int rb_respond_to ( VALUE  ,
ID   
)

◆ rb_set_class_path()

void rb_set_class_path ( VALUE  ,
VALUE  ,
const char *   
)

◆ rb_set_class_path_string()

void rb_set_class_path_string ( VALUE  ,
VALUE  ,
VALUE   
)

◆ rb_set_end_proc()

void rb_set_end_proc ( void(*)(VALUE ,
VALUE   
)

◆ rb_sourcefile()

const char* rb_sourcefile ( void  )

◆ rb_sourceline()

int rb_sourceline ( void  )

◆ rb_spawn()

rb_pid_t rb_spawn ( int  ,
VALUE  
)

Definition at line 3842 of file process.c.

References argc, argv, NULL, and rb_spawn_internal().

◆ rb_spawn_err()

rb_pid_t rb_spawn_err ( int  ,
VALUE ,
char *  ,
size_t   
)

Definition at line 3836 of file process.c.

References argc, argv, and rb_spawn_internal().

◆ rb_str2inum()

VALUE rb_str2inum ( VALUE  ,
int   
)

Definition at line 4379 of file bignum.c.

References rb_str_to_inum().

◆ rb_str_append()

VALUE rb_str_append ( VALUE  ,
VALUE   
)

◆ rb_str_associate()

void rb_str_associate ( VALUE  ,
VALUE   
)

◆ rb_str_associated()

VALUE rb_str_associated ( VALUE  )

Definition at line 1569 of file string.c.

References Qfalse, RSTRING, STR_ASSOC_P, and STR_SHARED_P.

Referenced by pack_unpack().

◆ rb_str_buf_append()

VALUE rb_str_buf_append ( VALUE  ,
VALUE   
)

◆ rb_str_buf_cat()

VALUE rb_str_buf_cat ( VALUE  ,
const char *  ,
long   
)

◆ rb_str_buf_cat2()

VALUE rb_str_buf_cat2 ( VALUE  ,
const char *   
)

◆ rb_str_buf_cat_ascii()

VALUE rb_str_buf_cat_ascii ( VALUE  ,
const char *   
)

◆ rb_str_buf_new()

VALUE rb_str_buf_new ( long  )

◆ rb_str_buf_new2()

VALUE rb_str_buf_new2 ( const char *  )

◆ rb_str_buf_new_cstr()

VALUE rb_str_buf_new_cstr ( const char *  )

Definition at line 907 of file string.c.

References rb_str_buf_cat(), rb_str_buf_new(), and strlen().

Referenced by rb_load_fail().

◆ rb_str_capacity()

size_t rb_str_capacity ( VALUE  )

◆ rb_str_cat()

VALUE rb_str_cat ( VALUE  ,
const char *  ,
long   
)

◆ rb_str_cat2()

VALUE rb_str_cat2 ( VALUE  ,
const char *   
)

◆ rb_str_cmp()

int rb_str_cmp ( VALUE  ,
VALUE   
)

◆ rb_str_comparable()

int rb_str_comparable ( VALUE  ,
VALUE   
)

◆ rb_str_concat()

VALUE rb_str_concat ( VALUE  ,
VALUE   
)

◆ rb_str_drop_bytes()

VALUE rb_str_drop_bytes ( VALUE  ,
long   
)

◆ rb_str_dump()

VALUE rb_str_dump ( VALUE  )

◆ rb_str_dup()

VALUE rb_str_dup ( VALUE  )

◆ rb_str_dup_frozen()

VALUE rb_str_dup_frozen ( VALUE  )

◆ rb_str_ellipsize()

VALUE rb_str_ellipsize ( VALUE  str,
long  len 
)

Shortens str and adds three dots, an ellipsis, if it is longer than len characters.

Parameters
strthe string to ellipsize.
lenthe maximum string length.
Returns
the ellipsized string.
Precondition
len must not be negative.
Postcondition
the length of the returned string in characters is less than or equal to len.
If the length of str is less than or equal len, returns str itself.
the encoding of returned string is equal to the encoding of str.
the class of returned string is equal to the class of str.
Note
the length is counted in characters.

Definition at line 7969 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 rb_hash_fetch_m(), and sys_fail2().

◆ rb_str_encode_ospath()

VALUE rb_str_encode_ospath ( VALUE  )

◆ rb_str_equal()

VALUE rb_str_equal ( VALUE  str1,
VALUE  str2 
)

◆ rb_str_format()

VALUE rb_str_format ( int  ,
const VALUE ,
VALUE   
)

Definition at line 421 of file sprintf.c.

References argc, argv, BIT_DIGITS, buf, CHAR_BIT, CHECK, CHECK_FOR_FLAGS, CHECK_FOR_WIDTH, ENC_CODERANGE_7BIT, ENC_CODERANGE_BROKEN, ENC_CODERANGE_SET, ENC_CODERANGE_UNKNOWN, ffs(), FILL, FIX2LONG, FIXABLE, FIXNUM_P, FMINUS, fmt_setup(), FNONE, FPLUS, FPREC, FPREC0, FSHARP, FSPACE, FWIDTH, FZERO, GETARG, GETASTER, GETNAMEARG, GETNUM, GETPOSARG, hash(), ID2SYM, INTEGER_PACK_2COMP, INTEGER_PACK_BIG_ENDIAN, isinf(), isnan, LONG2FIX, NIL_P, NULL, NUM2INT, OBJ_TAINT, OBJ_TAINTED, PRIdSIZE, PUSH, Qundef, rb_absint_numwords(), rb_absint_singlebit_p(), rb_big2str(), rb_check_id_cstr(), rb_check_string_type(), 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_id2name(), rb_inspect(), rb_Integer(), rb_integer_pack(), rb_long2int, rb_obj_as_string(), rb_raise(), 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_warn(), RBIGNUM_NEGATIVE_P, result, RFLOAT_VALUE, RSTRING_END, RSTRING_LEN, RSTRING_PTR, RTEST, ruby_debug, ruby_digitmap, ruby_verbose, sign_bits(), snprintf, StringValue, strlen(), t(), T_BIGNUM, T_FIXNUM, T_FLOAT, T_STRING, TRUE, TYPE, and val.

Referenced by date_strftime_with_tmx(), rb_f_sprintf(), rb_str_format_m(), rb_str_upto(), and rb_strftime_with_timespec().

◆ rb_str_free()

void rb_str_free ( VALUE  )

◆ rb_str_freeze()

VALUE rb_str_freeze ( VALUE  )

◆ rb_str_hash()

st_index_t rb_str_hash ( VALUE  )

◆ rb_str_hash_cmp()

int rb_str_hash_cmp ( VALUE  ,
VALUE   
)

Definition at line 2431 of file string.c.

References memcmp(), rb_str_comparable(), RSTRING_LEN, and RSTRING_PTR.

Referenced by cdhash_cmp(), fstring_cmp(), and rb_any_cmp().

◆ rb_str_inspect()

VALUE rb_str_inspect ( VALUE  )

◆ rb_str_intern()

VALUE rb_str_intern ( VALUE  )

◆ rb_str_length()

VALUE rb_str_length ( VALUE  )

◆ rb_str_locktmp()

VALUE rb_str_locktmp ( VALUE  )

◆ rb_str_modify()

void rb_str_modify ( VALUE  )

◆ rb_str_modify_expand()

void rb_str_modify_expand ( VALUE  ,
long   
)

◆ rb_str_new()

VALUE rb_str_new ( const char *  ,
long   
)

Definition at line 534 of file string.c.

References rb_cString, and str_new().

Referenced by 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(), date_zone_to_diff(), decode_bstr(), decode_eoc(), dir_s_home(), econv_convert(), econv_description(), econv_finish(), econv_primitive_errinfo(), econv_putback(), env_fetch(), env_str_new(), extract_user_token(), gzfile_getc(), gzfile_read(), gzfile_read_all(), gzfile_read_header(), gzfile_readpartial(), gzreader_gets(), infected_str_new(), inspect1(), inspect2(), int_chr(), int_ossl_asn1_decode0_prim(), io_getc(), io_setstrbuf(), io_shift_cbuf(), join_der(), lib_conv_listelement(), lib_fromUTF8_core(), lib_merge_tklist(), lib_toUTF8_core(), lib_UTF_backslash_core(), load_file_internal(), load_file_read_contents(), load_transcoder_entry(), make_econv_exception(), match_to_s(), Messaging_HandleMessage(), name_to_backref_number(), ossl_asn1cons_to_der(), ossl_asn1data_to_der(), ossl_asn1eoc_initialize(), ossl_bn_to_s(), ossl_cipher_final(), ossl_cipher_update(), ossl_dh_compute_key(), ossl_dh_to_der(), ossl_digest_finish(), ossl_dsa_sign(), ossl_dsa_to_der(), ossl_hmac_s_digest(), ossl_make_error(), ossl_membio2str0(), ossl_pkcs12_to_der(), ossl_pkcs7_to_der(), ossl_pkey_sign(), ossl_rand_bytes(), ossl_rand_pseudo_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_print(), ossl_spki_to_der(), ossl_ssl_read_internal(), ossl_ssl_session_to_der(), ossl_ssl_session_to_pem(), ossl_ssl_session_to_text(), 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_x509crl_get_signature_algorithm(), ossl_x509crl_to_der(), ossl_x509crl_to_pem(), ossl_x509crl_to_text(), ossl_x509ext_to_der(), ossl_x509name_to_a(), ossl_x509name_to_der(), ossl_x509req_get_signature_algorithm(), ossl_x509req_to_der(), ossl_x509req_to_pem(), ossl_x509req_to_text(), parse(), proc_options(), r_bytes0(), r_bytes1_buffered(), rb_compile_cstr(), rb_digest_base_finish(), rb_enc_str_new(), rb_exc_new(), rb_execarg_fixup(), rb_execarg_run_options(), rb_f_backquote(), rb_f_getenv(), 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_path_check(), rb_random_bytes(), rb_reg_compile(), rb_reg_quote(), rb_str_conv_enc_opts(), rb_str_enumerate_lines(), rb_str_format(), rb_str_new_cstr(), rb_str_plus(), rb_str_slice_bang(), rb_tainted_str_new(), rb_usascii_str_new(), rb_write_error2(), reg_named_captures_iter(), rsock_addrinfo_inspect_sockaddr(), ruby_init_loadpath_safe(), s3e(), set_file_encoding(), set_option_encoding_once(), sock_s_gethostbyaddr(), sock_s_pack_sockaddr_in(), sock_sockaddr(), sockopt_s_bool(), sockopt_s_byte(), sockopt_s_int(), sockopt_s_ipv4_multicast_loop(), sockopt_s_ipv4_multicast_ttl(), sockopt_s_linger(), str_new(), strio_getline(), strio_putc(), strio_read(), strio_substr(), time_mdump(), time_strftime(), tkstr_to_str(), warn_print(), writer(), zstream_detach_buffer(), zstream_detach_input(), and zstream_expand_buffer_into().

◆ rb_str_new_cstr()

VALUE rb_str_new_cstr ( const char *  )

◆ rb_str_new_frozen()

VALUE rb_str_new_frozen ( VALUE  )

◆ rb_str_new_shared()

VALUE rb_str_new_shared ( VALUE  )

Definition at line 799 of file string.c.

References OBJ_INFECT, rb_obj_class(), and str_new3().

Referenced by rb_file_s_basename(), and rb_str_subseq().

◆ rb_str_new_with_class()

VALUE rb_str_new_with_class ( VALUE  ,
const char *  ,
long   
)

Definition at line 874 of file string.c.

References rb_obj_class(), and str_new().

Referenced by rb_str_ellipsize().

◆ rb_str_offset()

long rb_str_offset ( VALUE  ,
long   
)

Definition at line 1780 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().

◆ rb_str_plus()

VALUE rb_str_plus ( VALUE  ,
VALUE   
)

◆ rb_str_replace()

VALUE rb_str_replace ( VALUE  ,
VALUE   
)

Definition at line 4322 of file string.c.

References str_discard(), str_modifiable(), str_replace(), and StringValue.

Referenced by Init_String(), rb_str_init(), and str_scrub_bang().

◆ rb_str_resize()

VALUE rb_str_resize ( VALUE  ,
long   
)

Definition at line 2024 of file string.c.

References ENC_CODERANGE_CLEAR, MEMCPY, rb_eArgError, rb_raise(), REALLOC_N, RSTRING, RSTRING_EMBED_LEN_MAX, RSTRING_LEN, ruby_xfree(), STR_EMBED_P, STR_HEAP_PTR, str_independent(), str_make_independent_expand(), STR_SET_EMBED, STR_SET_EMBED_LEN, STR_SET_NOEMBED, 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(), copy_home_path(), copy_stream_body(), copy_stream_fallback_body(), econv_primitive_convert(), flo_to_s(), get_user_from_path(), glob_helper(), gzfile_error_inspect(), gzfile_readpartial(), lib_conv_listelement(), literal_concat0(), marshal_dump(), moreswitches(), ossl_cipher_update(), ossl_digest_finish(), ossl_ssl_read_internal(), r_object0(), rb_big2str0(), rb_econv_append(), rb_enc_vsprintf(), rb_feature_p(), rb_file_expand_path_internal(), rb_gzfile_set_comment(), rb_gzfile_set_orig_name(), rb_io_getline_fast(), rb_iseq_disasm(), rb_nkf_putchar(), rb_reg_quote(), rb_reg_to_s(), rb_str_concat(), rb_str_conv_enc_opts(), rb_str_format(), rb_str_vcatf(), realpath_rec(), ruby_init_loadpath_safe(), ruby_setenv(), set_file_encoding(), setup_narg(), str_shrink(), str_transcoding_resize(), strio_extend(), strio_init(), strio_read(), strio_truncate(), strio_ungetbyte(), strio_ungetc(), sym_inspect(), VpAlloc(), w_nbyte(), yyparse(), zstream_append_buffer(), zstream_detach_buffer(), zstream_discard_input(), zstream_expand_buffer(), and zstream_expand_buffer_into().

◆ rb_str_resurrect()

VALUE rb_str_resurrect ( VALUE  str)

◆ rb_str_scrub()

VALUE rb_str_scrub ( VALUE  str,
VALUE  repl 
)

◆ rb_str_set_len()

void rb_str_set_len ( VALUE  ,
long   
)

◆ rb_str_setter()

void rb_str_setter ( VALUE  ,
ID  ,
VALUE  
)

Definition at line 7875 of file string.c.

References NIL_P, rb_eTypeError, rb_id2name(), rb_raise(), RB_TYPE_P, T_STRING, and val.

Referenced by Init_IO().

◆ rb_str_shared_replace()

void rb_str_shared_replace ( VALUE  ,
VALUE   
)

◆ rb_str_split()

VALUE rb_str_split ( VALUE  ,
const char *   
)

Definition at line 6409 of file string.c.

References rb_str_new2, rb_str_split_m(), and StringValue.

◆ rb_str_strlen()

long rb_str_strlen ( VALUE  )

Definition at line 1284 of file string.c.

References STR_ENC_GET, and str_strlen().

◆ rb_str_sublen()

long rb_str_sublen ( VALUE  ,
long   
)

◆ rb_str_subpos()

char* rb_str_subpos ( VALUE  ,
long  ,
long *   
)

◆ rb_str_subseq()

VALUE rb_str_subseq ( VALUE  ,
long  ,
long   
)

◆ rb_str_substr()

VALUE rb_str_substr ( VALUE  ,
long  ,
long   
)

◆ rb_str_succ()

VALUE rb_str_succ ( VALUE  )

◆ rb_str_times()

VALUE rb_str_times ( VALUE  ,
VALUE   
)

◆ rb_str_tmp_new()

VALUE rb_str_tmp_new ( long  )

◆ rb_str_to_dbl()

double rb_str_to_dbl ( VALUE  ,
int   
)

◆ rb_str_to_inum()

VALUE rb_str_to_inum ( VALUE  ,
int  ,
int   
)

◆ rb_str_unlocktmp()

VALUE rb_str_unlocktmp ( VALUE  )

◆ rb_str_update()

void rb_str_update ( VALUE  ,
long  ,
long  ,
VALUE   
)

Definition at line 3744 of file string.c.

References rb_str_splice(), and val.

Referenced by eval_string_with_cref(), rb_str_prepend(), and strio_ungetc().

◆ rb_str_vcatf()

VALUE rb_str_vcatf ( VALUE  ,
const char *  ,
va_list   
)

◆ rb_String()

VALUE rb_String ( VALUE  )

◆ rb_struct_alloc()

VALUE rb_struct_alloc ( VALUE  ,
VALUE   
)

Definition at line 494 of file struct.c.

References RARRAY_LENINT, RARRAY_PTR, and rb_class_new_instance().

◆ rb_struct_alloc_noinit()

VALUE rb_struct_alloc_noinit ( VALUE  )

Definition at line 235 of file struct.c.

References struct_alloc().

Referenced by Init_thread(), and range_alloc().

◆ rb_struct_aref()

VALUE rb_struct_aref ( VALUE  ,
VALUE   
)

◆ rb_struct_aset()

VALUE rb_struct_aset ( VALUE  ,
VALUE  ,
VALUE   
)

◆ rb_struct_define()

VALUE rb_struct_define ( const char *  ,
  ... 
)

◆ rb_struct_define_under()

VALUE rb_struct_define_under ( VALUE  ,
const char *  ,
  ... 
)

◆ rb_struct_define_without_accessor()

VALUE rb_struct_define_without_accessor ( const char *  ,
VALUE  ,
rb_alloc_func_t  ,
  ... 
)

Definition at line 288 of file struct.c.

References ID2SYM, name, NULL, OBJ_FREEZE, rb_ary_push(), rb_ary_tmp_new(), rb_intern, and struct_define_without_accessor().

Referenced by Init_Range().

◆ rb_struct_define_without_accessor_under()

VALUE rb_struct_define_without_accessor_under ( VALUE  outer,
const char *  class_name,
VALUE  super,
rb_alloc_func_t  alloc,
  ... 
)

◆ rb_struct_getmember()

VALUE rb_struct_getmember ( VALUE  ,
ID   
)

Definition at line 97 of file struct.c.

References ID2SYM, not_a_member(), RARRAY_AREF, RARRAY_LEN, rb_struct_members(), RSTRUCT_GET, and UNREACHABLE.

Referenced by rb_struct_ref().

◆ rb_struct_initialize()

VALUE rb_struct_initialize ( VALUE  ,
VALUE   
)

Definition at line 466 of file struct.c.

References RARRAY_CONST_PTR, RARRAY_LENINT, and rb_struct_initialize_m().

Referenced by r_object0().

◆ rb_struct_members()

VALUE rb_struct_members ( VALUE  )

◆ rb_struct_new()

VALUE rb_struct_new ( VALUE  ,
  ... 
)

◆ rb_struct_s_members()

VALUE rb_struct_s_members ( VALUE  )

◆ rb_sym_all_symbols()

VALUE rb_sym_all_symbols ( void  )

◆ rb_sym_interned_p()

int rb_sym_interned_p ( VALUE  )

◆ rb_sym_to_s()

VALUE rb_sym_to_s ( VALUE  )

◆ rb_symname_p()

int rb_symname_p ( const char *  )

Definition at line 16868 of file ripper.c.

References name, rb_ascii8bit_encoding(), and rb_enc_symname_p().

◆ rb_syswait()

void rb_syswait ( rb_pid_t  pid)

Definition at line 3763 of file process.c.

References rb_waitpid().

Referenced by rb_io_close().

◆ rb_tainted_str_new()

VALUE rb_tainted_str_new ( const char *  ,
long   
)

◆ rb_tainted_str_new_cstr()

VALUE rb_tainted_str_new_cstr ( const char *  )

Definition at line 598 of file string.c.

References OBJ_TAINT, and rb_str_new2.

Referenced by addrinfo_firstonly_new(), addrinfo_list_new(), and init_addrinfo_getaddrinfo().

◆ rb_thread_alone()

int rb_thread_alone ( void  )

◆ rb_thread_atfork()

void rb_thread_atfork ( void  )

◆ rb_thread_atfork_before_exec()

void rb_thread_atfork_before_exec ( void  )

Definition at line 3958 of file thread.c.

References rb_thread_atfork_internal(), and terminate_atfork_before_exec_i().

◆ rb_thread_check_ints()

void rb_thread_check_ints ( void  )

◆ rb_thread_create()

VALUE rb_thread_create ( VALUE(*)(ANYARGS ,
void *   
)

◆ rb_thread_current()

VALUE rb_thread_current ( void  )

◆ rb_thread_fd_close()

void rb_thread_fd_close ( int  )

Definition at line 2135 of file thread.c.

References GET_THREAD(), st_foreach(), and thread_fd_close_i().

Referenced by io_reopen(), and rb_io_close().

◆ rb_thread_fd_select()

int rb_thread_fd_select ( int  ,
rb_fdset_t ,
rb_fdset_t ,
rb_fdset_t ,
struct timeval  
)

◆ rb_thread_fd_writable()

int rb_thread_fd_writable ( int  )

Definition at line 3529 of file thread.c.

References rb_thread_wait_fd_rw(), and TRUE.

Referenced by rb_io_wait_writable(), rsock_bsock_send(), and udp_send().

◆ rb_thread_interrupted()

int rb_thread_interrupted ( VALUE  thval)

Definition at line 1160 of file thread.c.

References GetThreadPtr, and RUBY_VM_INTERRUPTED.

Referenced by maygvl_copy_stream_continue_p().

◆ rb_thread_kill()

VALUE rb_thread_kill ( VALUE  )

◆ rb_thread_local_aref()

VALUE rb_thread_local_aref ( VALUE  ,
ID   
)

◆ rb_thread_local_aset()

VALUE rb_thread_local_aset ( VALUE  ,
ID  ,
VALUE   
)

◆ rb_thread_main()

VALUE rb_thread_main ( void  )

◆ rb_thread_run()

VALUE rb_thread_run ( VALUE  )

◆ rb_thread_schedule()

void rb_thread_schedule ( void  )

◆ rb_thread_sleep()

void rb_thread_sleep ( int  )

Definition at line 1168 of file thread.c.

References INT2FIX, rb_thread_wait_for(), and rb_time_timeval().

Referenced by pipe_open().

◆ rb_thread_sleep_deadly()

void rb_thread_sleep_deadly ( void  )

Definition at line 1080 of file thread.c.

References GET_THREAD(), sleep_forever(), and thread_debug.

Referenced by queue_sleep(), rb_szqueue_push(), and rb_thread_stop().

◆ rb_thread_sleep_forever()

void rb_thread_sleep_forever ( void  )

Definition at line 1073 of file thread.c.

References GET_THREAD(), sleep_forever(), and thread_debug.

Referenced by lib_eventloop_core(), rb_f_sleep(), and rb_thread_fd_select().

◆ rb_thread_stop()

VALUE rb_thread_stop ( void  )

Definition at line 2346 of file thread.c.

References Qnil, rb_eThreadError, rb_raise(), rb_thread_alone(), and rb_thread_sleep_deadly().

Referenced by Init_Thread().

◆ rb_thread_wait_fd()

void rb_thread_wait_fd ( int  )

◆ rb_thread_wait_for()

void rb_thread_wait_for ( struct timeval  )

◆ rb_thread_wakeup()

VALUE rb_thread_wakeup ( VALUE  )

◆ rb_thread_wakeup_alive()

VALUE rb_thread_wakeup_alive ( VALUE  )

◆ rb_time_interval()

struct timeval rb_time_interval ( VALUE  num)

Definition at line 2411 of file time.c.

References time_timeval(), and TRUE.

Referenced by io_wait_readable(), io_wait_writable(), rb_f_select(), rb_f_sleep(), and rb_mutex_sleep().

◆ rb_time_nano_new()

VALUE rb_time_nano_new ( time_t  ,
long   
)

Definition at line 2305 of file time.c.

References nsec2timew(), rb_cTime, and time_new_timew().

Referenced by stat_atime(), stat_ctime(), and stat_mtime().

◆ rb_time_new()

VALUE rb_time_new ( time_t  ,
long   
)

Definition at line 2279 of file time.c.

References NDIV, nsec2timew(), rb_cTime, rb_eRangeError, rb_raise(), time_new_timew(), and time_object::timew.

Referenced by rb_gzfile_mtime().

◆ rb_time_num_new()

VALUE rb_time_num_new ( VALUE  ,
VALUE   
)

◆ rb_time_succ()

VALUE rb_time_succ ( VALUE  )

◆ rb_time_timespec()

struct timespec rb_time_timespec ( VALUE  time)

Definition at line 2434 of file time.c.

References FALSE, GetTimeval, IsTimeval, t(), time_timespec(), time_object::timew, and timew2timespec().

Referenced by rb_file_s_utime().

◆ rb_time_timeval()

struct timeval rb_time_timeval ( VALUE  time)

Definition at line 2417 of file time.c.

◆ rb_to_float()

VALUE rb_to_float ( VALUE  )

◆ rb_to_int()

VALUE rb_to_int ( VALUE  )

◆ rb_trap_exec()

void rb_trap_exec ( void  )

Referenced by trap_check().

◆ rb_trap_exit()

void rb_trap_exit ( void  )

Definition at line 861 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().

◆ rb_undef()

void rb_undef ( VALUE  ,
ID   
)

◆ rb_undef_alloc_func()

void rb_undef_alloc_func ( VALUE  )

◆ rb_undefine_finalizer()

VALUE rb_undefine_finalizer ( VALUE  )

Definition at line 1911 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().

◆ rb_update_max_fd()

void rb_update_max_fd ( int  fd)

◆ rb_usascii_str_new()

VALUE rb_usascii_str_new ( const char *  ,
long   
)

◆ rb_usascii_str_new_cstr()

VALUE rb_usascii_str_new_cstr ( const char *  )

◆ rb_uv_to_utf8()

int rb_uv_to_utf8 ( char  [6],
unsigned  long 
)

Definition at line 1900 of file pack.c.

References buf, castchar, rb_eRangeError, rb_raise(), and UNREACHABLE.

Referenced by append_utf8().

◆ rb_vsprintf()

VALUE rb_vsprintf ( const char *  ,
va_list   
)

◆ rb_waitpid()

rb_pid_t rb_waitpid ( rb_pid_t  pid,
int *  status,
int  flags 
)

◆ rb_write_error()

void rb_write_error ( const char *  )

Definition at line 7185 of file io.c.

References rb_write_error2(), and strlen().

Referenced by rescue_callback().

◆ rb_write_error2()

void rb_write_error2 ( const char *  ,
long   
)

Definition at line 7171 of file io.c.

References rb_io_t::fd, orig_stderr, rb_io_write(), rb_stderr, rb_str_new(), and RFILE.

Referenced by rb_write_error().

◆ ruby_default_signal()

void ruby_default_signal ( int  )

Definition at line 340 of file signal.c.

References signal().

Referenced by ruby_cleanup().

◆ ruby_signal_name()

const char* ruby_signal_name ( int  )

Definition at line 254 of file signal.c.

References signo2signm().

Referenced by pst_message().

◆ st_foreach_safe()

void st_foreach_safe ( struct st_table ,
int(*)(ANYARGS ,
st_data_t   
)

Variable Documentation

◆ rb_argv0

RUBY_EXTERN VALUE rb_argv0

◆ rb_default_rs

RUBY_EXTERN VALUE rb_default_rs

Definition at line 519 of file intern.h.

Referenced by rb_str_chomp_bang(), and rb_str_enumerate_lines().

◆ rb_fs

Definition at line 516 of file intern.h.

Referenced by proc_options().

◆ rb_output_fs

RUBY_EXTERN VALUE rb_output_fs

Definition at line 517 of file intern.h.

◆ rb_output_rs

RUBY_EXTERN VALUE rb_output_rs

Definition at line 520 of file intern.h.

Referenced by proc_options().

◆ rb_rs

◆ ruby_sourcefile

RUBY_EXTERN char* ruby_sourcefile

Definition at line 607 of file intern.h.

◆ ruby_sourceline

RUBY_EXTERN int ruby_sourceline

Definition at line 606 of file intern.h.