Ruby  2.5.0dev(2017-10-22revision60238)
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.

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 SIZED_ENUMERATOR(obj, argc, argv, 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 RB_OBJ_INIT_COPY(obj, orig)   ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1))
 
#define OBJ_INIT_COPY(obj, orig)   RB_OBJ_INIT_COPY(obj, orig)
 
#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 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 rb_str_buf_cat   rb_str_cat
 
#define rb_str_buf_cat2   rb_str_cat_cstr
 
#define rb_str_cat2   rb_str_cat_cstr
 
#define rb_strlen_lit(str)   (sizeof(str "") - 1)
 
#define rb_str_new_lit(str)   rb_str_new_static((str), rb_strlen_lit(str))
 
#define rb_usascii_str_new_lit(str)   rb_usascii_str_new_static((str), rb_strlen_lit(str))
 
#define rb_utf8_str_new_lit(str)   rb_utf8_str_new_static((str), rb_strlen_lit(str))
 
#define rb_enc_str_new_lit(str, enc)   rb_enc_str_new_static((str), rb_strlen_lit(str), (enc))
 
#define rb_str_new_literal(str)   rb_str_new_lit(str)
 
#define rb_usascii_str_new_literal(str)   rb_usascii_str_new_lit(str)
 
#define rb_utf8_str_new_literal(str)   rb_utf8_str_new_lit(str)
 
#define rb_enc_str_new_literal(str, enc)   rb_enc_str_new_lit(str, enc)
 
#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, const 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, const VALUE *, VALUE(*)(VALUE, long))
 
VALUE rb_ary_resize (VALUE ary, long len)
 expands or shrinks ary to len elements. More...
 
VALUE rb_big_new (size_t, 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, size_t 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)
 
long rb_big2long (VALUE)
 
unsigned long rb_big2ulong (VALUE)
 
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_rational_num (VALUE rat)
 
VALUE rb_rational_den (VALUE rat)
 
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_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...
 
void rb_check_inheritable (VALUE)
 Ensures a class can be derived from super. 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_mod_included_modules (VALUE)
 
VALUE rb_mod_include_p (VALUE, VALUE)
 
VALUE rb_mod_ancestors (VALUE)
 
VALUE rb_class_instance_methods (int, const VALUE *, VALUE)
 
VALUE rb_class_public_instance_methods (int, const VALUE *, VALUE)
 
VALUE rb_class_protected_instance_methods (int, const VALUE *, VALUE)
 
VALUE rb_class_private_instance_methods (int, const VALUE *, VALUE)
 
VALUE rb_obj_singleton_methods (int, const VALUE *, VALUE)
 
void rb_define_method_id (VALUE, ID, VALUE(*)(ANYARGS), int)
 
void rb_frozen_class_p (VALUE)
 Asserts that klass is not a frozen class. More...
 
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, const VALUE *argv)
 
VALUE rb_fiber_yield (int argc, const VALUE *argv)
 
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, const VALUE *)
 
VALUE rb_enumeratorize_with_size (VALUE, VALUE, int, const 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 *))
 
 NORETURN (void rb_error_frozen(const char *))
 
 NORETURN (void rb_error_frozen_object(VALUE))
 
 CONSTFUNC (void rb_error_untrusted(VALUE))
 
void rb_check_frozen (VALUE)
 
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))
 
 NORETURN (VALUE rb_f_exit(int, const 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_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)
 
 NORETURN (VALUE rb_f_notimplement(int argc, const VALUE *argv, VALUE obj))
 
 NORETURN (void rb_interrupt(void))
 
VALUE rb_apply (VALUE, ID, VALUE)
 Calls a method. More...
 
void rb_backtrace (void)
 
ID rb_frame_this_func (void)
 The original name of the current method. More...
 
VALUE rb_obj_instance_eval (int, const VALUE *, VALUE)
 
VALUE rb_obj_instance_exec (int, const VALUE *, VALUE)
 
VALUE rb_mod_module_eval (int, const VALUE *, VALUE)
 
VALUE rb_mod_module_exec (int, const 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, const VALUE *)
 Calls #initialize method of obj with the given arguments. More...
 
VALUE rb_class_new_instance (int, const VALUE *, VALUE)
 Allocates and initializes an instance of klass. More...
 
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, const VALUE *, VALUE)
 
VALUE rb_method_call_with_block (int, const VALUE *, VALUE, VALUE)
 
int rb_mod_method_arity (VALUE, ID)
 
int rb_obj_method_arity (VALUE, ID)
 
VALUE rb_protect (VALUE(*)(VALUE), VALUE, int *)
 Protects a function call from potential global escapes from the function. More...
 
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)
 
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 *)
 
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, const VALUE *)
 
VALUE rb_file_expand_path (VALUE, VALUE)
 
VALUE rb_file_s_absolute_path (int, const 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 *)
 
 PUREFUNC (int rb_during_gc(void))
 
void rb_gc_mark_locations (const VALUE *, const 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 rb_gc_adjust_memory_usage (ssize_t)
 
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_hash_size (VALUE)
 
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, const VALUE *, VALUE)
 
VALUE rb_io_print (int, const VALUE *, VALUE)
 
VALUE rb_io_puts (int, const 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)
 
 CONSTFUNC (VALUE rb_dbl_cmp(double, double))
 
int rb_eql (VALUE, VALUE)
 Determines if obj1 and obj2 are equal in terms of Object::eql?. More...
 
VALUE rb_any_to_s (VALUE)
 call-seq: obj.to_s -> string More...
 
VALUE rb_inspect (VALUE)
 Convenient wrapper of Object::inspect. More...
 
VALUE rb_obj_is_instance_of (VALUE, VALUE)
 call-seq: obj.instance_of?(class) -> true or false More...
 
VALUE rb_obj_is_kind_of (VALUE, VALUE)
 call-seq: obj.is_a?(class) -> true or false obj.kind_of?(class) -> true or false More...
 
VALUE rb_obj_alloc (VALUE)
 Allocates an instance of klass. More...
 
VALUE rb_obj_clone (VALUE)
 

:nodoc

Almost same as Object::clone ++ More...
 
VALUE rb_obj_dup (VALUE)
 call-seq: obj.dup -> an_object More...
 
VALUE rb_obj_init_copy (VALUE, VALUE)
 

:nodoc:

Default implementation of #initialize_copy More...
 
VALUE rb_obj_taint (VALUE)
 call-seq: obj.taint -> obj More...
 
 PUREFUNC (VALUE rb_obj_tainted(VALUE))
 
VALUE rb_obj_untaint (VALUE)
 call-seq: obj.untaint -> obj More...
 
VALUE rb_obj_untrust (VALUE)
 call-seq: obj.untrust -> obj More...
 
VALUE rb_obj_trust (VALUE)
 call-seq: obj.trust -> obj More...
 
VALUE rb_obj_freeze (VALUE)
 call-seq: obj.freeze -> obj More...
 
VALUE rb_obj_id (VALUE)
 
VALUE rb_obj_class (VALUE)
 call-seq: obj.class -> class More...
 
 PUREFUNC (VALUE rb_class_inherited_p(VALUE, VALUE))
 
VALUE rb_class_superclass (VALUE)
 call-seq: class.superclass -> a_super_class or nil More...
 
VALUE rb_class_get_superclass (VALUE)
 Returns the superclass of klass The return value might be an iclass of a module, unlike rb_class_superclass. More...
 
VALUE rb_convert_type (VALUE, int, const char *, const char *)
 Converts an object into another type. More...
 
VALUE rb_check_convert_type (VALUE, int, const char *, const char *)
 Tries to convert an object into another type. More...
 
VALUE rb_check_to_integer (VALUE, const char *)
 Tries to convert val into Integer. More...
 
VALUE rb_check_to_float (VALUE)
 Tries to convert an object into Float. More...
 
VALUE rb_to_int (VALUE)
 Converts val into Integer. More...
 
VALUE rb_check_to_int (VALUE)
 Tries to convert val into Integer. More...
 
VALUE rb_Integer (VALUE)
 Equivalent to Kernel#Integer in Ruby. More...
 
VALUE rb_to_float (VALUE)
 Converts a Numeric object into Float. More...
 
VALUE rb_Float (VALUE)
 Equivalent to Kernel#Float in Ruby. More...
 
VALUE rb_String (VALUE)
 Equivalent to Kernel#String in Ruby. More...
 
VALUE rb_Array (VALUE)
 Equivalent to Kernel#Array in Ruby. More...
 
VALUE rb_Hash (VALUE)
 Equivalent to Kernel#Hash in Ruby. More...
 
double rb_cstr_to_dbl (const char *, int)
 Parses a string representation of a floating point number. More...
 
double rb_str_to_dbl (VALUE, int)
 Parses a string representation of a floating point number. More...
 
ID rb_id_attrset (ID)
 
 CONSTFUNC (int rb_is_const_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)
 
void rb_last_status_set (int status, rb_pid_t pid)
 
VALUE rb_last_status_get (void)
 
int rb_proc_exec (const char *)
 
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, const VALUE *)
 
rb_pid_t rb_spawn_err (int, const 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, const 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 *)
 
VALUE rb_utf8_str_new (const char *, long)
 
VALUE rb_utf8_str_new_cstr (const char *)
 
VALUE rb_str_new_static (const char *, long)
 
VALUE rb_usascii_str_new_static (const char *, long)
 
VALUE rb_utf8_str_new_static (const char *, long)
 
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_cat_cstr (VALUE, const char *)
 
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_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)
 
 PUREFUNC (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_sym_all_symbols (void)
 
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)
 
VALUE rb_struct_s_members (VALUE)
 
VALUE rb_struct_members (VALUE)
 
VALUE rb_struct_size (VALUE s)
 
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)
 
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)
 
void rb_timespec_now (struct timespec *)
 
VALUE rb_time_new (time_t, long)
 
VALUE rb_time_nano_new (time_t, long)
 
VALUE rb_time_timespec_new (const struct timespec *, int)
 Returns a time object with UTC/localtime/fixed offset. More...
 
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)
 
VALUE rb_autoload_load (VALUE, ID)
 
VALUE rb_autoload_p (VALUE, ID)
 
VALUE rb_f_trace_var (int, const VALUE *)
 
VALUE rb_f_untrace_var (int, const VALUE *)
 
VALUE rb_f_global_variables (void)
 
void rb_alias_variable (ID, ID)
 
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, const 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)
 
 NORETURN (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, const VALUE *, VALUE)
 
VALUE rb_mod_remove_cvar (VALUE, VALUE)
 
ID rb_frame_callee (void)
 The name of the current method. More...
 
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, const VALUE *)
 Make an Exception object from the list of arguments in a manner similar to Kernel#raise. More...
 

Variables

RUBY_EXTERN VALUE rb_fs
 
RUBY_EXTERN VALUE rb_output_fs
 
RUBY_EXTERN VALUE rb_rs
 
RUBY_EXTERN VALUE rb_default_rs
 
RUBY_EXTERN VALUE rb_output_rs
 
RUBY_EXTERN VALUE rb_argv0
 

Macro Definition Documentation

◆ HAVE_RB_DEFINE_ALLOC_FUNC

#define HAVE_RB_DEFINE_ALLOC_FUNC   1

Definition at line 369 of file intern.h.

◆ HAVE_RB_REG_NEW_STR

#define HAVE_RB_REG_NEW_STR   1

Definition at line 654 of file intern.h.

◆ INTEGER_PACK_2COMP

#define INTEGER_PACK_2COMP   0x80

Definition at line 143 of file intern.h.

Referenced by rb_big_pack(), and rb_big_unpack().

◆ INTEGER_PACK_BIG_ENDIAN

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

Definition at line 152 of file intern.h.

◆ INTEGER_PACK_FORCE_BIGNUM

#define INTEGER_PACK_FORCE_BIGNUM   0x100

Definition at line 146 of file intern.h.

◆ INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION

#define INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION   0x400

Definition at line 144 of file intern.h.

◆ INTEGER_PACK_LITTLE_ENDIAN

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

Definition at line 149 of file intern.h.

◆ INTEGER_PACK_LSBYTE_FIRST

#define INTEGER_PACK_LSBYTE_FIRST   0x20

Definition at line 141 of file intern.h.

◆ INTEGER_PACK_LSWORD_FIRST

#define INTEGER_PACK_LSWORD_FIRST   0x02

Definition at line 139 of file intern.h.

Referenced by rb_big_pack(), and rb_big_unpack().

◆ INTEGER_PACK_MSBYTE_FIRST

#define INTEGER_PACK_MSBYTE_FIRST   0x10

Definition at line 140 of file intern.h.

◆ INTEGER_PACK_MSWORD_FIRST

#define INTEGER_PACK_MSWORD_FIRST   0x01

Definition at line 138 of file intern.h.

◆ INTEGER_PACK_NATIVE_BYTE_ORDER

#define INTEGER_PACK_NATIVE_BYTE_ORDER   0x40

Definition at line 142 of file intern.h.

Referenced by rb_big_pack(), and rb_big_unpack().

◆ INTEGER_PACK_NEGATIVE

#define INTEGER_PACK_NEGATIVE   0x200

Definition at line 147 of file intern.h.

◆ OBJ_INIT_COPY

#define OBJ_INIT_COPY (   obj,
  orig 
)    RB_OBJ_INIT_COPY(obj, orig)

Definition at line 283 of file intern.h.

Referenced by rb_struct_init_copy().

◆ rb_argv

#define rb_argv   rb_get_argv()

Definition at line 663 of file intern.h.

Referenced by ruby_set_argv().

◆ rb_ary_new2

#define rb_ary_new2   rb_ary_new_capa

◆ rb_ary_new3

#define rb_ary_new3   rb_ary_new_from_args

◆ rb_ary_new4

#define rb_ary_new4   rb_ary_new_from_values

Definition at line 92 of file intern.h.

Referenced by rb_ary_resurrect(), rb_enum_values_pack(), and rb_scan_args().

◆ rb_big2int

#define rb_big2int (   x)    rb_big2long(x)

Definition at line 106 of file intern.h.

◆ rb_big2uint

#define rb_big2uint (   x)    rb_big2ulong(x)

Definition at line 108 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_object(frozen_obj); \
} \
} while (0)
#define OBJ_FROZEN(x)
Definition: ruby.h:1304

Definition at line 255 of file intern.h.

Referenced by rb_check_copyable(), and rb_check_frozen().

◆ rb_check_trusted

#define rb_check_trusted (   obj)    rb_check_trusted_inline(obj)

Definition at line 277 of file intern.h.

◆ rb_check_trusted_internal

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

Definition at line 261 of file intern.h.

◆ rb_Complex1

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

Definition at line 184 of file intern.h.

◆ rb_Complex2

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

Definition at line 185 of file intern.h.

◆ rb_complex_new1

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

Definition at line 180 of file intern.h.

◆ rb_complex_new2

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

Definition at line 181 of file intern.h.

◆ rb_complex_raw1

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

Definition at line 177 of file intern.h.

Referenced by rb_big_pow().

◆ rb_complex_raw2

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

Definition at line 178 of file intern.h.

◆ rb_defout

#define rb_defout   rb_stdout

Definition at line 513 of file intern.h.

◆ rb_enc_str_new_lit

#define rb_enc_str_new_lit (   str,
  enc 
)    rb_enc_str_new_static((str), rb_strlen_lit(str), (enc))

Definition at line 849 of file intern.h.

◆ rb_enc_str_new_literal

#define rb_enc_str_new_literal (   str,
  enc 
)    rb_enc_str_new_lit(str, enc)

Definition at line 853 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 228 of file intern.h.

◆ rb_exc_new2

#define rb_exc_new2   rb_exc_new_cstr

Definition at line 243 of file intern.h.

◆ rb_exc_new3

#define rb_exc_new3   rb_exc_new_str

Definition at line 244 of file intern.h.

Referenced by rb_enc_raise(), rb_fatal(), rb_raise(), and rb_vm_register_special_exception_str().

◆ rb_fd_clr

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

Definition at line 349 of file intern.h.

◆ rb_fd_copy

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

Definition at line 351 of file intern.h.

◆ rb_fd_dup

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

Definition at line 352 of file intern.h.

◆ rb_fd_init

#define rb_fd_init (   f)    FD_ZERO(f)

Definition at line 355 of file intern.h.

Referenced by rb_w32_select_with_thread().

◆ rb_fd_init_copy

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

Definition at line 356 of file intern.h.

◆ rb_fd_isset

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

Definition at line 350 of file intern.h.

◆ rb_fd_max

#define rb_fd_max (   f)    FD_SETSIZE

Definition at line 358 of file intern.h.

◆ rb_fd_ptr

#define rb_fd_ptr (   f)    (f)

Definition at line 354 of file intern.h.

◆ rb_fd_resize

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

Definition at line 353 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 359 of file intern.h.

◆ rb_fd_set

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

Definition at line 348 of file intern.h.

◆ rb_fd_term

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

Definition at line 357 of file intern.h.

◆ rb_fd_zero

#define rb_fd_zero (   f)    FD_ZERO(f)

Definition at line 347 of file intern.h.

◆ rb_hash_end

#define rb_hash_end (   h)    st_hash_end(h)

Definition at line 748 of file intern.h.

◆ rb_hash_uint

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

Definition at line 747 of file intern.h.

◆ rb_hash_uint32

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

Definition at line 746 of file intern.h.

◆ rb_memcmp

#define rb_memcmp   memcmp

Definition at line 644 of file intern.h.

◆ RB_NUM_COERCE_FUNCS_NEED_OPID

#define RB_NUM_COERCE_FUNCS_NEED_OPID   1

Definition at line 557 of file intern.h.

◆ RB_OBJ_INIT_COPY

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

Definition at line 281 of file intern.h.

◆ rb_Rational1

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

Definition at line 169 of file intern.h.

◆ rb_Rational2

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

Definition at line 170 of file intern.h.

◆ rb_rational_new1

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

Definition at line 166 of file intern.h.

◆ rb_rational_new2

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

Definition at line 167 of file intern.h.

◆ rb_rational_raw1

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

Definition at line 163 of file intern.h.

Referenced by rb_numeric_quo().

◆ rb_rational_raw2

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

Definition at line 164 of file intern.h.

◆ RB_RESERVED_FD_P

#define RB_RESERVED_FD_P (   fd)    rb_reserved_fd_p(fd)

Definition at line 548 of file intern.h.

◆ rb_str_buf_cat

#define rb_str_buf_cat   rb_str_cat

Definition at line 842 of file intern.h.

◆ rb_str_buf_cat2

#define rb_str_buf_cat2   rb_str_cat_cstr

Definition at line 843 of file intern.h.

◆ rb_str_buf_new2

#define rb_str_buf_new2   rb_str_buf_new_cstr

Definition at line 840 of file intern.h.

◆ rb_str_cat2

#define rb_str_cat2   rb_str_cat_cstr

Definition at line 844 of file intern.h.

◆ rb_str_dup_frozen

#define rb_str_dup_frozen   rb_str_new_frozen

Definition at line 724 of file intern.h.

◆ rb_str_new2

#define rb_str_new2   rb_str_new_cstr

◆ rb_str_new3

#define rb_str_new3   rb_str_new_shared

Definition at line 836 of file intern.h.

Referenced by rb_reg_quote().

◆ rb_str_new4

#define rb_str_new4   rb_str_new_frozen

Definition at line 837 of file intern.h.

Referenced by rsock_bsock_send().

◆ rb_str_new5

#define rb_str_new5   rb_str_new_with_class

Definition at line 838 of file intern.h.

◆ rb_str_new_lit

#define rb_str_new_lit (   str)    rb_str_new_static((str), rb_strlen_lit(str))

Definition at line 846 of file intern.h.

◆ rb_str_new_literal

#define rb_str_new_literal (   str)    rb_str_new_lit(str)

Definition at line 850 of file intern.h.

◆ rb_strlen_lit

#define rb_strlen_lit (   str)    (sizeof(str "") - 1)

Definition at line 845 of file intern.h.

◆ rb_tainted_str_new2

#define rb_tainted_str_new2   rb_tainted_str_new_cstr

Definition at line 839 of file intern.h.

Referenced by rb_dir_getwd_ospath().

◆ rb_usascii_str_new2

#define rb_usascii_str_new2   rb_usascii_str_new_cstr

Definition at line 841 of file intern.h.

Referenced by rb_fix2str().

◆ rb_usascii_str_new_lit

#define rb_usascii_str_new_lit (   str)    rb_usascii_str_new_static((str), rb_strlen_lit(str))

Definition at line 847 of file intern.h.

◆ rb_usascii_str_new_literal

#define rb_usascii_str_new_literal (   str)    rb_usascii_str_new_lit(str)

Definition at line 851 of file intern.h.

◆ rb_utf8_str_new_lit

#define rb_utf8_str_new_lit (   str)    rb_utf8_str_new_static((str), rb_strlen_lit(str))

Definition at line 848 of file intern.h.

◆ rb_utf8_str_new_literal

#define rb_utf8_str_new_literal (   str)    rb_utf8_str_new_lit(str)

Definition at line 852 of file intern.h.

◆ RETURN_ENUMERATOR

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

Definition at line 238 of file intern.h.

◆ RETURN_SIZED_ENUMERATOR

#define RETURN_SIZED_ENUMERATOR (   obj,
  argc,
  argv,
  size_fn 
)
Value:
do { \
if (!rb_block_given_p()) \
return SIZED_ENUMERATOR(obj, argc, argv, size_fn); \
} while (0)
int rb_block_given_p(void)
Determines if the current method is given a block.
Definition: eval.c:835
int argc
Definition: ruby.c:187
#define SIZED_ENUMERATOR(obj, argc, argv, size_fn)
Definition: intern.h:231
char ** argv
Definition: ruby.c:188

Definition at line 234 of file intern.h.

Referenced by rb_ary_each(), rb_hash_delete_if(), rb_hash_keep_if(), rb_hash_reject_bang(), and rb_hash_select_bang().

◆ RUBY_UBF_IO

#define RUBY_UBF_IO   ((rb_unblock_function_t *)-1)

Definition at line 877 of file intern.h.

◆ RUBY_UBF_PROCESS

#define RUBY_UBF_PROCESS   ((rb_unblock_function_t *)-1)

Definition at line 878 of file intern.h.

◆ SIZED_ENUMERATOR

#define SIZED_ENUMERATOR (   obj,
  argc,
  argv,
  size_fn 
)
Value:
(argc), (argv), (size_fn))
int argc
Definition: ruby.c:187
#define rb_enumeratorize_with_size(obj, id, argc, argv, size_fn)
Definition: intern.h:228
ID rb_frame_this_func(void)
The original name of the current method.
Definition: eval.c:1103
#define ID2SYM(x)
Definition: ruby.h:383
char ** argv
Definition: ruby.c:188

Definition at line 231 of file intern.h.

◆ UNLIMITED_ARGUMENTS

#define UNLIMITED_ARGUMENTS   (-1)

Definition at line 44 of file intern.h.

Referenced by rb_ary_dig(), rb_f_kill(), rb_hash_dig(), and rb_vm_ifunc_new().

Typedef Documentation

◆ rb_alloc_func_t

typedef VALUE(* rb_alloc_func_t) (VALUE)

Definition at line 370 of file intern.h.

◆ rb_blocking_function_t

typedef VALUE rb_blocking_function_t(void *)

Definition at line 873 of file intern.h.

◆ rb_enumerator_size_func

typedef VALUE rb_enumerator_size_func(VALUE, VALUE, VALUE)

Definition at line 225 of file intern.h.

◆ rb_fdset_t

typedef fd_set rb_fdset_t

Definition at line 346 of file intern.h.

◆ rb_hash_update_func

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

Definition at line 505 of file intern.h.

◆ rb_unblock_function_t

typedef void rb_unblock_function_t(void *)

Definition at line 872 of file intern.h.

Function Documentation

◆ CONSTFUNC() [1/3]

CONSTFUNC ( void   rb_error_untrustedVALUE)

◆ CONSTFUNC() [2/3]

CONSTFUNC ( VALUE   rb_dbl_cmpdouble, double)

◆ CONSTFUNC() [3/3]

CONSTFUNC ( int   rb_is_const_idID)

◆ NORETURN() [1/10]

NORETURN ( void   rb_cmperrVALUE, VALUE)

◆ NORETURN() [2/10]

NORETURN ( void   rb_invalid_strconst char *, const char *)

◆ NORETURN() [3/10]

NORETURN ( void   rb_error_frozenconst char *)

◆ NORETURN() [4/10]

NORETURN ( void   rb_error_frozen_objectVALUE)

◆ NORETURN() [5/10]

NORETURN ( void   rb_error_arityint, int, int)

◆ NORETURN() [6/10]

NORETURN ( VALUE   rb_f_exitint, const VALUE *)

◆ NORETURN() [7/10]

NORETURN ( VALUE   rb_f_notimplementint argc, const VALUE *argv, VALUE obj)

◆ NORETURN() [8/10]

NORETURN ( void   rb_interruptvoid)

◆ NORETURN() [9/10]

NORETURN ( void   rb_jump_tagint)

◆ NORETURN() [10/10]

NORETURN ( VALUE   rb_mod_const_missingVALUE, VALUE)

◆ PRINTF_ARGS() [1/6]

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

◆ PRINTF_ARGS() [2/6]

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

◆ PRINTF_ARGS() [3/6]

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

◆ PRINTF_ARGS() [4/6]

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

◆ PRINTF_ARGS() [5/6]

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

◆ PRINTF_ARGS() [6/6]

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

◆ PUREFUNC() [1/4]

PUREFUNC ( int   rb_during_gcvoid)

◆ PUREFUNC() [2/4]

PUREFUNC ( VALUE   rb_obj_taintedVALUE)

◆ PUREFUNC() [3/4]

PUREFUNC ( VALUE   rb_class_inherited_pVALUE, VALUE)

◆ PUREFUNC() [4/4]

PUREFUNC ( size_t   rb_str_capacityVALUE)

◆ rb_absint_numwords()

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

Definition at line 3364 of file bignum.c.

References CHAR_BIT, rb_absint_size(), and SIZE_MAX.

◆ rb_absint_singlebit_p()

int rb_absint_singlebit_p ( VALUE  val)

Definition at line 3428 of file bignum.c.

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

Referenced by rb_big_bit_length().

◆ 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_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 744 of file vm_eval.c.

References argc, argv, OBJ_FREEZE, RARRAY_LENINT, rb_ary_subseq(), and RBASIC_CLEAR_CLASS.

◆ rb_ary_aref()

VALUE rb_ary_aref ( int  ,
const VALUE ,
VALUE   
)

◆ rb_ary_assoc()

VALUE rb_ary_assoc ( VALUE  ,
VALUE   
)

Definition at line 3792 of file array.c.

References NIL_P, Qnil, RARRAY_AREF, RARRAY_LEN, rb_check_array_type(), and rb_equal().

◆ rb_ary_cat()

VALUE rb_ary_cat ( VALUE  ,
const VALUE ,
long   
)

Definition at line 936 of file array.c.

References RARRAY_LEN.

◆ rb_ary_clear()

VALUE rb_ary_clear ( VALUE  )

Definition at line 3501 of file array.c.

Referenced by rb_threadptr_pending_interrupt_clear().

◆ rb_ary_cmp()

VALUE rb_ary_cmp ( VALUE  ,
VALUE   
)

Definition at line 4055 of file array.c.

References INT2FIX, len, NIL_P, Qnil, rb_check_array_type(), and rb_exec_recursive_paired().

◆ rb_ary_concat()

VALUE rb_ary_concat ( VALUE  ,
VALUE   
)

Definition at line 3703 of file array.c.

◆ rb_ary_delete()

VALUE rb_ary_delete ( VALUE  ,
VALUE   
)

Definition at line 3006 of file array.c.

References Qnil, RARRAY_AREF, RARRAY_LEN, rb_ary_store(), rb_block_given_p(), rb_equal(), and rb_yield().

◆ rb_ary_delete_at()

VALUE rb_ary_delete_at ( VALUE  ,
long   
)

Definition at line 3059 of file array.c.

References ARY_INCREASE_LEN, len, MEMMOVE, Qnil, RARRAY_AREF, RARRAY_LEN, RARRAY_PTR_USE, and rb_ary_modify().

◆ rb_ary_dup()

VALUE rb_ary_dup ( VALUE  )

Definition at line 1930 of file array.c.

References RARRAY_LEN, and rb_ary_new2.

Referenced by rb_ary_sort().

◆ rb_ary_each()

VALUE rb_ary_each ( VALUE  )

Definition at line 1821 of file array.c.

References RETURN_SIZED_ENUMERATOR.

◆ rb_ary_entry()

VALUE rb_ary_entry ( VALUE  ,
long   
)

Definition at line 1215 of file array.c.

References len, Qnil, RARRAY_CONST_PTR, and RARRAY_LEN.

Referenced by rb_ary_aref(), rb_ary_at(), and rb_error_frozen_object().

◆ rb_ary_free()

void rb_ary_free ( VALUE  )

◆ rb_ary_freeze()

VALUE rb_ary_freeze ( VALUE  )

Definition at line 409 of file array.c.

References rb_obj_freeze().

◆ rb_ary_includes()

VALUE rb_ary_includes ( VALUE  ,
VALUE   
)

Definition at line 3975 of file array.c.

References Qfalse, Qtrue, RARRAY_AREF, RARRAY_LEN, and rb_equal().

◆ rb_ary_join()

VALUE rb_ary_join ( VALUE  ,
VALUE   
)

Definition at line 2037 of file array.c.

References FALSE, and val.

◆ rb_ary_modify()

void rb_ary_modify ( VALUE  )

◆ rb_ary_new()

VALUE rb_ary_new ( void  )

◆ rb_ary_new_capa()

VALUE rb_ary_new_capa ( long  capa)

Definition at line 493 of file array.c.

Referenced by rb_hash_keys(), and rb_hash_values().

◆ rb_ary_new_from_args()

VALUE rb_ary_new_from_args ( long  n,
  ... 
)

Definition at line 505 of file array.c.

References ARY_SET, ARY_SET_LEN, and rb_ary_new2.

Referenced by rb_iseq_pathobj_new().

◆ rb_ary_new_from_values()

VALUE rb_ary_new_from_values ( long  n,
const VALUE elts 
)

Definition at line 538 of file array.c.

References rb_ary_tmp_new_from_values(), and rb_cArray.

◆ rb_ary_plus()

VALUE rb_ary_plus ( VALUE  ,
VALUE   
)

Definition at line 3635 of file array.c.

References len.

◆ rb_ary_pop()

VALUE rb_ary_pop ( VALUE  )

Definition at line 968 of file array.c.

◆ rb_ary_push()

VALUE rb_ary_push ( VALUE  ,
VALUE   
)

◆ rb_ary_rassoc()

VALUE rb_ary_rassoc ( VALUE  ,
VALUE   
)

Definition at line 3825 of file array.c.

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

◆ rb_ary_replace()

VALUE rb_ary_replace ( VALUE  copy,
VALUE  orig 
)

Definition at line 3451 of file array.c.

◆ 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 1648 of file array.c.

References ARY_CAPA, ARY_MAX_SIZE, RARRAY_LEN, rb_ary_modify(), rb_eIndexError, and rb_raise().

Referenced by rb_get_values_at().

◆ rb_ary_resurrect()

VALUE rb_ary_resurrect ( VALUE  ary)

Definition at line 1940 of file array.c.

References RARRAY_CONST_PTR, RARRAY_LEN, rb_ary_new4, and rb_output_fs.

◆ rb_ary_reverse()

VALUE rb_ary_reverse ( VALUE  )

Definition at line 2224 of file array.c.

References RARRAY_LEN, RARRAY_PTR_USE, and rb_ary_modify().

◆ rb_ary_rotate()

VALUE rb_ary_rotate ( VALUE  ,
long   
)

Definition at line 2288 of file array.c.

References RARRAY_LEN, RARRAY_PTR, and rb_ary_modify().

◆ rb_ary_shared_with_p()

VALUE rb_ary_shared_with_p ( VALUE  ,
VALUE   
)

Definition at line 437 of file array.c.

References ARY_EMBED_P, ARY_SHARED_P, Qfalse, Qtrue, and RARRAY.

Referenced by rb_get_expanded_load_path().

◆ rb_ary_shift()

VALUE rb_ary_shift ( VALUE  )

Definition at line 1019 of file array.c.

References RARRAY_LEN, and top.

◆ rb_ary_sort()

VALUE rb_ary_sort ( VALUE  )

Definition at line 2549 of file array.c.

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

◆ rb_ary_sort_bang()

VALUE rb_ary_sort_bang ( VALUE  )

Definition at line 2465 of file array.c.

References ARY_SHARED_P, assert, RARRAY_LEN, and rb_ary_modify().

Referenced by rb_ary_sort().

◆ rb_ary_store()

void rb_ary_store ( VALUE  ,
long  ,
VALUE   
)

◆ rb_ary_subseq()

VALUE rb_ary_subseq ( VALUE  ,
long  ,
long   
)

Definition at line 1231 of file array.c.

References Qnil, RARRAY_LEN, and rb_obj_class().

Referenced by rb_apply(), and rb_ary_aref().

◆ rb_ary_tmp_new()

VALUE rb_ary_tmp_new ( long  )

◆ rb_ary_to_ary()

VALUE rb_ary_to_ary ( VALUE  )

Definition at line 1553 of file array.c.

References NIL_P, rb_ary_new3, and rb_check_array_type().

◆ rb_ary_to_s()

VALUE rb_ary_to_s ( VALUE  )

Definition at line 2143 of file array.c.

◆ rb_ary_unshift()

VALUE rb_ary_unshift ( VALUE  ,
VALUE   
)

Definition at line 1197 of file array.c.

◆ rb_assoc_new()

VALUE rb_assoc_new ( VALUE  ,
VALUE   
)

Definition at line 639 of file array.c.

References rb_ary_new3.

Referenced by rb_big_divrem_normal(), and rsock_ipaddr().

◆ rb_attr()

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

Definition at line 1137 of file vm_method.c.

References METHOD_VISI_PUBLIC.

Referenced by rb_define_attr().

◆ rb_attr_get()

VALUE rb_attr_get ( VALUE  ,
ID   
)

◆ rb_autoload_load()

VALUE rb_autoload_load ( VALUE  ,
ID   
)

Definition at line 2151 of file variable.c.

◆ rb_autoload_p()

VALUE rb_autoload_p ( VALUE  ,
ID   
)

Definition at line 2201 of file variable.c.

◆ rb_backref_get()

VALUE rb_backref_get ( void  )

Definition at line 1229 of file vm.c.

Referenced by rb_f_global_variables().

◆ rb_backref_set()

void rb_backref_set ( VALUE  )

Definition at line 1235 of file vm.c.

Referenced by rb_reg_match2().

◆ rb_backtrace()

void rb_backtrace ( void  )

Definition at line 770 of file vm_backtrace.c.

◆ rb_big2dbl()

double rb_big2dbl ( VALUE  )

Definition at line 5270 of file bignum.c.

Referenced by rb_big_mul(), and rb_float_pow().

◆ rb_big2long()

long rb_big2long ( VALUE  )

Definition at line 5108 of file bignum.c.

Referenced by rb_num2long().

◆ rb_big2str()

VALUE rb_big2str ( VALUE  ,
int   
)

Definition at line 5062 of file bignum.c.

Referenced by rb_int2str().

◆ rb_big2ulong()

unsigned long rb_big2ulong ( VALUE  )

Definition at line 5093 of file bignum.c.

Referenced by rb_num_to_uint().

◆ rb_big_2comp()

void rb_big_2comp ( VALUE  )

Definition at line 3031 of file bignum.c.

◆ rb_big_and()

VALUE rb_big_and ( VALUE  ,
VALUE   
)

◆ rb_big_clone()

VALUE rb_big_clone ( VALUE  )

Definition at line 3002 of file bignum.c.

References BIGNUM_LEN.

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

◆ rb_big_cmp()

VALUE rb_big_cmp ( VALUE  ,
VALUE   
)

Definition at line 5367 of file bignum.c.

References FIXNUM_P.

Referenced by rb_integer_float_cmp().

◆ rb_big_div()

VALUE rb_big_div ( VALUE  ,
VALUE   
)

Definition at line 6036 of file bignum.c.

◆ rb_big_divmod()

VALUE rb_big_divmod ( VALUE  ,
VALUE   
)

Definition at line 6080 of file bignum.c.

References div, FIX2LONG, FIXNUM_P, mod, RB_BIGNUM_TYPE_P, rb_int2big(), rb_intern, and rb_num_coerce_bin().

◆ rb_big_eq()

VALUE rb_big_eq ( VALUE  ,
VALUE   
)

Definition at line 5472 of file bignum.c.

References FIXNUM_P.

Referenced by rb_integer_float_eq().

◆ rb_big_eql()

VALUE rb_big_eql ( VALUE  ,
VALUE   
)

Definition at line 5492 of file bignum.c.

References BDIGIT, BDIGITS, BIGNUM_LEN, BIGNUM_SIGN, MEMCMP, Qfalse, Qtrue, and RB_BIGNUM_TYPE_P.

◆ rb_big_idiv()

VALUE rb_big_idiv ( VALUE  ,
VALUE   
)

Definition at line 6042 of file bignum.c.

◆ rb_big_lshift()

VALUE rb_big_lshift ( VALUE  ,
VALUE   
)

Definition at line 6559 of file bignum.c.

References FIX2LONG, and FIXNUM_P.

◆ rb_big_minus()

VALUE rb_big_minus ( VALUE  ,
VALUE   
)

Definition at line 5801 of file bignum.c.

References BIGNUM_SIGN, FIX2LONG, and FIXNUM_P.

Referenced by rb_int_pred().

◆ rb_big_modulo()

VALUE rb_big_modulo ( VALUE  ,
VALUE   
)

Definition at line 6048 of file bignum.c.

References FIX2LONG, FIXNUM_P, RB_BIGNUM_TYPE_P, rb_int2big(), and rb_num_coerce_bin().

◆ rb_big_mul()

VALUE rb_big_mul ( VALUE  ,
VALUE   
)

◆ rb_big_new()

VALUE rb_big_new ( size_t  ,
int   
)

Definition at line 2996 of file bignum.c.

References bignew.

◆ rb_big_norm()

VALUE rb_big_norm ( VALUE  )

Definition at line 3134 of file bignum.c.

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

Definition at line 5772 of file bignum.c.

References BIGNUM_SIGN, FIX2LONG, and FIXNUM_P.

Referenced by rb_int_succ().

◆ rb_big_pow()

VALUE rb_big_pow ( VALUE  ,
VALUE   
)

◆ rb_big_resize()

void rb_big_resize ( VALUE  big,
size_t  len 
)

Definition at line 2971 of file bignum.c.

◆ rb_big_rshift()

VALUE rb_big_rshift ( VALUE  ,
VALUE   
)

Definition at line 6589 of file bignum.c.

References FIX2LONG, and FIXNUM_P.

◆ 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 2901 of file bignum.c.

References BIGZEROP.

◆ rb_binding_new()

VALUE rb_binding_new ( void  )

◆ rb_block_lambda()

VALUE rb_block_lambda ( void  )

Definition at line 794 of file proc.c.

◆ rb_block_proc()

VALUE rb_block_proc ( void  )

Definition at line 780 of file proc.c.

Referenced by rb_f_trace_var(), and rb_method_call().

◆ rb_check_array_type()

VALUE rb_check_array_type ( VALUE  )

Definition at line 651 of file array.c.

References rb_check_convert_type_with_id(), and T_ARRAY.

Referenced by rb_Array(), rb_ary_assoc(), rb_ary_cmp(), rb_ary_to_ary(), and rb_yield_splat().

◆ rb_check_funcall()

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

Definition at line 389 of file vm_eval.c.

References Qundef, and rb_check_funcall_default().

Referenced by rb_iseq_load_iseq(), and rb_threadptr_error_print().

◆ rb_check_hash_type()

VALUE rb_check_hash_type ( VALUE  )

Definition at line 722 of file hash.c.

References rb_check_convert_type_with_id(), and T_HASH.

Referenced by rb_Hash(), and rb_scan_args().

◆ rb_check_string_type()

VALUE rb_check_string_type ( VALUE  )

◆ rb_class_name()

VALUE rb_class_name ( VALUE  )

Definition at line 444 of file variable.c.

References rb_class_path(), and rb_class_real().

Referenced by rb_any_to_s(), rb_const_warn_if_deprecated(), rb_cvar_get(), and rb_cvar_set().

◆ rb_class_path()

VALUE rb_class_path ( VALUE  )

Definition at line 295 of file variable.c.

References fc_result::path.

Referenced by rb_class_name(), rb_define_class_id_under(), and rb_thread_current_status().

◆ rb_class_path_cached()

VALUE rb_class_path_cached ( VALUE  )

Definition at line 319 of file variable.c.

References Qnil, RCLASS_IV_TBL, st_data_t, and st_lookup.

◆ rb_clear_constant_cache()

void rb_clear_constant_cache ( void  )

Definition at line 84 of file vm_method.c.

References INC_GLOBAL_CONSTANT_STATE.

Referenced by rb_const_remove().

◆ rb_clear_method_cache_by_class()

void rb_clear_method_cache_by_class ( VALUE  )

◆ rb_cloexec_dup()

int rb_cloexec_dup ( int  oldfd)

Definition at line 283 of file io.c.

References rb_cloexec_fcntl_dupfd().

◆ rb_cloexec_dup2()

int rb_cloexec_dup2 ( int  oldfd,
int  newfd 
)

Definition at line 290 of file io.c.

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

◆ rb_cloexec_fcntl_dupfd()

int rb_cloexec_fcntl_dupfd ( int  fd,
int  minfd 
)

Definition at line 362 of file io.c.

References errno, F_DUPFD, F_DUPFD_CLOEXEC, 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 
)

Definition at line 257 of file io.c.

References O_CLOEXEC, and rb_maygvl_fd_fix_cloexec().

Referenced by rb_file_load_ok(), and rb_pipe().

◆ rb_cloexec_pipe()

int rb_cloexec_pipe ( int  fildes[2])

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

◆ rb_cmpint()

int rb_cmpint ( VALUE  ,
VALUE  ,
VALUE   
)

◆ rb_Complex()

VALUE rb_Complex ( VALUE  ,
VALUE   
)

Definition at line 1460 of file complex.c.

◆ rb_complex_new()

VALUE rb_complex_new ( VALUE  ,
VALUE   
)

Definition at line 1448 of file complex.c.

◆ rb_complex_polar()

VALUE rb_complex_polar ( VALUE  ,
VALUE   
)

Definition at line 1454 of file complex.c.

◆ rb_complex_raw()

VALUE rb_complex_raw ( VALUE  ,
VALUE   
)

Definition at line 1442 of file complex.c.

◆ rb_const_defined()

int rb_const_defined ( VALUE  ,
ID   
)

Definition at line 2537 of file variable.c.

Referenced by Init_cparse(), rb_define_class(), and rb_define_module().

◆ 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 2531 of file variable.c.

◆ rb_const_get()

VALUE rb_const_get ( VALUE  ,
ID   
)

◆ rb_const_get_at()

VALUE rb_const_get_at ( VALUE  ,
ID   
)

Definition at line 2298 of file variable.c.

Referenced by Init_cparse(), rb_define_class_id_under(), and rb_define_module_id_under().

◆ rb_const_get_from()

VALUE rb_const_get_from ( VALUE  ,
ID   
)

Definition at line 2286 of file variable.c.

◆ rb_const_list()

VALUE rb_const_list ( void *  )

Definition at line 2449 of file variable.c.

References st_table::num_entries, rb_ary_new2, and st_foreach_safe().

Referenced by rb_mod_constants().

◆ rb_const_remove()

VALUE rb_const_remove ( VALUE  ,
ID   
)

◆ rb_const_set()

void rb_const_set ( VALUE  ,
ID  ,
VALUE   
)

◆ rb_copy_generic_ivar()

void rb_copy_generic_ivar ( VALUE  ,
VALUE   
)

Definition at line 1502 of file variable.c.

References FL_EXIVAR, FL_TEST, FL_UNSET, rb_check_frozen, and rb_free_generic_ivar().

◆ rb_cstr2inum()

VALUE rb_cstr2inum ( const char *  ,
int   
)

Definition at line 4509 of file bignum.c.

References rb_cstr_to_inum().

◆ rb_cstr_to_inum()

VALUE rb_cstr_to_inum ( const char *  ,
int  ,
int   
)

Definition at line 3992 of file bignum.c.

References INT2FIX, NIL_P, NULL, rb_cstr_parse_inum(), and rb_invalid_str().

Referenced by rb_cstr2inum().

◆ rb_cv_get()

VALUE rb_cv_get ( VALUE  ,
const char *   
)

Definition at line 2932 of file variable.c.

◆ rb_cv_set()

void rb_cv_set ( VALUE  ,
const char *  ,
VALUE   
)

Definition at line 2925 of file variable.c.

◆ rb_cvar_defined()

VALUE rb_cvar_defined ( VALUE  ,
ID   
)

Definition at line 2906 of file variable.c.

References CVAR_LOOKUP, Qfalse, and Qtrue.

Referenced by 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  )

Definition at line 5214 of file bignum.c.

Referenced by rb_integer_float_cmp(), and rb_integer_float_eq().

◆ 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 2939 of file variable.c.

◆ rb_define_finalizer()

VALUE rb_define_finalizer ( VALUE  ,
VALUE   
)

Definition at line 2748 of file gc.c.

◆ rb_detach_process()

VALUE rb_detach_process ( rb_pid_t  pid)

Definition at line 1097 of file process.c.

References rb_thread_create().

◆ rb_dir_getwd()

VALUE rb_dir_getwd ( void  )

◆ rb_enum_values_pack()

VALUE rb_enum_values_pack ( int  ,
const VALUE  
)

Definition at line 32 of file enum.c.

References Qnil, and rb_ary_new4.

◆ rb_enumeratorize()

VALUE rb_enumeratorize ( VALUE  ,
VALUE  ,
int  ,
const VALUE  
)

Definition at line 450 of file enumerator.c.

References rb_enumeratorize_with_size().

◆ rb_enumeratorize_with_size()

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

Definition at line 459 of file enumerator.c.

References rb_cLazy, rb_obj_is_kind_of(), and RTEST.

Referenced by rb_enumeratorize().

◆ rb_env_clear()

VALUE rb_env_clear ( void  )

Definition at line 4004 of file hash.c.

◆ rb_env_path_tainted()

int rb_env_path_tainted ( void  )

Definition at line 3424 of file hash.c.

◆ rb_eval_cmd()

VALUE rb_eval_cmd ( VALUE  ,
VALUE  ,
int   
)

◆ rb_exec_end_proc()

void rb_exec_end_proc ( void  )

◆ rb_exec_recursive()

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

Definition at line 4709 of file thread.c.

Referenced by rb_invcmp(), and rb_io_puts().

◆ rb_exec_recursive_outer()

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

Definition at line 4732 of file thread.c.

Referenced by rb_hash().

◆ rb_exec_recursive_paired()

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

Definition at line 4720 of file thread.c.

Referenced by rb_ary_cmp().

◆ rb_exec_recursive_paired_outer()

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

Definition at line 4744 of file thread.c.

◆ rb_external_str_new()

VALUE rb_external_str_new ( const char *  ,
long   
)

Definition at line 1055 of file string.c.

References rb_default_external_encoding(), and rb_external_str_new_with_enc().

◆ rb_external_str_new_cstr()

VALUE rb_external_str_new_cstr ( const char *  )

◆ rb_f_global_variables()

VALUE rb_f_global_variables ( void  )

Definition at line 884 of file variable.c.

References rb_ary_new(), rb_backref_get(), rb_id_table_foreach(), and sym.

◆ rb_f_kill()

VALUE rb_f_kill ( int  ,
const VALUE  
)

◆ rb_f_require()

VALUE rb_f_require ( VALUE  ,
VALUE   
)

Definition at line 827 of file load.c.

References rb_require_safe(), and rb_safe_level().

◆ rb_f_sprintf()

VALUE rb_f_sprintf ( int  ,
const VALUE  
)

Definition at line 458 of file sprintf.c.

References GETNTHARG, and rb_str_format().

Referenced by rb_io_printf().

◆ rb_f_trace_var()

VALUE rb_f_trace_var ( int  ,
const VALUE  
)

◆ rb_f_untrace_var()

VALUE rb_f_untrace_var ( int  ,
const VALUE  
)

◆ rb_fd_fix_cloexec()

void rb_fd_fix_cloexec ( int  fd)

Definition at line 233 of file io.c.

References rb_maygvl_fd_fix_cloexec(), and rb_update_max_fd().

◆ rb_feature_provided()

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

Definition at line 528 of file load.c.

References IS_RBEXT, Qnil, rb_file_expand_path_fast(), rb_get_path(), rb_str_new2, RSTRING_PTR, strchr(), and strrchr().

Referenced by rb_provided().

◆ rb_fiber_alive_p()

VALUE rb_fiber_alive_p ( VALUE  )

Definition at line 1631 of file cont.c.

References FIBER_TERMINATED_P, GetFiberPtr, Qfalse, and Qtrue.

◆ rb_fiber_current()

VALUE rb_fiber_current ( void  )

Definition at line 1419 of file cont.c.

◆ rb_fiber_new()

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

Definition at line 1317 of file cont.c.

◆ rb_fiber_resume()

VALUE rb_fiber_resume ( VALUE  fib,
int  argc,
const VALUE argv 
)

◆ rb_fiber_yield()

VALUE rb_fiber_yield ( int  argc,
const VALUE argv 
)

Definition at line 1606 of file cont.c.

◆ rb_file_absolute_path()

VALUE rb_file_absolute_path ( VALUE  ,
VALUE   
)

Definition at line 3823 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 1405 of file file.c.

◆ rb_file_dirname()

VALUE rb_file_dirname ( VALUE  fname)

Definition at line 4317 of file file.c.

References FilePathStringValue, name, rb_enc_get(), RSTRING_LEN, and StringValueCStr.

Referenced by rb_f_require_relative().

◆ rb_file_expand_path()

VALUE rb_file_expand_path ( VALUE  ,
VALUE   
)

Definition at line 3775 of file file.c.

References check_expand_path_args, expand_path, and EXPAND_PATH_BUFFER.

Referenced by rb_file_s_expand_path().

◆ rb_file_open()

VALUE rb_file_open ( const char *  ,
const char *   
)

Definition at line 5917 of file io.c.

◆ rb_file_open_str()

VALUE rb_file_open_str ( VALUE  ,
const char *   
)

Definition at line 5910 of file io.c.

References FilePathValue.

◆ rb_file_s_absolute_path()

VALUE rb_file_s_absolute_path ( int  ,
const VALUE  
)

◆ rb_file_s_expand_path()

VALUE rb_file_s_expand_path ( int  ,
const VALUE  
)

Definition at line 3816 of file file.c.

References Qnil, rb_check_arity, and rb_file_expand_path().

◆ rb_filesystem_str_new()

VALUE rb_filesystem_str_new ( const char *  ,
long   
)

Definition at line 1079 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 5965 of file file.c.

References rb_find_file_safe(), and rb_safe_level().

◆ rb_find_file_ext()

int rb_find_file_ext ( VALUE ,
const char *const  
)

Definition at line 5893 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   
)

Definition at line 5899 of file file.c.

References f, and StringValueCStr.

Referenced by rb_find_file_ext().

◆ rb_find_file_safe()

VALUE rb_find_file_safe ( VALUE  ,
int   
)

Definition at line 5971 of file file.c.

References f, and StringValueCStr.

Referenced by rb_find_file().

◆ rb_fix2str()

VALUE rb_fix2str ( VALUE  ,
int   
)

◆ rb_flt_rationalize()

VALUE rb_flt_rationalize ( VALUE  )

Definition at line 2273 of file rational.c.

References f.

◆ rb_flt_rationalize_with_prec()

VALUE rb_flt_rationalize_with_prec ( VALUE  ,
VALUE   
)

Definition at line 2257 of file rational.c.

References f_abs.

◆ rb_frame_method_id_and_class()

int rb_frame_method_id_and_class ( ID idp,
VALUE klassp 
)

Definition at line 2070 of file vm.c.

References GET_THREAD, and rb_thread_method_id_and_class().

◆ rb_free_generic_ivar()

void rb_free_generic_ivar ( VALUE  )

Definition at line 1133 of file variable.c.

References RUBY_FUNC_EXPORTED, st_data_t, st_delete, st_free_table, and xfree().

Referenced by rb_copy_generic_ivar().

◆ rb_gc()

void rb_gc ( void  )

Definition at line 6727 of file gc.c.

References rb_objspace.

Referenced by rb_fdopen(), rb_gc_for_fd(), rb_gc_start(), and rb_reg_region_copy().

◆ rb_gc_adjust_memory_usage()

void rb_gc_adjust_memory_usage ( ssize_t  )

Definition at line 8191 of file gc.c.

◆ rb_gc_call_finalizer_at_exit()

void rb_gc_call_finalizer_at_exit ( void  )

Definition at line 2908 of file gc.c.

◆ rb_gc_copy_finalizer()

void rb_gc_copy_finalizer ( VALUE  ,
VALUE   
)

Definition at line 2756 of file gc.c.

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

◆ rb_gc_count()

size_t rb_gc_count ( void  )

Definition at line 6766 of file gc.c.

References rb_objspace::count, and rb_objspace::profile.

◆ rb_gc_disable()

VALUE rb_gc_disable ( void  )

Definition at line 7389 of file gc.c.

References dont_gc, and rb_objspace.

◆ rb_gc_enable()

VALUE rb_gc_enable ( void  )

Definition at line 7367 of file gc.c.

References dont_gc, FALSE, Qfalse, Qtrue, and rb_objspace.

◆ rb_gc_finalize_deferred()

void rb_gc_finalize_deferred ( void  )

Definition at line 2876 of file gc.c.

◆ rb_gc_force_recycle()

void rb_gc_force_recycle ( VALUE  )

Definition at line 6175 of file gc.c.

References rb_objspace.

Referenced by rb_parser_free(), and rb_str_tmp_frozen_release().

◆ rb_gc_latest_gc_info()

VALUE rb_gc_latest_gc_info ( VALUE  )

Definition at line 6881 of file gc.c.

References rb_objspace.

◆ rb_gc_mark()

void rb_gc_mark ( VALUE  )

◆ rb_gc_mark_locations()

void rb_gc_mark_locations ( const VALUE ,
const VALUE  
)

Definition at line 4081 of file gc.c.

◆ rb_gc_mark_maybe()

void rb_gc_mark_maybe ( VALUE  )

Definition at line 4320 of file gc.c.

Referenced by rb_gc_mark_node(), rb_gvar_val_marker(), and rb_gvar_var_marker().

◆ rb_gc_start()

VALUE rb_gc_start ( void  )

Definition at line 6720 of file gc.c.

References Qnil, and rb_gc().

◆ rb_gc_stat()

size_t rb_gc_stat ( VALUE  )

Definition at line 7295 of file gc.c.

References SYMBOL_P.

◆ rb_genrand_int32()

unsigned int rb_genrand_int32 ( void  )

Definition at line 264 of file random.c.

◆ rb_genrand_real()

double rb_genrand_real ( void  )

Definition at line 271 of file random.c.

◆ rb_genrand_ulong_limited()

unsigned long rb_genrand_ulong_limited ( unsigned long  i)

Definition at line 903 of file random.c.

◆ rb_get_alloc_func()

rb_alloc_func_t rb_get_alloc_func ( VALUE  )

Definition at line 681 of file vm_method.c.

References Check_Type, RCLASS_EXT, RCLASS_SUPER, T_CLASS, and UNDEF_ALLOC_FUNC.

Referenced by rb_marshal_define_compat().

◆ rb_get_argv()

VALUE rb_get_argv ( void  )

Definition at line 12413 of file io.c.

References ARGF.

◆ rb_get_values_at()

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

◆ rb_gets()

VALUE rb_gets ( void  )

Definition at line 8504 of file io.c.

References rb_default_rs, and rb_rs.

◆ rb_hash()

VALUE rb_hash ( VALUE  )

Definition at line 121 of file hash.c.

References hval, and rb_exec_recursive_outer().

◆ rb_hash_aref()

VALUE rb_hash_aref ( VALUE  ,
VALUE   
)

◆ rb_hash_aset()

VALUE rb_hash_aset ( VALUE  ,
VALUE  ,
VALUE   
)

Definition at line 1616 of file hash.c.

References RHASH, and RHASH_ITER_LEV.

Referenced by pruby_register_instance(), rb_uninterruptible(), and rb_vm_add_root_module().

◆ rb_hash_clear()

VALUE rb_hash_clear ( VALUE  )

Definition at line 1519 of file hash.c.

◆ rb_hash_delete()

VALUE rb_hash_delete ( VALUE  ,
VALUE   
)

Definition at line 1119 of file hash.c.

References Qnil, Qundef, and rb_hash_delete_entry().

Referenced by pruby_unregister_instance().

◆ rb_hash_delete_if()

VALUE rb_hash_delete_if ( VALUE  )

Definition at line 1253 of file hash.c.

References RETURN_SIZED_ENUMERATOR.

◆ rb_hash_dup()

VALUE rb_hash_dup ( VALUE  )

Definition at line 449 of file hash.c.

References RBASIC.

◆ rb_hash_end()

st_index_t rb_hash_end ( st_index_t  )

◆ rb_hash_fetch()

VALUE rb_hash_fetch ( VALUE  ,
VALUE   
)

Definition at line 917 of file hash.c.

Referenced by rb_hash_fetch_values().

◆ rb_hash_foreach()

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

Definition at line 385 of file hash.c.

References hash_foreach_arg::hash, RHASH, and RHASH_ITER_LEV.

Referenced by rb_hash_keys(), rb_hash_rassoc(), and rb_hash_values().

◆ rb_hash_freeze()

VALUE rb_hash_freeze ( VALUE  )

Definition at line 77 of file hash.c.

◆ rb_hash_lookup()

VALUE rb_hash_lookup ( VALUE  ,
VALUE   
)

Definition at line 853 of file hash.c.

References Qnil, and rb_hash_lookup2().

◆ rb_hash_lookup2()

VALUE rb_hash_lookup2 ( VALUE  ,
VALUE  ,
VALUE   
)

Definition at line 842 of file hash.c.

References RHASH, st_lookup, and val.

Referenced by rb_hash_lookup(), and rb_io_extract_encoding_option().

◆ rb_hash_new()

VALUE rb_hash_new ( void  )

◆ rb_hash_set_ifnone()

VALUE rb_hash_set_ifnone ( VALUE  hash,
VALUE  ifnone 
)

Definition at line 88 of file hash.c.

◆ rb_hash_size()

VALUE rb_hash_size ( VALUE  )

Definition at line 1718 of file hash.c.

References INT2FIX, and RHASH_SIZE.

◆ rb_hash_start()

st_index_t rb_hash_start ( st_index_t  )

Definition at line 1506 of file random.c.

References st_hash_start().

Referenced by rb_dbl_long_hash().

◆ rb_hash_tbl()

struct st_table* rb_hash_tbl ( VALUE  )

Definition at line 475 of file hash.c.

References OBJ_WB_UNPROTECT.

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

Definition at line 2594 of file hash.c.

◆ rb_id_attrset()

ID rb_id_attrset ( ID  )

Definition at line 100 of file symbol.c.

References is_notop_id, PRIsVALUE, rb_id2str(), rb_name_error(), sym, tAREF, and tASET.

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

Definition at line 3615 of file bignum.c.

References BDIGIT, and val.

Referenced by rb_big_unpack().

◆ rb_io_addstr()

VALUE rb_io_addstr ( VALUE  ,
VALUE   
)

Definition at line 1532 of file io.c.

References rb_io_t::fd, fsync, binwrite_arg::ptr, rb_io_write(), and rb_w32_get_osfhandle().

◆ rb_io_ascii8bit_binmode()

VALUE rb_io_ascii8bit_binmode ( VALUE  )

Definition at line 5058 of file io.c.

References GetOpenFile.

Referenced by rsock_init_sock().

◆ rb_io_binmode()

VALUE rb_io_binmode ( VALUE  )

◆ rb_io_close()

VALUE rb_io_close ( VALUE  )

Definition at line 4501 of file io.c.

Referenced by rb_io_make_open_file().

◆ rb_io_eof()

VALUE rb_io_eof ( VALUE  )

◆ rb_io_fdopen()

VALUE rb_io_fdopen ( int  ,
int  ,
const char *   
)

Definition at line 7648 of file io.c.

References rb_cFile, and rb_cIO.

◆ rb_io_flush()

VALUE rb_io_flush ( VALUE  )

Definition at line 1592 of file io.c.

References rb_io_flush_raw().

Referenced by rb_io_getbyte().

◆ rb_io_get_io()

VALUE rb_io_get_io ( VALUE  )

Definition at line 658 of file io.c.

◆ rb_io_getbyte()

VALUE rb_io_getbyte ( VALUE  )

◆ rb_io_gets()

VALUE rb_io_gets ( VALUE  )

Definition at line 3281 of file io.c.

◆ rb_io_print()

VALUE rb_io_print ( int  ,
const VALUE ,
VALUE   
)

Definition at line 7227 of file io.c.

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

◆ rb_io_printf()

VALUE rb_io_printf ( int  ,
const VALUE ,
VALUE   
)

Definition at line 7166 of file io.c.

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

◆ rb_io_puts()

VALUE rb_io_puts ( int  ,
const VALUE ,
VALUE   
)

Definition at line 7399 of file io.c.

References argc, Qnil, rb_default_rs, rb_exec_recursive(), rb_io_write(), RB_TYPE_P, and T_STRING.

Referenced by rb_f_abort().

◆ rb_io_ungetbyte()

VALUE rb_io_ungetbyte ( VALUE  ,
VALUE   
)

◆ rb_io_ungetc()

VALUE rb_io_ungetc ( VALUE  ,
VALUE   
)

Definition at line 4017 of file io.c.

References FIX2UINT, FIXNUM_P, GetOpenFile, len, NIL_P, Qnil, rb_enc_uint_chr(), and rb_io_check_char_readable().

◆ rb_io_write()

VALUE rb_io_write ( VALUE  ,
VALUE   
)

Definition at line 1510 of file io.c.

References rb_funcallv.

Referenced by rb_io_addstr(), rb_io_print(), rb_io_printf(), rb_io_puts(), and rb_parser_printf().

◆ rb_is_absolute_path()

int rb_is_absolute_path ( const char *  )

Definition at line 5719 of file file.c.

References isdirsep.

Referenced by rb_file_expand_path_internal().

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

Definition at line 1544 of file variable.c.

References BUILTIN_TYPE, SPECIAL_CONST_P, and T_OBJECT.

Referenced by rb_obj_instance_variables().

◆ rb_ivar_get()

VALUE rb_ivar_get ( VALUE  ,
ID   
)

◆ rb_ivar_set()

VALUE rb_ivar_set ( VALUE  ,
ID  ,
VALUE   
)

◆ rb_last_status_get()

VALUE rb_last_status_get ( void  )

Definition at line 479 of file process.c.

References GET_THREAD.

Referenced by InitVM_process().

◆ rb_last_status_set()

void rb_last_status_set ( int  status,
rb_pid_t  pid 
)

Definition at line 485 of file process.c.

References GET_THREAD, rb_thread_struct::last_status, and rb_obj_alloc().

◆ rb_lastline_get()

VALUE rb_lastline_get ( void  )

Definition at line 1241 of file vm.c.

Referenced by rb_io_print(), and rb_reg_match2().

◆ rb_lastline_set()

void rb_lastline_set ( VALUE  )

Definition at line 1247 of file vm.c.

◆ rb_load()

void rb_load ( VALUE  ,
int   
)

Definition at line 665 of file load.c.

◆ rb_load_file()

void* rb_load_file ( const char *  )

Definition at line 2023 of file ruby.c.

References rb_load_file_str(), and rb_str_new_cstr().

◆ rb_load_file_str()

void* rb_load_file_str ( VALUE  )

Definition at line 2030 of file ruby.c.

References rb_parser_load_file(), and rb_parser_new().

Referenced by rb_load_file().

◆ rb_load_protect()

void rb_load_protect ( VALUE  ,
int  ,
int *   
)

Definition at line 671 of file load.c.

References EXEC_TAG, PUSH_TAG, and TAG_NONE.

◆ rb_locale_str_new()

VALUE rb_locale_str_new ( const char *  ,
long   
)

Definition at line 1067 of file string.c.

References rb_external_str_new_with_enc(), and rb_locale_encoding().

◆ rb_locale_str_new_cstr()

VALUE rb_locale_str_new_cstr ( const char *  )

Definition at line 1073 of file string.c.

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

◆ rb_make_backtrace()

VALUE rb_make_backtrace ( void  )

Definition at line 813 of file vm_backtrace.c.

◆ rb_mark_hash()

void rb_mark_hash ( struct st_table )

Definition at line 4157 of file gc.c.

◆ rb_mark_set()

void rb_mark_set ( struct st_table )

Definition at line 4134 of file gc.c.

◆ rb_mark_tbl()

void rb_mark_tbl ( struct st_table )

Definition at line 4302 of file gc.c.

Referenced by rb_vm_mark().

◆ 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 2249 of file marshal.c.

◆ rb_marshal_load()

VALUE rb_marshal_load ( VALUE  )

Definition at line 2255 of file marshal.c.

◆ rb_match_busy()

void rb_match_busy ( VALUE  )

Definition at line 1252 of file re.c.

◆ rb_mem_clear()

void rb_mem_clear ( register VALUE ,
register  long 
)

Definition at line 138 of file array.c.

References Qnil.

◆ rb_memcicmp()

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

Definition at line 79 of file re.c.

Referenced by rb_num_get_rounding_option().

◆ rb_memhash()

st_index_t rb_memhash ( const void *  ptr,
long  len 
)

Definition at line 1512 of file random.c.

References sip_hash13, and sip_uint64_t::u32.

Referenced by rb_dbl_long_hash(), and rb_str_hash().

◆ rb_method_basic_definition_p()

int rb_method_basic_definition_p ( VALUE  ,
ID   
)

Definition at line 1879 of file vm_method.c.

References FALSE, cache_entry::me, METHOD_ENTRY_BASIC, rb_method_entry(), and TRUE.

Referenced by rb_hash_default_value(), and rb_p().

◆ rb_method_boundp()

int rb_method_boundp ( VALUE  ,
ID  ,
int   
)

◆ rb_method_call()

VALUE rb_method_call ( int  ,
const VALUE ,
VALUE   
)

Definition at line 2075 of file proc.c.

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

◆ rb_method_call_with_block()

VALUE rb_method_call_with_block ( int  ,
const VALUE ,
VALUE  ,
VALUE   
)

◆ rb_mod_class_variables()

VALUE rb_mod_class_variables ( int  ,
const VALUE ,
VALUE   
)

Definition at line 3025 of file variable.c.

References Qtrue, rb_scan_args(), and RTEST.

◆ rb_mod_const_at()

void* rb_mod_const_at ( VALUE  ,
void *   
)

Definition at line 2414 of file variable.c.

References rb_id_table_foreach(), RCLASS_CONST_TBL, and st_init_numtable.

Referenced by rb_mod_const_of().

◆ rb_mod_const_of()

void* rb_mod_const_of ( VALUE  ,
void *   
)

Definition at line 2427 of file variable.c.

References mod, rb_cObject, rb_mod_const_at(), and RCLASS_SUPER.

Referenced by rb_mod_constants().

◆ rb_mod_constants()

VALUE rb_mod_constants ( int  ,
const VALUE ,
VALUE   
)

Definition at line 2481 of file variable.c.

References Qtrue, rb_const_list(), rb_mod_const_of(), rb_scan_args(), and RTEST.

◆ rb_mod_method_arity()

int rb_mod_method_arity ( VALUE  ,
ID   
)

Definition at line 2413 of file proc.c.

Referenced by rb_obj_method_arity().

◆ rb_mod_module_eval()

VALUE rb_mod_module_eval ( int  ,
const VALUE ,
VALUE   
)

Definition at line 1748 of file vm_eval.c.

◆ rb_mod_module_exec()

VALUE rb_mod_module_exec ( int  ,
const VALUE ,
VALUE   
)

Definition at line 1776 of file vm_eval.c.

◆ rb_mod_name()

VALUE rb_mod_name ( VALUE  )

Definition at line 229 of file variable.c.

References fc_result::path.

◆ rb_mod_remove_const()

VALUE rb_mod_remove_const ( VALUE  ,
VALUE   
)

Definition at line 2332 of file variable.c.

References id_for_var, rb_const_remove(), and rb_name_err_raise.

◆ rb_mod_remove_cvar()

VALUE rb_mod_remove_cvar ( VALUE  ,
VALUE   
)

◆ rb_must_asciicompat()

void rb_must_asciicompat ( VALUE  )

Definition at line 2098 of file string.c.

References rb_eEncCompatError, rb_enc_asciicompat, rb_enc_get(), rb_enc_name, and rb_raise().

Referenced by rb_str_to_inum().

◆ rb_mutex_lock()

VALUE rb_mutex_lock ( VALUE  mutex)

◆ rb_mutex_locked_p()

VALUE rb_mutex_locked_p ( VALUE  mutex)

Definition at line 173 of file thread_sync.c.

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

◆ rb_mutex_new()

VALUE rb_mutex_new ( void  )

Definition at line 161 of file thread_sync.c.

◆ rb_mutex_sleep()

VALUE rb_mutex_sleep ( VALUE  self,
VALUE  timeout 
)

Definition at line 436 of file thread_sync.c.

References NIL_P, rb_ensure(), rb_mutex_unlock(), and rb_time_interval().

◆ rb_mutex_synchronize()

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

Definition at line 488 of file thread_sync.c.

References rb_ensure(), rb_mutex_lock(), and rb_mutex_unlock().

◆ rb_mutex_trylock()

VALUE rb_mutex_trylock ( VALUE  mutex)

Definition at line 200 of file thread_sync.c.

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

Referenced by rb_mutex_lock().

◆ rb_mutex_unlock()

VALUE rb_mutex_unlock ( VALUE  mutex)

Definition at line 370 of file thread_sync.c.

References err, and GetMutexPtr.

Referenced by rb_mutex_sleep(), and rb_mutex_synchronize().

◆ rb_name_class()

void rb_name_class ( VALUE  ,
ID   
)

Definition at line 438 of file variable.c.

References rb_ivar_set().

Referenced by rb_define_class(), and rb_define_module_id().

◆ rb_num2fix()

VALUE rb_num2fix ( VALUE  )

◆ rb_num_coerce_bin()

VALUE rb_num_coerce_bin ( VALUE  ,
VALUE  ,
ID   
)

Definition at line 473 of file numeric.c.

Referenced by rb_big_divmod(), rb_big_modulo(), rb_big_mul(), and rb_big_remainder().

◆ rb_num_coerce_bit()

VALUE rb_num_coerce_bit ( VALUE  ,
VALUE  ,
ID   
)

Definition at line 4309 of file numeric.c.

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

◆ rb_num_coerce_cmp()

VALUE rb_num_coerce_cmp ( VALUE  ,
VALUE  ,
ID   
)

Definition at line 480 of file numeric.c.

◆ rb_num_coerce_relop()

VALUE rb_num_coerce_relop ( VALUE  ,
VALUE  ,
ID   
)

Definition at line 488 of file numeric.c.

Referenced by rb_float_gt().

◆ rb_obj_as_string()

VALUE rb_obj_as_string ( VALUE  )

Definition at line 1410 of file string.c.

References rb_funcall(), rb_obj_as_string_result(), RB_TYPE_P, and T_STRING.

Referenced by rb_inspect(), and rb_p().

◆ rb_obj_id()

VALUE rb_obj_id ( VALUE  )

◆ rb_obj_instance_eval()

VALUE rb_obj_instance_eval ( int  ,
const VALUE ,
VALUE   
)

Definition at line 1689 of file vm_eval.c.

◆ rb_obj_instance_exec()

VALUE rb_obj_instance_exec ( int  ,
const VALUE ,
VALUE   
)

Definition at line 1714 of file vm_eval.c.

◆ rb_obj_instance_variables()

VALUE rb_obj_instance_variables ( VALUE  )

Definition at line 1634 of file variable.c.

References rb_ary_new(), and rb_ivar_foreach().

◆ rb_obj_is_method()

VALUE rb_obj_is_method ( VALUE  )

Definition at line 1338 of file proc.c.

References Qfalse, Qtrue, and rb_typeddata_is_kind_of().

◆ rb_obj_is_proc()

VALUE rb_obj_is_proc ( VALUE  )

Definition at line 116 of file proc.c.

References METHOD::klass, Qfalse, Qtrue, rb_proc_create(), and rb_typeddata_is_kind_of().

◆ rb_obj_method()

VALUE rb_obj_method ( VALUE  ,
VALUE   
)

Definition at line 1716 of file proc.c.

◆ rb_obj_method_arity()

int rb_obj_method_arity ( VALUE  ,
ID   
)

Definition at line 2421 of file proc.c.

References CLASS_OF, and rb_mod_method_arity().

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

Definition at line 1984 of file vm_method.c.

References CLASS_OF, and GET_THREAD.

Referenced by rb_respond_to().

◆ rb_path2class()

VALUE rb_path2class ( const char *  )

Definition at line 432 of file variable.c.

References rb_path_to_class(), and rb_str_new_cstr().

Referenced by Init_md5(), Init_ossl_digest(), Init_rmd160(), and Init_sha1().

◆ rb_path_check()

int rb_path_check ( const char *  )

Definition at line 5798 of file file.c.

References PATH_SEP_CHAR, strchr(), and strlen().

◆ rb_path_to_class()

VALUE rb_path_to_class ( VALUE  )

◆ rb_pipe()

int rb_pipe ( int *  pipes)

◆ rb_proc_arity()

int rb_proc_arity ( VALUE  )

Definition at line 1004 of file proc.c.

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

Definition at line 892 of file proc.c.

References GET_THREAD, GetProcPtr, and rb_vm_invoke_proc().

◆ rb_proc_exec()

int rb_proc_exec ( const char *  )

Definition at line 1322 of file process.c.

◆ rb_proc_lambda_p()

VALUE rb_proc_lambda_p ( VALUE  )

Definition at line 254 of file proc.c.

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

◆ rb_proc_new()

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

Definition at line 2649 of file proc.c.

References rb_iterate().

◆ rb_proc_times()

VALUE rb_proc_times ( VALUE  )

◆ rb_provide()

void rb_provide ( const char *  )

Definition at line 572 of file load.c.

◆ rb_provided()

int rb_provided ( const char *  )

Definition at line 522 of file load.c.

References rb_feature_provided().

◆ rb_random_bytes()

VALUE rb_random_bytes ( VALUE  rnd,
long  n 
)

Definition at line 1117 of file random.c.

◆ rb_random_int()

VALUE rb_random_int ( VALUE  rnd,
VALUE  max 
)

◆ rb_random_int32()

unsigned int rb_random_int32 ( VALUE  rnd)

Definition at line 931 of file random.c.

◆ rb_random_real()

double rb_random_real ( VALUE  rnd)

Definition at line 966 of file random.c.

◆ rb_random_ulong_limited()

unsigned long rb_random_ulong_limited ( VALUE  rnd,
unsigned long  limit 
)

Definition at line 1026 of file random.c.

◆ rb_range_beg_len()

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

Definition at line 1003 of file range.c.

References len, NUM2LONG, Qfalse, Qnil, Qtrue, rb_eRangeError, rb_raise(), and rb_range_values().

Referenced by rb_ary_aref(), and rb_get_values_at().

◆ rb_range_new()

VALUE rb_range_new ( VALUE  ,
VALUE  ,
int   
)

Definition at line 54 of file range.c.

References range, rb_cRange, and rb_obj_alloc().

◆ rb_range_values()

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

Definition at line 979 of file range.c.

References EXCL, RANGE_BEG, RANGE_END, rb_cRange, rb_obj_is_kind_of(), and rb_respond_to().

Referenced by rb_range_beg_len().

◆ rb_Rational()

VALUE rb_Rational ( VALUE  ,
VALUE   
)

Definition at line 1979 of file rational.c.

◆ rb_rational_den()

VALUE rb_rational_den ( VALUE  rat)

Definition at line 1994 of file rational.c.

◆ rb_rational_new()

VALUE rb_rational_new ( VALUE  ,
VALUE   
)

Definition at line 1973 of file rational.c.

◆ rb_rational_num()

VALUE rb_rational_num ( VALUE  rat)

Definition at line 1988 of file rational.c.

◆ rb_rational_raw()

VALUE rb_rational_raw ( VALUE  ,
VALUE   
)

Definition at line 1967 of file rational.c.

◆ rb_reg_alloc()

VALUE rb_reg_alloc ( void  )

Definition at line 2855 of file re.c.

◆ rb_reg_backref_number()

int rb_reg_backref_number ( VALUE  match,
VALUE  backref 
)

Definition at line 1138 of file re.c.

◆ rb_reg_init_str()

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

Definition at line 2867 of file re.c.

◆ rb_reg_last_match()

VALUE rb_reg_last_match ( VALUE  )

Definition at line 1705 of file re.c.

◆ rb_reg_match()

VALUE rb_reg_match ( VALUE  ,
VALUE   
)

Definition at line 3143 of file re.c.

◆ rb_reg_match2()

VALUE rb_reg_match2 ( VALUE  )

◆ rb_reg_match_last()

VALUE rb_reg_match_last ( VALUE  )

Definition at line 1768 of file re.c.

◆ rb_reg_match_post()

VALUE rb_reg_match_post ( VALUE  )

Definition at line 1750 of file re.c.

◆ rb_reg_match_pre()

VALUE rb_reg_match_pre ( VALUE  )

Definition at line 1723 of file re.c.

◆ rb_reg_new()

VALUE rb_reg_new ( const char *  ,
long  ,
int   
)

Definition at line 2913 of file re.c.

◆ rb_reg_new_str()

VALUE rb_reg_new_str ( VALUE  ,
int   
)

Definition at line 2861 of file re.c.

Referenced by rb_reg_new_ary().

◆ rb_reg_nth_defined()

VALUE rb_reg_nth_defined ( int  ,
VALUE   
)

Definition at line 1661 of file re.c.

◆ rb_reg_nth_match()

VALUE rb_reg_nth_match ( int  ,
VALUE   
)

Definition at line 1679 of file re.c.

◆ rb_reg_options()

int rb_reg_options ( VALUE  )

Definition at line 3543 of file re.c.

◆ rb_remove_method()

void rb_remove_method ( VALUE  ,
const char *   
)

Definition at line 999 of file vm_method.c.

◆ rb_remove_method_id()

void rb_remove_method_id ( VALUE  ,
ID   
)

Definition at line 993 of file vm_method.c.

◆ rb_require_safe()

VALUE rb_require_safe ( VALUE  ,
int   
)

◆ rb_reserved_fd_p()

int rb_reserved_fd_p ( int  fd)

Referenced by rsock_init_sock().

◆ rb_reset_random_seed()

void rb_reset_random_seed ( void  )

Definition at line 1570 of file random.c.

◆ rb_respond_to()

int rb_respond_to ( VALUE  ,
ID   
)

Definition at line 1994 of file vm_method.c.

References FALSE, and rb_obj_respond_to().

Referenced by ossl_to_der_if_possible(), rb_range_values(), and rb_str_equal().

◆ rb_set_class_path()

void rb_set_class_path ( VALUE  ,
VALUE  ,
const char *   
)

Definition at line 367 of file variable.c.

◆ rb_set_class_path_string()

void rb_set_class_path_string ( VALUE  ,
VALUE  ,
VALUE   
)

Definition at line 344 of file variable.c.

Referenced by rb_define_class_id_under(), and rb_define_module_id_under().

◆ rb_set_end_proc()

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

Definition at line 60 of file eval_jump.c.

References ALLOC, GET_THREAD, link(), list, and rb_thread_struct::top_wrapper.

◆ rb_sourcefile()

const char* rb_sourcefile ( void  )

◆ rb_sourceline()

int rb_sourceline ( void  )

◆ rb_spawn()

rb_pid_t rb_spawn ( int  ,
const VALUE  
)

Definition at line 4012 of file process.c.

◆ rb_spawn_err()

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

Definition at line 4006 of file process.c.

◆ rb_str2inum()

VALUE rb_str2inum ( VALUE  ,
int   
)

Definition at line 4515 of file bignum.c.

References rb_str_to_inum().

◆ rb_str_append()

VALUE rb_str_append ( VALUE  ,
VALUE   
)

Definition at line 2900 of file string.c.

References rb_str_buf_append(), and StringValue.

Referenced by rb_keyword_error_new(), rb_load_fail(), rb_str_concat(), and rb_str_ellipsize().

◆ rb_str_buf_append()

VALUE rb_str_buf_append ( VALUE  ,
VALUE   
)

Definition at line 2884 of file string.c.

References ENC_CODERANGE, ENC_CODERANGE_SET, ENCODING_GET, OBJ_INFECT, RSTRING_LEN, and RSTRING_PTR.

Referenced by rb_str_append().

◆ rb_str_buf_cat()

VALUE rb_str_buf_cat ( VALUE  ,
const char *  ,
long   
)

Referenced by rb_str_buf_new_cstr().

◆ 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 1298 of file string.c.

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

Referenced by rb_load_fail().

◆ rb_str_cat()

VALUE rb_str_cat ( VALUE  ,
const char *  ,
long   
)

◆ rb_str_cat2()

VALUE rb_str_cat2 ( VALUE  ,
const char *   
)

◆ rb_str_cat_cstr()

VALUE rb_str_cat_cstr ( VALUE  ,
const char *   
)

Definition at line 2756 of file string.c.

Referenced by rb_keyword_error_new().

◆ rb_str_cmp()

int rb_str_cmp ( VALUE  ,
VALUE   
)

Definition at line 3159 of file string.c.

References ENCODING_GET, lesser, memcmp(), rb_str_comparable(), and RSTRING_GETMEM.

Referenced by rb_iseq_pathobj_new().

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

Definition at line 4473 of file string.c.

References RSTRING_LEN, and RSTRING_PTR.

◆ rb_str_dump()

VALUE rb_str_dump ( VALUE  )

Definition at line 5920 of file string.c.

References len, rb_enc_from_index(), and rb_enc_get_index().

◆ 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 9575 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.

◆ rb_str_encode_ospath()

VALUE rb_str_encode_ospath ( VALUE  )

◆ rb_str_equal()

VALUE rb_str_equal ( VALUE  str1,
VALUE  str2 
)

Definition at line 3214 of file string.c.

References Qfalse, Qtrue, rb_equal(), rb_respond_to(), RB_TYPE_P, and T_STRING.

◆ rb_str_format()

VALUE rb_str_format ( int  ,
const VALUE ,
VALUE   
)

Definition at line 464 of file sprintf.c.

References buf.

Referenced by rb_f_sprintf().

◆ rb_str_free()

void rb_str_free ( VALUE  )

◆ rb_str_freeze()

VALUE rb_str_freeze ( VALUE  )

Definition at line 2549 of file string.c.

References OBJ_FROZEN, rb_obj_freeze(), rb_str_resize(), and RSTRING_LEN.

◆ rb_str_hash()

st_index_t rb_str_hash ( VALUE  )

◆ rb_str_hash_cmp()

int rb_str_hash_cmp ( VALUE  ,
VALUE   
)

Definition at line 3104 of file string.c.

References memcmp(), rb_str_comparable(), and RSTRING_GETMEM.

◆ rb_str_inspect()

VALUE rb_str_inspect ( VALUE  )

Definition at line 5813 of file string.c.

References buf, CHAR_ESC_LEN, ENCODING_GET, and rb_enc_from_index().

◆ rb_str_intern()

VALUE rb_str_intern ( VALUE  )

Definition at line 661 of file symbol.c.

References id.

Referenced by rb_sym_intern().

◆ rb_str_length()

VALUE rb_str_length ( VALUE  )

Definition at line 1803 of file string.c.

References LONG2NUM.

◆ rb_str_locktmp()

VALUE rb_str_locktmp ( VALUE  )

Referenced by rb_str_locktmp_ensure().

◆ rb_str_modify()

void rb_str_modify ( VALUE  )

Definition at line 2046 of file string.c.

Referenced by rb_str_cat_conv_enc_opts(), and rb_str_vcatf().

◆ rb_str_modify_expand()

void rb_str_modify_expand ( VALUE  ,
long   
)

Definition at line 2054 of file string.c.

References LONG_MAX, rb_eArgError, rb_raise(), RSTRING_LEN, and TERM_LEN.

Referenced by rb_str_encode_ospath(), and ruby_init_loadpath_safe().

◆ rb_str_new()

VALUE rb_str_new ( const char *  ,
long   
)

◆ rb_str_new_cstr()

VALUE rb_str_new_cstr ( const char *  )

◆ rb_str_new_frozen()

VALUE rb_str_new_frozen ( VALUE  )

Definition at line 1158 of file string.c.

References OBJ_FROZEN.

Referenced by rb_econv_substr_append(), rb_str_include_range_p(), and rb_str_subseq().

◆ rb_str_new_shared()

VALUE rb_str_new_shared ( VALUE  )

Definition at line 1149 of file string.c.

Referenced by rb_str_subseq().

◆ rb_str_new_static()

VALUE rb_str_new_static ( const char *  ,
long   
)

Definition at line 830 of file string.c.

◆ rb_str_new_with_class()

VALUE rb_str_new_with_class ( VALUE  ,
const char *  ,
long   
)

Definition at line 1265 of file string.c.

Referenced by rb_str_ellipsize(), rb_str_subseq(), and rb_str_succ().

◆ rb_str_offset()

long rb_str_offset ( VALUE  ,
long   
)

Definition at line 2348 of file string.c.

◆ rb_str_plus()

VALUE rb_str_plus ( VALUE  ,
VALUE   
)

◆ rb_str_replace()

VALUE rb_str_replace ( VALUE  ,
VALUE   
)

Definition at line 5246 of file string.c.

◆ rb_str_resize()

VALUE rb_str_resize ( VALUE  ,
long   
)

◆ rb_str_resurrect()

VALUE rb_str_resurrect ( VALUE  str)

Definition at line 1494 of file string.c.

References RSTRING_LEN, and RUBY_DTRACE_CREATE_HOOK.

Referenced by rb_str_concat_literals().

◆ rb_str_scrub()

VALUE rb_str_scrub ( VALUE  str,
VALUE  repl 
)
Parameters
strthe string to be scrubbed
replthe replacement character
Returns
If given string is invalid, returns a new string. Otherwise, returns Qnil.

Definition at line 9638 of file string.c.

References STR_ENC_GET.

◆ rb_str_set_len()

void rb_str_set_len ( VALUE  ,
long   
)

◆ rb_str_setter()

void rb_str_setter ( VALUE  ,
ID  ,
VALUE  
)

Definition at line 9469 of file string.c.

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

◆ rb_str_shared_replace()

void rb_str_shared_replace ( VALUE  ,
VALUE   
)

Definition at line 1358 of file string.c.

◆ rb_str_split()

VALUE rb_str_split ( VALUE  ,
const char *   
)

Definition at line 7602 of file string.c.

References rb_str_new_cstr(), and StringValue.

◆ rb_str_strlen()

long rb_str_strlen ( VALUE  )

Definition at line 1789 of file string.c.

◆ rb_str_sublen()

long rb_str_sublen ( VALUE  ,
long   
)

Definition at line 2395 of file string.c.

Referenced by rb_reg_match2().

◆ rb_str_subpos()

char* rb_str_subpos ( VALUE  ,
long  ,
long *   
)

Definition at line 2430 of file string.c.

References RSTRING_LEN, RSTRING_PTR, and STR_ENC_GET.

◆ rb_str_subseq()

VALUE rb_str_subseq ( VALUE  ,
long  ,
long   
)

◆ rb_str_substr()

VALUE rb_str_substr ( VALUE  ,
long  ,
long   
)

Definition at line 2517 of file string.c.

◆ rb_str_succ()

VALUE rb_str_succ ( VALUE  )

Definition at line 4030 of file string.c.

References rb_str_new_with_class(), RSTRING_LEN, and RSTRING_PTR.

◆ rb_str_times()

VALUE rb_str_times ( VALUE  ,
VALUE   
)

Definition at line 1896 of file string.c.

References INT2FIX, len, and rb_str_dup().

◆ rb_str_tmp_new()

VALUE rb_str_tmp_new ( long  )

Definition at line 1310 of file string.c.

Referenced by VpAlloc().

◆ rb_str_to_inum()

VALUE rb_str_to_inum ( VALUE  ,
int  ,
int   
)

Definition at line 4226 of file bignum.c.

References len, NIL_P, NULL, rb_cstr_parse_inum(), rb_must_asciicompat(), RSTRING_GETMEM, and StringValue.

Referenced by fun1(), and rb_str2inum().

◆ rb_str_unlocktmp()

VALUE rb_str_unlocktmp ( VALUE  )

Definition at line 2610 of file string.c.

References FL_TEST, FL_UNSET, rb_eRuntimeError, rb_raise(), RUBY_FUNC_EXPORTED, and STR_TMPLOCK.

Referenced by rb_str_locktmp_ensure().

◆ rb_str_update()

void rb_str_update ( VALUE  ,
long  ,
long  ,
VALUE   
)

Definition at line 4545 of file string.c.

◆ rb_str_vcatf()

VALUE rb_str_vcatf ( VALUE  ,
const char *  ,
va_list   
)

◆ rb_struct_alloc()

VALUE rb_struct_alloc ( VALUE  ,
VALUE   
)

Definition at line 599 of file struct.c.

References RARRAY_CONST_PTR, RARRAY_LENINT, and rb_class_new_instance().

◆ rb_struct_alloc_noinit()

VALUE rb_struct_alloc_noinit ( VALUE  )

Definition at line 328 of file struct.c.

◆ rb_struct_aref()

VALUE rb_struct_aref ( VALUE  ,
VALUE   
)

Definition at line 896 of file struct.c.

Referenced by rb_vm_opt_struct_aref().

◆ rb_struct_aset()

VALUE rb_struct_aset ( VALUE  ,
VALUE  ,
VALUE   
)

Definition at line 923 of file struct.c.

Referenced by rb_vm_opt_struct_aset().

◆ rb_struct_define()

VALUE rb_struct_define ( const char *  ,
  ... 
)

Definition at line 410 of file struct.c.

References RString::ary.

◆ rb_struct_define_under()

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

Definition at line 425 of file struct.c.

References RString::ary.

◆ rb_struct_define_without_accessor()

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

Definition at line 397 of file struct.c.

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

Definition at line 384 of file struct.c.

◆ rb_struct_getmember()

VALUE rb_struct_getmember ( VALUE  ,
ID   
)

Definition at line 205 of file struct.c.

References ID2SYM.

◆ rb_struct_initialize()

VALUE rb_struct_initialize ( VALUE  ,
VALUE   
)

Definition at line 571 of file struct.c.

◆ rb_struct_members()

VALUE rb_struct_members ( VALUE  )

◆ rb_struct_new()

VALUE rb_struct_new ( VALUE  ,
  ... 
)

Definition at line 605 of file struct.c.

References N_REF_FUNC, rb_long2int, and size.

◆ rb_struct_s_members()

VALUE rb_struct_s_members ( VALUE  )

Definition at line 51 of file struct.c.

Referenced by rb_struct_members().

◆ rb_struct_size()

VALUE rb_struct_size ( VALUE  s)

Definition at line 1130 of file struct.c.

References LONG2FIX, and RSTRUCT_LEN.

◆ rb_sym_all_symbols()

VALUE rb_sym_all_symbols ( void  )

Definition at line 806 of file symbol.c.

References RString::ary, and rb_ary_new2.

◆ rb_sym_interned_p()

int rb_sym_interned_p ( VALUE  )

◆ rb_sym_to_s()

VALUE rb_sym_to_s ( VALUE  )

Definition at line 10183 of file string.c.

◆ rb_symname_p()

int rb_symname_p ( const char *  )

Definition at line 190 of file symbol.c.

References rb_ascii8bit_encoding(), and rb_enc_symname_p().

◆ rb_syswait()

void rb_syswait ( rb_pid_t  pid)

Definition at line 3891 of file process.c.

References rb_waitpid().

◆ rb_tainted_str_new()

VALUE rb_tainted_str_new ( const char *  ,
long   
)

Definition at line 854 of file string.c.

References OBJ_TAINT, and rb_str_new().

◆ rb_tainted_str_new_cstr()

VALUE rb_tainted_str_new_cstr ( const char *  )

Definition at line 872 of file string.c.

References OBJ_TAINT, and rb_str_new_cstr().

◆ rb_thread_alone()

int rb_thread_alone ( void  )

Definition at line 3273 of file thread.c.

Referenced by rb_thread_stop().

◆ rb_thread_atfork()

void rb_thread_atfork ( void  )

Definition at line 4186 of file thread.c.

◆ rb_thread_atfork_before_exec()

void rb_thread_atfork_before_exec ( void  )

Definition at line 4191 of file thread.c.

◆ rb_thread_check_ints()

void rb_thread_check_ints ( void  )

Definition at line 1219 of file thread.c.

References GET_THREAD, and RUBY_VM_CHECK_INTS_BLOCKING.

◆ rb_thread_create()

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

Definition at line 831 of file thread.c.

Referenced by rb_detach_process().

◆ rb_thread_current()

VALUE rb_thread_current ( void  )

Definition at line 2494 of file thread.c.

References GET_THREAD.

Referenced by VpGetPrecLimit(), and VpGetRoundMode().

◆ rb_thread_fd_close()

void rb_thread_fd_close ( int  )

Definition at line 2219 of file thread.c.

References rb_notify_fd_close(), and rb_thread_schedule().

◆ rb_thread_fd_select()

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

Definition at line 3789 of file thread.c.

References rb_fd_resize, rb_thread_sleep_forever(), and rb_thread_wait_for().

◆ rb_thread_fd_writable()

int rb_thread_fd_writable ( int  )

Definition at line 3782 of file thread.c.

◆ rb_thread_interrupted()

int rb_thread_interrupted ( VALUE  thval)

Definition at line 1237 of file thread.c.

References RUBY_VM_INTERRUPTED.

◆ rb_thread_kill()

VALUE rb_thread_kill ( VALUE  )

Definition at line 2276 of file thread.c.

◆ rb_thread_local_aref()

VALUE rb_thread_local_aref ( VALUE  ,
ID   
)

Definition at line 3013 of file thread.c.

Referenced by VpGetPrecLimit(), and VpGetRoundMode().

◆ rb_thread_local_aset()

VALUE rb_thread_local_aset ( VALUE  ,
ID  ,
VALUE   
)

Definition at line 3148 of file thread.c.

References OBJ_FROZEN, and rb_error_frozen().

◆ rb_thread_main()

VALUE rb_thread_main ( void  )

Definition at line 2515 of file thread.c.

References GET_THREAD.

◆ rb_thread_run()

VALUE rb_thread_run ( VALUE  )

Definition at line 2417 of file thread.c.

References rb_thread_schedule(), and rb_thread_wakeup().

◆ rb_thread_schedule()

void rb_thread_schedule ( void  )

Definition at line 1266 of file thread.c.

References GET_THREAD.

Referenced by rb_thread_fd_close(), and rb_thread_run().

◆ rb_thread_sleep()

void rb_thread_sleep ( int  )

Definition at line 1243 of file thread.c.

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

◆ rb_thread_sleep_deadly()

void rb_thread_sleep_deadly ( void  )

Definition at line 1167 of file thread.c.

References thread_debug.

Referenced by rb_thread_stop().

◆ rb_thread_sleep_forever()

void rb_thread_sleep_forever ( void  )

Definition at line 1160 of file thread.c.

References thread_debug.

Referenced by rb_thread_fd_select().

◆ rb_thread_stop()

VALUE rb_thread_stop ( void  )

Definition at line 2441 of file thread.c.

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

◆ rb_thread_wait_fd()

void rb_thread_wait_fd ( int  )

Definition at line 3776 of file thread.c.

Referenced by rb_io_read_check().

◆ rb_thread_wait_for()

void rb_thread_wait_for ( struct timeval  )

Definition at line 1205 of file thread.c.

References GET_THREAD.

Referenced by rb_thread_fd_select(), and rb_thread_sleep().

◆ rb_thread_wakeup()

VALUE rb_thread_wakeup ( VALUE  )

Definition at line 2370 of file thread.c.

References rb_eThreadError, rb_raise(), rb_thread_wakeup_alive(), and RTEST.

Referenced by rb_thread_run().

◆ rb_thread_wakeup_alive()

VALUE rb_thread_wakeup_alive ( VALUE  )

Definition at line 2379 of file thread.c.

Referenced by rb_thread_wakeup().

◆ rb_time_interval()

struct timeval rb_time_interval ( VALUE  num)

Definition at line 2299 of file time.c.

Referenced by rb_mutex_sleep().

◆ rb_time_nano_new()

VALUE rb_time_nano_new ( time_t  ,
long   
)

Definition at line 2170 of file time.c.

◆ rb_time_new()

VALUE rb_time_new ( time_t  ,
long   
)

Definition at line 2143 of file time.c.

References NDIV, rb_eRangeError, and rb_raise().

◆ rb_time_num_new()

VALUE rb_time_num_new ( VALUE  ,
VALUE   
)

Definition at line 2204 of file time.c.

◆ rb_time_succ()

VALUE rb_time_succ ( VALUE  )

Definition at line 3718 of file time.c.

References GetTimeval, and rb_warn().

◆ rb_time_timespec()

struct timespec rb_time_timespec ( VALUE  time)

Definition at line 2322 of file time.c.

References GetTimeval, and IsTimeval.

◆ rb_time_timespec_new()

VALUE rb_time_timespec_new ( const struct timespec ts,
int  offset 
)

Returns a time object with UTC/localtime/fixed offset.

offset is -86400 < fixoff < 86400 or INT_MAX (localtime) or INT_MAX-1 (utc)

Definition at line 2181 of file time.c.

◆ rb_time_timeval()

struct timeval rb_time_timeval ( VALUE  time)

Definition at line 2305 of file time.c.

Referenced by rb_thread_sleep().

◆ rb_timespec_now()

void rb_timespec_now ( struct timespec )

◆ rb_trap_exec()

void rb_trap_exec ( void  )

◆ rb_trap_exit()

void rb_trap_exit ( void  )

Definition at line 1024 of file signal.c.

References rb_vm_struct::cmd, GET_VM, and rb_vm_struct::trap_list.

◆ 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 2653 of file gc.c.

References finalizer_table, FL_FINALIZE, FL_UNSET, rb_check_frozen, rb_objspace, st_data_t, and st_delete.

◆ rb_update_max_fd()

void rb_update_max_fd ( int  fd)

Definition at line 191 of file io.c.

References stat.

Referenced by rb_fd_fix_cloexec(), rb_file_load_ok(), rb_pipe(), and rsock_init_sock().

◆ rb_usascii_str_new()

VALUE rb_usascii_str_new ( const char *  ,
long   
)

Definition at line 743 of file string.c.

References ENC_CODERANGE_7BIT, ENCODING_CODERANGE_SET, rb_str_new(), and rb_usascii_encindex().

Referenced by rb_fix2str(), and rb_str_ellipsize().

◆ rb_usascii_str_new_cstr()

VALUE rb_usascii_str_new_cstr ( const char *  )

◆ rb_usascii_str_new_static()

VALUE rb_usascii_str_new_static ( const char *  ,
long   
)

Definition at line 836 of file string.c.

◆ rb_utf8_str_new()

VALUE rb_utf8_str_new ( const char *  ,
long   
)

Definition at line 751 of file string.c.

Referenced by ruby_init_loadpath_safe().

◆ rb_utf8_str_new_cstr()

VALUE rb_utf8_str_new_cstr ( const char *  )

Definition at line 786 of file string.c.

References rb_enc_associate_index(), rb_str_new_cstr(), and rb_utf8_encindex().

◆ rb_utf8_str_new_static()

VALUE rb_utf8_str_new_static ( const char *  ,
long   
)

Definition at line 842 of file string.c.

◆ rb_uv_to_utf8()

int rb_uv_to_utf8 ( char  [6],
unsigned  long 
)

Definition at line 1893 of file pack.c.

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

◆ rb_vsprintf()

VALUE rb_vsprintf ( const char *  ,
va_list   
)

Definition at line 1446 of file sprintf.c.

References NULL, and rb_enc_vsprintf().

Referenced by rb_fatal(), rb_name_error(), rb_name_error_str(), and rb_raise().

◆ rb_waitpid()

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

Definition at line 902 of file process.c.

Referenced by rb_syswait().

◆ rb_write_error()

void rb_write_error ( const char *  )

Definition at line 7574 of file io.c.

References rb_write_error2(), and strlen().

◆ rb_write_error2()

void rb_write_error2 ( const char *  ,
long   
)

Definition at line 7560 of file io.c.

References rb_stderr.

Referenced by rb_write_error().

◆ ruby_default_signal()

void ruby_default_signal ( int  )

Definition at line 360 of file signal.c.

◆ ruby_signal_name()

const char* ruby_signal_name ( int  )

Definition at line 262 of file signal.c.

◆ st_foreach_safe()

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

Variable Documentation

◆ rb_argv0

RUBY_EXTERN VALUE rb_argv0

Definition at line 664 of file intern.h.

◆ rb_default_rs

RUBY_EXTERN VALUE rb_default_rs

Definition at line 517 of file intern.h.

◆ rb_fs

Definition at line 514 of file intern.h.

◆ rb_output_fs

RUBY_EXTERN VALUE rb_output_fs

Definition at line 515 of file intern.h.

◆ rb_output_rs

RUBY_EXTERN VALUE rb_output_rs

Definition at line 518 of file intern.h.

◆ rb_rs

Definition at line 516 of file intern.h.