Ruby  2.5.0dev(2017-10-22revision60238)
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
ruby.h File Reference
#include "ruby/config.h"
#include "defines.h"
#include <stdarg.h>
#include "ruby/intern.h"
#include "ruby/subst.h"
#include "ruby/backward.h"

Go to the source code of this file.

Data Structures

struct  RBasic
 
struct  RObject
 
struct  RString
 
struct  RArray
 
struct  RRegexp
 
struct  RFile
 
struct  RData
 
struct  rb_data_type_struct
 
struct  RTypedData
 

Macros

#define ASSUME(x)   ((void)(x))
 
#define UNREACHABLE   ((void)0) /* unreachable */
 
#define RUBY_MACRO_SELECT(base, n)   TOKEN_PASTE(base, n)
 
#define SIGNED_VALUE   long
 
#define SIZEOF_VALUE   SIZEOF_LONG
 
#define PRI_VALUE_PREFIX   "l"
 
#define PRI_INT_PREFIX   ""
 
#define PRI_LONG_PREFIX   "l"
 
#define RUBY_PRI_VALUE_MARK   "\v"
 
#define PRIdVALUE   PRI_VALUE_PREFIX"d"
 
#define PRIoVALUE   PRI_VALUE_PREFIX"o"
 
#define PRIuVALUE   PRI_VALUE_PREFIX"u"
 
#define PRIxVALUE   PRI_VALUE_PREFIX"x"
 
#define PRIXVALUE   PRI_VALUE_PREFIX"X"
 
#define PRIsVALUE   PRI_VALUE_PREFIX"i" RUBY_PRI_VALUE_MARK
 
#define PRI_TIMET_PREFIX
 
#define PRI_PTRDIFF_PREFIX   ""
 
#define PRIdPTRDIFF   PRI_PTRDIFF_PREFIX"d"
 
#define PRIiPTRDIFF   PRI_PTRDIFF_PREFIX"i"
 
#define PRIoPTRDIFF   PRI_PTRDIFF_PREFIX"o"
 
#define PRIuPTRDIFF   PRI_PTRDIFF_PREFIX"u"
 
#define PRIxPTRDIFF   PRI_PTRDIFF_PREFIX"x"
 
#define PRIXPTRDIFF   PRI_PTRDIFF_PREFIX"X"
 
#define PRI_SIZE_PREFIX   ""
 
#define PRIdSIZE   PRI_SIZE_PREFIX"d"
 
#define PRIiSIZE   PRI_SIZE_PREFIX"i"
 
#define PRIoSIZE   PRI_SIZE_PREFIX"o"
 
#define PRIuSIZE   PRI_SIZE_PREFIX"u"
 
#define PRIxSIZE   PRI_SIZE_PREFIX"x"
 
#define PRIXSIZE   PRI_SIZE_PREFIX"X"
 
#define LONG_MAX   2147483647
 
#define LONG_MIN   (-LONG_MAX-1)
 
#define CHAR_BIT   8
 
#define RUBY_FIXNUM_MAX   (LONG_MAX>>1)
 
#define RUBY_FIXNUM_MIN   RSHIFT((long)LONG_MIN,1)
 
#define FIXNUM_MAX   RUBY_FIXNUM_MAX
 
#define FIXNUM_MIN   RUBY_FIXNUM_MIN
 
#define RB_INT2FIX(i)   (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG)
 
#define INT2FIX(i)   RB_INT2FIX(i)
 
#define RB_LONG2FIX(i)   RB_INT2FIX(i)
 
#define LONG2FIX(i)   RB_INT2FIX(i)
 
#define rb_fix_new(v)   RB_INT2FIX(v)
 
#define rb_int_new(v)   rb_int2inum(v)
 
#define rb_uint_new(v)   rb_uint2inum(v)
 
#define OFFT2NUM(v)   LONG2NUM(v)
 
#define SIZET2NUM(v)   ULONG2NUM(v)
 
#define SSIZET2NUM(v)   LONG2NUM(v)
 
#define SIZE_MAX   ULONG_MAX
 
#define SIZE_MIN   ULONG_MIN
 
#define SSIZE_MAX   LONG_MAX
 
#define SSIZE_MIN   LONG_MIN
 
#define rb_long2int(n)   ((int)(n))
 
#define PIDT2NUM(v)   LONG2NUM(v)
 
#define NUM2PIDT(v)   NUM2LONG(v)
 
#define UIDT2NUM(v)   LONG2NUM(v)
 
#define NUM2UIDT(v)   NUM2LONG(v)
 
#define GIDT2NUM(v)   LONG2NUM(v)
 
#define NUM2GIDT(v)   NUM2LONG(v)
 
#define NUM2MODET(v)   NUM2INT(v)
 
#define MODET2NUM(v)   INT2NUM(v)
 
#define RB_FIX2LONG(x)   ((long)RSHIFT((SIGNED_VALUE)(x),1))
 
#define RB_FIX2ULONG(x)   ((unsigned long)RB_FIX2LONG(x))
 
#define RB_FIXNUM_P(f)   (((int)(SIGNED_VALUE)(f))&RUBY_FIXNUM_FLAG)
 
#define RB_POSFIXABLE(f)   ((f) < RUBY_FIXNUM_MAX+1)
 
#define RB_NEGFIXABLE(f)   ((f) >= RUBY_FIXNUM_MIN)
 
#define RB_FIXABLE(f)   (RB_POSFIXABLE(f) && RB_NEGFIXABLE(f))
 
#define FIX2LONG(x)   RB_FIX2LONG(x)
 
#define FIX2ULONG(x)   RB_FIX2ULONG(x)
 
#define FIXNUM_P(f)   RB_FIXNUM_P(f)
 
#define POSFIXABLE(f)   RB_POSFIXABLE(f)
 
#define NEGFIXABLE(f)   RB_NEGFIXABLE(f)
 
#define FIXABLE(f)   RB_FIXABLE(f)
 
#define RB_IMMEDIATE_P(x)   ((VALUE)(x) & RUBY_IMMEDIATE_MASK)
 
#define IMMEDIATE_P(x)   RB_IMMEDIATE_P(x)
 
#define RB_STATIC_SYM_P(x)   (((VALUE)(x)&~((~(VALUE)0)<<RUBY_SPECIAL_SHIFT)) == RUBY_SYMBOL_FLAG)
 
#define RB_DYNAMIC_SYM_P(x)   (!RB_SPECIAL_CONST_P(x) && RB_BUILTIN_TYPE(x) == (RUBY_T_SYMBOL))
 
#define RB_SYMBOL_P(x)   (RB_STATIC_SYM_P(x)||RB_DYNAMIC_SYM_P(x))
 
#define RB_ID2SYM(x)   (rb_id2sym(x))
 
#define RB_SYM2ID(x)   (rb_sym2id(x))
 
#define STATIC_SYM_P(x)   RB_STATIC_SYM_P(x)
 
#define DYNAMIC_SYM_P(x)   RB_DYNAMIC_SYM_P(x)
 
#define SYMBOL_P(x)   RB_SYMBOL_P(x)
 
#define ID2SYM(x)   RB_ID2SYM(x)
 
#define SYM2ID(x)   RB_SYM2ID(x)
 
#define USE_FLONUM   1
 
#define RB_FLONUM_P(x)   ((((int)(SIGNED_VALUE)(x))&RUBY_FLONUM_MASK) == RUBY_FLONUM_FLAG)
 
#define FLONUM_P(x)   RB_FLONUM_P(x)
 
#define USE_SYMBOL_AS_METHOD_NAME   1
 
#define RUBY_Qfalse   ((VALUE)RUBY_Qfalse)
 
#define RUBY_Qtrue   ((VALUE)RUBY_Qtrue)
 
#define RUBY_Qnil   ((VALUE)RUBY_Qnil)
 
#define RUBY_Qundef   ((VALUE)RUBY_Qundef) /* undefined value for placeholder */
 
#define Qfalse   RUBY_Qfalse
 
#define Qtrue   RUBY_Qtrue
 
#define Qnil   RUBY_Qnil
 
#define Qundef   RUBY_Qundef
 
#define IMMEDIATE_MASK   RUBY_IMMEDIATE_MASK
 
#define FIXNUM_FLAG   RUBY_FIXNUM_FLAG
 
#define FLONUM_MASK   RUBY_FLONUM_MASK
 
#define FLONUM_FLAG   RUBY_FLONUM_FLAG
 
#define SYMBOL_FLAG   RUBY_SYMBOL_FLAG
 
#define RB_TEST(v)   !(((VALUE)(v) & (VALUE)~RUBY_Qnil) == 0)
 
#define RB_NIL_P(v)   !((VALUE)(v) != RUBY_Qnil)
 
#define RTEST(v)   RB_TEST(v)
 
#define NIL_P(v)   RB_NIL_P(v)
 
#define CLASS_OF(v)   rb_class_of((VALUE)(v))
 
#define T_NONE   RUBY_T_NONE
 
#define T_NIL   RUBY_T_NIL
 
#define T_OBJECT   RUBY_T_OBJECT
 
#define T_CLASS   RUBY_T_CLASS
 
#define T_ICLASS   RUBY_T_ICLASS
 
#define T_MODULE   RUBY_T_MODULE
 
#define T_FLOAT   RUBY_T_FLOAT
 
#define T_STRING   RUBY_T_STRING
 
#define T_REGEXP   RUBY_T_REGEXP
 
#define T_ARRAY   RUBY_T_ARRAY
 
#define T_HASH   RUBY_T_HASH
 
#define T_STRUCT   RUBY_T_STRUCT
 
#define T_BIGNUM   RUBY_T_BIGNUM
 
#define T_FILE   RUBY_T_FILE
 
#define T_FIXNUM   RUBY_T_FIXNUM
 
#define T_TRUE   RUBY_T_TRUE
 
#define T_FALSE   RUBY_T_FALSE
 
#define T_DATA   RUBY_T_DATA
 
#define T_MATCH   RUBY_T_MATCH
 
#define T_SYMBOL   RUBY_T_SYMBOL
 
#define T_RATIONAL   RUBY_T_RATIONAL
 
#define T_COMPLEX   RUBY_T_COMPLEX
 
#define T_IMEMO   RUBY_T_IMEMO
 
#define T_UNDEF   RUBY_T_UNDEF
 
#define T_NODE   RUBY_T_NODE
 
#define T_ZOMBIE   RUBY_T_ZOMBIE
 
#define T_MASK   RUBY_T_MASK
 
#define RB_BUILTIN_TYPE(x)   (int)(((struct RBasic*)(x))->flags & RUBY_T_MASK)
 
#define BUILTIN_TYPE(x)   RB_BUILTIN_TYPE(x)
 
#define TYPE(x)   rb_type((VALUE)(x))
 
#define RB_FLOAT_TYPE_P(obj)
 
#define RB_TYPE_P(obj, type)
 
#define HAVE_RB_GC_GUARDED_PTR_VAL   1
 
#define RB_GC_GUARD(v)   (*rb_gc_guarded_ptr_val(&(v),(v)))
 
#define RB_UNUSED_VAR(x)   x
 
#define Check_Type(v, t)   rb_check_type((VALUE)(v),(t))
 
#define StringValue(v)   rb_string_value(&(v))
 
#define StringValuePtr(v)   rb_string_value_ptr(&(v))
 
#define StringValueCStr(v)   rb_string_value_cstr(&(v))
 
#define SafeStringValue(v)
 
#define rb_check_safe_str(x)   [<"rb_check_safe_str() is obsolete; use SafeStringValue() instead">]
 
#define Check_SafeStr(v)   [<"Check_SafeStr() is obsolete; use SafeStringValue() instead">]
 
#define ExportStringValue(v)
 
#define FilePathValue(v)   (RB_GC_GUARD(v) = rb_get_path(v))
 
#define FilePathStringValue(v)   ((v) = rb_get_path_no_checksafe(v))
 
#define RUBY_SAFE_LEVEL_MAX   1
 
#define RB_NUM2LONG(x)   rb_num2long_inline(x)
 
#define NUM2LONG(x)   RB_NUM2LONG(x)
 
#define RB_NUM2ULONG(x)   rb_num2ulong_inline(x)
 
#define NUM2ULONG(x)   RB_NUM2ULONG(x)
 
#define RB_NUM2INT(x)   ((int)RB_NUM2LONG(x))
 
#define RB_NUM2UINT(x)   ((unsigned int)RB_NUM2ULONG(x))
 
#define RB_FIX2INT(x)   ((int)RB_FIX2LONG(x))
 
#define RB_FIX2UINT(x)   ((unsigned int)RB_FIX2ULONG(x))
 
#define NUM2INT(x)   RB_NUM2INT(x)
 
#define NUM2UINT(x)   RB_NUM2UINT(x)
 
#define FIX2INT(x)   RB_FIX2INT(x)
 
#define FIX2UINT(x)   RB_FIX2UINT(x)
 
#define RB_FIX2SHORT(x)   (rb_fix2short((VALUE)(x)))
 
#define FIX2SHORT(x)   RB_FIX2SHORT(x)
 
#define RB_NUM2SHORT(x)   rb_num2short_inline(x)
 
#define RB_NUM2USHORT(x)   rb_num2ushort(x)
 
#define NUM2SHORT(x)   RB_NUM2SHORT(x)
 
#define NUM2USHORT(x)   RB_NUM2USHORT(x)
 
#define NUM2OFFT(x)   NUM2LONG(x)
 
#define NUM2SIZET(x)   NUM2ULONG(x)
 
#define NUM2SSIZET(x)   NUM2LONG(x)
 
#define NUM2DBL(x)   rb_num2dbl((VALUE)(x))
 
#define RB_NEWOBJ(obj, type)   type *(obj) = (type*)rb_newobj()
 
#define RB_NEWOBJ_OF(obj, type, klass, flags)   type *(obj) = (type*)rb_newobj_of(klass, flags)
 
#define NEWOBJ(obj, type)   RB_NEWOBJ(obj,type)
 
#define NEWOBJ_OF(obj, type, klass, flags)   RB_NEWOBJ_OF(obj,type,klass,flags) /* core has special NEWOBJ_OF() in internal.h */
 
#define OBJSETUP(obj, c, t)   rb_obj_setup(obj, c, t) /* use NEWOBJ_OF instead of NEWOBJ()+OBJSETUP() */
 
#define CLONESETUP(clone, obj)   rb_clone_setup(clone,obj)
 
#define DUPSETUP(dup, obj)   rb_dup_setup(dup,obj)
 
#define USE_RGENGC   1
 
#define USE_RINCGC   1
 
#define RGENGC_WB_PROTECTED_ARRAY   1
 
#define RGENGC_WB_PROTECTED_HASH   1
 
#define RGENGC_WB_PROTECTED_STRUCT   1
 
#define RGENGC_WB_PROTECTED_STRING   1
 
#define RGENGC_WB_PROTECTED_OBJECT   1
 
#define RGENGC_WB_PROTECTED_REGEXP   1
 
#define RGENGC_WB_PROTECTED_CLASS   1
 
#define RGENGC_WB_PROTECTED_FLOAT   1
 
#define RGENGC_WB_PROTECTED_COMPLEX   1
 
#define RGENGC_WB_PROTECTED_RATIONAL   1
 
#define RGENGC_WB_PROTECTED_BIGNUM   1
 
#define RGENGC_WB_PROTECTED_NODE_CREF   1
 
#define RUBY_FL_USER_N(n)   RUBY_FL_USER##n = (1<<(RUBY_FL_USHIFT+n))
 
#define RUBY_FL_USER19   (((VALUE)1)<<(RUBY_FL_USHIFT+19))
 
#define RB_OBJ_WB_UNPROTECT_FOR(type, obj)
 
#define RBASIC_CLASS(obj)   (RBASIC(obj)->klass)
 
#define ROBJECT_EMBED_LEN_MAX   ROBJECT_EMBED_LEN_MAX
 
#define ROBJECT_EMBED   ROBJECT_EMBED
 
#define ROBJECT_NUMIV(o)
 
#define ROBJECT_IVPTR(o)
 
#define ROBJECT_IV_INDEX_TBL(o)
 
#define RCLASS_SUPER(c)   rb_class_get_superclass(c)
 
#define RMODULE_IV_TBL(m)   RCLASS_IV_TBL(m)
 
#define RMODULE_CONST_TBL(m)   RCLASS_CONST_TBL(m)
 
#define RMODULE_M_TBL(m)   RCLASS_M_TBL(m)
 
#define RMODULE_SUPER(m)   RCLASS_SUPER(m)
 
#define RMODULE_IS_OVERLAID   RMODULE_IS_OVERLAID
 
#define RMODULE_IS_REFINEMENT   RMODULE_IS_REFINEMENT
 
#define RMODULE_INCLUDED_INTO_REFINEMENT   RMODULE_INCLUDED_INTO_REFINEMENT
 
#define RFLOAT_VALUE(v)   rb_float_value(v)
 
#define DBL2NUM(dbl)   rb_float_new(dbl)
 
#define RUBY_ELTS_SHARED   RUBY_ELTS_SHARED
 
#define ELTS_SHARED   RUBY_ELTS_SHARED
 
#define RSTRING_NOEMBED   RSTRING_NOEMBED
 
#define RSTRING_EMBED_LEN_MASK   RSTRING_EMBED_LEN_MASK
 
#define RSTRING_EMBED_LEN_SHIFT   RSTRING_EMBED_LEN_SHIFT
 
#define RSTRING_EMBED_LEN_MAX   RSTRING_EMBED_LEN_MAX
 
#define RSTRING_FSTR   RSTRING_FSTR
 
#define RSTRING_EMBED_LEN(str)
 
#define RSTRING_LEN(str)
 
#define RSTRING_PTR(str)
 
#define RSTRING_END(str)
 
#define RSTRING_LENINT(str)   rb_long2int(RSTRING_LEN(str))
 
#define RSTRING_GETMEM(str, ptrvar, lenvar)
 
#define RARRAY_EMBED_FLAG   (VALUE)RARRAY_EMBED_FLAG
 
#define RARRAY_EMBED_LEN_MASK   (VALUE)RARRAY_EMBED_LEN_MASK
 
#define RARRAY_EMBED_LEN_MAX   RARRAY_EMBED_LEN_MAX
 
#define RARRAY_EMBED_LEN_SHIFT   RARRAY_EMBED_LEN_SHIFT
 
#define RARRAY_EMBED_LEN(a)
 
#define RARRAY_LEN(a)   rb_array_len(a)
 
#define RARRAY_LENINT(ary)   rb_long2int(RARRAY_LEN(ary))
 
#define RARRAY_CONST_PTR(a)   rb_array_const_ptr(a)
 
#define RARRAY_PTR_USE_START(a)   ((VALUE *)RARRAY_CONST_PTR(a))
 
#define RARRAY_PTR_USE_END(a)   /* */
 
#define RARRAY_PTR_USE(ary, ptr_name, expr)
 
#define RARRAY_AREF(a, i)   (RARRAY_CONST_PTR(a)[i])
 
#define RARRAY_ASET(a, i, v)
 
#define RARRAY_PTR(a)   ((VALUE *)RARRAY_CONST_PTR(RB_OBJ_WB_UNPROTECT_FOR(ARRAY, a)))
 
#define RREGEXP_PTR(r)   (RREGEXP(r)->ptr)
 
#define RREGEXP_SRC(r)   (RREGEXP(r)->src)
 
#define RREGEXP_SRC_PTR(r)   RSTRING_PTR(RREGEXP(r)->src)
 
#define RREGEXP_SRC_LEN(r)   RSTRING_LEN(RREGEXP(r)->src)
 
#define RREGEXP_SRC_END(r)   RSTRING_END(RREGEXP(r)->src)
 
#define RHASH_TBL(h)   rb_hash_tbl(h)
 
#define RHASH_ITER_LEV(h)   rb_hash_iter_lev(h)
 
#define RHASH_IFNONE(h)   rb_hash_ifnone(h)
 
#define RHASH_SIZE(h)   NUM2SIZET(rb_hash_size(h))
 
#define RHASH_EMPTY_P(h)   (RHASH_SIZE(h) == 0)
 
#define RHASH_SET_IFNONE(h, ifnone)   rb_hash_set_ifnone((VALUE)h, ifnone)
 
#define RCOMPLEX_SET_REAL(cmp, r)   RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->real,(r))
 
#define RCOMPLEX_SET_IMAG(cmp, i)   RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->imag,(i))
 
#define HAVE_TYPE_RB_DATA_TYPE_T   1
 
#define HAVE_RB_DATA_TYPE_T_FUNCTION   1
 
#define HAVE_RB_DATA_TYPE_T_PARENT   1
 
#define DATA_PTR(dta)   (RDATA(dta)->data)
 
#define RTYPEDDATA_P(v)   (RTYPEDDATA(v)->typed_flag == 1)
 
#define RTYPEDDATA_TYPE(v)   (RTYPEDDATA(v)->type)
 
#define RTYPEDDATA_DATA(v)   (RTYPEDDATA(v)->data)
 
#define RUBY_UNTYPED_DATA_WARNING   0
 
#define Check_TypedStruct(v, t)   rb_check_typeddata((VALUE)(v),(t))
 
#define RUBY_DEFAULT_FREE   ((RUBY_DATA_FUNC)-1)
 
#define RUBY_NEVER_FREE   ((RUBY_DATA_FUNC)0)
 
#define RUBY_TYPED_DEFAULT_FREE   RUBY_DEFAULT_FREE
 
#define RUBY_TYPED_NEVER_FREE   RUBY_NEVER_FREE
 
#define RUBY_TYPED_FREE_IMMEDIATELY   1 /* TYPE field */
 
#define RUBY_TYPED_WB_PROTECTED   RUBY_FL_WB_PROTECTED /* THIS FLAG DEPENDS ON Ruby version */
 
#define RUBY_TYPED_PROMOTED1   RUBY_FL_PROMOTED1 /* THIS FLAG DEPENDS ON Ruby version */
 
#define Data_Wrap_Struct(klass, mark, free, sval)   rb_data_object_wrap((klass),(sval),(RUBY_DATA_FUNC)(mark),(RUBY_DATA_FUNC)(free))
 
#define Data_Make_Struct0(result, klass, type, size, mark, free, sval)
 
#define Data_Make_Struct(klass, type, mark, free, sval)
 
#define TypedData_Wrap_Struct(klass, data_type, sval)   rb_data_typed_object_wrap((klass),(sval),(data_type))
 
#define TypedData_Make_Struct0(result, klass, type, size, data_type, sval)
 
#define TypedData_Make_Struct(klass, type, data_type, sval)
 
#define Data_Get_Struct(obj, type, sval)   ((sval) = (type*)rb_data_object_get(obj))
 
#define TypedData_Get_Struct(obj, type, data_type, sval)   ((sval) = (type*)rb_check_typeddata((obj), (data_type)))
 
#define RSTRUCT_LEN(st)   NUM2LONG(rb_struct_size(st))
 
#define RSTRUCT_PTR(st)   rb_struct_ptr(st)
 
#define RSTRUCT_SET(st, idx, v)   rb_struct_aset(st, INT2NUM(idx), (v))
 
#define RSTRUCT_GET(st, idx)   rb_struct_aref(st, INT2NUM(idx))
 
#define RBIGNUM_SIGN(b)   (rb_big_sign(b))
 
#define RBIGNUM_POSITIVE_P(b)   (RBIGNUM_SIGN(b)!=0)
 
#define RBIGNUM_NEGATIVE_P(b)   (RBIGNUM_SIGN(b)==0)
 
#define R_CAST(st)   (struct st*)
 
#define RBASIC(obj)   (R_CAST(RBasic)(obj))
 
#define ROBJECT(obj)   (R_CAST(RObject)(obj))
 
#define RCLASS(obj)   (R_CAST(RClass)(obj))
 
#define RMODULE(obj)   RCLASS(obj)
 
#define RSTRING(obj)   (R_CAST(RString)(obj))
 
#define RREGEXP(obj)   (R_CAST(RRegexp)(obj))
 
#define RARRAY(obj)   (R_CAST(RArray)(obj))
 
#define RDATA(obj)   (R_CAST(RData)(obj))
 
#define RTYPEDDATA(obj)   (R_CAST(RTypedData)(obj))
 
#define RFILE(obj)   (R_CAST(RFile)(obj))
 
#define FL_SINGLETON   ((VALUE)RUBY_FL_SINGLETON)
 
#define FL_WB_PROTECTED   ((VALUE)RUBY_FL_WB_PROTECTED)
 
#define FL_PROMOTED0   ((VALUE)RUBY_FL_PROMOTED0)
 
#define FL_PROMOTED1   ((VALUE)RUBY_FL_PROMOTED1)
 
#define FL_FINALIZE   ((VALUE)RUBY_FL_FINALIZE)
 
#define FL_TAINT   ((VALUE)RUBY_FL_TAINT)
 
#define FL_UNTRUSTED   ((VALUE)RUBY_FL_UNTRUSTED)
 
#define FL_EXIVAR   ((VALUE)RUBY_FL_EXIVAR)
 
#define FL_FREEZE   ((VALUE)RUBY_FL_FREEZE)
 
#define FL_USHIFT   ((VALUE)RUBY_FL_USHIFT)
 
#define FL_USER0   ((VALUE)RUBY_FL_USER0)
 
#define FL_USER1   ((VALUE)RUBY_FL_USER1)
 
#define FL_USER2   ((VALUE)RUBY_FL_USER2)
 
#define FL_USER3   ((VALUE)RUBY_FL_USER3)
 
#define FL_USER4   ((VALUE)RUBY_FL_USER4)
 
#define FL_USER5   ((VALUE)RUBY_FL_USER5)
 
#define FL_USER6   ((VALUE)RUBY_FL_USER6)
 
#define FL_USER7   ((VALUE)RUBY_FL_USER7)
 
#define FL_USER8   ((VALUE)RUBY_FL_USER8)
 
#define FL_USER9   ((VALUE)RUBY_FL_USER9)
 
#define FL_USER10   ((VALUE)RUBY_FL_USER10)
 
#define FL_USER11   ((VALUE)RUBY_FL_USER11)
 
#define FL_USER12   ((VALUE)RUBY_FL_USER12)
 
#define FL_USER13   ((VALUE)RUBY_FL_USER13)
 
#define FL_USER14   ((VALUE)RUBY_FL_USER14)
 
#define FL_USER15   ((VALUE)RUBY_FL_USER15)
 
#define FL_USER16   ((VALUE)RUBY_FL_USER16)
 
#define FL_USER17   ((VALUE)RUBY_FL_USER17)
 
#define FL_USER18   ((VALUE)RUBY_FL_USER18)
 
#define FL_USER19   ((VALUE)RUBY_FL_USER19)
 
#define RB_SPECIAL_CONST_P(x)   (RB_IMMEDIATE_P(x) || !RB_TEST(x))
 
#define SPECIAL_CONST_P(x)   RB_SPECIAL_CONST_P(x)
 
#define RB_FL_ABLE(x)   (!RB_SPECIAL_CONST_P(x) && RB_BUILTIN_TYPE(x) != RUBY_T_NODE)
 
#define RB_FL_TEST_RAW(x, f)   (RBASIC(x)->flags&(f))
 
#define RB_FL_TEST(x, f)   (RB_FL_ABLE(x)?RB_FL_TEST_RAW((x),(f)):0)
 
#define RB_FL_ANY_RAW(x, f)   RB_FL_TEST_RAW((x),(f))
 
#define RB_FL_ANY(x, f)   RB_FL_TEST((x),(f))
 
#define RB_FL_ALL_RAW(x, f)   (RB_FL_TEST_RAW((x),(f)) == (f))
 
#define RB_FL_ALL(x, f)   (RB_FL_TEST((x),(f)) == (f))
 
#define RB_FL_SET_RAW(x, f)   (void)(RBASIC(x)->flags |= (f))
 
#define RB_FL_SET(x, f)   (RB_FL_ABLE(x) ? RB_FL_SET_RAW(x, f) : (void)0)
 
#define RB_FL_UNSET_RAW(x, f)   (void)(RBASIC(x)->flags &= ~(VALUE)(f))
 
#define RB_FL_UNSET(x, f)   (RB_FL_ABLE(x) ? RB_FL_UNSET_RAW(x, f) : (void)0)
 
#define RB_FL_REVERSE_RAW(x, f)   (void)(RBASIC(x)->flags ^= (f))
 
#define RB_FL_REVERSE(x, f)   (RB_FL_ABLE(x) ? RB_FL_REVERSE_RAW(x, f) : (void)0)
 
#define RB_OBJ_TAINTABLE(x)   (RB_FL_ABLE(x) && RB_BUILTIN_TYPE(x) != RUBY_T_BIGNUM && RB_BUILTIN_TYPE(x) != RUBY_T_FLOAT)
 
#define RB_OBJ_TAINTED_RAW(x)   RB_FL_TEST_RAW(x, RUBY_FL_TAINT)
 
#define RB_OBJ_TAINTED(x)   (!!RB_FL_TEST((x), RUBY_FL_TAINT))
 
#define RB_OBJ_TAINT_RAW(x)   RB_FL_SET_RAW(x, RUBY_FL_TAINT)
 
#define RB_OBJ_TAINT(x)   (RB_OBJ_TAINTABLE(x) ? RB_OBJ_TAINT_RAW(x) : (void)0)
 
#define RB_OBJ_UNTRUSTED(x)   RB_OBJ_TAINTED(x)
 
#define RB_OBJ_UNTRUST(x)   RB_OBJ_TAINT(x)
 
#define RB_OBJ_INFECT_RAW(x, s)   RB_FL_SET_RAW(x, RB_OBJ_TAINTED_RAW(s))
 
#define RB_OBJ_INFECT(x, s)
 
#define RB_OBJ_FROZEN_RAW(x)   (RBASIC(x)->flags&RUBY_FL_FREEZE)
 
#define RB_OBJ_FROZEN(x)   (!RB_FL_ABLE(x) || RB_OBJ_FROZEN_RAW(x))
 
#define RB_OBJ_FREEZE_RAW(x)   (void)(RBASIC(x)->flags |= RUBY_FL_FREEZE)
 
#define RB_OBJ_FREEZE(x)   rb_obj_freeze_inline((VALUE)x)
 
#define FL_ABLE(x)   RB_FL_ABLE(x)
 
#define FL_TEST_RAW(x, f)   RB_FL_TEST_RAW(x,f)
 
#define FL_TEST(x, f)   RB_FL_TEST(x,f)
 
#define FL_ANY_RAW(x, f)   RB_FL_ANY_RAW(x,f)
 
#define FL_ANY(x, f)   RB_FL_ANY(x,f)
 
#define FL_ALL_RAW(x, f)   RB_FL_ALL_RAW(x,f)
 
#define FL_ALL(x, f)   RB_FL_ALL(x,f)
 
#define FL_SET_RAW(x, f)   RB_FL_SET_RAW(x,f)
 
#define FL_SET(x, f)   RB_FL_SET(x,f)
 
#define FL_UNSET_RAW(x, f)   RB_FL_UNSET_RAW(x,f)
 
#define FL_UNSET(x, f)   RB_FL_UNSET(x,f)
 
#define FL_REVERSE_RAW(x, f)   RB_FL_REVERSE_RAW(x,f)
 
#define FL_REVERSE(x, f)   RB_FL_REVERSE(x,f)
 
#define OBJ_TAINTABLE(x)   RB_OBJ_TAINTABLE(x)
 
#define OBJ_TAINTED_RAW(x)   RB_OBJ_TAINTED_RAW(x)
 
#define OBJ_TAINTED(x)   RB_OBJ_TAINTED(x)
 
#define OBJ_TAINT_RAW(x)   RB_OBJ_TAINT_RAW(x)
 
#define OBJ_TAINT(x)   RB_OBJ_TAINT(x)
 
#define OBJ_UNTRUSTED(x)   RB_OBJ_UNTRUSTED(x)
 
#define OBJ_UNTRUST(x)   RB_OBJ_UNTRUST(x)
 
#define OBJ_INFECT_RAW(x, s)   RB_OBJ_INFECT_RAW(x,s)
 
#define OBJ_INFECT(x, s)   RB_OBJ_INFECT(x,s)
 
#define OBJ_FROZEN_RAW(x)   RB_OBJ_FROZEN_RAW(x)
 
#define OBJ_FROZEN(x)   RB_OBJ_FROZEN(x)
 
#define OBJ_FREEZE_RAW(x)   RB_OBJ_FREEZE_RAW(x)
 
#define OBJ_FREEZE(x)   RB_OBJ_FREEZE(x)
 
#define RUBY_UNTYPED_DATA_FUNC(func)   DEPRECATED(func)
 
#define RB_OBJ_PROMOTED_RAW(x)   RB_FL_ALL_RAW(x, RUBY_FL_PROMOTED)
 
#define RB_OBJ_PROMOTED(x)   (RB_SPECIAL_CONST_P(x) ? 0 : RB_OBJ_PROMOTED_RAW(x))
 
#define RB_OBJ_WB_UNPROTECT(x)   rb_obj_wb_unprotect(x, __FILE__, __LINE__)
 
#define OBJ_PROMOTED_RAW(x)   RB_OBJ_PROMOTED_RAW(x)
 
#define OBJ_PROMOTED(x)   RB_OBJ_PROMOTED(x)
 
#define OBJ_WB_UNPROTECT(x)   RB_OBJ_WB_UNPROTECT(x)
 
#define RB_OBJ_WRITE(a, slot, b)   rb_obj_write((VALUE)(a), (VALUE *)(slot), (VALUE)(b), __FILE__, __LINE__)
 
#define RB_OBJ_WRITTEN(a, oldv, b)   rb_obj_written((VALUE)(a), (VALUE)(oldv), (VALUE)(b), __FILE__, __LINE__)
 
#define USE_RGENGC_LOGGING_WB_UNPROTECT   0
 
#define RUBY_INTEGER_UNIFICATION   1
 
#define RB_INTEGER_TYPE_P(obj)   rb_integer_type_p(obj)
 
#define RB_INT2NUM(x)   rb_int2num_inline(x)
 
#define RB_UINT2NUM(x)   rb_uint2num_inline(x)
 
#define INT2NUM(x)   RB_INT2NUM(x)
 
#define UINT2NUM(x)   RB_UINT2NUM(x)
 
#define RB_LONG2NUM(x)   rb_long2num_inline(x)
 
#define RB_ULONG2NUM(x)   rb_ulong2num_inline(x)
 
#define RB_NUM2CHR(x)   rb_num2char_inline(x)
 
#define RB_CHR2FIX(x)   RB_INT2FIX((long)((x)&0xff))
 
#define LONG2NUM(x)   RB_LONG2NUM(x)
 
#define ULONG2NUM(x)   RB_ULONG2NUM(x)
 
#define NUM2CHR(x)   RB_NUM2CHR(x)
 
#define CHR2FIX(x)   RB_CHR2FIX(x)
 
#define RB_ST2FIX(h)   RB_LONG2FIX((long)(h))
 
#define ST2FIX(h)   RB_ST2FIX(h)
 
#define RB_ALLOC_N(type, n)   ((type*)ruby_xmalloc2((size_t)(n),sizeof(type)))
 
#define RB_ALLOC(type)   ((type*)ruby_xmalloc(sizeof(type)))
 
#define RB_ZALLOC_N(type, n)   ((type*)ruby_xcalloc((size_t)(n),sizeof(type)))
 
#define RB_ZALLOC(type)   (RB_ZALLOC_N(type,1))
 
#define RB_REALLOC_N(var, type, n)   ((var)=(type*)ruby_xrealloc2((char*)(var),(size_t)(n),sizeof(type)))
 
#define ALLOC_N(type, n)   RB_ALLOC_N(type,n)
 
#define ALLOC(type)   RB_ALLOC(type)
 
#define ZALLOC_N(type, n)   RB_ZALLOC_N(type,n)
 
#define ZALLOC(type)   RB_ZALLOC(type)
 
#define REALLOC_N(var, type, n)   RB_REALLOC_N(var,type,n)
 
#define ALLOCA_N(type, n)   ((type*)alloca(sizeof(type)*(n)))
 
#define RUBY_ALLOCV_LIMIT   1024
 
#define RB_ALLOCV(v, n)
 
#define RB_ALLOCV_N(type, v, n)
 
#define RB_ALLOCV_END(v)   rb_free_tmp_buffer(&(v))
 
#define ALLOCV(v, n)   RB_ALLOCV(v, n)
 
#define ALLOCV_N(type, v, n)   RB_ALLOCV_N(type, v, n)
 
#define ALLOCV_END(v)   RB_ALLOCV_END(v)
 
#define MEMZERO(p, type, n)   memset((p), 0, sizeof(type)*(size_t)(n))
 
#define MEMCPY(p1, p2, type, n)   memcpy((p1), (p2), sizeof(type)*(size_t)(n))
 
#define MEMMOVE(p1, p2, type, n)   memmove((p1), (p2), sizeof(type)*(size_t)(n))
 
#define MEMCMP(p1, p2, type, n)   memcmp((p1), (p2), sizeof(type)*(size_t)(n))
 
#define RUBY_METHOD_FUNC(func)   ((VALUE (*)(ANYARGS))(func))
 
#define RUBY_CONST_ID_CACHE(result, str)
 
#define RUBY_CONST_ID(var, str)   do RUBY_CONST_ID_CACHE((var) =, (str)) while (0)
 
#define CONST_ID_CACHE(result, str)   RUBY_CONST_ID_CACHE(result, str)
 
#define CONST_ID(var, str)   RUBY_CONST_ID(var, str)
 
#define rb_intern_const(str)   rb_intern2((str), (long)strlen(str))
 
#define rb_funcall2   rb_funcallv
 
#define rb_funcall3   rb_funcallv_public
 
#define HAVE_RB_SCAN_ARGS_OPTIONAL_HASH   1
 
#define ruby_verbose   (*rb_ruby_verbose_ptr())
 
#define ruby_debug   (*rb_ruby_debug_ptr())
 
#define RB_IO_WAIT_READABLE   RB_IO_WAIT_READABLE
 
#define RB_IO_WAIT_WRITABLE   RB_IO_WAIT_WRITABLE
 
#define RUBY_BLOCK_CALL_FUNC_TAKES_BLOCKARG   1
 
#define RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg)   VALUE yielded_arg, VALUE callback_arg, int argc, const VALUE *argv, VALUE blockarg
 
#define rb_type_p(obj, type)   (rb_type(obj) == (type))
 
#define FIX_CONST_VALUE_PTR(x)   (x)
 
#define RUBY_VM   1 /* YARV */
 
#define HAVE_NATIVETHREAD
 
#define RUBY_EVENT_NONE   0x0000
 
#define RUBY_EVENT_LINE   0x0001
 
#define RUBY_EVENT_CLASS   0x0002
 
#define RUBY_EVENT_END   0x0004
 
#define RUBY_EVENT_CALL   0x0008
 
#define RUBY_EVENT_RETURN   0x0010
 
#define RUBY_EVENT_C_CALL   0x0020
 
#define RUBY_EVENT_C_RETURN   0x0040
 
#define RUBY_EVENT_RAISE   0x0080
 
#define RUBY_EVENT_ALL   0x00ff
 
#define RUBY_EVENT_B_CALL   0x0100
 
#define RUBY_EVENT_B_RETURN   0x0200
 
#define RUBY_EVENT_THREAD_BEGIN   0x0400
 
#define RUBY_EVENT_THREAD_END   0x0800
 
#define RUBY_EVENT_FIBER_SWITCH   0x1000
 
#define RUBY_EVENT_TRACEPOINT_ALL   0xffff
 
#define RUBY_EVENT_SPECIFIED_LINE   0x010000
 
#define RUBY_EVENT_COVERAGE   0x020000
 
#define RUBY_INTERNAL_EVENT_SWITCH   0x040000
 
#define RUBY_EVENT_SWITCH   0x040000 /* obsolete name. this macro is for compatibility */
 
#define RUBY_INTERNAL_EVENT_NEWOBJ   0x100000
 
#define RUBY_INTERNAL_EVENT_FREEOBJ   0x200000
 
#define RUBY_INTERNAL_EVENT_GC_START   0x400000
 
#define RUBY_INTERNAL_EVENT_GC_END_MARK   0x800000
 
#define RUBY_INTERNAL_EVENT_GC_END_SWEEP   0x1000000
 
#define RUBY_INTERNAL_EVENT_GC_ENTER   0x2000000
 
#define RUBY_INTERNAL_EVENT_GC_EXIT   0x4000000
 
#define RUBY_INTERNAL_EVENT_OBJSPACE_MASK   0x7f00000
 
#define RUBY_INTERNAL_EVENT_MASK   0xfffe0000
 
#define RB_EVENT_HOOKS_HAVE_CALLBACK_DATA   1
 
#define ISASCII(c)   rb_isascii(c)
 
#define ISPRINT(c)   rb_isprint(c)
 
#define ISGRAPH(c)   rb_isgraph(c)
 
#define ISSPACE(c)   rb_isspace(c)
 
#define ISUPPER(c)   rb_isupper(c)
 
#define ISLOWER(c)   rb_islower(c)
 
#define ISALNUM(c)   rb_isalnum(c)
 
#define ISALPHA(c)   rb_isalpha(c)
 
#define ISDIGIT(c)   rb_isdigit(c)
 
#define ISXDIGIT(c)   rb_isxdigit(c)
 
#define TOUPPER(c)   rb_toupper(c)
 
#define TOLOWER(c)   rb_tolower(c)
 
#define STRCASECMP(s1, s2)   (st_locale_insensitive_strcasecmp((s1), (s2)))
 
#define STRNCASECMP(s1, s2, n)   (st_locale_insensitive_strncasecmp((s1), (s2), (n)))
 
#define STRTOUL(str, endptr, base)   (ruby_strtoul((str), (endptr), (base)))
 
#define InitVM(ext)   {void InitVM_##ext(void);InitVM_##ext();}
 
#define RUBY_INIT_STACK
 A convenience macro to call ruby_init_stack(). More...
 
#define Init_stack(addr)   ruby_init_stack(addr)
 

Typedefs

typedef unsigned long VALUE
 
typedef unsigned long ID
 
typedef char ruby_check_sizeof_int[SIZEOF_INT==sizeof(int) ? 1 :-1]
 
typedef char ruby_check_sizeof_long[SIZEOF_LONG==sizeof(long) ? 1 :-1]
 
typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP==sizeof(void *) ? 1 :-1]
 
typedef struct rb_data_type_struct rb_data_type_t
 
typedef void(* RUBY_DATA_FUNC) (void *)
 
typedef int ruby_glob_func(const char *, VALUE, void *)
 
typedef VALUE rb_gvar_getter_t(ID id, void *data, struct rb_global_variable *gvar)
 
typedef void rb_gvar_setter_t(VALUE val, ID id, void *data, struct rb_global_variable *gvar)
 
typedef void rb_gvar_marker_t(VALUE *var)
 
typedef VALUE rb_block_call_func(RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg))
 
typedef VALUE(* rb_block_call_func_t) (ANYARGS)
 
typedef uint32_t rb_event_flag_t
 
typedef void(* rb_event_hook_func_t) (rb_event_flag_t evflag, VALUE data, VALUE self, ID mid, VALUE klass)
 

Enumerations

enum  ruby_special_consts {
  RUBY_Qfalse = 0x00, RUBY_Qtrue = 0x14, RUBY_Qnil = 0x08, RUBY_Qundef = 0x34,
  RUBY_IMMEDIATE_MASK = 0x07, RUBY_FIXNUM_FLAG = 0x01, RUBY_FLONUM_MASK = 0x03, RUBY_FLONUM_FLAG = 0x02,
  RUBY_SYMBOL_FLAG = 0x0c, RUBY_SPECIAL_SHIFT = 8
}
 
enum  ruby_value_type {
  RUBY_T_NONE = 0x00, RUBY_T_OBJECT = 0x01, RUBY_T_CLASS = 0x02, RUBY_T_MODULE = 0x03,
  RUBY_T_FLOAT = 0x04, RUBY_T_STRING = 0x05, RUBY_T_REGEXP = 0x06, RUBY_T_ARRAY = 0x07,
  RUBY_T_HASH = 0x08, RUBY_T_STRUCT = 0x09, RUBY_T_BIGNUM = 0x0a, RUBY_T_FILE = 0x0b,
  RUBY_T_DATA = 0x0c, RUBY_T_MATCH = 0x0d, RUBY_T_COMPLEX = 0x0e, RUBY_T_RATIONAL = 0x0f,
  RUBY_T_NIL = 0x11, RUBY_T_TRUE = 0x12, RUBY_T_FALSE = 0x13, RUBY_T_SYMBOL = 0x14,
  RUBY_T_FIXNUM = 0x15, RUBY_T_UNDEF = 0x16, RUBY_T_IMEMO = 0x1a, RUBY_T_NODE = 0x1b,
  RUBY_T_ICLASS = 0x1c, RUBY_T_ZOMBIE = 0x1d, RUBY_T_MASK = 0x1f
}
 
enum  ruby_fl_type {
  RUBY_FL_WB_PROTECTED = (1<<5), RUBY_FL_PROMOTED0 = (1<<5), RUBY_FL_PROMOTED1 = (1<<6), RUBY_FL_PROMOTED = RUBY_FL_PROMOTED0|RUBY_FL_PROMOTED1,
  RUBY_FL_FINALIZE = (1<<7), RUBY_FL_TAINT = (1<<8), RUBY_FL_UNTRUSTED = RUBY_FL_TAINT, RUBY_FL_EXIVAR = (1<<10),
  RUBY_FL_FREEZE = (1<<11), RUBY_FL_USHIFT = 12, RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0),
  RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0),
  RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0),
  RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0),
  RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0),
  RUBY_FL_USER_N =(0), RUBY_FL_USER_N =(0), RUBY_ELTS_SHARED = RUBY_FL_USER2, RUBY_FL_DUPPED = (RUBY_T_MASK|RUBY_FL_EXIVAR|RUBY_FL_TAINT),
  RUBY_FL_SINGLETON = RUBY_FL_USER0
}
 
enum  ruby_robject_flags { ROBJECT_EMBED_LEN_MAX = 3, ROBJECT_EMBED = RUBY_FL_USER1, ROBJECT_ENUM_END }
 
enum  ruby_rmodule_flags { RMODULE_IS_OVERLAID = RUBY_FL_USER2, RMODULE_IS_REFINEMENT = RUBY_FL_USER3, RMODULE_INCLUDED_INTO_REFINEMENT = RUBY_FL_USER4, RMODULE_ENUM_END }
 
enum  ruby_rstring_flags {
  RSTRING_NOEMBED = RUBY_FL_USER1, RSTRING_EMBED_LEN_MASK, RSTRING_EMBED_LEN_SHIFT = (RUBY_FL_USHIFT+2), RSTRING_EMBED_LEN_MAX = (int)((sizeof(VALUE)*3)/sizeof(char)-1),
  RSTRING_FSTR = RUBY_FL_USER17, RSTRING_ENUM_END
}
 
enum  ruby_rarray_flags {
  RARRAY_EMBED_LEN_MAX = 3, RARRAY_EMBED_FLAG = RUBY_FL_USER1, RARRAY_EMBED_LEN_MASK = (RUBY_FL_USER4|RUBY_FL_USER3), RARRAY_EMBED_LEN_SHIFT = (RUBY_FL_USHIFT+3),
  RARRAY_ENUM_END
}
 
enum  rb_io_wait_readwrite { RB_IO_WAIT_READABLE, RB_IO_WAIT_WRITABLE }
 

Functions

RUBY_SYMBOL_EXPORT_BEGIN void * alloca ()
 
VALUE rb_int2inum (SIGNED_VALUE)
 
VALUE rb_uint2inum (VALUE)
 
ID rb_sym2id (VALUE)
 
VALUE rb_id2sym (ID)
 
volatile VALUErb_gc_guarded_ptr_val (volatile VALUE *ptr, VALUE val)
 
void rb_check_type (VALUE, int)
 
VALUE rb_str_to_str (VALUE)
 
VALUE rb_string_value (volatile VALUE *)
 
char * rb_string_value_ptr (volatile VALUE *)
 
char * rb_string_value_cstr (volatile VALUE *)
 
void rb_check_safe_obj (VALUE)
 
VALUE rb_str_export (VALUE)
 
VALUE rb_str_export_locale (VALUE)
 
VALUE rb_get_path (VALUE)
 
VALUE rb_get_path_no_checksafe (VALUE)
 
void rb_secure (int)
 
int rb_safe_level (void)
 
void rb_set_safe_level (int)
 
void rb_set_safe_level_force (int)
 
 CONSTFUNC (void rb_secure_update(VALUE))
 
 NORETURN (void rb_insecure_operation(void))
 
VALUE rb_errinfo (void)
 The current exception in the current thread. More...
 
void rb_set_errinfo (VALUE)
 Sets the current exception ($!) to the given value. More...
 
long rb_num2long (VALUE)
 
unsigned long rb_num2ulong (VALUE)
 
short rb_num2short (VALUE)
 
unsigned short rb_num2ushort (VALUE)
 
short rb_fix2short (VALUE)
 
unsigned short rb_fix2ushort (VALUE)
 
double rb_num2dbl (VALUE)
 Converts a Numeric object to double. More...
 
VALUE rb_uint2big (VALUE)
 
VALUE rb_int2big (SIGNED_VALUE)
 
VALUE rb_newobj (void)
 
VALUE rb_newobj_of (VALUE, VALUE)
 
VALUE rb_obj_setup (VALUE obj, VALUE klass, VALUE type)
 Fills common (RBasic) fields in obj. More...
 
VALUE rb_obj_hide (VALUE obj)
 Make the object invisible from Ruby code. More...
 
VALUE rb_obj_reveal (VALUE obj, VALUE klass)
 Make a hidden object visible again. More...
 
 PUREFUNC (double rb_float_value(VALUE))
 
VALUE rb_float_new (double)
 
VALUE rb_float_new_in_heap (double)
 
VALUE rb_data_object_wrap (VALUE, void *, RUBY_DATA_FUNC, RUBY_DATA_FUNC)
 
VALUE rb_data_object_zalloc (VALUE, size_t, RUBY_DATA_FUNC, RUBY_DATA_FUNC)
 
VALUE rb_data_typed_object_wrap (VALUE klass, void *datap, const rb_data_type_t *)
 
VALUE rb_data_typed_object_zalloc (VALUE klass, size_t size, const rb_data_type_t *type)
 
int rb_typeddata_inherited_p (const rb_data_type_t *child, const rb_data_type_t *parent)
 
int rb_typeddata_is_kind_of (VALUE, const rb_data_type_t *)
 
void * rb_check_typeddata (VALUE, const rb_data_type_t *)
 
int rb_big_sign (VALUE)
 
void rb_freeze_singleton_class (VALUE klass)
 
 DEPRECATED_BY (rb_data_object_wrap, static inline VALUE rb_data_object_alloc(VALUE, void *, RUBY_DATA_FUNC, RUBY_DATA_FUNC))
 
 DEPRECATED_BY (rb_data_typed_object_wrap, static inline VALUE rb_data_typed_object_alloc(VALUE, void *, const rb_data_type_t *))
 
void rb_gc_writebarrier (VALUE a, VALUE b)
 
void rb_gc_writebarrier_unprotect (VALUE obj)
 
void * rb_alloc_tmp_buffer (volatile VALUE *store, long len) RUBY_ATTR_ALLOC_SIZE((2))
 
void * rb_alloc_tmp_buffer_with_count (volatile VALUE *store, size_t len, size_t count) RUBY_ATTR_ALLOC_SIZE((2
 
void void rb_free_tmp_buffer (volatile VALUE *store)
 
 NORETURN (void ruby_malloc_size_overflow(size_t, size_t))
 
void rb_obj_infect (VALUE victim, VALUE carrier)
 Convenient function to infect victim with the taintedness of carrier. More...
 
void rb_glob (const char *, void(*)(const char *, VALUE, void *), VALUE)
 
int ruby_glob (const char *, int, ruby_glob_func *, VALUE)
 
int ruby_brace_glob (const char *, int, ruby_glob_func *, VALUE)
 
VALUE rb_define_class (const char *, VALUE)
 Defines a top-level class. More...
 
VALUE rb_define_module (const char *)
 
VALUE rb_define_class_under (VALUE, const char *, VALUE)
 Defines a class under the namespace of outer. More...
 
VALUE rb_define_module_under (VALUE, const char *)
 
void rb_include_module (VALUE, VALUE)
 
void rb_extend_object (VALUE, VALUE)
 Extend the object with the module. More...
 
void rb_prepend_module (VALUE, VALUE)
 
VALUE rb_gvar_undef_getter (ID id, void *data, struct rb_global_variable *gvar)
 
void rb_gvar_undef_setter (VALUE val, ID id, void *data, struct rb_global_variable *gvar)
 
void rb_gvar_undef_marker (VALUE *var)
 
VALUE rb_gvar_val_getter (ID id, void *data, struct rb_global_variable *gvar)
 
void rb_gvar_val_setter (VALUE val, ID id, void *data, struct rb_global_variable *gvar)
 
void rb_gvar_val_marker (VALUE *var)
 
VALUE rb_gvar_var_getter (ID id, void *data, struct rb_global_variable *gvar)
 
void rb_gvar_var_setter (VALUE val, ID id, void *data, struct rb_global_variable *gvar)
 
void rb_gvar_var_marker (VALUE *var)
 
 NORETURN (void rb_gvar_readonly_setter(VALUE val, ID id, void *data, struct rb_global_variable *gvar))
 
void rb_define_variable (const char *, VALUE *)
 
void rb_define_virtual_variable (const char *, VALUE(*)(ANYARGS), void(*)(ANYARGS))
 
void rb_define_hooked_variable (const char *, VALUE *, VALUE(*)(ANYARGS), void(*)(ANYARGS))
 
void rb_define_readonly_variable (const char *, const VALUE *)
 
void rb_define_const (VALUE, const char *, VALUE)
 
void rb_define_global_const (const char *, VALUE)
 
void rb_define_method (VALUE, const char *, VALUE(*)(ANYARGS), int)
 
void rb_define_module_function (VALUE, const char *, VALUE(*)(ANYARGS), int)
 Defines a module function for module. More...
 
void rb_define_global_function (const char *, VALUE(*)(ANYARGS), int)
 Defines a global function. More...
 
void rb_undef_method (VALUE, const char *)
 
void rb_define_alias (VALUE, const char *, const char *)
 Defines an alias of a method. More...
 
void rb_define_attr (VALUE, const char *, int, int)
 Defines (a) public accessor method(s) for an attribute. More...
 
void rb_global_variable (VALUE *)
 
void rb_gc_register_mark_object (VALUE)
 
void rb_gc_register_address (VALUE *)
 
void rb_gc_unregister_address (VALUE *)
 
ID rb_intern (const char *)
 
ID rb_intern2 (const char *, long)
 
ID rb_intern_str (VALUE str)
 
const char * rb_id2name (ID)
 
ID rb_check_id (volatile VALUE *)
 Returns ID for the given name if it is interned already, or 0. More...
 
ID rb_to_id (VALUE)
 
VALUE rb_id2str (ID)
 
VALUE rb_sym2str (VALUE)
 
VALUE rb_to_symbol (VALUE name)
 
VALUE rb_check_symbol (volatile VALUE *namep)
 
const char * rb_class2name (VALUE)
 
const char * rb_obj_classname (VALUE)
 
void rb_p (VALUE)
 
VALUE rb_eval_string (const char *)
 Evaluates the given string in an isolated binding. More...
 
VALUE rb_eval_string_protect (const char *, int *)
 Evaluates the given string in an isolated binding. More...
 
VALUE rb_eval_string_wrap (const char *, int *)
 Evaluates the given string under a module binding in an isolated binding. More...
 
VALUE rb_funcall (VALUE, ID, int,...)
 Calls a method. More...
 
VALUE rb_funcallv (VALUE, ID, int, const VALUE *)
 Calls a method. More...
 
VALUE rb_funcallv_public (VALUE, ID, int, const VALUE *)
 Calls a method. More...
 
VALUE rb_funcall_passing_block (VALUE, ID, int, const VALUE *)
 
VALUE rb_funcall_with_block (VALUE, ID, int, const VALUE *, VALUE)
 
int rb_scan_args (int, const VALUE *, const char *,...)
 
VALUE rb_call_super (int, const VALUE *)
 
VALUE rb_current_receiver (void)
 
int rb_get_kwargs (VALUE keyword_hash, const ID *table, int required, int optional, VALUE *)
 
VALUE rb_extract_keywords (VALUE *orighash)
 
VALUE rb_gv_set (const char *, VALUE)
 
VALUE rb_gv_get (const char *)
 
VALUE rb_iv_get (VALUE, const char *)
 
VALUE rb_iv_set (VALUE, const char *, VALUE)
 
VALUE rb_equal (VALUE, VALUE)
 call-seq: obj === other -> true or false More...
 
VALUErb_ruby_verbose_ptr (void)
 
VALUErb_ruby_debug_ptr (void)
 
 PRINTF_ARGS (NORETURN(void rb_raise(VALUE, const char *,...)), 2, 3)
 
 PRINTF_ARGS (NORETURN(void rb_fatal(const char *,...)), 1, 2)
 
 PRINTF_ARGS (NORETURN(void rb_bug(const char *,...)), 1, 2)
 
 NORETURN (void rb_bug_errno(const char *, int))
 
 NORETURN (void rb_sys_fail(const char *))
 
 NORETURN (void rb_sys_fail_str(VALUE))
 
 NORETURN (void rb_mod_sys_fail(VALUE, const char *))
 
 NORETURN (void rb_mod_sys_fail_str(VALUE, VALUE))
 
 NORETURN (void rb_readwrite_sys_fail(enum rb_io_wait_readwrite, const char *))
 
 NORETURN (void rb_exit(int))
 
VALUE rb_syserr_new (int, const char *)
 
VALUE rb_syserr_new_str (int n, VALUE arg)
 
 NORETURN (void rb_syserr_fail(int, const char *))
 
 NORETURN (void rb_syserr_fail_str(int, VALUE))
 
 NORETURN (void rb_mod_syserr_fail(VALUE, int, const char *))
 
 NORETURN (void rb_mod_syserr_fail_str(VALUE, int, VALUE))
 
 NORETURN (void rb_readwrite_syserr_fail(enum rb_io_wait_readwrite, int, const char *))
 
 PRINTF_ARGS (void rb_warning(const char *,...), 1, 2)
 
 PRINTF_ARGS (void rb_compile_warning(const char *, int, const char *,...), 3, 4)
 
VALUE rb_each (VALUE)
 
VALUE rb_yield (VALUE)
 
VALUE rb_yield_values (int n,...)
 
VALUE rb_yield_values2 (int n, const VALUE *argv)
 
VALUE rb_yield_splat (VALUE)
 
VALUE rb_yield_block (VALUE, VALUE, int, const VALUE *, VALUE)
 
int rb_block_given_p (void)
 Determines if the current method is given a block. More...
 
void rb_need_block (void)
 Declares that the current method needs a block. More...
 
VALUE rb_iterate (VALUE(*)(VALUE), VALUE, VALUE(*)(ANYARGS), VALUE)
 
VALUE rb_block_call (VALUE, ID, int, const VALUE *, rb_block_call_func_t, VALUE)
 
VALUE rb_rescue (VALUE(*)(ANYARGS), VALUE, VALUE(*)(ANYARGS), VALUE)
 An equivalent of rescue clause. More...
 
VALUE rb_rescue2 (VALUE(*)(ANYARGS), VALUE, VALUE(*)(ANYARGS), VALUE,...)
 An equivalent of rescue clause. More...
 
VALUE rb_ensure (VALUE(*)(ANYARGS), VALUE, VALUE(*)(ANYARGS), VALUE)
 An equivalent to ensure clause. More...
 
VALUE rb_catch (const char *, VALUE(*)(ANYARGS), VALUE)
 
VALUE rb_catch_obj (VALUE, VALUE(*)(ANYARGS), VALUE)
 
 NORETURN (void rb_throw(const char *, VALUE))
 
VALUE rb_require (const char *)
 
int ruby_native_thread_p (void)
 
void rb_add_event_hook (rb_event_hook_func_t func, rb_event_flag_t events, VALUE data)
 
int rb_remove_event_hook (rb_event_hook_func_t func)
 
int st_locale_insensitive_strcasecmp (const char *s1, const char *s2)
 
int st_locale_insensitive_strncasecmp (const char *s1, const char *s2, size_t n)
 
unsigned long ruby_strtoul (const char *str, char **endptr, int base)
 
 PRINTF_ARGS (int ruby_snprintf(char *str, size_t n, char const *fmt,...), 3, 4)
 
int ruby_vsnprintf (char *str, size_t n, char const *fmt, va_list ap)
 
void ruby_sysinit (int *argc, char ***argv)
 Initializes the process for libruby. More...
 
void ruby_init (void)
 Calls ruby_setup() and check error. More...
 
void * ruby_options (int argc, char **argv)
 Processes command line arguments and compiles the Ruby source to execute. More...
 
int ruby_executable_node (void *n, int *status)
 Checks the return value of ruby_options(). More...
 
int ruby_run_node (void *n)
 Runs the given compiled source and exits this process. More...
 
void ruby_show_version (void)
 Prints the version information of the CRuby interpreter to stdout. More...
 
void ruby_show_copyright (void)
 Prints the copyright notice of the CRuby interpreter to stdout. More...
 
void ruby_init_stack (volatile VALUE *)
 
int ruby_setup (void)
 Initializes the Ruby VM and builtin libraries. More...
 
int ruby_cleanup (volatile int)
 Destructs the VM. More...
 
void ruby_finalize (void)
 Runs the VM finalization processes. More...
 
void ruby_set_stack_size (size_t)
 
int ruby_stack_check (void)
 
size_t ruby_stack_length (VALUE **)
 
int ruby_exec_node (void *n)
 Runs the given compiled source. More...
 
void ruby_script (const char *name)
 Sets the current script name to this value. More...
 
void ruby_set_script_name (VALUE name)
 Sets the current script name to this value. More...
 
void ruby_prog_init (void)
 Defines built-in variables. More...
 
void ruby_set_argv (int, char **)
 
void * ruby_process_options (int, char **)
 
void ruby_init_loadpath (void)
 
void ruby_incpush (const char *)
 
void ruby_sig_finalize (void)
 

Variables

RUBY_EXTERN VALUE rb_mKernel
 
RUBY_EXTERN VALUE rb_mComparable
 
RUBY_EXTERN VALUE rb_mEnumerable
 
RUBY_EXTERN VALUE rb_mErrno
 
RUBY_EXTERN VALUE rb_mFileTest
 
RUBY_EXTERN VALUE rb_mGC
 
RUBY_EXTERN VALUE rb_mMath
 
RUBY_EXTERN VALUE rb_mProcess
 
RUBY_EXTERN VALUE rb_mWaitReadable
 
RUBY_EXTERN VALUE rb_mWaitWritable
 
RUBY_EXTERN VALUE rb_cBasicObject
 
RUBY_EXTERN VALUE rb_cObject
 
RUBY_EXTERN VALUE rb_cArray
 
RUBY_EXTERN VALUE rb_cBinding
 
RUBY_EXTERN VALUE rb_cClass
 
RUBY_EXTERN VALUE rb_cCont
 
RUBY_EXTERN VALUE rb_cDir
 
RUBY_EXTERN VALUE rb_cData
 
RUBY_EXTERN VALUE rb_cFalseClass
 
RUBY_EXTERN VALUE rb_cEncoding
 
RUBY_EXTERN VALUE rb_cEnumerator
 
RUBY_EXTERN VALUE rb_cFile
 
RUBY_EXTERN VALUE rb_cFloat
 
RUBY_EXTERN VALUE rb_cHash
 
RUBY_EXTERN VALUE rb_cInteger
 
RUBY_EXTERN VALUE rb_cIO
 
RUBY_EXTERN VALUE rb_cMatch
 
RUBY_EXTERN VALUE rb_cMethod
 
RUBY_EXTERN VALUE rb_cModule
 
RUBY_EXTERN VALUE rb_cNameErrorMesg
 
RUBY_EXTERN VALUE rb_cNilClass
 
RUBY_EXTERN VALUE rb_cNumeric
 
RUBY_EXTERN VALUE rb_cProc
 
RUBY_EXTERN VALUE rb_cRandom
 
RUBY_EXTERN VALUE rb_cRange
 
RUBY_EXTERN VALUE rb_cRational
 
RUBY_EXTERN VALUE rb_cComplex
 
RUBY_EXTERN VALUE rb_cRegexp
 
RUBY_EXTERN VALUE rb_cStat
 
RUBY_EXTERN VALUE rb_cString
 
RUBY_EXTERN VALUE rb_cStruct
 
RUBY_EXTERN VALUE rb_cSymbol
 
RUBY_EXTERN VALUE rb_cThread
 
RUBY_EXTERN VALUE rb_cTime
 
RUBY_EXTERN VALUE rb_cTrueClass
 
RUBY_EXTERN VALUE rb_cUnboundMethod
 
RUBY_EXTERN VALUE rb_eException
 
RUBY_EXTERN VALUE rb_eStandardError
 
RUBY_EXTERN VALUE rb_eSystemExit
 
RUBY_EXTERN VALUE rb_eInterrupt
 
RUBY_EXTERN VALUE rb_eSignal
 
RUBY_EXTERN VALUE rb_eFatal
 
RUBY_EXTERN VALUE rb_eArgError
 
RUBY_EXTERN VALUE rb_eEOFError
 
RUBY_EXTERN VALUE rb_eIndexError
 
RUBY_EXTERN VALUE rb_eStopIteration
 
RUBY_EXTERN VALUE rb_eKeyError
 
RUBY_EXTERN VALUE rb_eRangeError
 
RUBY_EXTERN VALUE rb_eIOError
 
RUBY_EXTERN VALUE rb_eRuntimeError
 
RUBY_EXTERN VALUE rb_eSecurityError
 
RUBY_EXTERN VALUE rb_eSystemCallError
 
RUBY_EXTERN VALUE rb_eThreadError
 
RUBY_EXTERN VALUE rb_eTypeError
 
RUBY_EXTERN VALUE rb_eZeroDivError
 
RUBY_EXTERN VALUE rb_eNotImpError
 
RUBY_EXTERN VALUE rb_eNoMemError
 
RUBY_EXTERN VALUE rb_eNoMethodError
 
RUBY_EXTERN VALUE rb_eFloatDomainError
 
RUBY_EXTERN VALUE rb_eLocalJumpError
 
RUBY_EXTERN VALUE rb_eSysStackError
 
RUBY_EXTERN VALUE rb_eRegexpError
 
RUBY_EXTERN VALUE rb_eEncodingError
 
RUBY_EXTERN VALUE rb_eEncCompatError
 
RUBY_EXTERN VALUE rb_eScriptError
 
RUBY_EXTERN VALUE rb_eNameError
 
RUBY_EXTERN VALUE rb_eSyntaxError
 
RUBY_EXTERN VALUE rb_eLoadError
 
RUBY_EXTERN VALUE rb_eMathDomainError
 
RUBY_EXTERN VALUE rb_stdin
 
RUBY_EXTERN VALUE rb_stdout
 
RUBY_EXTERN VALUE rb_stderr
 

Macro Definition Documentation

◆ ALLOC

#define ALLOC (   type)    RB_ALLOC(type)

◆ ALLOC_N

#define ALLOC_N (   type,
 
)    RB_ALLOC_N(type,n)

◆ ALLOCA_N

#define ALLOCA_N (   type,
 
)    ((type*)alloca(sizeof(type)*(n)))

Definition at line 1593 of file ruby.h.

Referenced by if(), rb_funcall(), rb_str_buf_cat_ascii(), and rb_str_concat().

◆ ALLOCV

#define ALLOCV (   v,
 
)    RB_ALLOCV(v, n)

Definition at line 1656 of file ruby.h.

Referenced by rb_str_to_dbl(), and rb_w32_reparse_symlink_p().

◆ ALLOCV_END

#define ALLOCV_END (   v)    RB_ALLOCV_END(v)

Definition at line 1658 of file ruby.h.

Referenced by rb_freopen(), rb_str_to_dbl(), rb_w32_reparse_symlink_p(), and ruby_setenv().

◆ ALLOCV_N

#define ALLOCV_N (   type,
  v,
 
)    RB_ALLOCV_N(type, v, n)

Definition at line 1657 of file ruby.h.

Referenced by date_zone_to_diff(), rb_execarg_init(), rb_freopen(), and ruby_setenv().

◆ ASSUME

#define ASSUME (   x)    ((void)(x))

Definition at line 42 of file ruby.h.

◆ BUILTIN_TYPE

#define BUILTIN_TYPE (   x)    RB_BUILTIN_TYPE(x)

◆ CHAR_BIT

#define CHAR_BIT   8

◆ Check_SafeStr

#define Check_SafeStr (   v)    [<"Check_SafeStr() is obsolete; use SafeStringValue() instead">]

Definition at line 583 of file ruby.h.

◆ Check_Type

#define Check_Type (   v,
 
)    rb_check_type((VALUE)(v),(t))

◆ Check_TypedStruct

#define Check_TypedStruct (   v,
 
)    rb_check_typeddata((VALUE)(v),(t))

Definition at line 1131 of file ruby.h.

Referenced by rb_mutex_allow_trap().

◆ CHR2FIX

#define CHR2FIX (   x)    RB_CHR2FIX(x)

Definition at line 1576 of file ruby.h.

◆ CLASS_OF

#define CLASS_OF (   v)    rb_class_of((VALUE)(v))

◆ CLONESETUP

#define CLONESETUP (   clone,
  obj 
)    rb_clone_setup(clone,obj)

Definition at line 756 of file ruby.h.

◆ CONST_ID

#define CONST_ID (   var,
  str 
)    RUBY_CONST_ID(var, str)

◆ CONST_ID_CACHE

#define CONST_ID_CACHE (   result,
  str 
)    RUBY_CONST_ID_CACHE(result, str)

Definition at line 1742 of file ruby.h.

◆ Data_Get_Struct

#define Data_Get_Struct (   obj,
  type,
  sval 
)    ((sval) = (type*)rb_data_object_get(obj))

Definition at line 1180 of file ruby.h.

◆ Data_Make_Struct

#define Data_Make_Struct (   klass,
  type,
  mark,
  free,
  sval 
)
Value:
(\
rb_data_object_make((klass),(RUBY_DATA_FUNC)(mark),(RUBY_DATA_FUNC)(free),(void **)&(sval),sizeof(type)) \
)
void(* RUBY_DATA_FUNC)(void *)
Definition: ruby.h:1115
free(psz)

Definition at line 1157 of file ruby.h.

◆ Data_Make_Struct0

#define Data_Make_Struct0 (   result,
  klass,
  type,
  size,
  mark,
  free,
  sval 
)
Value:
VALUE result = rb_data_object_zalloc((klass), (size), \
(RUBY_DATA_FUNC)(mark), \
(void)((sval) = (type *)DATA_PTR(result));
void(* RUBY_DATA_FUNC)(void *)
Definition: ruby.h:1115
#define DATA_PTR(dta)
Definition: ruby.h:1106
unsigned long VALUE
Definition: ruby.h:85
int size
Definition: encoding.c:57
VALUE rb_data_object_zalloc(VALUE, size_t, RUBY_DATA_FUNC, RUBY_DATA_FUNC)
free(psz)

Definition at line 1145 of file ruby.h.

◆ DATA_PTR

#define DATA_PTR (   dta)    (RDATA(dta)->data)

Definition at line 1106 of file ruby.h.

Referenced by ole_vstr2wc(), rb_dir_getwd_ospath(), RUBY_ALIAS_FUNCTION(), and ruby_getcwd().

◆ Data_Wrap_Struct

#define Data_Wrap_Struct (   klass,
  mark,
  free,
  sval 
)    rb_data_object_wrap((klass),(sval),(RUBY_DATA_FUNC)(mark),(RUBY_DATA_FUNC)(free))

◆ DBL2NUM

#define DBL2NUM (   dbl)    rb_float_new(dbl)

Definition at line 934 of file ruby.h.

Referenced by exp1(), rb_big_fdiv(), rb_big_mul(), rb_float_abs(), rb_float_uminus(), and rb_int_fdiv().

◆ DUPSETUP

#define DUPSETUP (   dup,
  obj 
)    rb_dup_setup(dup,obj)

Definition at line 757 of file ruby.h.

◆ DYNAMIC_SYM_P

#define DYNAMIC_SYM_P (   x)    RB_DYNAMIC_SYM_P(x)

Definition at line 381 of file ruby.h.

Referenced by rb_check_id(), rb_check_symbol(), rb_sym2id(), and rb_sym2str().

◆ ELTS_SHARED

#define ELTS_SHARED   RUBY_ELTS_SHARED

Definition at line 937 of file ruby.h.

◆ ExportStringValue

#define ExportStringValue (   v)
Value:
do {\
SafeStringValue(v);\
(v) = rb_str_export(v);\
} while (0)
VALUE rb_str_export(VALUE)
Definition: string.c:1091

Definition at line 587 of file ruby.h.

◆ FilePathStringValue

#define FilePathStringValue (   v)    ((v) = rb_get_path_no_checksafe(v))

Definition at line 597 of file ruby.h.

Referenced by rb_file_dirname().

◆ FilePathValue

#define FilePathValue (   v)    (RB_GC_GUARD(v) = rb_get_path(v))

Definition at line 594 of file ruby.h.

Referenced by rb_file_open_str(), and rb_readlink().

◆ FIX2INT

#define FIX2INT (   x)    RB_FIX2INT(x)

◆ FIX2LONG

#define FIX2LONG (   x)    RB_FIX2LONG(x)

◆ FIX2SHORT

#define FIX2SHORT (   x)    RB_FIX2SHORT(x)

Definition at line 694 of file ruby.h.

◆ FIX2UINT

#define FIX2UINT (   x)    RB_FIX2UINT(x)

Definition at line 687 of file ruby.h.

Referenced by rb_io_ungetc().

◆ FIX2ULONG

#define FIX2ULONG (   x)    RB_FIX2ULONG(x)

Definition at line 364 of file ruby.h.

Referenced by rb_fix2ushort().

◆ FIX_CONST_VALUE_PTR

#define FIX_CONST_VALUE_PTR (   x)    (x)

Definition at line 2059 of file ruby.h.

◆ FIXABLE

#define FIXABLE (   f)    RB_FIXABLE(f)

Definition at line 368 of file ruby.h.

Referenced by rb_int2inum(), and rb_num2fix().

◆ FIXNUM_FLAG

#define FIXNUM_FLAG   RUBY_FIXNUM_FLAG

Definition at line 441 of file ruby.h.

Referenced by rb_obj_id().

◆ FIXNUM_MAX

#define FIXNUM_MAX   RUBY_FIXNUM_MAX

Definition at line 228 of file ruby.h.

Referenced by Init_limits(), and rb_integer_float_cmp().

◆ FIXNUM_MIN

#define FIXNUM_MIN   RUBY_FIXNUM_MIN

Definition at line 229 of file ruby.h.

Referenced by Init_limits(), and rb_integer_float_cmp().

◆ FIXNUM_P

#define FIXNUM_P (   f)    RB_FIXNUM_P(f)

◆ FL_EXIVAR

#define FL_EXIVAR   ((VALUE)RUBY_FL_EXIVAR)

◆ FL_FINALIZE

#define FL_FINALIZE   ((VALUE)RUBY_FL_FINALIZE)

Definition at line 1212 of file ruby.h.

Referenced by rb_gc_copy_finalizer(), and rb_undefine_finalizer().

◆ FL_FREEZE

#define FL_FREEZE   ((VALUE)RUBY_FL_FREEZE)

Definition at line 1216 of file ruby.h.

Referenced by rb_freeze_singleton_class().

◆ FL_PROMOTED0

#define FL_PROMOTED0   ((VALUE)RUBY_FL_PROMOTED0)

Definition at line 1210 of file ruby.h.

◆ FL_PROMOTED1

#define FL_PROMOTED1   ((VALUE)RUBY_FL_PROMOTED1)

Definition at line 1211 of file ruby.h.

◆ FL_SINGLETON

#define FL_SINGLETON   ((VALUE)RUBY_FL_SINGLETON)

◆ FL_TAINT

#define FL_TAINT   ((VALUE)RUBY_FL_TAINT)

Definition at line 1213 of file ruby.h.

Referenced by rb_check_copyable(), and rb_obj_untaint().

◆ FL_UNTRUSTED

#define FL_UNTRUSTED   ((VALUE)RUBY_FL_UNTRUSTED)

Definition at line 1214 of file ruby.h.

◆ FL_USER0

#define FL_USER0   ((VALUE)RUBY_FL_USER0)

Definition at line 1220 of file ruby.h.

◆ FL_USER1

#define FL_USER1   ((VALUE)RUBY_FL_USER1)

Definition at line 1221 of file ruby.h.

◆ FL_USER10

#define FL_USER10   ((VALUE)RUBY_FL_USER10)

Definition at line 1230 of file ruby.h.

◆ FL_USER11

#define FL_USER11   ((VALUE)RUBY_FL_USER11)

Definition at line 1231 of file ruby.h.

◆ FL_USER12

#define FL_USER12   ((VALUE)RUBY_FL_USER12)

Definition at line 1232 of file ruby.h.

◆ FL_USER13

#define FL_USER13   ((VALUE)RUBY_FL_USER13)

Definition at line 1233 of file ruby.h.

◆ FL_USER14

#define FL_USER14   ((VALUE)RUBY_FL_USER14)

Definition at line 1234 of file ruby.h.

◆ FL_USER15

#define FL_USER15   ((VALUE)RUBY_FL_USER15)

Definition at line 1235 of file ruby.h.

◆ FL_USER16

#define FL_USER16   ((VALUE)RUBY_FL_USER16)

Definition at line 1236 of file ruby.h.

◆ FL_USER17

#define FL_USER17   ((VALUE)RUBY_FL_USER17)

Definition at line 1237 of file ruby.h.

◆ FL_USER18

#define FL_USER18   ((VALUE)RUBY_FL_USER18)

Definition at line 1238 of file ruby.h.

◆ FL_USER19

#define FL_USER19   ((VALUE)RUBY_FL_USER19)

Definition at line 1239 of file ruby.h.

◆ FL_USER2

#define FL_USER2   ((VALUE)RUBY_FL_USER2)

Definition at line 1222 of file ruby.h.

◆ FL_USER3

#define FL_USER3   ((VALUE)RUBY_FL_USER3)

Definition at line 1223 of file ruby.h.

◆ FL_USER4

#define FL_USER4   ((VALUE)RUBY_FL_USER4)

Definition at line 1224 of file ruby.h.

◆ FL_USER5

#define FL_USER5   ((VALUE)RUBY_FL_USER5)

Definition at line 1225 of file ruby.h.

◆ FL_USER6

#define FL_USER6   ((VALUE)RUBY_FL_USER6)

Definition at line 1226 of file ruby.h.

◆ FL_USER7

#define FL_USER7   ((VALUE)RUBY_FL_USER7)

Definition at line 1227 of file ruby.h.

◆ FL_USER8

#define FL_USER8   ((VALUE)RUBY_FL_USER8)

Definition at line 1228 of file ruby.h.

◆ FL_USER9

#define FL_USER9   ((VALUE)RUBY_FL_USER9)

Definition at line 1229 of file ruby.h.

◆ FL_USHIFT

#define FL_USHIFT   ((VALUE)RUBY_FL_USHIFT)

Definition at line 1218 of file ruby.h.

Referenced by rb_imemo_new().

◆ FL_WB_PROTECTED

#define FL_WB_PROTECTED   ((VALUE)RUBY_FL_WB_PROTECTED)

◆ FLONUM_FLAG

#define FLONUM_FLAG   RUBY_FLONUM_FLAG

Definition at line 444 of file ruby.h.

◆ FLONUM_MASK

#define FLONUM_MASK   RUBY_FLONUM_MASK

Definition at line 443 of file ruby.h.

◆ FLONUM_P

#define FLONUM_P (   x)    RB_FLONUM_P(x)

Definition at line 399 of file ruby.h.

Referenced by rb_num2dbl(), and rb_obj_id().

◆ GIDT2NUM

#define GIDT2NUM (   v)    LONG2NUM(v)

Definition at line 335 of file ruby.h.

◆ HAVE_NATIVETHREAD

#define HAVE_NATIVETHREAD

Definition at line 2075 of file ruby.h.

◆ HAVE_RB_DATA_TYPE_T_FUNCTION

#define HAVE_RB_DATA_TYPE_T_FUNCTION   1

Definition at line 1096 of file ruby.h.

◆ HAVE_RB_DATA_TYPE_T_PARENT

#define HAVE_RB_DATA_TYPE_T_PARENT   1

Definition at line 1097 of file ruby.h.

◆ HAVE_RB_GC_GUARDED_PTR_VAL

#define HAVE_RB_GC_GUARDED_PTR_VAL   1

Definition at line 551 of file ruby.h.

◆ HAVE_RB_SCAN_ARGS_OPTIONAL_HASH

#define HAVE_RB_SCAN_ARGS_OPTIONAL_HASH   1

Definition at line 1802 of file ruby.h.

◆ HAVE_TYPE_RB_DATA_TYPE_T

#define HAVE_TYPE_RB_DATA_TYPE_T   1

Definition at line 1095 of file ruby.h.

◆ ID2SYM

#define ID2SYM (   x)    RB_ID2SYM(x)

◆ IMMEDIATE_MASK

#define IMMEDIATE_MASK   RUBY_IMMEDIATE_MASK

Definition at line 440 of file ruby.h.

◆ IMMEDIATE_P

#define IMMEDIATE_P (   x)    RB_IMMEDIATE_P(x)

Definition at line 371 of file ruby.h.

◆ InitVM

#define InitVM (   ext)    {void InitVM_##ext(void);InitVM_##ext();}

Definition at line 2164 of file ruby.h.

Referenced by Init_console(), Init_Math(), Init_Object(), Init_pathname(), Init_Random(), and Init_resolv().

◆ INT2FIX

#define INT2FIX (   i)    RB_INT2FIX(i)

◆ INT2NUM

#define INT2NUM (   x)    RB_INT2NUM(x)

◆ ISALNUM

#define ISALNUM (   c)    rb_isalnum(c)

Definition at line 2148 of file ruby.h.

◆ ISALPHA

#define ISALPHA (   c)    rb_isalpha(c)

Definition at line 2149 of file ruby.h.

◆ ISASCII

#define ISASCII (   c)    rb_isascii(c)

Definition at line 2142 of file ruby.h.

Referenced by rb_enc_ascget(), and rb_str_include_range_p().

◆ ISDIGIT

#define ISDIGIT (   c)    rb_isdigit(c)

Definition at line 2150 of file ruby.h.

Referenced by rb_cstr_to_dbl(), rb_scan_args(), rb_str_include_range_p(), ruby_strtod(), and VpAlloc().

◆ ISGRAPH

#define ISGRAPH (   c)    rb_isgraph(c)

Definition at line 2144 of file ruby.h.

◆ ISLOWER

#define ISLOWER (   c)    rb_islower(c)

Definition at line 2147 of file ruby.h.

◆ ISPRINT

#define ISPRINT (   c)    rb_isprint(c)

Definition at line 2143 of file ruby.h.

Referenced by rsock_inspect_sockaddr().

◆ ISSPACE

#define ISSPACE (   c)    rb_isspace(c)

◆ ISUPPER

#define ISUPPER (   c)    rb_isupper(c)

Definition at line 2146 of file ruby.h.

◆ ISXDIGIT

#define ISXDIGIT (   c)    rb_isxdigit(c)

Definition at line 2151 of file ruby.h.

◆ LONG2FIX

#define LONG2FIX (   i)    RB_INT2FIX(i)

◆ LONG2NUM

#define LONG2NUM (   x)    RB_LONG2NUM(x)

Definition at line 1573 of file ruby.h.

Referenced by generic_to_value(), rb_int_pred(), rb_int_succ(), rb_obj_id(), and rb_str_length().

◆ LONG_MAX

#define LONG_MAX   2147483647

◆ LONG_MIN

#define LONG_MIN   (-LONG_MAX-1)

Definition at line 193 of file ruby.h.

Referenced by Init_limits(), and rb_integer_float_eq().

◆ MEMCMP

#define MEMCMP (   p1,
  p2,
  type,
 
)    memcmp((p1), (p2), sizeof(type)*(size_t)(n))

Definition at line 1663 of file ruby.h.

Referenced by rb_big_eql().

◆ MEMCPY

#define MEMCPY (   p1,
  p2,
  type,
 
)    memcpy((p1), (p2), sizeof(type)*(size_t)(n))

◆ MEMMOVE

#define MEMMOVE (   p1,
  p2,
  type,
 
)    memmove((p1), (p2), sizeof(type)*(size_t)(n))

Definition at line 1662 of file ruby.h.

Referenced by rb_ary_delete_at().

◆ MEMZERO

#define MEMZERO (   p,
  type,
 
)    memset((p), 0, sizeof(type)*(size_t)(n))

Definition at line 1660 of file ruby.h.

Referenced by Init_BareVM(), rb_execarg_run_options(), rb_id_table_clear(), and rsock_addrinfo().

◆ MODET2NUM

#define MODET2NUM (   v)    INT2NUM(v)

Definition at line 344 of file ruby.h.

◆ NEGFIXABLE

#define NEGFIXABLE (   f)    RB_NEGFIXABLE(f)

Definition at line 367 of file ruby.h.

◆ NEWOBJ

#define NEWOBJ (   obj,
  type 
)    RB_NEWOBJ(obj,type)

Definition at line 753 of file ruby.h.

◆ NEWOBJ_OF

#define NEWOBJ_OF (   obj,
  type,
  klass,
  flags 
)    RB_NEWOBJ_OF(obj,type,klass,flags) /* core has special NEWOBJ_OF() in internal.h */

Definition at line 754 of file ruby.h.

Referenced by rb_float_new_in_heap(), and rsock_sockopt_new().

◆ NIL_P

#define NIL_P (   v)    RB_NIL_P(v)

◆ NUM2CHR

#define NUM2CHR (   x)    RB_NUM2CHR(x)

Definition at line 1575 of file ruby.h.

◆ NUM2DBL

#define NUM2DBL (   x)    rb_num2dbl((VALUE)(x))

Definition at line 743 of file ruby.h.

Referenced by ruby_float_step(), and value_to_generic().

◆ NUM2GIDT

#define NUM2GIDT (   v)    NUM2LONG(v)

Definition at line 338 of file ruby.h.

◆ NUM2INT

#define NUM2INT (   x)    RB_NUM2INT(x)

◆ NUM2LONG

#define NUM2LONG (   x)    RB_NUM2LONG(x)

Definition at line 648 of file ruby.h.

Referenced by rb_ary_aref(), rb_ary_at(), rb_get_values_at(), rb_range_beg_len(), and value_to_generic().

◆ NUM2MODET

#define NUM2MODET (   v)    NUM2INT(v)

Definition at line 341 of file ruby.h.

◆ NUM2OFFT

#define NUM2OFFT (   x)    NUM2LONG(x)

Definition at line 730 of file ruby.h.

◆ NUM2PIDT

#define NUM2PIDT (   v)    NUM2LONG(v)

Definition at line 326 of file ruby.h.

Referenced by rb_execarg_addopt().

◆ NUM2SHORT

#define NUM2SHORT (   x)    RB_NUM2SHORT(x)

Definition at line 706 of file ruby.h.

◆ NUM2SIZET

#define NUM2SIZET (   x)    NUM2ULONG(x)

Definition at line 738 of file ruby.h.

◆ NUM2SSIZET

#define NUM2SSIZET (   x)    NUM2LONG(x)

Definition at line 739 of file ruby.h.

◆ NUM2UIDT

#define NUM2UIDT (   v)    NUM2LONG(v)

Definition at line 332 of file ruby.h.

◆ NUM2UINT

#define NUM2UINT (   x)    RB_NUM2UINT(x)

Definition at line 685 of file ruby.h.

Referenced by value_to_generic().

◆ NUM2ULONG

#define NUM2ULONG (   x)    RB_NUM2ULONG(x)

Definition at line 658 of file ruby.h.

Referenced by value_to_generic().

◆ NUM2USHORT

#define NUM2USHORT (   x)    RB_NUM2USHORT(x)

Definition at line 707 of file ruby.h.

◆ OBJ_PROMOTED

#define OBJ_PROMOTED (   x)    RB_OBJ_PROMOTED(x)

Definition at line 1423 of file ruby.h.

Referenced by rb_obj_rgengc_promoted_p().

◆ OBJ_PROMOTED_RAW

#define OBJ_PROMOTED_RAW (   x)    RB_OBJ_PROMOTED_RAW(x)

Definition at line 1422 of file ruby.h.

◆ OBJ_WB_UNPROTECT

#define OBJ_WB_UNPROTECT (   x)    RB_OBJ_WB_UNPROTECT(x)

Definition at line 1424 of file ruby.h.

Referenced by rb_hash_tbl().

◆ OBJSETUP

#define OBJSETUP (   obj,
  c,
 
)    rb_obj_setup(obj, c, t) /* use NEWOBJ_OF instead of NEWOBJ()+OBJSETUP() */

Definition at line 755 of file ruby.h.

◆ OFFT2NUM

#define OFFT2NUM (   v)    LONG2NUM(v)

Definition at line 254 of file ruby.h.

◆ PIDT2NUM

#define PIDT2NUM (   v)    LONG2NUM(v)

Definition at line 323 of file ruby.h.

◆ POSFIXABLE

#define POSFIXABLE (   f)    RB_POSFIXABLE(f)

Definition at line 366 of file ruby.h.

Referenced by rb_uint2inum().

◆ PRI_INT_PREFIX

#define PRI_INT_PREFIX   ""

Definition at line 109 of file ruby.h.

◆ PRI_LONG_PREFIX

#define PRI_LONG_PREFIX   "l"

Definition at line 112 of file ruby.h.

◆ PRI_PTRDIFF_PREFIX

#define PRI_PTRDIFF_PREFIX   ""

Definition at line 153 of file ruby.h.

◆ PRI_SIZE_PREFIX

#define PRI_SIZE_PREFIX   ""

Definition at line 168 of file ruby.h.

◆ PRI_TIMET_PREFIX

#define PRI_TIMET_PREFIX

Definition at line 143 of file ruby.h.

◆ PRI_VALUE_PREFIX

#define PRI_VALUE_PREFIX   "l"

Definition at line 89 of file ruby.h.

◆ PRIdPTRDIFF

#define PRIdPTRDIFF   PRI_PTRDIFF_PREFIX"d"

Definition at line 159 of file ruby.h.

◆ PRIdSIZE

#define PRIdSIZE   PRI_SIZE_PREFIX"d"

Definition at line 174 of file ruby.h.

Referenced by VpComp(), and VpSqrt().

◆ PRIdVALUE

#define PRIdVALUE   PRI_VALUE_PREFIX"d"

Definition at line 130 of file ruby.h.

Referenced by rb_insn_operand_intern(), VpComp(), and VpPower().

◆ PRIiPTRDIFF

#define PRIiPTRDIFF   PRI_PTRDIFF_PREFIX"i"

Definition at line 160 of file ruby.h.

◆ PRIiSIZE

#define PRIiSIZE   PRI_SIZE_PREFIX"i"

Definition at line 175 of file ruby.h.

◆ PRIoPTRDIFF

#define PRIoPTRDIFF   PRI_PTRDIFF_PREFIX"o"

Definition at line 161 of file ruby.h.

◆ PRIoSIZE

#define PRIoSIZE   PRI_SIZE_PREFIX"o"

Definition at line 176 of file ruby.h.

◆ PRIoVALUE

#define PRIoVALUE   PRI_VALUE_PREFIX"o"

Definition at line 131 of file ruby.h.

◆ PRIsVALUE

#define PRIsVALUE   PRI_VALUE_PREFIX"i" RUBY_PRI_VALUE_MARK

◆ PRIuPTRDIFF

#define PRIuPTRDIFF   PRI_PTRDIFF_PREFIX"u"

Definition at line 162 of file ruby.h.

◆ PRIuSIZE

#define PRIuSIZE   PRI_SIZE_PREFIX"u"

Definition at line 177 of file ruby.h.

Referenced by rb_iseq_disasm_insn(), ruby_malloc_size_overflow(), ruby_setenv(), and VpPower().

◆ PRIuVALUE

#define PRIuVALUE   PRI_VALUE_PREFIX"u"

Definition at line 132 of file ruby.h.

Referenced by rb_insn_operand_intern().

◆ PRIxPTRDIFF

#define PRIxPTRDIFF   PRI_PTRDIFF_PREFIX"x"

Definition at line 163 of file ruby.h.

◆ PRIXPTRDIFF

#define PRIXPTRDIFF   PRI_PTRDIFF_PREFIX"X"

Definition at line 164 of file ruby.h.

◆ PRIxSIZE

#define PRIxSIZE   PRI_SIZE_PREFIX"x"

Definition at line 178 of file ruby.h.

◆ PRIXSIZE

#define PRIXSIZE   PRI_SIZE_PREFIX"X"

Definition at line 179 of file ruby.h.

◆ PRIxVALUE

#define PRIxVALUE   PRI_VALUE_PREFIX"x"

Definition at line 133 of file ruby.h.

Referenced by rb_vmdebug_env_dump_raw(), and rb_vmdebug_stack_dump_raw().

◆ PRIXVALUE

#define PRIXVALUE   PRI_VALUE_PREFIX"X"

Definition at line 134 of file ruby.h.

◆ Qfalse

#define Qfalse   RUBY_Qfalse

◆ Qnil

#define Qnil   RUBY_Qnil

Definition at line 438 of file ruby.h.

Referenced by asn1time_to_time(), date_zone_to_diff(), generic_to_value(), ole_type_from_itypeinfo(), ole_typedesc2val(), ole_typelib_from_itypeinfo(), ole_val2variant_ex(), ole_variant2val(), ossl_pem_passwd_value(), rb_ary_aref(), rb_ary_assoc(), rb_ary_cmp(), rb_ary_delete(), rb_ary_delete_at(), rb_ary_dig(), rb_ary_entry(), rb_ary_last(), rb_ary_rassoc(), rb_ary_subseq(), rb_attr_get(), rb_check_to_float(), rb_class_path_cached(), rb_class_superclass(), rb_clock_getres(), rb_clock_gettime(), rb_dbl_cmp(), rb_define_hooked_variable(), rb_dir_getwd_ospath(), rb_econv_has_convpath_p(), rb_econv_open_opts(), rb_econv_prepare_options(), rb_econv_str_convert(), rb_econv_substr_convert(), rb_enc_from_encoding(), rb_enum_values_pack(), rb_eval_cmd(), rb_execarg_extract_options(), rb_execarg_init(), rb_execarg_run_options(), rb_feature_provided(), rb_fiber_start(), rb_fiddle_free(), rb_file_expand_path_internal(), rb_file_s_absolute_path(), rb_file_s_expand_path(), rb_flo_is_infinite_p(), rb_gc_register_mark_object(), rb_gc_start(), rb_get_kwargs(), rb_gvar_undef_getter(), rb_gvar_var_getter(), rb_hash_assoc(), rb_hash_delete(), rb_hash_dig(), rb_hash_lookup(), rb_hash_rassoc(), rb_int_fdiv(), rb_int_parse_cstr(), rb_integer_float_cmp(), rb_io_extract_encoding_option(), rb_io_fptr_finalize(), rb_io_print(), rb_io_printf(), rb_io_puts(), rb_io_ungetbyte(), rb_io_ungetc(), rb_iseq_compile(), rb_iseq_compile_on_base(), rb_iseq_method_name(), rb_iseq_parameters(), rb_iseq_pathobj_new(), rb_ivar_get(), rb_key_err_new(), rb_last_status_clear(), rb_locale_charmap(), rb_marshal_define_compat(), rb_mem_clear(), rb_method_call(), rb_method_entry_location(), rb_name_err_new(), rb_need_block(), rb_obj_dig(), rb_obj_remove_instance_variable(), rb_parser_printf(), rb_parser_set_context(), rb_postponed_job_flush(), rb_range_beg_len(), rb_reg_match2(), rb_scan_args(), rb_singleton_class_get(), rb_sourcefilename(), rb_stdio_set_default_encoding(), rb_str_conv_enc(), rb_str_ellipsize(), rb_sym_to_proc(), rb_syserr_new(), rb_thread_current_status(), rb_thread_shield_wait(), rb_thread_stop(), rb_threadptr_error_print(), rb_tracearg_binding(), rb_vm_call_cfunc(), rb_vm_make_jump_tag_but_local_jump(), rb_vm_pop_cfunc_frame(), rb_w32_conv_from_wchar(), reg_enum_key(), reg_get_val(), reg_get_val2(), rsock_freeaddrinfo(), rsock_ipaddr(), rsock_revlookup_flag(), rsock_s_recvfrom(), rsock_s_recvfrom_nonblock(), rsock_sockaddr_string_value_with_addrinfo(), rsock_syserr_fail_sockaddr(), ruby_require_internal(), and ruby_set_inplace_mode().

◆ Qtrue

#define Qtrue   RUBY_Qtrue

◆ Qundef

#define Qundef   RUBY_Qundef

◆ R_CAST

#define R_CAST (   st)    (struct st*)

Definition at line 1196 of file ruby.h.

◆ RARRAY

#define RARRAY (   obj)    (R_CAST(RArray)(obj))

Definition at line 1203 of file ruby.h.

Referenced by rb_ary_shared_with_p().

◆ RARRAY_AREF

#define RARRAY_AREF (   a,
 
)    (RARRAY_CONST_PTR(a)[i])

◆ RARRAY_ASET

#define RARRAY_ASET (   a,
  i,
 
)
Value:
do { \
const VALUE _ary = (a); \
VALUE *ptr = (VALUE *)RARRAY_PTR_USE_START(_ary); \
RB_OBJ_WRITE(_ary, &ptr[i], (v)); \
RARRAY_PTR_USE_END(_ary); \
} while (0)
#define RARRAY_PTR_USE_START(a)
Definition: ruby.h:1023
unsigned long VALUE
Definition: ruby.h:85

Definition at line 1034 of file ruby.h.

◆ RARRAY_CONST_PTR

#define RARRAY_CONST_PTR (   a)    rb_array_const_ptr(a)

◆ RARRAY_EMBED_FLAG

#define RARRAY_EMBED_FLAG   (VALUE)RARRAY_EMBED_FLAG

Definition at line 998 of file ruby.h.

◆ RARRAY_EMBED_LEN

#define RARRAY_EMBED_LEN (   a)
Value:
(long)((RBASIC(a)->flags >> RARRAY_EMBED_LEN_SHIFT) & \
#define RBASIC(obj)
Definition: ruby.h:1197
#define RARRAY_EMBED_LEN_MASK
Definition: ruby.h:999
#define RARRAY_EMBED_LEN_SHIFT
Definition: ruby.h:1001

Definition at line 1016 of file ruby.h.

◆ RARRAY_EMBED_LEN_MASK

#define RARRAY_EMBED_LEN_MASK   (VALUE)RARRAY_EMBED_LEN_MASK

Definition at line 999 of file ruby.h.

◆ RARRAY_EMBED_LEN_MAX

#define RARRAY_EMBED_LEN_MAX   RARRAY_EMBED_LEN_MAX

Definition at line 1000 of file ruby.h.

◆ RARRAY_EMBED_LEN_SHIFT

#define RARRAY_EMBED_LEN_SHIFT   RARRAY_EMBED_LEN_SHIFT

Definition at line 1001 of file ruby.h.

◆ RARRAY_LEN

#define RARRAY_LEN (   a)    rb_array_len(a)

◆ RARRAY_LENINT

#define RARRAY_LENINT (   ary)    rb_long2int(RARRAY_LEN(ary))

Definition at line 1020 of file ruby.h.

Referenced by rb_apply(), rb_eval_cmd(), rb_iseq_build_from_ary(), and rb_struct_alloc().

◆ RARRAY_PTR

#define RARRAY_PTR (   a)    ((VALUE *)RARRAY_CONST_PTR(RB_OBJ_WB_UNPROTECT_FOR(ARRAY, a)))

Definition at line 1041 of file ruby.h.

Referenced by rb_ary_rotate(), and rb_sym_to_proc().

◆ RARRAY_PTR_USE

#define RARRAY_PTR_USE (   ary,
  ptr_name,
  expr 
)
Value:
do { \
const VALUE _ary = (ary); \
VALUE *ptr_name = (VALUE *)RARRAY_PTR_USE_START(_ary); \
expr; \
RARRAY_PTR_USE_END(_ary); \
} while (0)
#define RARRAY_PTR_USE_START(a)
Definition: ruby.h:1023
unsigned long VALUE
Definition: ruby.h:85

Definition at line 1026 of file ruby.h.

Referenced by rb_ary_delete_at(), rb_ary_reverse(), rb_hash_keys(), and rb_hash_values().

◆ RARRAY_PTR_USE_END

#define RARRAY_PTR_USE_END (   a)    /* */

Definition at line 1024 of file ruby.h.

◆ RARRAY_PTR_USE_START

#define RARRAY_PTR_USE_START (   a)    ((VALUE *)RARRAY_CONST_PTR(a))

Definition at line 1023 of file ruby.h.

◆ RB_ALLOC

#define RB_ALLOC (   type)    ((type*)ruby_xmalloc(sizeof(type)))

Definition at line 1582 of file ruby.h.

◆ RB_ALLOC_N

#define RB_ALLOC_N (   type,
 
)    ((type*)ruby_xmalloc2((size_t)(n),sizeof(type)))

Definition at line 1581 of file ruby.h.

◆ RB_ALLOCV

#define RB_ALLOCV (   v,
 
)
Value:
(RB_GC_GUARD(v) = 0, alloca(n)) : \
rb_alloc_tmp_buffer(&(v), (n)))
#define RB_GC_GUARD(v)
Definition: ruby.h:552
#define RUBY_ALLOCV_LIMIT
Definition: ruby.h:1645
RUBY_SYMBOL_EXPORT_BEGIN void * alloca()
void * rb_alloc_tmp_buffer(volatile VALUE *store, long len) RUBY_ATTR_ALLOC_SIZE((2))
Definition: gc.c:8136

Definition at line 1646 of file ruby.h.

◆ RB_ALLOCV_END

#define RB_ALLOCV_END (   v)    rb_free_tmp_buffer(&(v))

Definition at line 1654 of file ruby.h.

◆ RB_ALLOCV_N

#define RB_ALLOCV_N (   type,
  v,
 
)
Value:
((type*)(((size_t)(n) < RUBY_ALLOCV_LIMIT / sizeof(type)) ? \
(RB_GC_GUARD(v) = 0, alloca((size_t)(n) * sizeof(type))) : \
rb_alloc_tmp_buffer2(&(v), (long)(n), sizeof(type))))
#define RB_GC_GUARD(v)
Definition: ruby.h:552
#define RUBY_ALLOCV_LIMIT
Definition: ruby.h:1645
RUBY_SYMBOL_EXPORT_BEGIN void * alloca()

Definition at line 1649 of file ruby.h.

◆ RB_BLOCK_CALL_FUNC_ARGLIST

#define RB_BLOCK_CALL_FUNC_ARGLIST (   yielded_arg,
  callback_arg 
)    VALUE yielded_arg, VALUE callback_arg, int argc, const VALUE *argv, VALUE blockarg

Definition at line 1851 of file ruby.h.

◆ RB_BUILTIN_TYPE

#define RB_BUILTIN_TYPE (   x)    (int)(((struct RBasic*)(x))->flags & RUBY_T_MASK)

Definition at line 517 of file ruby.h.

◆ rb_check_safe_str

#define rb_check_safe_str (   x)    [<"rb_check_safe_str() is obsolete; use SafeStringValue() instead">]

Definition at line 582 of file ruby.h.

◆ RB_CHR2FIX

#define RB_CHR2FIX (   x)    RB_INT2FIX((long)((x)&0xff))

Definition at line 1571 of file ruby.h.

◆ RB_DYNAMIC_SYM_P

#define RB_DYNAMIC_SYM_P (   x)    (!RB_SPECIAL_CONST_P(x) && RB_BUILTIN_TYPE(x) == (RUBY_T_SYMBOL))

Definition at line 376 of file ruby.h.

◆ RB_EVENT_HOOKS_HAVE_CALLBACK_DATA

#define RB_EVENT_HOOKS_HAVE_CALLBACK_DATA   1

Definition at line 2119 of file ruby.h.

◆ RB_FIX2INT

#define RB_FIX2INT (   x)    ((int)RB_FIX2LONG(x))

Definition at line 681 of file ruby.h.

◆ RB_FIX2LONG

#define RB_FIX2LONG (   x)    ((long)RSHIFT((SIGNED_VALUE)(x),1))

Definition at line 347 of file ruby.h.

◆ RB_FIX2SHORT

#define RB_FIX2SHORT (   x)    (rb_fix2short((VALUE)(x)))

Definition at line 693 of file ruby.h.

◆ RB_FIX2UINT

#define RB_FIX2UINT (   x)    ((unsigned int)RB_FIX2ULONG(x))

Definition at line 682 of file ruby.h.

◆ RB_FIX2ULONG

#define RB_FIX2ULONG (   x)    ((unsigned long)RB_FIX2LONG(x))

Definition at line 353 of file ruby.h.

◆ rb_fix_new

#define rb_fix_new (   v)    RB_INT2FIX(v)

Definition at line 235 of file ruby.h.

◆ RB_FIXABLE

#define RB_FIXABLE (   f)    (RB_POSFIXABLE(f) && RB_NEGFIXABLE(f))

Definition at line 362 of file ruby.h.

◆ RB_FIXNUM_P

#define RB_FIXNUM_P (   f)    (((int)(SIGNED_VALUE)(f))&RUBY_FIXNUM_FLAG)

Definition at line 359 of file ruby.h.

◆ RB_FL_ABLE

#define RB_FL_ABLE (   x)    (!RB_SPECIAL_CONST_P(x) && RB_BUILTIN_TYPE(x) != RUBY_T_NODE)

Definition at line 1244 of file ruby.h.

◆ RB_FL_ALL

#define RB_FL_ALL (   x,
  f 
)    (RB_FL_TEST((x),(f)) == (f))

Definition at line 1250 of file ruby.h.

◆ RB_FL_ALL_RAW

#define RB_FL_ALL_RAW (   x,
  f 
)    (RB_FL_TEST_RAW((x),(f)) == (f))

Definition at line 1249 of file ruby.h.

◆ RB_FL_ANY

#define RB_FL_ANY (   x,
  f 
)    RB_FL_TEST((x),(f))

Definition at line 1248 of file ruby.h.

◆ RB_FL_ANY_RAW

#define RB_FL_ANY_RAW (   x,
  f 
)    RB_FL_TEST_RAW((x),(f))

Definition at line 1247 of file ruby.h.

◆ RB_FL_REVERSE

#define RB_FL_REVERSE (   x,
  f 
)    (RB_FL_ABLE(x) ? RB_FL_REVERSE_RAW(x, f) : (void)0)

Definition at line 1256 of file ruby.h.

◆ RB_FL_REVERSE_RAW

#define RB_FL_REVERSE_RAW (   x,
  f 
)    (void)(RBASIC(x)->flags ^= (f))

Definition at line 1255 of file ruby.h.

◆ RB_FL_SET

#define RB_FL_SET (   x,
  f 
)    (RB_FL_ABLE(x) ? RB_FL_SET_RAW(x, f) : (void)0)

Definition at line 1252 of file ruby.h.

◆ RB_FL_SET_RAW

#define RB_FL_SET_RAW (   x,
  f 
)    (void)(RBASIC(x)->flags |= (f))

Definition at line 1251 of file ruby.h.

◆ RB_FL_TEST

#define RB_FL_TEST (   x,
  f 
)    (RB_FL_ABLE(x)?RB_FL_TEST_RAW((x),(f)):0)

Definition at line 1246 of file ruby.h.

◆ RB_FL_TEST_RAW

#define RB_FL_TEST_RAW (   x,
  f 
)    (RBASIC(x)->flags&(f))

Definition at line 1245 of file ruby.h.

◆ RB_FL_UNSET

#define RB_FL_UNSET (   x,
  f 
)    (RB_FL_ABLE(x) ? RB_FL_UNSET_RAW(x, f) : (void)0)

Definition at line 1254 of file ruby.h.

◆ RB_FL_UNSET_RAW

#define RB_FL_UNSET_RAW (   x,
  f 
)    (void)(RBASIC(x)->flags &= ~(VALUE)(f))

Definition at line 1253 of file ruby.h.

◆ RB_FLOAT_TYPE_P

#define RB_FLOAT_TYPE_P (   obj)
Value:
(\
RB_FLONUM_P(obj) || \
#define RB_SPECIAL_CONST_P(x)
Definition: ruby.h:1241
#define RB_BUILTIN_TYPE(x)
Definition: ruby.h:517

Definition at line 523 of file ruby.h.

Referenced by rb_big_mul(), rb_big_pow(), and rb_numeric_quo().

◆ RB_FLONUM_P

#define RB_FLONUM_P (   x)    ((((int)(SIGNED_VALUE)(x))&RUBY_FLONUM_MASK) == RUBY_FLONUM_FLAG)

Definition at line 395 of file ruby.h.

◆ rb_funcall2

#define rb_funcall2   rb_funcallv

Definition at line 1791 of file ruby.h.

Referenced by asn1time_to_time().

◆ rb_funcall3

#define rb_funcall3   rb_funcallv_public

Definition at line 1792 of file ruby.h.

◆ RB_GC_GUARD

#define RB_GC_GUARD (   v)    (*rb_gc_guarded_ptr_val(&(v),(v)))

◆ RB_ID2SYM

#define RB_ID2SYM (   x)    (rb_id2sym(x))

Definition at line 378 of file ruby.h.

◆ RB_IMMEDIATE_P

#define RB_IMMEDIATE_P (   x)    ((VALUE)(x) & RUBY_IMMEDIATE_MASK)

Definition at line 370 of file ruby.h.

◆ RB_INT2FIX

#define RB_INT2FIX (   i)    (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG)

Definition at line 231 of file ruby.h.

Referenced by Init_win32ole_variant_m().

◆ RB_INT2NUM

#define RB_INT2NUM (   x)    rb_int2num_inline(x)

Definition at line 1526 of file ruby.h.

◆ rb_int_new

#define rb_int_new (   v)    rb_int2inum(v)

Definition at line 238 of file ruby.h.

◆ RB_INTEGER_TYPE_P

#define RB_INTEGER_TYPE_P (   obj)    rb_integer_type_p(obj)

Definition at line 1493 of file ruby.h.

◆ rb_intern_const

#define rb_intern_const (   str)    rb_intern2((str), (long)strlen(str))

Definition at line 1777 of file ruby.h.

Referenced by Init_Object(), and rb_num_get_rounding_option().

◆ RB_IO_WAIT_READABLE

#define RB_IO_WAIT_READABLE   RB_IO_WAIT_READABLE

Definition at line 1818 of file ruby.h.

◆ RB_IO_WAIT_WRITABLE

#define RB_IO_WAIT_WRITABLE   RB_IO_WAIT_WRITABLE

Definition at line 1819 of file ruby.h.

◆ RB_LONG2FIX

#define RB_LONG2FIX (   i)    RB_INT2FIX(i)

Definition at line 233 of file ruby.h.

◆ rb_long2int

#define rb_long2int (   n)    ((int)(n))

◆ RB_LONG2NUM

#define RB_LONG2NUM (   x)    rb_long2num_inline(x)

Definition at line 1549 of file ruby.h.

◆ RB_NEGFIXABLE

#define RB_NEGFIXABLE (   f)    ((f) >= RUBY_FIXNUM_MIN)

Definition at line 361 of file ruby.h.

◆ RB_NEWOBJ

#define RB_NEWOBJ (   obj,
  type 
)    type *(obj) = (type*)rb_newobj()

Definition at line 751 of file ruby.h.

◆ RB_NEWOBJ_OF

#define RB_NEWOBJ_OF (   obj,
  type,
  klass,
  flags 
)    type *(obj) = (type*)rb_newobj_of(klass, flags)

Definition at line 752 of file ruby.h.

◆ RB_NIL_P

#define RB_NIL_P (   v)    !((VALUE)(v) != RUBY_Qnil)

Definition at line 449 of file ruby.h.

◆ RB_NUM2CHR

#define RB_NUM2CHR (   x)    rb_num2char_inline(x)

Definition at line 1569 of file ruby.h.

◆ RB_NUM2INT

#define RB_NUM2INT (   x)    ((int)RB_NUM2LONG(x))

Definition at line 679 of file ruby.h.

◆ RB_NUM2LONG

#define RB_NUM2LONG (   x)    rb_num2long_inline(x)

Definition at line 647 of file ruby.h.

◆ RB_NUM2SHORT

#define RB_NUM2SHORT (   x)    rb_num2short_inline(x)

Definition at line 704 of file ruby.h.

◆ RB_NUM2UINT

#define RB_NUM2UINT (   x)    ((unsigned int)RB_NUM2ULONG(x))

Definition at line 680 of file ruby.h.

◆ RB_NUM2ULONG

#define RB_NUM2ULONG (   x)    rb_num2ulong_inline(x)

Definition at line 657 of file ruby.h.

◆ RB_NUM2USHORT

#define RB_NUM2USHORT (   x)    rb_num2ushort(x)

Definition at line 705 of file ruby.h.

◆ RB_OBJ_FREEZE

#define RB_OBJ_FREEZE (   x)    rb_obj_freeze_inline((VALUE)x)

Definition at line 1273 of file ruby.h.

◆ RB_OBJ_FREEZE_RAW

#define RB_OBJ_FREEZE_RAW (   x)    (void)(RBASIC(x)->flags |= RUBY_FL_FREEZE)

Definition at line 1272 of file ruby.h.

◆ RB_OBJ_FROZEN

#define RB_OBJ_FROZEN (   x)    (!RB_FL_ABLE(x) || RB_OBJ_FROZEN_RAW(x))

Definition at line 1271 of file ruby.h.

◆ RB_OBJ_FROZEN_RAW

#define RB_OBJ_FROZEN_RAW (   x)    (RBASIC(x)->flags&RUBY_FL_FREEZE)

Definition at line 1270 of file ruby.h.

◆ RB_OBJ_INFECT

#define RB_OBJ_INFECT (   x,
 
)
Value:
( \
RB_OBJ_INFECT_RAW(x, s) : (void)0)
#define RB_FL_ABLE(x)
Definition: ruby.h:1244
#define RB_OBJ_TAINTABLE(x)
Definition: ruby.h:1258
#define RB_OBJ_INFECT_RAW(x, s)
Definition: ruby.h:1265

Definition at line 1266 of file ruby.h.

◆ RB_OBJ_INFECT_RAW

#define RB_OBJ_INFECT_RAW (   x,
 
)    RB_FL_SET_RAW(x, RB_OBJ_TAINTED_RAW(s))

Definition at line 1265 of file ruby.h.

◆ RB_OBJ_PROMOTED

#define RB_OBJ_PROMOTED (   x)    (RB_SPECIAL_CONST_P(x) ? 0 : RB_OBJ_PROMOTED_RAW(x))

Definition at line 1412 of file ruby.h.

◆ RB_OBJ_PROMOTED_RAW

#define RB_OBJ_PROMOTED_RAW (   x)    RB_FL_ALL_RAW(x, RUBY_FL_PROMOTED)

Definition at line 1411 of file ruby.h.

◆ RB_OBJ_TAINT

#define RB_OBJ_TAINT (   x)    (RB_OBJ_TAINTABLE(x) ? RB_OBJ_TAINT_RAW(x) : (void)0)

Definition at line 1262 of file ruby.h.

◆ RB_OBJ_TAINT_RAW

#define RB_OBJ_TAINT_RAW (   x)    RB_FL_SET_RAW(x, RUBY_FL_TAINT)

Definition at line 1261 of file ruby.h.

◆ RB_OBJ_TAINTABLE

#define RB_OBJ_TAINTABLE (   x)    (RB_FL_ABLE(x) && RB_BUILTIN_TYPE(x) != RUBY_T_BIGNUM && RB_BUILTIN_TYPE(x) != RUBY_T_FLOAT)

Definition at line 1258 of file ruby.h.

◆ RB_OBJ_TAINTED

#define RB_OBJ_TAINTED (   x)    (!!RB_FL_TEST((x), RUBY_FL_TAINT))

Definition at line 1260 of file ruby.h.

◆ RB_OBJ_TAINTED_RAW

#define RB_OBJ_TAINTED_RAW (   x)    RB_FL_TEST_RAW(x, RUBY_FL_TAINT)

Definition at line 1259 of file ruby.h.

◆ RB_OBJ_UNTRUST

#define RB_OBJ_UNTRUST (   x)    RB_OBJ_TAINT(x)

Definition at line 1264 of file ruby.h.

◆ RB_OBJ_UNTRUSTED

#define RB_OBJ_UNTRUSTED (   x)    RB_OBJ_TAINTED(x)

Definition at line 1263 of file ruby.h.

◆ RB_OBJ_WB_UNPROTECT

#define RB_OBJ_WB_UNPROTECT (   x)    rb_obj_wb_unprotect(x, __FILE__, __LINE__)

Definition at line 1413 of file ruby.h.

◆ RB_OBJ_WB_UNPROTECT_FOR

#define RB_OBJ_WB_UNPROTECT_FOR (   type,
  obj 
)
Value:
(RGENGC_WB_PROTECTED_##type ? \
OBJ_WB_UNPROTECT((VALUE)(obj)) : ((VALUE)(obj)))
unsigned long VALUE
Definition: ruby.h:85

Definition at line 873 of file ruby.h.

◆ RB_OBJ_WRITE

#define RB_OBJ_WRITE (   a,
  slot,
 
)    rb_obj_write((VALUE)(a), (VALUE *)(slot), (VALUE)(b), __FILE__, __LINE__)

Definition at line 1437 of file ruby.h.

◆ RB_OBJ_WRITTEN

#define RB_OBJ_WRITTEN (   a,
  oldv,
 
)    rb_obj_written((VALUE)(a), (VALUE)(oldv), (VALUE)(b), __FILE__, __LINE__)

Definition at line 1438 of file ruby.h.

Referenced by rb_vm_block_ep_update().

◆ RB_POSFIXABLE

#define RB_POSFIXABLE (   f)    ((f) < RUBY_FIXNUM_MAX+1)

Definition at line 360 of file ruby.h.

◆ RB_REALLOC_N

#define RB_REALLOC_N (   var,
  type,
 
)    ((var)=(type*)ruby_xrealloc2((char*)(var),(size_t)(n),sizeof(type)))

Definition at line 1585 of file ruby.h.

◆ RB_SPECIAL_CONST_P

#define RB_SPECIAL_CONST_P (   x)    (RB_IMMEDIATE_P(x) || !RB_TEST(x))

Definition at line 1241 of file ruby.h.

◆ RB_ST2FIX

#define RB_ST2FIX (   h)    RB_LONG2FIX((long)(h))

Definition at line 1578 of file ruby.h.

◆ RB_STATIC_SYM_P

#define RB_STATIC_SYM_P (   x)    (((VALUE)(x)&~((~(VALUE)0)<<RUBY_SPECIAL_SHIFT)) == RUBY_SYMBOL_FLAG)

Definition at line 375 of file ruby.h.

◆ RB_SYM2ID

#define RB_SYM2ID (   x)    (rb_sym2id(x))

Definition at line 379 of file ruby.h.

◆ RB_SYMBOL_P

#define RB_SYMBOL_P (   x)    (RB_STATIC_SYM_P(x)||RB_DYNAMIC_SYM_P(x))

Definition at line 377 of file ruby.h.

◆ RB_TEST

#define RB_TEST (   v)    !(((VALUE)(v) & (VALUE)~RUBY_Qnil) == 0)

Definition at line 448 of file ruby.h.

◆ RB_TYPE_P

#define RB_TYPE_P (   obj,
  type 
)
Value:
( \
((type) == RUBY_T_FIXNUM) ? RB_FIXNUM_P(obj) : \
((type) == RUBY_T_TRUE) ? ((obj) == RUBY_Qtrue) : \
((type) == RUBY_T_FALSE) ? ((obj) == RUBY_Qfalse) : \
((type) == RUBY_T_NIL) ? ((obj) == RUBY_Qnil) : \
((type) == RUBY_T_UNDEF) ? ((obj) == RUBY_Qundef) : \
((type) == RUBY_T_SYMBOL) ? RB_SYMBOL_P(obj) : \
((type) == RUBY_T_FLOAT) ? RB_FLOAT_TYPE_P(obj) : \
(!RB_SPECIAL_CONST_P(obj) && RB_BUILTIN_TYPE(obj) == (type)))
#define RUBY_Qnil
Definition: ruby.h:434
#define RB_FIXNUM_P(f)
Definition: ruby.h:359
#define RB_SPECIAL_CONST_P(x)
Definition: ruby.h:1241
#define RB_SYMBOL_P(x)
Definition: ruby.h:377
#define RUBY_Qundef
Definition: ruby.h:435
#define RUBY_Qfalse
Definition: ruby.h:432
#define RB_FLOAT_TYPE_P(obj)
Definition: ruby.h:523
#define RB_BUILTIN_TYPE(x)
Definition: ruby.h:517
#define RUBY_Qtrue
Definition: ruby.h:433

Definition at line 527 of file ruby.h.

Referenced by fun1(), ossl_evp_get_digestbyname(), ossl_obj2bio(), ossl_pem_passwd_cb(), rb_ary_rassoc(), rb_check_backtrace(), rb_check_id(), rb_check_inheritable(), rb_check_to_float(), rb_check_to_integer(), rb_check_typeddata(), rb_class_inherited_p(), rb_class_superclass(), rb_complex_mul(), rb_complex_plus(), rb_define_class(), rb_define_class_id_under(), rb_define_module(), rb_define_module_id_under(), rb_econv_open_opts(), rb_eval_cmd(), rb_float_eql(), rb_float_equal(), rb_float_gt(), rb_float_pow(), rb_get_path_check_to_string(), rb_Hash(), rb_int2str(), rb_int_pred(), rb_int_succ(), rb_io_flush_raw(), rb_io_getbyte(), rb_io_puts(), rb_iseq_build_from_ary(), rb_iseq_pathobj_new(), rb_math_sqrt(), rb_method_name_error(), rb_mod_included_modules(), rb_mod_init_copy(), rb_num2fix(), rb_num2long(), rb_num_get_rounding_option(), rb_num_to_uint(), rb_obj_as_string(), rb_obj_as_string_result(), rb_p(), rb_print_inaccessible(), rb_print_undef(), rb_print_undef_str(), rb_rational_uminus(), rb_reg_match2(), rb_singleton_class_internal_p(), rb_str_eql(), rb_str_equal(), rb_str_setter(), rb_string_value(), rb_threadptr_error_print(), rb_typeddata_is_kind_of(), rb_vm_bugreport(), rsock_syserr_fail_path(), ruby_float_step(), and ruby_th_dtrace_setup().

◆ rb_type_p

#define rb_type_p (   obj,
  type 
)    (rb_type(obj) == (type))

Definition at line 2011 of file ruby.h.

◆ RB_UINT2NUM

#define RB_UINT2NUM (   x)    rb_uint2num_inline(x)

Definition at line 1536 of file ruby.h.

◆ rb_uint_new

#define rb_uint_new (   v)    rb_uint2inum(v)

Definition at line 241 of file ruby.h.

◆ RB_ULONG2NUM

#define RB_ULONG2NUM (   x)    rb_ulong2num_inline(x)

Definition at line 1559 of file ruby.h.

◆ RB_UNUSED_VAR

#define RB_UNUSED_VAR (   x)    x

Definition at line 558 of file ruby.h.

◆ RB_ZALLOC

#define RB_ZALLOC (   type)    (RB_ZALLOC_N(type,1))

Definition at line 1584 of file ruby.h.

◆ RB_ZALLOC_N

#define RB_ZALLOC_N (   type,
 
)    ((type*)ruby_xcalloc((size_t)(n),sizeof(type)))

Definition at line 1583 of file ruby.h.

◆ RBASIC

#define RBASIC (   obj)    (R_CAST(RBasic)(obj))

◆ RBASIC_CLASS

#define RBASIC_CLASS (   obj)    (RBASIC(obj)->klass)

◆ RBIGNUM_NEGATIVE_P

#define RBIGNUM_NEGATIVE_P (   b)    (RBIGNUM_SIGN(b)==0)

Definition at line 1194 of file ruby.h.

◆ RBIGNUM_POSITIVE_P

#define RBIGNUM_POSITIVE_P (   b)    (RBIGNUM_SIGN(b)!=0)

Definition at line 1193 of file ruby.h.

◆ RBIGNUM_SIGN

#define RBIGNUM_SIGN (   b)    (rb_big_sign(b))

Definition at line 1192 of file ruby.h.

◆ RCLASS

#define RCLASS (   obj)    (R_CAST(RClass)(obj))

Definition at line 1199 of file ruby.h.

Referenced by rb_class_get_superclass().

◆ RCLASS_SUPER

#define RCLASS_SUPER (   c)    rb_class_get_superclass(c)

Definition at line 913 of file ruby.h.

◆ RCOMPLEX_SET_IMAG

#define RCOMPLEX_SET_IMAG (   cmp,
 
)    RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->imag,(i))

Definition at line 1069 of file ruby.h.

◆ RCOMPLEX_SET_REAL

#define RCOMPLEX_SET_REAL (   cmp,
 
)    RB_OBJ_WRITE((cmp), &((struct RComplex *)(cmp))->real,(r))

Definition at line 1068 of file ruby.h.

◆ RDATA

#define RDATA (   obj)    (R_CAST(RData)(obj))

Definition at line 1204 of file ruby.h.

◆ REALLOC_N

#define REALLOC_N (   var,
  type,
 
)    RB_REALLOC_N(var,type,n)

Definition at line 1591 of file ruby.h.

◆ RFILE

#define RFILE (   obj)    (R_CAST(RFile)(obj))

Definition at line 1206 of file ruby.h.

Referenced by rb_io_make_open_file().

◆ RFLOAT_VALUE

#define RFLOAT_VALUE (   v)    rb_float_value(v)

◆ RGENGC_WB_PROTECTED_ARRAY

#define RGENGC_WB_PROTECTED_ARRAY   1

Definition at line 771 of file ruby.h.

◆ RGENGC_WB_PROTECTED_BIGNUM

#define RGENGC_WB_PROTECTED_BIGNUM   1

Definition at line 801 of file ruby.h.

◆ RGENGC_WB_PROTECTED_CLASS

#define RGENGC_WB_PROTECTED_CLASS   1

Definition at line 789 of file ruby.h.

◆ RGENGC_WB_PROTECTED_COMPLEX

#define RGENGC_WB_PROTECTED_COMPLEX   1

Definition at line 795 of file ruby.h.

◆ RGENGC_WB_PROTECTED_FLOAT

#define RGENGC_WB_PROTECTED_FLOAT   1

Definition at line 792 of file ruby.h.

Referenced by rb_float_new_in_heap().

◆ RGENGC_WB_PROTECTED_HASH

#define RGENGC_WB_PROTECTED_HASH   1

Definition at line 774 of file ruby.h.

◆ RGENGC_WB_PROTECTED_NODE_CREF

#define RGENGC_WB_PROTECTED_NODE_CREF   1

Definition at line 804 of file ruby.h.

◆ RGENGC_WB_PROTECTED_OBJECT

#define RGENGC_WB_PROTECTED_OBJECT   1

Definition at line 783 of file ruby.h.

◆ RGENGC_WB_PROTECTED_RATIONAL

#define RGENGC_WB_PROTECTED_RATIONAL   1

Definition at line 798 of file ruby.h.

◆ RGENGC_WB_PROTECTED_REGEXP

#define RGENGC_WB_PROTECTED_REGEXP   1

Definition at line 786 of file ruby.h.

◆ RGENGC_WB_PROTECTED_STRING

#define RGENGC_WB_PROTECTED_STRING   1

Definition at line 780 of file ruby.h.

◆ RGENGC_WB_PROTECTED_STRUCT

#define RGENGC_WB_PROTECTED_STRUCT   1

Definition at line 777 of file ruby.h.

◆ RHASH_EMPTY_P

#define RHASH_EMPTY_P (   h)    (RHASH_SIZE(h) == 0)

Definition at line 1060 of file ruby.h.

Referenced by rb_execarg_extract_options(), rb_extract_keywords(), and rb_hash_assoc().

◆ RHASH_IFNONE

#define RHASH_IFNONE (   h)    rb_hash_ifnone(h)

Definition at line 1058 of file ruby.h.

◆ RHASH_ITER_LEV

#define RHASH_ITER_LEV (   h)    rb_hash_iter_lev(h)

Definition at line 1057 of file ruby.h.

Referenced by rb_hash_aset(), rb_hash_foreach(), and rb_hash_rehash().

◆ RHASH_SET_IFNONE

#define RHASH_SET_IFNONE (   h,
  ifnone 
)    rb_hash_set_ifnone((VALUE)h, ifnone)

Definition at line 1061 of file ruby.h.

◆ RHASH_SIZE

#define RHASH_SIZE (   h)    NUM2SIZET(rb_hash_size(h))

Definition at line 1059 of file ruby.h.

◆ RHASH_TBL

#define RHASH_TBL (   h)    rb_hash_tbl(h)

Definition at line 1056 of file ruby.h.

◆ RMODULE

#define RMODULE (   obj)    RCLASS(obj)

Definition at line 1200 of file ruby.h.

◆ RMODULE_CONST_TBL

#define RMODULE_CONST_TBL (   m)    RCLASS_CONST_TBL(m)

Definition at line 915 of file ruby.h.

◆ RMODULE_INCLUDED_INTO_REFINEMENT

#define RMODULE_INCLUDED_INTO_REFINEMENT   RMODULE_INCLUDED_INTO_REFINEMENT

Definition at line 920 of file ruby.h.

◆ RMODULE_IS_OVERLAID

#define RMODULE_IS_OVERLAID   RMODULE_IS_OVERLAID

Definition at line 918 of file ruby.h.

◆ RMODULE_IS_REFINEMENT

#define RMODULE_IS_REFINEMENT   RMODULE_IS_REFINEMENT

Definition at line 919 of file ruby.h.

◆ RMODULE_IV_TBL

#define RMODULE_IV_TBL (   m)    RCLASS_IV_TBL(m)

Definition at line 914 of file ruby.h.

◆ RMODULE_M_TBL

#define RMODULE_M_TBL (   m)    RCLASS_M_TBL(m)

Definition at line 916 of file ruby.h.

◆ RMODULE_SUPER

#define RMODULE_SUPER (   m)    RCLASS_SUPER(m)

Definition at line 917 of file ruby.h.

◆ ROBJECT

#define ROBJECT (   obj)    (R_CAST(RObject)(obj))

Definition at line 1198 of file ruby.h.

Referenced by rb_obj_copy_ivar().

◆ ROBJECT_EMBED

#define ROBJECT_EMBED   ROBJECT_EMBED

Definition at line 881 of file ruby.h.

◆ ROBJECT_EMBED_LEN_MAX

#define ROBJECT_EMBED_LEN_MAX   ROBJECT_EMBED_LEN_MAX

Definition at line 880 of file ruby.h.

◆ ROBJECT_IV_INDEX_TBL

#define ROBJECT_IV_INDEX_TBL (   o)
Value:
((RBASIC(o)->flags & ROBJECT_EMBED) ? \
ROBJECT(o)->as.heap.iv_index_tbl)
VALUE rb_obj_class(VALUE)
call-seq: obj.class -> class
Definition: object.c:277
#define RBASIC(obj)
Definition: ruby.h:1197
#define ROBJECT(obj)
Definition: ruby.h:1198
#define RCLASS_IV_INDEX_TBL(c)
Definition: internal.h:793
#define ROBJECT_EMBED
Definition: ruby.h:881

Definition at line 908 of file ruby.h.

Referenced by rb_ivar_count(), rb_ivar_defined(), rb_ivar_lookup(), and rb_obj_remove_instance_variable().

◆ ROBJECT_IVPTR

#define ROBJECT_IVPTR (   o)
Value:
((RBASIC(o)->flags & ROBJECT_EMBED) ? \
ROBJECT(o)->as.ary : \
ROBJECT(o)->as.heap.ivptr)
#define RBASIC(obj)
Definition: ruby.h:1197
#define ROBJECT(obj)
Definition: ruby.h:1198
#define ROBJECT_EMBED
Definition: ruby.h:881

Definition at line 904 of file ruby.h.

Referenced by rb_ivar_count(), rb_ivar_defined(), rb_ivar_lookup(), rb_obj_copy_ivar(), and rb_obj_remove_instance_variable().

◆ ROBJECT_NUMIV

#define ROBJECT_NUMIV (   o)
Value:
((RBASIC(o)->flags & ROBJECT_EMBED) ? \
ROBJECT(o)->as.heap.numiv)
#define RBASIC(obj)
Definition: ruby.h:1197
#define ROBJECT(obj)
Definition: ruby.h:1198
#define ROBJECT_EMBED_LEN_MAX
Definition: ruby.h:880
#define ROBJECT_EMBED
Definition: ruby.h:881

Definition at line 900 of file ruby.h.

Referenced by rb_ivar_count(), rb_ivar_defined(), rb_ivar_lookup(), and rb_obj_remove_instance_variable().

◆ RREGEXP

#define RREGEXP (   obj)    (R_CAST(RRegexp)(obj))

Definition at line 1202 of file ruby.h.

◆ RREGEXP_PTR

#define RREGEXP_PTR (   r)    (RREGEXP(r)->ptr)

Definition at line 1049 of file ruby.h.

Referenced by rb_reg_prepare_re0(), and rb_reg_regsub().

◆ RREGEXP_SRC

#define RREGEXP_SRC (   r)    (RREGEXP(r)->src)

Definition at line 1050 of file ruby.h.

◆ RREGEXP_SRC_END

#define RREGEXP_SRC_END (   r)    RSTRING_END(RREGEXP(r)->src)

Definition at line 1053 of file ruby.h.

◆ RREGEXP_SRC_LEN

#define RREGEXP_SRC_LEN (   r)    RSTRING_LEN(RREGEXP(r)->src)

Definition at line 1052 of file ruby.h.

◆ RREGEXP_SRC_PTR

#define RREGEXP_SRC_PTR (   r)    RSTRING_PTR(RREGEXP(r)->src)

Definition at line 1051 of file ruby.h.

◆ RSTRING

#define RSTRING (   obj)    (R_CAST(RString)(obj))

Definition at line 1201 of file ruby.h.

Referenced by rb_str_subseq(), and rb_str_tmp_frozen_release().

◆ RSTRING_EMBED_LEN

#define RSTRING_EMBED_LEN (   str)
Value:
(long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
#define RSTRING_EMBED_LEN_MASK
Definition: ruby.h:940
#define RBASIC(obj)
Definition: ruby.h:1197
#define RSTRING_EMBED_LEN_SHIFT
Definition: ruby.h:941

Definition at line 968 of file ruby.h.

◆ RSTRING_EMBED_LEN_MASK

#define RSTRING_EMBED_LEN_MASK   RSTRING_EMBED_LEN_MASK

Definition at line 940 of file ruby.h.

◆ RSTRING_EMBED_LEN_MAX

#define RSTRING_EMBED_LEN_MAX   RSTRING_EMBED_LEN_MAX

Definition at line 942 of file ruby.h.

◆ RSTRING_EMBED_LEN_SHIFT

#define RSTRING_EMBED_LEN_SHIFT   RSTRING_EMBED_LEN_SHIFT

Definition at line 941 of file ruby.h.

◆ RSTRING_END

#define RSTRING_END (   str)
Value:
(!(RBASIC(str)->flags & RSTRING_NOEMBED) ? \
(RSTRING(str)->as.ary + RSTRING_EMBED_LEN(str)) : \
(RSTRING(str)->as.heap.ptr + RSTRING(str)->as.heap.len))
#define RSTRING(obj)
Definition: ruby.h:1201
#define RBASIC(obj)
Definition: ruby.h:1197
#define RSTRING_EMBED_LEN(str)
Definition: ruby.h:968
#define RSTRING_NOEMBED
Definition: ruby.h:939

Definition at line 979 of file ruby.h.

Referenced by rb_enc_uint_chr(), rb_parser_printf(), rb_str_escape(), rb_str_ord(), and rb_str_vcatf().

◆ RSTRING_FSTR

#define RSTRING_FSTR   RSTRING_FSTR

Definition at line 943 of file ruby.h.

◆ RSTRING_GETMEM

#define RSTRING_GETMEM (   str,
  ptrvar,
  lenvar 
)
Value:
(!(RBASIC(str)->flags & RSTRING_NOEMBED) ? \
((ptrvar) = RSTRING(str)->as.ary, (lenvar) = RSTRING_EMBED_LEN(str)) : \
((ptrvar) = RSTRING(str)->as.heap.ptr, (lenvar) = RSTRING(str)->as.heap.len))
#define RSTRING(obj)
Definition: ruby.h:1201
#define RBASIC(obj)
Definition: ruby.h:1197
#define RSTRING_EMBED_LEN(str)
Definition: ruby.h:968
#define RSTRING_NOEMBED
Definition: ruby.h:939

Definition at line 984 of file ruby.h.

Referenced by rb_freopen(), rb_str_cmp(), rb_str_conv_enc_opts(), rb_str_hash_cmp(), rb_str_plus(), and rb_str_to_inum().

◆ RSTRING_LEN

#define RSTRING_LEN (   str)

◆ RSTRING_LENINT

#define RSTRING_LENINT (   str)    rb_long2int(RSTRING_LEN(str))

Definition at line 983 of file ruby.h.

Referenced by ossl_obj2bio().

◆ RSTRING_NOEMBED

#define RSTRING_NOEMBED   RSTRING_NOEMBED

Definition at line 939 of file ruby.h.

◆ RSTRING_PTR

#define RSTRING_PTR (   str)
Value:
(!(RBASIC(str)->flags & RSTRING_NOEMBED) ? \
RSTRING(str)->as.ary : \
RSTRING(str)->as.heap.ptr)
#define RSTRING(obj)
Definition: ruby.h:1201
#define RBASIC(obj)
Definition: ruby.h:1197
#define RSTRING_NOEMBED
Definition: ruby.h:939

Definition at line 975 of file ruby.h.

Referenced by date_zone_to_diff(), ossl_digest_update(), ossl_evp_get_cipherbyname(), ossl_obj2bio(), ossl_pem_passwd_cb(), rb_econv_append(), rb_econv_substr_append(), rb_enc_uint_chr(), rb_execarg_commandline(), rb_f_kill(), rb_feature_provided(), rb_file_expand_path_internal(), rb_id2name(), rb_num_get_rounding_option(), rb_path_to_class(), rb_profile_frame_full_label(), rb_reg_check_preprocess(), rb_reg_quote(), rb_reg_regsub(), rb_report_bug_valist(), rb_require_internal(), rb_source_loc(), rb_sourcefile(), rb_str_buf_append(), rb_str_concat(), rb_str_concat_literals(), rb_str_drop_bytes(), rb_str_ellipsize(), rb_str_encode_ospath(), rb_str_end_with_asciichar(), rb_str_escape(), rb_str_fill_terminator(), rb_str_hash(), rb_str_include_range_p(), rb_str_ord(), rb_str_quote_unprintable(), rb_str_subpos(), rb_str_subseq(), rb_str_succ(), rb_str_symname_p(), rb_str_to_dbl(), rb_string_value_ptr(), rb_syntax_error_append(), rb_vm_bugreport(), rb_w32_conv_from_wchar(), rb_w32_conv_from_wstr(), rsock_bsock_send(), rsock_ipaddr(), rsock_send_blocking(), rsock_sendto_blocking(), rsock_sockaddr_string_value_ptr(), rsock_syserr_fail_raddrinfo_or_sockaddr(), ruby_get_inplace_mode(), ruby_init_loadpath_safe(), and VpAlloc().

◆ RSTRUCT_GET

#define RSTRUCT_GET (   st,
  idx 
)    rb_struct_aref(st, INT2NUM(idx))

Definition at line 1189 of file ruby.h.

Referenced by rb_struct_init_copy().

◆ RSTRUCT_LEN

#define RSTRUCT_LEN (   st)    NUM2LONG(rb_struct_size(st))

Definition at line 1186 of file ruby.h.

Referenced by rb_struct_init_copy(), rb_struct_members(), and rb_struct_size().

◆ RSTRUCT_PTR

#define RSTRUCT_PTR (   st)    rb_struct_ptr(st)

Definition at line 1187 of file ruby.h.

◆ RSTRUCT_SET

#define RSTRUCT_SET (   st,
  idx,
 
)    rb_struct_aset(st, INT2NUM(idx), (v))

Definition at line 1188 of file ruby.h.

Referenced by rb_struct_init_copy().

◆ RTEST

#define RTEST (   v)    RB_TEST(v)

◆ RTYPEDDATA

#define RTYPEDDATA (   obj)    (R_CAST(RTypedData)(obj))

Definition at line 1205 of file ruby.h.

◆ RTYPEDDATA_DATA

#define RTYPEDDATA_DATA (   v)    (RTYPEDDATA(v)->data)

◆ RTYPEDDATA_P

#define RTYPEDDATA_P (   v)    (RTYPEDDATA(v)->typed_flag == 1)

◆ RTYPEDDATA_TYPE

#define RTYPEDDATA_TYPE (   v)    (RTYPEDDATA(v)->type)

◆ RUBY_ALLOCV_LIMIT

#define RUBY_ALLOCV_LIMIT   1024

Definition at line 1645 of file ruby.h.

◆ RUBY_BLOCK_CALL_FUNC_TAKES_BLOCKARG

#define RUBY_BLOCK_CALL_FUNC_TAKES_BLOCKARG   1

Definition at line 1850 of file ruby.h.

◆ RUBY_CONST_ID

#define RUBY_CONST_ID (   var,
  str 
)    do RUBY_CONST_ID_CACHE((var) =, (str)) while (0)

Definition at line 1740 of file ruby.h.

◆ RUBY_CONST_ID_CACHE

#define RUBY_CONST_ID_CACHE (   result,
  str 
)
Value:
{ \
static ID rb_intern_id_cache; \
if (!rb_intern_id_cache) \
rb_intern_id_cache = rb_intern2((str), (long)strlen(str)); \
result rb_intern_id_cache; \
}
size_t strlen(const char *)
ID rb_intern2(const char *, long)
Definition: symbol.c:604
unsigned long ID
Definition: ruby.h:86

Definition at line 1733 of file ruby.h.

◆ ruby_debug

#define ruby_debug   (*rb_ruby_debug_ptr())

Definition at line 1814 of file ruby.h.

Referenced by ruby_init().

◆ RUBY_DEFAULT_FREE

#define RUBY_DEFAULT_FREE   ((RUBY_DATA_FUNC)-1)

Definition at line 1132 of file ruby.h.

Referenced by rb_dir_getwd_ospath(), and ruby_getcwd().

◆ RUBY_ELTS_SHARED

#define RUBY_ELTS_SHARED   RUBY_ELTS_SHARED

Definition at line 936 of file ruby.h.

◆ RUBY_EVENT_ALL

#define RUBY_EVENT_ALL   0x00ff

Definition at line 2088 of file ruby.h.

◆ RUBY_EVENT_B_CALL

#define RUBY_EVENT_B_CALL   0x0100

Definition at line 2091 of file ruby.h.

◆ RUBY_EVENT_B_RETURN

#define RUBY_EVENT_B_RETURN   0x0200

Definition at line 2092 of file ruby.h.

Referenced by rb_tracearg_return_value().

◆ RUBY_EVENT_C_CALL

#define RUBY_EVENT_C_CALL   0x0020

Definition at line 2085 of file ruby.h.

◆ RUBY_EVENT_C_RETURN

#define RUBY_EVENT_C_RETURN   0x0040

Definition at line 2086 of file ruby.h.

Referenced by rb_tracearg_return_value(), and rb_vm_pop_cfunc_frame().

◆ RUBY_EVENT_CALL

#define RUBY_EVENT_CALL   0x0008

Definition at line 2083 of file ruby.h.

◆ RUBY_EVENT_CLASS

#define RUBY_EVENT_CLASS   0x0002

Definition at line 2081 of file ruby.h.

◆ RUBY_EVENT_COVERAGE

#define RUBY_EVENT_COVERAGE   0x020000

Definition at line 2100 of file ruby.h.

◆ RUBY_EVENT_END

#define RUBY_EVENT_END   0x0004

Definition at line 2082 of file ruby.h.

◆ RUBY_EVENT_FIBER_SWITCH

#define RUBY_EVENT_FIBER_SWITCH   0x1000

Definition at line 2095 of file ruby.h.

Referenced by rb_fiber_start().

◆ RUBY_EVENT_LINE

#define RUBY_EVENT_LINE   0x0001

Definition at line 2080 of file ruby.h.

◆ RUBY_EVENT_NONE

#define RUBY_EVENT_NONE   0x0000

Definition at line 2079 of file ruby.h.

◆ RUBY_EVENT_RAISE

#define RUBY_EVENT_RAISE   0x0080

Definition at line 2087 of file ruby.h.

Referenced by rb_tracearg_raised_exception().

◆ RUBY_EVENT_RETURN

#define RUBY_EVENT_RETURN   0x0010

Definition at line 2084 of file ruby.h.

Referenced by rb_tracearg_return_value().

◆ RUBY_EVENT_SPECIFIED_LINE

#define RUBY_EVENT_SPECIFIED_LINE   0x010000

Definition at line 2099 of file ruby.h.

◆ RUBY_EVENT_SWITCH

#define RUBY_EVENT_SWITCH   0x040000 /* obsolete name. this macro is for compatibility */

Definition at line 2104 of file ruby.h.

◆ RUBY_EVENT_THREAD_BEGIN

#define RUBY_EVENT_THREAD_BEGIN   0x0400

Definition at line 2093 of file ruby.h.

◆ RUBY_EVENT_THREAD_END

#define RUBY_EVENT_THREAD_END   0x0800

Definition at line 2094 of file ruby.h.

◆ RUBY_EVENT_TRACEPOINT_ALL

#define RUBY_EVENT_TRACEPOINT_ALL   0xffff

Definition at line 2096 of file ruby.h.

◆ RUBY_FIXNUM_MAX

#define RUBY_FIXNUM_MAX   (LONG_MAX>>1)

Definition at line 226 of file ruby.h.

◆ RUBY_FIXNUM_MIN

#define RUBY_FIXNUM_MIN   RSHIFT((long)LONG_MIN,1)

Definition at line 227 of file ruby.h.

◆ RUBY_FL_USER19

#define RUBY_FL_USER19   (((VALUE)1)<<(RUBY_FL_USHIFT+19))

Definition at line 846 of file ruby.h.

◆ RUBY_FL_USER_N

#define RUBY_FL_USER_N (   n)    RUBY_FL_USER##n = (1<<(RUBY_FL_USHIFT+n))

Definition at line 823 of file ruby.h.

◆ RUBY_INTEGER_UNIFICATION

#define RUBY_INTEGER_UNIFICATION   1

Definition at line 1492 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_FREEOBJ

#define RUBY_INTERNAL_EVENT_FREEOBJ   0x200000

Definition at line 2107 of file ruby.h.

Referenced by rb_tracearg_object().

◆ RUBY_INTERNAL_EVENT_GC_END_MARK

#define RUBY_INTERNAL_EVENT_GC_END_MARK   0x800000

Definition at line 2109 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_GC_END_SWEEP

#define RUBY_INTERNAL_EVENT_GC_END_SWEEP   0x1000000

Definition at line 2110 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_GC_ENTER

#define RUBY_INTERNAL_EVENT_GC_ENTER   0x2000000

Definition at line 2111 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_GC_EXIT

#define RUBY_INTERNAL_EVENT_GC_EXIT   0x4000000

Definition at line 2112 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_GC_START

#define RUBY_INTERNAL_EVENT_GC_START   0x400000

Definition at line 2108 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_MASK

#define RUBY_INTERNAL_EVENT_MASK   0xfffe0000

Definition at line 2114 of file ruby.h.

◆ RUBY_INTERNAL_EVENT_NEWOBJ

#define RUBY_INTERNAL_EVENT_NEWOBJ   0x100000

Definition at line 2106 of file ruby.h.

Referenced by rb_tracearg_object().

◆ RUBY_INTERNAL_EVENT_OBJSPACE_MASK

#define RUBY_INTERNAL_EVENT_OBJSPACE_MASK   0x7f00000

Definition at line 2113 of file ruby.h.

Referenced by rb_objspace_set_event_hook().

◆ RUBY_INTERNAL_EVENT_SWITCH

#define RUBY_INTERNAL_EVENT_SWITCH   0x040000

Definition at line 2103 of file ruby.h.

◆ RUBY_MACRO_SELECT

#define RUBY_MACRO_SELECT (   base,
 
)    TOKEN_PASTE(base, n)

Definition at line 49 of file ruby.h.

◆ RUBY_METHOD_FUNC

#define RUBY_METHOD_FUNC (   func)    ((VALUE (*)(ANYARGS))(func))

Definition at line 1708 of file ruby.h.

◆ RUBY_NEVER_FREE

#define RUBY_NEVER_FREE   ((RUBY_DATA_FUNC)0)

Definition at line 1133 of file ruby.h.

◆ RUBY_PRI_VALUE_MARK

#define RUBY_PRI_VALUE_MARK   "\v"

Definition at line 121 of file ruby.h.

◆ RUBY_Qfalse

#define RUBY_Qfalse   ((VALUE)RUBY_Qfalse)

Definition at line 432 of file ruby.h.

◆ RUBY_Qnil

#define RUBY_Qnil   ((VALUE)RUBY_Qnil)

Definition at line 434 of file ruby.h.

◆ RUBY_Qtrue

#define RUBY_Qtrue   ((VALUE)RUBY_Qtrue)

Definition at line 433 of file ruby.h.

◆ RUBY_Qundef

#define RUBY_Qundef   ((VALUE)RUBY_Qundef) /* undefined value for placeholder */

Definition at line 435 of file ruby.h.

◆ RUBY_SAFE_LEVEL_MAX

#define RUBY_SAFE_LEVEL_MAX   1

Definition at line 599 of file ruby.h.

Referenced by rb_eval_cmd(), and rb_method_call_with_block().

◆ RUBY_TYPED_DEFAULT_FREE

#define RUBY_TYPED_DEFAULT_FREE   RUBY_DEFAULT_FREE

Definition at line 1134 of file ruby.h.

◆ RUBY_TYPED_FREE_IMMEDIATELY

#define RUBY_TYPED_FREE_IMMEDIATELY   1 /* TYPE field */

Definition at line 1138 of file ruby.h.

◆ RUBY_TYPED_NEVER_FREE

#define RUBY_TYPED_NEVER_FREE   RUBY_NEVER_FREE

Definition at line 1135 of file ruby.h.

◆ RUBY_TYPED_PROMOTED1

#define RUBY_TYPED_PROMOTED1   RUBY_FL_PROMOTED1 /* THIS FLAG DEPENDS ON Ruby version */

Definition at line 1140 of file ruby.h.

◆ RUBY_TYPED_WB_PROTECTED

#define RUBY_TYPED_WB_PROTECTED   RUBY_FL_WB_PROTECTED /* THIS FLAG DEPENDS ON Ruby version */

Definition at line 1139 of file ruby.h.

◆ RUBY_UNTYPED_DATA_FUNC

#define RUBY_UNTYPED_DATA_FUNC (   func)    DEPRECATED(func)

Definition at line 1326 of file ruby.h.

◆ RUBY_UNTYPED_DATA_WARNING

#define RUBY_UNTYPED_DATA_WARNING   0

Definition at line 1121 of file ruby.h.

◆ ruby_verbose

#define ruby_verbose   (*rb_ruby_verbose_ptr())

◆ RUBY_VM

#define RUBY_VM   1 /* YARV */

Definition at line 2074 of file ruby.h.

◆ SafeStringValue

#define SafeStringValue (   v)
Value:
do {\
StringValue(v);\
rb_check_safe_obj(v);\
} while (0)

Definition at line 574 of file ruby.h.

Referenced by rb_f_eval(), and rb_io_ungetbyte().

◆ SIGNED_VALUE

#define SIGNED_VALUE   long

Definition at line 87 of file ruby.h.

Referenced by rb_big_pow(), rb_obj_id(), VpDtoV(), VpNumOfChars(), VpPower(), VpSqrt(), and VpVtoD().

◆ SIZE_MAX

#define SIZE_MAX   ULONG_MAX

Definition at line 276 of file ruby.h.

Referenced by rb_absint_numwords(), and rb_big_bit_length().

◆ SIZE_MIN

#define SIZE_MIN   ULONG_MIN

Definition at line 277 of file ruby.h.

◆ SIZEOF_VALUE

#define SIZEOF_VALUE   SIZEOF_LONG

Definition at line 88 of file ruby.h.

Referenced by rb_fix2str(), rb_memsearch(), rb_uint2big(), and rb_vm_ifunc_new().

◆ SIZET2NUM

#define SIZET2NUM (   v)    ULONG2NUM(v)

Definition at line 264 of file ruby.h.

Referenced by rb_big_bit_length(), and rb_big_size_m().

◆ SPECIAL_CONST_P

#define SPECIAL_CONST_P (   x)    RB_SPECIAL_CONST_P(x)

◆ SSIZE_MAX

#define SSIZE_MAX   LONG_MAX

Definition at line 292 of file ruby.h.

◆ SSIZE_MIN

#define SSIZE_MIN   LONG_MIN

Definition at line 293 of file ruby.h.

◆ SSIZET2NUM

#define SSIZET2NUM (   v)    LONG2NUM(v)

Definition at line 265 of file ruby.h.

Referenced by rsock_bsock_send().

◆ ST2FIX

#define ST2FIX (   h)    RB_ST2FIX(h)

Definition at line 1579 of file ruby.h.

◆ STATIC_SYM_P

#define STATIC_SYM_P (   x)    RB_STATIC_SYM_P(x)

Definition at line 380 of file ruby.h.

Referenced by rb_check_id(), rb_check_symbol(), rb_obj_id(), and rb_sym2id().

◆ STRCASECMP

#define STRCASECMP (   s1,
  s2 
)    (st_locale_insensitive_strcasecmp((s1), (s2)))

Definition at line 2158 of file ruby.h.

Referenced by rb_enc_register().

◆ StringValue

#define StringValue (   v)    rb_string_value(&(v))

◆ StringValueCStr

#define StringValueCStr (   v)    rb_string_value_cstr(&(v))

◆ StringValuePtr

#define StringValuePtr (   v)    rb_string_value_ptr(&(v))

Definition at line 570 of file ruby.h.

Referenced by rb_file_expand_path_internal(), and reg_open_vkey().

◆ STRNCASECMP

#define STRNCASECMP (   s1,
  s2,
 
)    (st_locale_insensitive_strncasecmp((s1), (s2), (n)))

Definition at line 2159 of file ruby.h.

◆ STRTOUL

#define STRTOUL (   str,
  endptr,
  base 
)    (ruby_strtoul((str), (endptr), (base)))

Definition at line 2162 of file ruby.h.

◆ SYM2ID

#define SYM2ID (   x)    RB_SYM2ID(x)

◆ SYMBOL_FLAG

#define SYMBOL_FLAG   RUBY_SYMBOL_FLAG

Definition at line 446 of file ruby.h.

◆ SYMBOL_P

#define SYMBOL_P (   x)    RB_SYMBOL_P(x)

◆ T_ARRAY

#define T_ARRAY   RUBY_T_ARRAY

◆ T_BIGNUM

#define T_BIGNUM   RUBY_T_BIGNUM

◆ T_CLASS

#define T_CLASS   RUBY_T_CLASS

◆ T_COMPLEX

#define T_COMPLEX   RUBY_T_COMPLEX

Definition at line 510 of file ruby.h.

Referenced by rb_complex_mul(), rb_complex_plus(), and rb_math_sqrt().

◆ T_DATA

#define T_DATA   RUBY_T_DATA

◆ T_FALSE

#define T_FALSE   RUBY_T_FALSE

Definition at line 505 of file ruby.h.

Referenced by rb_num2fix().

◆ T_FILE

#define T_FILE   RUBY_T_FILE

◆ T_FIXNUM

#define T_FIXNUM   RUBY_T_FIXNUM

◆ T_FLOAT

#define T_FLOAT   RUBY_T_FLOAT

◆ T_HASH

#define T_HASH   RUBY_T_HASH

◆ T_ICLASS

#define T_ICLASS   RUBY_T_ICLASS

◆ T_IMEMO

#define T_IMEMO   RUBY_T_IMEMO

Definition at line 511 of file ruby.h.

Referenced by rb_imemo_new().

◆ T_MASK

#define T_MASK   RUBY_T_MASK

Definition at line 515 of file ruby.h.

◆ T_MATCH

#define T_MATCH   RUBY_T_MATCH

Definition at line 507 of file ruby.h.

◆ T_MODULE

#define T_MODULE   RUBY_T_MODULE

◆ T_NIL

#define T_NIL   RUBY_T_NIL

Definition at line 490 of file ruby.h.

Referenced by rb_num2fix().

◆ T_NODE

#define T_NODE   RUBY_T_NODE

Definition at line 513 of file ruby.h.

◆ T_NONE

#define T_NONE   RUBY_T_NONE

Definition at line 489 of file ruby.h.

◆ T_OBJECT

#define T_OBJECT   RUBY_T_OBJECT

◆ T_RATIONAL

#define T_RATIONAL   RUBY_T_RATIONAL

Definition at line 509 of file ruby.h.

Referenced by rb_numeric_quo(), and rb_rational_uminus().

◆ T_REGEXP

#define T_REGEXP   RUBY_T_REGEXP

Definition at line 497 of file ruby.h.

Referenced by rb_check_regexp_type(), and rb_enc_get_index().

◆ T_STRING

#define T_STRING   RUBY_T_STRING

◆ T_STRUCT

#define T_STRUCT   RUBY_T_STRUCT

Definition at line 500 of file ruby.h.

◆ T_SYMBOL

#define T_SYMBOL   RUBY_T_SYMBOL

Definition at line 508 of file ruby.h.

Referenced by rb_execarg_addopt(), rb_f_kill(), rb_keyword_error_new(), and rsock_revlookup_flag().

◆ T_TRUE

#define T_TRUE   RUBY_T_TRUE

Definition at line 504 of file ruby.h.

Referenced by rb_num2fix().

◆ T_UNDEF

#define T_UNDEF   RUBY_T_UNDEF

Definition at line 512 of file ruby.h.

◆ T_ZOMBIE

#define T_ZOMBIE   RUBY_T_ZOMBIE

Definition at line 514 of file ruby.h.

◆ TOLOWER

#define TOLOWER (   c)    rb_tolower(c)

Definition at line 2154 of file ruby.h.

Referenced by rb_file_expand_path_internal().

◆ TOUPPER

#define TOUPPER (   c)    rb_toupper(c)

Definition at line 2153 of file ruby.h.

◆ TYPE

#define TYPE (   x)    rb_type((VALUE)(x))

◆ TypedData_Get_Struct

#define TypedData_Get_Struct (   obj,
  type,
  data_type,
  sval 
)    ((sval) = (type*)rb_check_typeddata((obj), (data_type)))

◆ TypedData_Make_Struct

#define TypedData_Make_Struct (   klass,
  type,
  data_type,
  sval 
)
Value:
(\
rb_data_typed_object_make((klass),(data_type),(void **)&(sval),sizeof(type)) \
)

Definition at line 1175 of file ruby.h.

Referenced by create_win32ole_variable(), folemethod_s_allocate(), iseq_ibf_dump(), iseq_ibf_load(), iseq_ibf_load_extra_data(), pruby_register_instance(), rb_binding_alloc(), rb_execarg_new(), rb_parser_new(), and rb_proc_alloc().

◆ TypedData_Make_Struct0

#define TypedData_Make_Struct0 (   result,
  klass,
  type,
  size,
  data_type,
  sval 
)
Value:
VALUE result = rb_data_typed_object_zalloc(klass, size, data_type); \
(void)((sval) = (type *)DATA_PTR(result));
#define DATA_PTR(dta)
Definition: ruby.h:1106
unsigned long VALUE
Definition: ruby.h:85
VALUE rb_data_typed_object_zalloc(VALUE klass, size_t size, const rb_data_type_t *type)
int size
Definition: encoding.c:57

Definition at line 1165 of file ruby.h.

◆ TypedData_Wrap_Struct

#define TypedData_Wrap_Struct (   klass,
  data_type,
  sval 
)    rb_data_typed_object_wrap((klass),(sval),(data_type))

Definition at line 1162 of file ruby.h.

Referenced by VpNewRbClass().

◆ UIDT2NUM

#define UIDT2NUM (   v)    LONG2NUM(v)

Definition at line 329 of file ruby.h.

◆ UINT2NUM

#define UINT2NUM (   x)    RB_UINT2NUM(x)

Definition at line 1539 of file ruby.h.

Referenced by generic_to_value(), rb_free_tmp_buffer(), and rb_str_ord().

◆ ULONG2NUM

#define ULONG2NUM (   x)    RB_ULONG2NUM(x)

Definition at line 1574 of file ruby.h.

Referenced by generic_to_value().

◆ UNREACHABLE

#define UNREACHABLE   ((void)0) /* unreachable */

◆ USE_FLONUM

#define USE_FLONUM   1

Definition at line 388 of file ruby.h.

◆ USE_RGENGC

#define USE_RGENGC   1

Definition at line 760 of file ruby.h.

◆ USE_RGENGC_LOGGING_WB_UNPROTECT

#define USE_RGENGC_LOGGING_WB_UNPROTECT   0

Definition at line 1441 of file ruby.h.

◆ USE_RINCGC

#define USE_RINCGC   1

Definition at line 762 of file ruby.h.

◆ USE_SYMBOL_AS_METHOD_NAME

#define USE_SYMBOL_AS_METHOD_NAME   1

Definition at line 402 of file ruby.h.

◆ ZALLOC

#define ZALLOC (   type)    RB_ZALLOC(type)

Definition at line 1590 of file ruby.h.

◆ ZALLOC_N

#define ZALLOC_N (   type,
 
)    RB_ZALLOC_N(type,n)

Definition at line 1589 of file ruby.h.

Typedef Documentation

◆ ID

typedef unsigned long ID

Definition at line 86 of file ruby.h.

◆ rb_block_call_func

typedef VALUE rb_block_call_func(RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg))

Definition at line 1853 of file ruby.h.

◆ rb_block_call_func_t

typedef VALUE(* rb_block_call_func_t) (ANYARGS)

Definition at line 1858 of file ruby.h.

◆ rb_data_type_t

Definition at line 1078 of file ruby.h.

◆ rb_event_flag_t

Definition at line 2116 of file ruby.h.

◆ rb_event_hook_func_t

typedef void(* rb_event_hook_func_t) (rb_event_flag_t evflag, VALUE data, VALUE self, ID mid, VALUE klass)

Definition at line 2117 of file ruby.h.

◆ rb_gvar_getter_t

typedef VALUE rb_gvar_getter_t(ID id, void *data, struct rb_global_variable *gvar)

Definition at line 1683 of file ruby.h.

◆ rb_gvar_marker_t

typedef void rb_gvar_marker_t(VALUE *var)

Definition at line 1685 of file ruby.h.

◆ rb_gvar_setter_t

typedef void rb_gvar_setter_t(VALUE val, ID id, void *data, struct rb_global_variable *gvar)

Definition at line 1684 of file ruby.h.

◆ ruby_check_sizeof_int

typedef char ruby_check_sizeof_int[SIZEOF_INT==sizeof(int) ? 1 :-1]

Definition at line 101 of file ruby.h.

◆ ruby_check_sizeof_long

typedef char ruby_check_sizeof_long[SIZEOF_LONG==sizeof(long) ? 1 :-1]

Definition at line 102 of file ruby.h.

◆ ruby_check_sizeof_voidp

typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP==sizeof(void *) ? 1 :-1]

Definition at line 106 of file ruby.h.

◆ RUBY_DATA_FUNC

typedef void(* RUBY_DATA_FUNC) (void *)

Definition at line 1115 of file ruby.h.

◆ ruby_glob_func

typedef int ruby_glob_func(const char *, VALUE, void *)

Definition at line 1667 of file ruby.h.

◆ VALUE

typedef unsigned long VALUE

Definition at line 85 of file ruby.h.

Enumeration Type Documentation

◆ rb_io_wait_readwrite

Enumerator
RB_IO_WAIT_READABLE 
RB_IO_WAIT_WRITABLE 

Definition at line 1817 of file ruby.h.

◆ ruby_fl_type

Enumerator
RUBY_FL_WB_PROTECTED 
RUBY_FL_PROMOTED0 
RUBY_FL_PROMOTED1 
RUBY_FL_PROMOTED 
RUBY_FL_FINALIZE 
RUBY_FL_TAINT 
RUBY_FL_UNTRUSTED 
RUBY_FL_EXIVAR 
RUBY_FL_FREEZE 
RUBY_FL_USHIFT 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_FL_USER_N 
RUBY_ELTS_SHARED 
RUBY_FL_DUPPED 
RUBY_FL_SINGLETON 

Definition at line 810 of file ruby.h.

◆ ruby_rarray_flags

Enumerator
RARRAY_EMBED_LEN_MAX 
RARRAY_EMBED_FLAG 
RARRAY_EMBED_LEN_MASK 
RARRAY_EMBED_LEN_SHIFT 
RARRAY_ENUM_END 

Definition at line 989 of file ruby.h.

◆ ruby_rmodule_flags

Enumerator
RMODULE_IS_OVERLAID 
RMODULE_IS_REFINEMENT 
RMODULE_INCLUDED_INTO_REFINEMENT 
RMODULE_ENUM_END 

Definition at line 921 of file ruby.h.

◆ ruby_robject_flags

Enumerator
ROBJECT_EMBED_LEN_MAX 
ROBJECT_EMBED 
ROBJECT_ENUM_END 

Definition at line 882 of file ruby.h.

◆ ruby_rstring_flags

Enumerator
RSTRING_NOEMBED 
RSTRING_EMBED_LEN_MASK 
RSTRING_EMBED_LEN_SHIFT 
RSTRING_EMBED_LEN_MAX 
RSTRING_FSTR 
RSTRING_ENUM_END 

Definition at line 944 of file ruby.h.

◆ ruby_special_consts

Enumerator
RUBY_Qfalse 
RUBY_Qtrue 
RUBY_Qnil 
RUBY_Qundef 
RUBY_IMMEDIATE_MASK 
RUBY_FIXNUM_FLAG 
RUBY_FLONUM_MASK 
RUBY_FLONUM_FLAG 
RUBY_SYMBOL_FLAG 
RUBY_SPECIAL_SHIFT 

Definition at line 405 of file ruby.h.

◆ ruby_value_type

Enumerator
RUBY_T_NONE 
RUBY_T_OBJECT 
RUBY_T_CLASS 
RUBY_T_MODULE 
RUBY_T_FLOAT 
RUBY_T_STRING 
RUBY_T_REGEXP 
RUBY_T_ARRAY 
RUBY_T_HASH 
RUBY_T_STRUCT 
RUBY_T_BIGNUM 
RUBY_T_FILE 
RUBY_T_DATA 
RUBY_T_MATCH 
RUBY_T_COMPLEX 
RUBY_T_RATIONAL 
RUBY_T_NIL 
RUBY_T_TRUE 
RUBY_T_FALSE 
RUBY_T_SYMBOL 
RUBY_T_FIXNUM 
RUBY_T_UNDEF 
RUBY_T_IMEMO 
See also
imemo_type
RUBY_T_NODE 
RUBY_T_ICLASS 
RUBY_T_ZOMBIE 
RUBY_T_MASK 

Definition at line 455 of file ruby.h.

Function Documentation

◆ alloca()

RUBY_SYMBOL_EXPORT_BEGIN void* alloca ( )

◆ CONSTFUNC()

CONSTFUNC ( void   rb_secure_updateVALUE)

◆ DEPRECATED_BY() [1/2]

DEPRECATED_BY ( rb_data_object_wrap  ,
static inline VALUE   rb_data_object_allocVALUE, void *, RUBY_DATA_FUNC, RUBY_DATA_FUNC 
)

◆ DEPRECATED_BY() [2/2]

DEPRECATED_BY ( rb_data_typed_object_wrap  ,
static inline VALUE   rb_data_typed_object_allocVALUE, void *, const rb_data_type_t * 
)

◆ NORETURN() [1/15]

NORETURN ( void   rb_insecure_operationvoid)

◆ NORETURN() [2/15]

NORETURN ( void   ruby_malloc_size_overflowsize_t, size_t)

◆ NORETURN() [3/15]

NORETURN ( void   rb_gvar_readonly_setterVALUE val, ID id, void *data, struct rb_global_variable *gvar)

◆ NORETURN() [4/15]

NORETURN ( void   rb_bug_errnoconst char *, int)

◆ NORETURN() [5/15]

NORETURN ( void   rb_sys_failconst char *)

◆ NORETURN() [6/15]

NORETURN ( void   rb_sys_fail_strVALUE)

◆ NORETURN() [7/15]

NORETURN ( void   rb_mod_sys_failVALUE, const char *)

◆ NORETURN() [8/15]

NORETURN ( void   rb_mod_sys_fail_strVALUE, VALUE)

◆ NORETURN() [9/15]

NORETURN ( void   rb_readwrite_sys_failenum rb_io_wait_readwrite, const char *)

◆ NORETURN() [10/15]

NORETURN ( void   rb_syserr_failint, const char *)

◆ NORETURN() [11/15]

NORETURN ( void   rb_syserr_fail_strint, VALUE)

◆ NORETURN() [12/15]

NORETURN ( void   rb_mod_syserr_failVALUE, int, const char *)

◆ NORETURN() [13/15]

NORETURN ( void   rb_mod_syserr_fail_strVALUE, int, VALUE)

◆ NORETURN() [14/15]

NORETURN ( void   rb_readwrite_syserr_failenum rb_io_wait_readwrite, int, const char *)

◆ NORETURN() [15/15]

NORETURN ( void   rb_throwconst char *, VALUE)

◆ PRINTF_ARGS() [1/6]

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

◆ PRINTF_ARGS() [2/6]

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

◆ PRINTF_ARGS() [3/6]

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

◆ PRINTF_ARGS() [4/6]

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

◆ PRINTF_ARGS() [5/6]

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

◆ PRINTF_ARGS() [6/6]

PRINTF_ARGS ( int   ruby_snprintfchar *str, size_t n, char const *fmt,...,
,
 
)

◆ PUREFUNC()

PUREFUNC ( double   rb_float_valueVALUE)

◆ rb_add_event_hook()

void rb_add_event_hook ( rb_event_hook_func_t  func,
rb_event_flag_t  events,
VALUE  data 
)

Definition at line 135 of file vm_trace.c.

◆ rb_alloc_tmp_buffer()

void* rb_alloc_tmp_buffer ( volatile VALUE store,
long  len 
)

Definition at line 8136 of file gc.c.

References cnt, rb_alloc_tmp_buffer_with_count(), rb_eArgError, rb_raise(), and roomof.

◆ rb_alloc_tmp_buffer_with_count()

void* rb_alloc_tmp_buffer_with_count ( volatile VALUE store,
size_t  len,
size_t  count 
)

◆ rb_big_sign()

int rb_big_sign ( VALUE  )

Definition at line 6710 of file bignum.c.

References BIGNUM_SIGN.

◆ rb_block_call()

VALUE rb_block_call ( VALUE  ,
ID  ,
int  ,
const VALUE ,
rb_block_call_func_t  ,
VALUE   
)

◆ rb_call_super()

VALUE rb_call_super ( int  ,
const VALUE  
)

Definition at line 238 of file vm_eval.c.

References GET_THREAD, and PASS_PASSED_BLOCK_HANDLER_TH.

◆ rb_catch()

VALUE rb_catch ( const char *  ,
VALUE(*)(ANYARGS ,
VALUE   
)

◆ rb_catch_obj()

VALUE rb_catch_obj ( VALUE  ,
VALUE(*)(ANYARGS ,
VALUE   
)

◆ rb_check_id()

ID rb_check_id ( volatile VALUE namep)

Returns ID for the given name if it is interned already, or 0.

Parameters
namepthe pointer to the name object
Returns
the ID for *namep
Precondition
the object referred by namep must be a Symbol or a String, or possible to convert with to_str method.
Postcondition
the object referred by namep is a Symbol or a String if non-zero value is returned, or is a String if 0 is returned.

Definition at line 915 of file symbol.c.

References DYNAMIC_SYM_P, name, NIL_P, PRIsVALUE, rb_check_string_type(), rb_eTypeError, rb_raise(), RB_TYPE_P, RSYMBOL, STATIC_SYM2ID, STATIC_SYM_P, SYMBOL_PINNED_P, and T_STRING.

Referenced by rb_execarg_addopt(), rb_f_untrace_var(), and rb_obj_singleton_method().

◆ rb_check_safe_obj()

void rb_check_safe_obj ( VALUE  )

Definition at line 117 of file safe.c.

References OBJ_TAINTED, rb_insecure_operation(), and rb_safe_level().

◆ rb_check_symbol()

VALUE rb_check_symbol ( volatile VALUE namep)

Definition at line 948 of file symbol.c.

References DYNAMIC_SYM_P, name, STATIC_SYM_P, sym, and SYMBOL_PINNED_P.

◆ rb_class2name()

const char* rb_class2name ( VALUE  )

Definition at line 450 of file variable.c.

References fc_result::path.

Referenced by rb_clear_method_cache_by_class(), and rb_obj_classname().

◆ rb_current_receiver()

VALUE rb_current_receiver ( void  )

◆ rb_data_object_wrap()

VALUE rb_data_object_wrap ( VALUE  ,
void *  ,
RUBY_DATA_FUNC  ,
RUBY_DATA_FUNC   
)

Definition at line 2037 of file gc.c.

References Check_Type, and T_CLASS.

Referenced by RUBY_ALIAS_FUNCTION().

◆ rb_data_object_zalloc()

VALUE rb_data_object_zalloc ( VALUE  ,
size_t  ,
RUBY_DATA_FUNC  ,
RUBY_DATA_FUNC   
)

◆ rb_data_typed_object_wrap()

VALUE rb_data_typed_object_wrap ( VALUE  klass,
void *  datap,
const rb_data_type_t  
)

Definition at line 2058 of file gc.c.

References Check_Type, and T_CLASS.

Referenced by RUBY_ALIAS_FUNCTION().

◆ rb_data_typed_object_zalloc()

VALUE rb_data_typed_object_zalloc ( VALUE  klass,
size_t  size,
const rb_data_type_t type 
)

◆ rb_define_const()

void rb_define_const ( VALUE  ,
const char *  ,
VALUE   
)

◆ rb_define_global_const()

void rb_define_global_const ( const char *  ,
VALUE   
)

Definition at line 2702 of file variable.c.

References rb_cObject, and rb_define_const().

◆ rb_define_hooked_variable()

void rb_define_hooked_variable ( const char *  ,
VALUE ,
VALUE(*)(ANYARGS ,
void(*)(ANYARGS  
)

◆ rb_define_readonly_variable()

void rb_define_readonly_variable ( const char *  ,
const VALUE  
)

Definition at line 642 of file variable.c.

References rb_define_hooked_variable(), and rb_gvar_readonly_setter().

◆ rb_define_variable()

void rb_define_variable ( const char *  ,
VALUE  
)

Definition at line 636 of file variable.c.

References rb_define_hooked_variable().

◆ rb_define_virtual_variable()

void rb_define_virtual_variable ( const char *  ,
VALUE(*)(ANYARGS ,
void(*)(ANYARGS  
)

◆ rb_each()

VALUE rb_each ( VALUE  )

Definition at line 1233 of file vm_eval.c.

◆ rb_eval_string()

VALUE rb_eval_string ( const char *  str)

Evaluates the given string in an isolated binding.

Here "isolated" means the binding does not inherit any other binding. This behaves same as the binding for required libraries.

FILE will be "(eval)", and LINE starts from 1 in the evaluation.

Parameters
strRuby code to evaluate.
Returns
The evaluated result.
Exceptions
ExceptionRaises an exception on error.

Definition at line 1447 of file vm_eval.c.

References ruby_eval_string_from_file().

Referenced by rb_eval_string_protect().

◆ rb_eval_string_protect()

VALUE rb_eval_string_protect ( const char *  str,
int *  pstate 
)

Evaluates the given string in an isolated binding.

FILE will be "(eval)", and LINE starts from 1 in the evaluation.

See also
rb_eval_string
Parameters
strRuby code to evaluate.
stateBeing set to zero if succeeded. Nonzero if an error occurred.
Returns
The evaluated result if succeeded, an undefined value if otherwise.

Definition at line 1463 of file vm_eval.c.

References rb_eval_string(), and rb_protect().

Referenced by rb_eval_string_wrap().

◆ rb_eval_string_wrap()

VALUE rb_eval_string_wrap ( const char *  str,
int *  pstate 
)

Evaluates the given string under a module binding in an isolated binding.

This is same as the binding for loaded libraries on "load('foo', true)".

FILE will be "(eval)", and LINE starts from 1 in the evaluation.

See also
rb_eval_string
Parameters
strRuby code to evaluate.
stateBeing set to zero if succeeded. Nonzero if an error occurred.
Returns
The evaluated result if succeeded, an undefined value if otherwise.

Definition at line 1480 of file vm_eval.c.

References GET_THREAD, rb_eval_string_protect(), rb_extend_object(), rb_module_new(), rb_obj_clone(), rb_vm_top_self(), TAG_NONE, TH_JUMP_TAG, rb_thread_struct::top_self, rb_thread_struct::top_wrapper, and val.

◆ rb_fix2short()

short rb_fix2short ( VALUE  )

Definition at line 3000 of file numeric.c.

References FIX2LONG, FIXNUM_P, and rb_num2long().

◆ rb_fix2ushort()

unsigned short rb_fix2ushort ( VALUE  )

Definition at line 3019 of file numeric.c.

References FIX2ULONG, FIXNUM_P, and rb_num2ushort().

◆ rb_float_new()

VALUE rb_float_new ( double  )

Definition at line 5614 of file numeric.c.

◆ rb_float_new_in_heap()

VALUE rb_float_new_in_heap ( double  )

Definition at line 922 of file numeric.c.

References FL_WB_PROTECTED, NEWOBJ_OF, OBJ_FREEZE, rb_cFloat, RGENGC_WB_PROTECTED_FLOAT, and T_FLOAT.

◆ rb_free_tmp_buffer()

void void rb_free_tmp_buffer ( volatile VALUE store)

◆ rb_funcall()

VALUE rb_funcall ( VALUE  recv,
ID  mid,
int  n,
  ... 
)

Calls a method.

Parameters
recvreceiver of the method
midan ID that represents the name of the method
nthe number of arguments
...arbitrary number of method arguments
Precondition
each of arguments after n must be a VALUE.

Definition at line 774 of file vm_eval.c.

References ALLOCA_N, argv, and va_init_list.

Referenced by default_inspect(), DupConfigPtr(), fun1(), generic_to_value(), ossl_time_split(), ossl_to_der(), rb_big_pow(), rb_class_inherited(), rb_cmpint(), rb_exc_new(), rb_exc_new_str(), rb_io_flush_raw(), rb_numeric_quo(), rb_obj_as_string(), and rb_obj_init_dup_clone().

◆ rb_funcall_passing_block()

VALUE rb_funcall_passing_block ( VALUE  ,
ID  ,
int  ,
const VALUE  
)

Definition at line 826 of file vm_eval.c.

References PASS_PASSED_BLOCK_HANDLER.

◆ rb_funcall_with_block()

VALUE rb_funcall_with_block ( VALUE  ,
ID  ,
int  ,
const VALUE ,
VALUE   
)

Definition at line 833 of file vm_eval.c.

References GET_THREAD, and NIL_P.

Referenced by rb_sym_proc_call().

◆ rb_funcallv()

VALUE rb_funcallv ( VALUE  recv,
ID  mid,
int  argc,
const VALUE argv 
)

Calls a method.

Parameters
recvreceiver of the method
midan ID that represents the name of the method
argcthe number of arguments
argvpointer to an array of method arguments

Definition at line 805 of file vm_eval.c.

Referenced by rb_eval_cmd().

◆ rb_funcallv_public()

VALUE rb_funcallv_public ( VALUE  recv,
ID  mid,
int  argc,
const VALUE argv 
)

Calls a method.

Same as rb_funcallv but this function can call only public methods.

Parameters
recvreceiver of the method
midan ID that represents the name of the method
argcthe number of arguments
argvpointer to an array of method arguments

Definition at line 820 of file vm_eval.c.

◆ rb_gc_guarded_ptr_val()

volatile VALUE* rb_gc_guarded_ptr_val ( volatile VALUE ptr,
VALUE  val 
)

Definition at line 97 of file gc.c.

References rb_gc_guarded_val, and val.

◆ rb_gc_register_address()

void rb_gc_register_address ( VALUE )

Definition at line 6241 of file gc.c.

References ALLOC, global_list, gc_list::next, rb_objspace, and gc_list::varptr.

Referenced by rb_global_variable().

◆ rb_gc_register_mark_object()

void rb_gc_register_mark_object ( VALUE  )

◆ rb_gc_unregister_address()

void rb_gc_unregister_address ( VALUE )

Definition at line 6253 of file gc.c.

References global_list, gc_list::next, rb_objspace, gc_list::varptr, and xfree().

◆ rb_gc_writebarrier()

void rb_gc_writebarrier ( VALUE  a,
VALUE  b 
)

Definition at line 5984 of file gc.c.

References is_incremental_marking, rb_bug(), rb_objspace, RGENGC_CHECK_MODE, and SPECIAL_CONST_P.

◆ rb_gc_writebarrier_unprotect()

void rb_gc_writebarrier_unprotect ( VALUE  obj)

Definition at line 6005 of file gc.c.

◆ rb_get_path()

VALUE rb_get_path ( VALUE  )

Definition at line 226 of file file.c.

References rb_get_path_check(), and rb_safe_level().

Referenced by rb_feature_provided().

◆ rb_get_path_no_checksafe()

VALUE rb_get_path_no_checksafe ( VALUE  )

Definition at line 220 of file file.c.

References rb_get_path_check().

◆ rb_glob()

void rb_glob ( const char *  ,
void(*)(const char *, VALUE, void *)  ,
VALUE   
)

Definition at line 2250 of file dir.c.

References glob_args::enc, glob_args::func, rb_ascii8bit_encoding(), and glob_args::value.

◆ rb_global_variable()

void rb_global_variable ( VALUE )

Definition at line 6276 of file gc.c.

References rb_gc_register_address().

Referenced by Init_openssl().

◆ rb_gv_get()

VALUE rb_gv_get ( const char *  )

Definition at line 851 of file variable.c.

References rb_global_entry().

◆ rb_gv_set()

VALUE rb_gv_set ( const char *  ,
VALUE   
)

Definition at line 842 of file variable.c.

References rb_global_entry().

◆ rb_gvar_undef_getter()

VALUE rb_gvar_undef_getter ( ID  id,
void *  data,
struct rb_global_variable gvar 
)

Definition at line 510 of file variable.c.

References PRIsVALUE, Qnil, QUOTE_ID, and rb_warning().

Referenced by rb_global_entry(), and rb_gvar_defined().

◆ rb_gvar_undef_marker()

void rb_gvar_undef_marker ( VALUE var)

Definition at line 528 of file variable.c.

Referenced by rb_global_entry().

◆ rb_gvar_undef_setter()

void rb_gvar_undef_setter ( VALUE  val,
ID  id,
void *  data,
struct rb_global_variable gvar 
)

◆ rb_gvar_val_getter()

VALUE rb_gvar_val_getter ( ID  id,
void *  data,
struct rb_global_variable gvar 
)

Definition at line 533 of file variable.c.

Referenced by rb_define_virtual_variable(), and rb_gvar_undef_setter().

◆ rb_gvar_val_marker()

void rb_gvar_val_marker ( VALUE var)

Definition at line 545 of file variable.c.

References rb_gc_mark_maybe().

Referenced by rb_gvar_undef_setter().

◆ rb_gvar_val_setter()

void rb_gvar_val_setter ( VALUE  val,
ID  id,
void *  data,
struct rb_global_variable gvar 
)

Definition at line 539 of file variable.c.

References rb_global_variable::data.

Referenced by rb_gvar_undef_setter().

◆ rb_gvar_var_getter()

VALUE rb_gvar_var_getter ( ID  id,
void *  data,
struct rb_global_variable gvar 
)

Definition at line 552 of file variable.c.

References Qnil, and rb_global_entry::var.

◆ rb_gvar_var_marker()

void rb_gvar_var_marker ( VALUE var)

Definition at line 566 of file variable.c.

References rb_gc_mark_maybe().

◆ rb_gvar_var_setter()

void rb_gvar_var_setter ( VALUE  val,
ID  id,
void *  data,
struct rb_global_variable gvar 
)

Definition at line 560 of file variable.c.

◆ rb_id2name()

const char* rb_id2name ( ID  )

Definition at line 751 of file symbol.c.

References rb_id2str(), and RSTRING_PTR.

Referenced by rb_undef(), rsock_inspect_sockaddr(), and ruby_debug_print_id().

◆ rb_id2str()

VALUE rb_id2str ( ID  )

Definition at line 745 of file symbol.c.

Referenced by rb_id2name(), rb_id_attrset(), and rb_sym2str().

◆ rb_id2sym()

VALUE rb_id2sym ( ID  )

Definition at line 726 of file symbol.c.

References DYNAMIC_ID_P, and STATIC_ID2SYM.

◆ rb_int2big()

VALUE rb_int2big ( SIGNED_VALUE  )

◆ rb_int2inum()

VALUE rb_int2inum ( SIGNED_VALUE  )

Definition at line 3190 of file bignum.c.

References FIXABLE, LONG2FIX, and rb_int2big().

◆ rb_intern()

ID rb_intern ( const char *  )

Definition at line 611 of file symbol.c.

References rb_intern2(), and strlen().

◆ rb_intern2()

ID rb_intern2 ( const char *  ,
long   
)

Definition at line 604 of file symbol.c.

References rb_intern3(), and rb_usascii_encoding().

Referenced by Init_load(), and rb_intern().

◆ rb_intern_str()

ID rb_intern_str ( VALUE  str)

Definition at line 617 of file symbol.c.

◆ rb_iterate()

VALUE rb_iterate ( VALUE(*)(VALUE ,
VALUE  ,
VALUE(*)(ANYARGS ,
VALUE   
)

Definition at line 1156 of file vm_eval.c.

Referenced by rb_block_call(), rb_check_block_call(), and rb_proc_new().

◆ rb_iv_get()

VALUE rb_iv_get ( VALUE  ,
const char *   
)

Definition at line 3087 of file variable.c.

References rb_intern, and rb_ivar_get().

◆ rb_iv_set()

VALUE rb_iv_set ( VALUE  ,
const char *  ,
VALUE   
)

Definition at line 3095 of file variable.c.

References rb_intern, and rb_ivar_set().

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

◆ rb_newobj()

VALUE rb_newobj ( void  )

Definition at line 1998 of file gc.c.

◆ rb_newobj_of()

VALUE rb_newobj_of ( VALUE  ,
VALUE   
)

Definition at line 2004 of file gc.c.

◆ rb_num2long()

long rb_num2long ( VALUE  )

◆ rb_num2short()

short rb_num2short ( VALUE  )

Definition at line 2991 of file numeric.c.

References rb_num2long().

◆ rb_num2ulong()

unsigned long rb_num2ulong ( VALUE  )

Definition at line 2868 of file numeric.c.

◆ rb_num2ushort()

unsigned short rb_num2ushort ( VALUE  )

Definition at line 3009 of file numeric.c.

Referenced by rb_fix2ushort().

◆ rb_obj_classname()

const char* rb_obj_classname ( VALUE  )

Definition at line 459 of file variable.c.

References CLASS_OF, and rb_class2name().

Referenced by rb_Hash().

◆ rb_p()

void rb_p ( VALUE  )

◆ rb_remove_event_hook()

int rb_remove_event_hook ( rb_event_hook_func_t  func)

Definition at line 194 of file vm_trace.c.

◆ rb_require()

VALUE rb_require ( const char *  )

◆ rb_ruby_debug_ptr()

VALUE* rb_ruby_debug_ptr ( void  )

Definition at line 3200 of file vm.c.

◆ rb_ruby_verbose_ptr()

VALUE* rb_ruby_verbose_ptr ( void  )

Definition at line 3194 of file vm.c.

◆ rb_safe_level()

int rb_safe_level ( void  )

◆ rb_secure()

void rb_secure ( int  )

Definition at line 83 of file safe.c.

References PRIsVALUE, rb_eSecurityError, rb_frame_callee(), rb_id2str, rb_raise(), and rb_safe_level().

Referenced by rb_iseq_disasm().

◆ rb_set_safe_level()

void rb_set_safe_level ( int  )

◆ rb_set_safe_level_force()

void rb_set_safe_level_force ( int  )

Definition at line 41 of file safe.c.

References GET_THREAD.

Referenced by rb_eval_cmd(), rb_method_call_with_block(), and rb_require_internal().

◆ rb_str_export()

VALUE rb_str_export ( VALUE  )

Definition at line 1091 of file string.c.

References rb_default_external_encoding(), rb_str_conv_enc(), and STR_ENC_GET.

◆ rb_str_export_locale()

VALUE rb_str_export_locale ( VALUE  )

Definition at line 1097 of file string.c.

References rb_locale_encoding(), rb_str_conv_enc(), and STR_ENC_GET.

◆ rb_str_to_str()

VALUE rb_str_to_str ( VALUE  )

Definition at line 1349 of file string.c.

References rb_convert_type_with_id(), and T_STRING.

Referenced by rb_string_value().

◆ rb_string_value()

VALUE rb_string_value ( volatile VALUE )

Definition at line 2107 of file string.c.

References RString::ptr, rb_str_to_str(), RB_TYPE_P, and T_STRING.

Referenced by rb_string_value_cstr(), and rb_string_value_ptr().

◆ rb_string_value_cstr()

char* rb_string_value_cstr ( volatile VALUE )

Definition at line 2223 of file string.c.

References rb_string_value().

◆ rb_string_value_ptr()

char* rb_string_value_ptr ( volatile VALUE )

Definition at line 2118 of file string.c.

References rb_string_value(), and RSTRING_PTR.

◆ rb_sym2id()

ID rb_sym2id ( VALUE  )

Definition at line 698 of file symbol.c.

References DYNAMIC_SYM_P, id, STATIC_SYM2ID, and STATIC_SYM_P.

◆ rb_sym2str()

VALUE rb_sym2str ( VALUE  )

Definition at line 734 of file symbol.c.

References DYNAMIC_SYM_P, rb_id2str(), RSYMBOL, and STATIC_SYM2ID.

◆ rb_to_id()

ID rb_to_id ( VALUE  )

Definition at line 10496 of file string.c.

References SYM2ID, and SYMBOL_P.

Referenced by rb_f_trace_var().

◆ rb_to_symbol()

VALUE rb_to_symbol ( VALUE  name)

Definition at line 10506 of file string.c.

References name, and SYMBOL_P.

◆ rb_uint2big()

VALUE rb_uint2big ( VALUE  )

Definition at line 3140 of file bignum.c.

References BDIGIT, bdigit_roomof, BDIGITS, BIGDN, BIGLO, bignew, BIGNUM_SET_LEN, and SIZEOF_VALUE.

Referenced by rb_int2big(), and rb_uint2inum().

◆ rb_uint2inum()

VALUE rb_uint2inum ( VALUE  )

Definition at line 3183 of file bignum.c.

References LONG2FIX, POSFIXABLE, and rb_uint2big().

◆ rb_yield()

VALUE rb_yield ( VALUE  )

Definition at line 973 of file vm_eval.c.

References Qundef.

Referenced by ossl_generate_cb_2(), and rb_ary_delete().

◆ rb_yield_block()

VALUE rb_yield_block ( VALUE  ,
VALUE  ,
int  ,
const VALUE ,
VALUE   
)

Definition at line 1032 of file vm_eval.c.

◆ rb_yield_splat()

VALUE rb_yield_splat ( VALUE  )

Definition at line 1013 of file vm_eval.c.

References NIL_P, rb_check_array_type(), rb_eArgError, and rb_raise().

◆ rb_yield_values()

VALUE rb_yield_values ( int  n,
  ... 
)

Definition at line 985 of file vm_eval.c.

◆ rb_yield_values2()

VALUE rb_yield_values2 ( int  n,
const VALUE argv 
)

Definition at line 1007 of file vm_eval.c.

◆ ruby_brace_glob()

int ruby_brace_glob ( const char *  ,
int  ,
ruby_glob_func ,
VALUE   
)

Definition at line 2366 of file dir.c.

References rb_ascii8bit_encoding(), and ruby_brace_glob_with_enc().

◆ ruby_glob()

int ruby_glob ( const char *  ,
int  ,
ruby_glob_func ,
VALUE   
)

Definition at line 2225 of file dir.c.

References ruby_glob_funcs_t::error, ruby_glob_funcs_t::match, and NULL.

◆ ruby_native_thread_p()

int ruby_native_thread_p ( void  )

Definition at line 4913 of file thread.c.

◆ ruby_strtoul()

unsigned long ruby_strtoul ( const char *  str,
char **  endptr,
int  base 
)

Definition at line 117 of file util.c.

References errno, ISSPACE, len, and ruby_scan_digits().

Referenced by rb_pipe().

◆ ruby_vsnprintf()

int ruby_vsnprintf ( char *  str,
size_t  n,
char const fmt,
va_list  ap 
)

Definition at line 1267 of file sprintf.c.

References EOF.

◆ st_locale_insensitive_strcasecmp()

int st_locale_insensitive_strcasecmp ( const char *  s1,
const char *  s2 
)

Definition at line 1907 of file st.c.

◆ st_locale_insensitive_strncasecmp()

int st_locale_insensitive_strncasecmp ( const char *  s1,
const char *  s2,
size_t  n 
)

Definition at line 1931 of file st.c.

References PUREFUNC().

Variable Documentation

◆ rb_cArray

RUBY_EXTERN VALUE rb_cArray

Definition at line 1894 of file ruby.h.

◆ rb_cBasicObject

RUBY_EXTERN VALUE rb_cBasicObject

Definition at line 1892 of file ruby.h.

Referenced by Init_class_hierarchy(), and rb_clear_method_cache_by_class().

◆ rb_cBinding

RUBY_EXTERN VALUE rb_cBinding

Definition at line 1898 of file ruby.h.

◆ rb_cClass

RUBY_EXTERN VALUE rb_cClass

Definition at line 1899 of file ruby.h.

Referenced by rb_check_inheritable().

◆ rb_cComplex

RUBY_EXTERN VALUE rb_cComplex

Definition at line 1924 of file ruby.h.

◆ rb_cCont

RUBY_EXTERN VALUE rb_cCont

Definition at line 1900 of file ruby.h.

◆ rb_cData

RUBY_EXTERN VALUE rb_cData

◆ rb_cDir

RUBY_EXTERN VALUE rb_cDir

Definition at line 1901 of file ruby.h.

◆ rb_cEncoding

RUBY_EXTERN VALUE rb_cEncoding

Definition at line 1904 of file ruby.h.

◆ rb_cEnumerator

RUBY_EXTERN VALUE rb_cEnumerator

Definition at line 1905 of file ruby.h.

◆ rb_cFalseClass

RUBY_EXTERN VALUE rb_cFalseClass

Definition at line 1903 of file ruby.h.

◆ rb_cFile

RUBY_EXTERN VALUE rb_cFile

Definition at line 1906 of file ruby.h.

◆ rb_cFloat

RUBY_EXTERN VALUE rb_cFloat

Definition at line 1910 of file ruby.h.

◆ rb_cHash

RUBY_EXTERN VALUE rb_cHash

Definition at line 1911 of file ruby.h.

◆ rb_cInteger

RUBY_EXTERN VALUE rb_cInteger

Definition at line 1912 of file ruby.h.

Referenced by Init_Bignum().

◆ rb_cIO

◆ rb_cMatch

RUBY_EXTERN VALUE rb_cMatch

Definition at line 1914 of file ruby.h.

◆ rb_cMethod

RUBY_EXTERN VALUE rb_cMethod

Definition at line 1915 of file ruby.h.

◆ rb_cModule

RUBY_EXTERN VALUE rb_cModule

Definition at line 1916 of file ruby.h.

◆ rb_cNameErrorMesg

RUBY_EXTERN VALUE rb_cNameErrorMesg

Definition at line 1917 of file ruby.h.

◆ rb_cNilClass

RUBY_EXTERN VALUE rb_cNilClass

Definition at line 1918 of file ruby.h.

◆ rb_cNumeric

RUBY_EXTERN VALUE rb_cNumeric

Definition at line 1919 of file ruby.h.

Referenced by rb_check_to_float().

◆ rb_cObject

RUBY_EXTERN VALUE rb_cObject

◆ rb_cProc

RUBY_EXTERN VALUE rb_cProc

Definition at line 1920 of file ruby.h.

◆ rb_cRandom

RUBY_EXTERN VALUE rb_cRandom

Definition at line 1921 of file ruby.h.

◆ rb_cRange

RUBY_EXTERN VALUE rb_cRange

Definition at line 1922 of file ruby.h.

◆ rb_cRational

RUBY_EXTERN VALUE rb_cRational

Definition at line 1923 of file ruby.h.

◆ rb_cRegexp

RUBY_EXTERN VALUE rb_cRegexp

Definition at line 1925 of file ruby.h.

◆ rb_cStat

RUBY_EXTERN VALUE rb_cStat

Definition at line 1926 of file ruby.h.

◆ rb_cString

RUBY_EXTERN VALUE rb_cString

Definition at line 1927 of file ruby.h.

Referenced by InitVM_transcode().

◆ rb_cStruct

RUBY_EXTERN VALUE rb_cStruct

Definition at line 1928 of file ruby.h.

◆ rb_cSymbol

RUBY_EXTERN VALUE rb_cSymbol

Definition at line 1929 of file ruby.h.

◆ rb_cThread

RUBY_EXTERN VALUE rb_cThread

Definition at line 1930 of file ruby.h.

◆ rb_cTime

RUBY_EXTERN VALUE rb_cTime

Definition at line 1931 of file ruby.h.

Referenced by asn1time_to_time(), and ole_val2variant().

◆ rb_cTrueClass

RUBY_EXTERN VALUE rb_cTrueClass

Definition at line 1932 of file ruby.h.

◆ rb_cUnboundMethod

RUBY_EXTERN VALUE rb_cUnboundMethod

Definition at line 1933 of file ruby.h.

◆ rb_eArgError

RUBY_EXTERN VALUE rb_eArgError

Definition at line 1941 of file ruby.h.

◆ rb_eEncCompatError

RUBY_EXTERN VALUE rb_eEncCompatError

Definition at line 1962 of file ruby.h.

◆ rb_eEncodingError

RUBY_EXTERN VALUE rb_eEncodingError

Definition at line 1961 of file ruby.h.

◆ rb_eEOFError

RUBY_EXTERN VALUE rb_eEOFError

Definition at line 1942 of file ruby.h.

◆ rb_eException

RUBY_EXTERN VALUE rb_eException

Definition at line 1935 of file ruby.h.

◆ rb_eFatal

RUBY_EXTERN VALUE rb_eFatal

Definition at line 1940 of file ruby.h.

◆ rb_eFloatDomainError

RUBY_EXTERN VALUE rb_eFloatDomainError

Definition at line 1957 of file ruby.h.

◆ rb_eIndexError

RUBY_EXTERN VALUE rb_eIndexError

Definition at line 1943 of file ruby.h.

◆ rb_eInterrupt

RUBY_EXTERN VALUE rb_eInterrupt

Definition at line 1938 of file ruby.h.

◆ rb_eIOError

RUBY_EXTERN VALUE rb_eIOError

Definition at line 1947 of file ruby.h.

◆ rb_eKeyError

RUBY_EXTERN VALUE rb_eKeyError

Definition at line 1945 of file ruby.h.

◆ rb_eLoadError

RUBY_EXTERN VALUE rb_eLoadError

Definition at line 1967 of file ruby.h.

◆ rb_eLocalJumpError

RUBY_EXTERN VALUE rb_eLocalJumpError

Definition at line 1958 of file ruby.h.

◆ rb_eMathDomainError

RUBY_EXTERN VALUE rb_eMathDomainError

Definition at line 1969 of file ruby.h.

◆ rb_eNameError

RUBY_EXTERN VALUE rb_eNameError

Definition at line 1965 of file ruby.h.

◆ rb_eNoMemError

RUBY_EXTERN VALUE rb_eNoMemError

Definition at line 1955 of file ruby.h.

◆ rb_eNoMethodError

RUBY_EXTERN VALUE rb_eNoMethodError

Definition at line 1956 of file ruby.h.

◆ rb_eNotImpError

RUBY_EXTERN VALUE rb_eNotImpError

Definition at line 1954 of file ruby.h.

◆ rb_eRangeError

RUBY_EXTERN VALUE rb_eRangeError

Definition at line 1946 of file ruby.h.

◆ rb_eRegexpError

RUBY_EXTERN VALUE rb_eRegexpError

Definition at line 1960 of file ruby.h.

◆ rb_eRuntimeError

RUBY_EXTERN VALUE rb_eRuntimeError

Definition at line 1948 of file ruby.h.

◆ rb_eScriptError

RUBY_EXTERN VALUE rb_eScriptError

Definition at line 1964 of file ruby.h.

◆ rb_eSecurityError

RUBY_EXTERN VALUE rb_eSecurityError

Definition at line 1949 of file ruby.h.

◆ rb_eSignal

RUBY_EXTERN VALUE rb_eSignal

Definition at line 1939 of file ruby.h.

◆ rb_eStandardError

RUBY_EXTERN VALUE rb_eStandardError

Definition at line 1936 of file ruby.h.

◆ rb_eStopIteration

RUBY_EXTERN VALUE rb_eStopIteration

Definition at line 1944 of file ruby.h.

◆ rb_eSyntaxError

RUBY_EXTERN VALUE rb_eSyntaxError

Definition at line 1966 of file ruby.h.

◆ rb_eSysStackError

RUBY_EXTERN VALUE rb_eSysStackError

Definition at line 1959 of file ruby.h.

◆ rb_eSystemCallError

RUBY_EXTERN VALUE rb_eSystemCallError

Definition at line 1950 of file ruby.h.

◆ rb_eSystemExit

RUBY_EXTERN VALUE rb_eSystemExit

Definition at line 1937 of file ruby.h.

◆ rb_eThreadError

RUBY_EXTERN VALUE rb_eThreadError

Definition at line 1951 of file ruby.h.

◆ rb_eTypeError

RUBY_EXTERN VALUE rb_eTypeError

Definition at line 1952 of file ruby.h.

◆ rb_eZeroDivError

RUBY_EXTERN VALUE rb_eZeroDivError

Definition at line 1953 of file ruby.h.

◆ rb_mComparable

RUBY_EXTERN VALUE rb_mComparable

Definition at line 1882 of file ruby.h.

◆ rb_mEnumerable

RUBY_EXTERN VALUE rb_mEnumerable

Definition at line 1883 of file ruby.h.

◆ rb_mErrno

RUBY_EXTERN VALUE rb_mErrno

Definition at line 1884 of file ruby.h.

◆ rb_mFileTest

RUBY_EXTERN VALUE rb_mFileTest

Definition at line 1885 of file ruby.h.

◆ rb_mGC

Definition at line 1886 of file ruby.h.

◆ rb_mKernel

RUBY_EXTERN VALUE rb_mKernel

◆ rb_mMath

RUBY_EXTERN VALUE rb_mMath

Definition at line 1887 of file ruby.h.

◆ rb_mProcess

RUBY_EXTERN VALUE rb_mProcess

Definition at line 1888 of file ruby.h.

◆ rb_mWaitReadable

RUBY_EXTERN VALUE rb_mWaitReadable

Definition at line 1889 of file ruby.h.

Referenced by Init_ossl_ssl().

◆ rb_mWaitWritable

RUBY_EXTERN VALUE rb_mWaitWritable

Definition at line 1890 of file ruby.h.

Referenced by Init_ossl_ssl().

◆ rb_stderr

RUBY_EXTERN VALUE rb_stderr

Definition at line 1971 of file ruby.h.

Referenced by rb_f_abort().

◆ rb_stdin

RUBY_EXTERN VALUE rb_stdin

Definition at line 1971 of file ruby.h.

◆ rb_stdout

RUBY_EXTERN VALUE rb_stdout

Definition at line 1971 of file ruby.h.