|
Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
Modules | |
| CRuby Embedding APIs | |
| CRuby interpreter APIs. | |
Macros | |
| #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 | RARRAY_TRANSIENT_FLAG RARRAY_TRANSIENT_FLAG |
| #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 | USHORT2NUM(x) RB_INT2FIX(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_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 | RB_SCAN_ARGS_PASS_CALLED_KEYWORDS 0 |
| #define | RB_SCAN_ARGS_KEYWORDS 1 |
| #define | RB_SCAN_ARGS_EMPTY_KEYWORDS 2 /* Will be removed in 3.0 */ |
| #define | RB_SCAN_ARGS_LAST_HASH_KEYWORDS 3 |
| #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 | RB_BLOCK_CALL_FUNC_STRICT 1 |
| #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_NO_KEYWORDS 0 |
| #define | RB_PASS_KEYWORDS 1 |
| #define | RB_PASS_EMPTY_KEYWORDS 2 /* Will be removed in 3.0 */ |
| #define | RB_PASS_CALLED_KEYWORDS 3 |
| #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_SCRIPT_COMPILED 0x2000 |
| #define | RUBY_EVENT_TRACEPOINT_ALL 0xffff |
| #define | RUBY_EVENT_RESERVED_FOR_INTERNAL_USE 0x030000 |
| #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 0xffff0000 |
| #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 | ISBLANK(c) rb_isblank(c) |
| #define | ISCNTRL(c) rb_iscntrl(c) |
| #define | ISPUNCT(c) rb_ispunct(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_METHOD_FUNC(func) ((VALUE (*)(ANYARGS))(func)) |
Typedefs | |
| typedef int | ruby_glob_func(const char *, VALUE, void *) |
| typedef VALUE | rb_gvar_getter_t(ID id, VALUE *data) |
| typedef void | rb_gvar_setter_t(VALUE val, ID id, VALUE *data) |
| typedef void | rb_gvar_marker_t(VALUE *var) |
| typedef VALUE | rb_block_call_func(RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg)) |
| typedef rb_block_call_func * | rb_block_call_func_t |
| 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 | rb_io_wait_readwrite { RB_IO_WAIT_READABLE, RB_IO_WAIT_WRITABLE } |
| #define ALLOC_N | ( | type, | |
| n | |||
| ) | RB_ALLOC_N(type,n) |
| #define ALLOCA_N | ( | type, | |
| n | |||
| ) | ((type*)alloca(sizeof(type)*(n))) |
| #define ALLOCV_END | ( | v | ) | RB_ALLOCV_END(v) |
| #define ALLOCV_N | ( | type, | |
| v, | |||
| n | |||
| ) | RB_ALLOCV_N(type, v, n) |
| #define CHR2FIX | ( | x | ) | RB_CHR2FIX(x) |
| #define CONST_ID | ( | var, | |
| str | |||
| ) | RUBY_CONST_ID(var, str) |
| #define CONST_ID_CACHE | ( | result, | |
| str | |||
| ) | RUBY_CONST_ID_CACHE(result, str) |
| #define FL_ABLE | ( | x | ) | RB_FL_ABLE(x) |
| #define FL_ALL_RAW | ( | x, | |
| f | |||
| ) | RB_FL_ALL_RAW(x,f) |
| #define FL_ANY_RAW | ( | x, | |
| f | |||
| ) | RB_FL_ANY_RAW(x,f) |
| #define FL_REVERSE | ( | x, | |
| f | |||
| ) | RB_FL_REVERSE(x,f) |
| #define FL_REVERSE_RAW | ( | x, | |
| f | |||
| ) | RB_FL_REVERSE_RAW(x,f) |
| #define FL_SET_RAW | ( | x, | |
| f | |||
| ) | RB_FL_SET_RAW(x,f) |
| #define FL_TEST | ( | x, | |
| f | |||
| ) | RB_FL_TEST(x,f) |
| #define FL_TEST_RAW | ( | x, | |
| f | |||
| ) | RB_FL_TEST_RAW(x,f) |
| #define FL_UNSET | ( | x, | |
| f | |||
| ) | RB_FL_UNSET(x,f) |
| #define FL_UNSET_RAW | ( | x, | |
| f | |||
| ) | RB_FL_UNSET_RAW(x,f) |
| #define InitVM | ( | ext | ) | {void InitVM_##ext(void);InitVM_##ext();} |
| #define INT2NUM | ( | x | ) | RB_INT2NUM(x) |
| #define LONG2NUM | ( | x | ) | RB_LONG2NUM(x) |
| #define MEMCMP | ( | p1, | |
| p2, | |||
| type, | |||
| n | |||
| ) | memcmp((p1), (p2), 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 MEMZERO | ( | p, | |
| type, | |||
| n | |||
| ) | memset((p), 0, sizeof(type)*(size_t)(n)) |
| #define NUM2CHR | ( | x | ) | RB_NUM2CHR(x) |
| #define OBJ_FREEZE | ( | x | ) | RB_OBJ_FREEZE(x) |
| #define OBJ_FREEZE_RAW | ( | x | ) | RB_OBJ_FREEZE_RAW(x) |
| #define OBJ_FROZEN | ( | x | ) | RB_OBJ_FROZEN(x) |
| #define OBJ_FROZEN_RAW | ( | x | ) | RB_OBJ_FROZEN_RAW(x) |
| #define OBJ_INFECT | ( | x, | |
| s | |||
| ) | RB_OBJ_INFECT(x,s) |
| #define OBJ_INFECT_RAW | ( | x, | |
| s | |||
| ) | RB_OBJ_INFECT_RAW(x,s) |
| #define OBJ_PROMOTED | ( | x | ) | RB_OBJ_PROMOTED(x) |
| #define OBJ_PROMOTED_RAW | ( | x | ) | RB_OBJ_PROMOTED_RAW(x) |
| #define OBJ_TAINT | ( | x | ) | RB_OBJ_TAINT(x) |
| #define OBJ_TAINT_RAW | ( | x | ) | RB_OBJ_TAINT_RAW(x) |
| #define OBJ_TAINTABLE | ( | x | ) | RB_OBJ_TAINTABLE(x) |
| #define OBJ_TAINTED | ( | x | ) | RB_OBJ_TAINTED(x) |
| #define OBJ_TAINTED_RAW | ( | x | ) | RB_OBJ_TAINTED_RAW(x) |
| #define OBJ_UNTRUST | ( | x | ) | RB_OBJ_UNTRUST(x) |
| #define OBJ_UNTRUSTED | ( | x | ) | RB_OBJ_UNTRUSTED(x) |
| #define OBJ_WB_UNPROTECT | ( | x | ) | RB_OBJ_WB_UNPROTECT(x) |
| #define RB_ALLOC | ( | type | ) | ((type*)ruby_xmalloc(sizeof(type))) |
| #define RB_ALLOC_N | ( | type, | |
| n | |||
| ) | ((type*)ruby_xmalloc2((size_t)(n),sizeof(type))) |
| #define RB_ALLOCV | ( | v, | |
| n | |||
| ) |
| #define RB_ALLOCV_END | ( | v | ) | rb_free_tmp_buffer(&(v)) |
| #define RB_ALLOCV_N | ( | type, | |
| v, | |||
| n | |||
| ) |
| #define RB_CHR2FIX | ( | x | ) | RB_INT2FIX((long)((x)&0xff)) |
| #define rb_funcall2 rb_funcallv |
| #define rb_funcall3 rb_funcallv_public |
| #define rb_intern_const | ( | str | ) | rb_intern2((str), (long)strlen(str)) |
| #define RB_OBJ_PROMOTED | ( | x | ) | (RB_SPECIAL_CONST_P(x) ? 0 : RB_OBJ_PROMOTED_RAW(x)) |
| #define RB_OBJ_PROMOTED_RAW | ( | x | ) | RB_FL_ALL_RAW(x, RUBY_FL_PROMOTED) |
| #define RB_OBJ_WB_UNPROTECT | ( | x | ) | rb_obj_wb_unprotect(x, __FILE__, __LINE__) |
| #define RB_PASS_EMPTY_KEYWORDS 2 /* Will be removed in 3.0 */ |
| #define RB_REALLOC_N | ( | var, | |
| type, | |||
| n | |||
| ) | ((var)=(type*)ruby_xrealloc2((char*)(var),(size_t)(n),sizeof(type))) |
| #define RB_SCAN_ARGS_EMPTY_KEYWORDS 2 /* Will be removed in 3.0 */ |
| #define RB_ST2FIX | ( | h | ) | RB_LONG2FIX((long)(h)) |
| #define RB_ZALLOC | ( | type | ) | (RB_ZALLOC_N(type,1)) |
| #define RB_ZALLOC_N | ( | type, | |
| n | |||
| ) | ((type*)ruby_xcalloc((size_t)(n),sizeof(type))) |
| #define REALLOC_N | ( | var, | |
| type, | |||
| n | |||
| ) | RB_REALLOC_N(var,type,n) |
| #define RUBY_CONST_ID | ( | var, | |
| str | |||
| ) | do RUBY_CONST_ID_CACHE((var) =, (str)) while (0) |
| #define RUBY_CONST_ID_CACHE | ( | result, | |
| str | |||
| ) |
| #define ruby_debug (*rb_ruby_debug_ptr()) |
| #define RUBY_EVENT_SWITCH 0x040000 /* obsolete name. this macro is for compatibility */ |
| #define RUBY_FL_USER19 (((VALUE)1)<<(RUBY_FL_USHIFT+19)) |
| #define RUBY_FL_USER_N | ( | n | ) | RUBY_FL_USER##n = (1<<(RUBY_FL_USHIFT+n)) |
| #define RUBY_UNTYPED_DATA_FUNC | ( | func | ) | DEPRECATED(func) |
| #define ruby_verbose (*rb_ruby_verbose_ptr()) |
| #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 UINT2NUM | ( | x | ) | RB_UINT2NUM(x) |
| #define ULONG2NUM | ( | x | ) | RB_ULONG2NUM(x) |
| #define USHORT2NUM | ( | x | ) | RB_INT2FIX(x) |
| #define ZALLOC_N | ( | type, | |
| n | |||
| ) | RB_ZALLOC_N(type,n) |
| typedef VALUE rb_block_call_func(RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg)) |
| typedef rb_block_call_func* rb_block_call_func_t |
| 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) |
| enum rb_io_wait_readwrite |
| DEPRECATED_BY | ( | rb_data_object_wrap | , |
| static inline VALUE | rb_data_object_allocVALUE, void *, RUBY_DATA_FUNC, RUBY_DATA_FUNC | ||
| ) |
| DEPRECATED_BY | ( | rb_data_typed_object_wrap | , |
| static inline VALUE | rb_data_typed_object_allocVALUE, void *, const rb_data_type_t * | ||
| ) |
| NORETURN | ( | rb_gvar_setter_t | rb_gvar_readonly_setter | ) |
| NORETURN | ( | void | rb_bug_errnoconst char *, int | ) |
| NORETURN | ( | void | rb_exitint | ) |
| NORETURN | ( | void | rb_insecure_operationvoid | ) |
| NORETURN | ( | void | rb_mod_sys_failVALUE, const char * | ) |
| NORETURN | ( | void | rb_mod_sys_fail_strVALUE, VALUE | ) |
| NORETURN | ( | void | rb_mod_syserr_failVALUE, int, const char * | ) |
| NORETURN | ( | void | rb_mod_syserr_fail_strVALUE, int, VALUE | ) |
| NORETURN | ( | void | rb_readwrite_sys_failenum rb_io_wait_readwrite, const char * | ) |
| NORETURN | ( | void | rb_readwrite_syserr_failenum rb_io_wait_readwrite, int, const char * | ) |
| NORETURN | ( | void | rb_sys_failconst char * | ) |
| NORETURN | ( | void | rb_sys_fail_strVALUE | ) |
| NORETURN | ( | void | rb_syserr_failint, const char * | ) |
| NORETURN | ( | void | rb_syserr_fail_strint, VALUE | ) |
| NORETURN | ( | void | rb_throwconst char *, VALUE | ) |
| NORETURN | ( | void | ruby_malloc_size_overflowsize_t, size_t | ) |
| PRINTF_ARGS | ( | int | ruby_snprintfchar *str, size_t n, char const *fmt,..., |
| 3 | , | ||
| 4 | |||
| ) |
| PRINTF_ARGS | ( | void | rb_compile_warningconst char *, int, const char *,..., |
| 3 | , | ||
| 4 | |||
| ) |
| COLDFUNC PRINTF_ARGS | ( | void | rb_warningconst char *,..., |
| 1 | , | ||
| 2 | |||
| ) |
| void rb_add_event_hook | ( | rb_event_hook_func_t | func, |
| rb_event_flag_t | events, | ||
| VALUE | data | ||
| ) |
Definition at line 157 of file vm_trace.c.
| void* rb_alloc_tmp_buffer | ( | volatile VALUE * | store, |
| long | len | ||
| ) |
Definition at line 10265 of file gc.c.
References cnt, len, rb_alloc_tmp_buffer_with_count(), rb_eArgError, rb_raise(), and roomof.
| void* rb_alloc_tmp_buffer_with_count | ( | volatile VALUE * | store, |
| size_t | len, | ||
| size_t | count | ||
| ) |
Definition at line 1470 of file vm_eval.c.
References argc, iter_method_arg::argc, argv, iter_method_arg::argv, iter_method_arg::kw_splat, iter_method_arg::mid, iter_method_arg::obj, and rb_iterate().
Definition at line 1484 of file vm_eval.c.
References argc, iter_method_arg::argc, argv, iter_method_arg::argv, iter_method_arg::kw_splat, iter_method_arg::mid, iter_method_arg::obj, rb_adjust_argv_kw_splat(), and rb_iterate().
| int rb_block_given_p | ( | void | ) |
Determines if the current method is given a block.
| zero | if not given |
| non-zero | if given |
Definition at line 898 of file eval.c.
References FALSE, GET_EC, rb_vm_frame_block_handler(), TRUE, and VM_BLOCK_HANDLER_NONE.
Referenced by ossl_pem_passwd_cb(), rb_ary_delete(), rb_method_call(), rb_method_call_kw(), and rb_need_block().
Definition at line 306 of file vm_eval.c.
References GET_EC, and PASS_PASSED_BLOCK_HANDLER_EC.
Definition at line 298 of file vm_eval.c.
References GET_EC, and PASS_PASSED_BLOCK_HANDLER_EC.
| VALUE rb_catch | ( | const char * | , |
| rb_block_call_func_t | , | ||
| VALUE | |||
| ) |
Definition at line 2290 of file vm_eval.c.
References rb_catch_obj(), rb_cObject, rb_obj_alloc(), rb_sym_intern_ascii_cstr(), and rb_vm_tag::tag.
| VALUE rb_catch_obj | ( | VALUE | , |
| rb_block_call_func_t | , | ||
| VALUE | |||
| ) |
Definition at line 2332 of file vm_eval.c.
References GET_EC, and rb_vm_tag::state.
Referenced by rb_catch().
Returns ID for the given name if it is interned already, or 0.
| namep | the pointer to the name object |
namep must be a Symbol or a String, or possible to convert with to_str method. namep is a Symbol or a String if non-zero value is returned, or is a String if 0 is returned. Definition at line 919 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().
Definition at line 952 of file symbol.c.
References DYNAMIC_SYM_P, name, STATIC_SYM_P, sym, and SYMBOL_PINNED_P.
Definition at line 280 of file variable.c.
Referenced by rb_clear_method_cache_by_class(), and rb_obj_classname().
| VALUE rb_current_receiver | ( | void | ) |
Definition at line 314 of file vm_eval.c.
References rb_execution_context_struct::cfp, GET_EC, rb_eRuntimeError, rb_raise(), and rb_control_frame_struct::self.
Defines an alias of a method.
| klass | the class which the original method belongs to |
| name1 | a new name for the method |
| name2 | the original name of the method |
Definition at line 1800 of file class.c.
References rb_alias(), and rb_intern.
Defines (a) public accessor method(s) for an attribute.
| klass | the class which the attribute will belongs to |
| name | name of the attribute |
| read | a getter method for the attribute will be defined if read is non-zero. |
| write | a setter method for the attribute will be defined if write is non-zero. |
Defines a top-level class.
| name | name of the class |
| super | a class from which the new class will derive. |
| TypeError | if the constant name name is already taken but the constant is not a Class. |
| TypeError | if the class is already defined but the class can not be reopened because its superclass is not super. |
| ArgumentError | if the super is NULL. |
Definition at line 649 of file class.c.
References id, name, PRIsVALUE, rb_class_inherited(), rb_class_real(), rb_cObject, rb_const_defined(), rb_const_get(), rb_const_set(), rb_define_class_id(), rb_eArgError, rb_eTypeError, rb_intern, rb_obj_class(), rb_raise(), RB_TYPE_P, rb_vm_add_root_module(), RCLASS_SUPER, and T_CLASS.
Referenced by Init_Array(), Init_Binding(), Init_Dir(), Init_Encoding(), Init_Exception(), Init_File(), Init_IO(), Init_monitor(), Init_Proc(), Init_Regexp(), Init_socket(), Init_String(), Init_stringio(), Init_VM(), Init_win32ole_error(), Init_win32ole_method(), Init_win32ole_param(), Init_win32ole_record(), Init_win32ole_type(), Init_win32ole_typelib(), Init_win32ole_variable(), Init_win32ole_variant(), InitVM_Struct(), rsock_init_basicsocket(), rsock_init_ipsocket(), rsock_init_socket_init(), rsock_init_sockssocket(), rsock_init_tcpserver(), rsock_init_tcpsocket(), rsock_init_udpsocket(), rsock_init_unixserver(), and rsock_init_unixsocket().
Defines a class under the namespace of outer.
| outer | a class which contains the new class. |
| name | name of the new class |
| super | a class from which the new class will derive. NULL means Object class. |
| TypeError | if the constant name name is already taken but the constant is not a Class. |
| TypeError | if the class is already defined but the class can not be reopened because its superclass is not super. |
Definition at line 698 of file class.c.
References name, rb_define_class_id_under(), and rb_intern.
Referenced by exp2(), Init_cparse(), Init_fiddle(), Init_fiddle_closure(), Init_fiddle_function(), Init_fiddle_handle(), Init_ISeq(), Init_ossl_asn1(), Init_ossl_bn(), Init_ossl_cipher(), Init_ossl_config(), Init_ossl_dh(), Init_ossl_digest(), Init_ossl_dsa(), Init_ossl_ec(), Init_ossl_engine(), Init_ossl_hmac(), Init_ossl_kdf(), Init_ossl_ns_spki(), Init_ossl_ocsp(), Init_ossl_pkcs12(), Init_ossl_pkcs7(), Init_ossl_pkey(), Init_ossl_rand(), Init_ossl_rsa(), Init_ossl_ssl(), Init_ossl_ssl_session(), Init_ossl_x509attr(), Init_ossl_x509cert(), Init_ossl_x509crl(), Init_ossl_x509ext(), Init_ossl_x509req(), Init_ossl_x509revoked(), Init_ossl_x509store(), Init_psych_emitter(), Init_psych_parser(), Init_psych_to_ruby(), Init_psych_yaml_tree(), rsock_init_ancdata(), rsock_init_sockifaddr(), and rsock_init_sockopt().
Definition at line 2891 of file variable.c.
References name, rb_const_set(), rb_gc_register_mark_object(), rb_intern, rb_is_const_id(), and rb_warn().
Referenced by exp2(), Init_Bignum(), Init_etc(), Init_fcntl(), Init_fiddle(), Init_fiddle_function(), Init_GC(), Init_limits(), Init_openssl(), Init_ossl_config(), Init_sizeof(), Init_stringio(), Init_win32ole_variant_m(), rb_define_global_const(), and rb_file_const().
Definition at line 2903 of file variable.c.
References name, rb_cObject, and rb_define_const().
Referenced by Init_ruby_description().
Defines a global function.
| name | name of the function |
| func | the method body |
| argc | the number of parameters, or -1 or -2. see Defining methods. |
Definition at line 1787 of file class.c.
References argc, name, rb_define_module_function(), and rb_mKernel.
Referenced by Init_jump(), Init_signal(), Init_vm_eval(), Init_vm_trace(), and InitVM_Random().
| void rb_define_hooked_variable | ( | const char * | , |
| VALUE * | , | ||
| rb_gvar_getter_t * | , | ||
| rb_gvar_setter_t * | |||
| ) |
Definition at line 480 of file variable.c.
References Qnil.
Referenced by rb_define_readonly_variable(), rb_define_variable(), and rb_define_virtual_variable().
Definition at line 1551 of file class.c.
References argc, METHOD_VISI_PUBLIC, name, rb_add_method_cfunc(), and rb_intern.
Referenced by Init_Bignum(), Init_Binding(), Init_Comparable(), Init_Enumerable(), Init_eval_method(), Init_ISeq(), Init_nonblock(), Init_socket(), Init_wait(), Init_win32ole_method(), Init_win32ole_variable(), InitVM_console(), InitVM_Enumerator(), rb_define_singleton_method(), rsock_init_ancdata(), rsock_init_ipsocket(), rsock_init_sockifaddr(), rsock_init_sockopt(), rsock_init_sockssocket(), rsock_init_tcpserver(), rsock_init_udpsocket(), rsock_init_unixserver(), rsock_init_unixsocket(), and ruby_Init_Fiber_as_Coroutine().
Definition at line 772 of file class.c.
References id, name, PRIsVALUE, rb_cObject, rb_const_defined(), rb_const_get(), rb_const_set(), rb_define_module_id(), rb_eTypeError, rb_gc_register_mark_object(), rb_intern, rb_obj_class(), rb_raise(), RB_TYPE_P, rb_vm_add_root_module(), and T_MODULE.
Referenced by exp2(), Init_Comparable(), Init_coverage(), Init_cparse(), Init_Enumerable(), Init_etc(), Init_fcntl(), Init_fiddle(), Init_fiddle_closure(), Init_File(), Init_GC(), Init_limits(), Init_marshal(), Init_md5(), Init_nkf(), Init_object_tracing(), Init_objspace(), Init_objspace_dump(), Init_openssl(), Init_ossl_asn1(), Init_ossl_bn(), Init_ossl_cipher(), Init_ossl_config(), Init_ossl_digest(), Init_ossl_engine(), Init_ossl_hmac(), Init_ossl_kdf(), Init_ossl_ns_spki(), Init_ossl_ocsp(), Init_ossl_pkcs12(), Init_ossl_pkcs7(), Init_ossl_pkey(), Init_ossl_rand(), Init_ossl_ssl(), Init_ossl_ssl_session(), Init_ossl_x509(), Init_ossl_x509attr(), Init_ossl_x509cert(), Init_ossl_x509crl(), Init_ossl_x509ext(), Init_ossl_x509req(), Init_ossl_x509revoked(), Init_ossl_x509store(), Init_psych(), Init_psych_emitter(), Init_psych_parser(), Init_psych_to_ruby(), Init_psych_yaml_tree(), Init_rmd160(), Init_sha1(), Init_signal(), Init_sizeof(), Init_zlib(), and InitVM_resolv().
| void rb_define_module_function | ( | VALUE | module, |
| const char * | name, | ||
| VALUE(*)(ANYARGS) | func, | ||
| int | argc | ||
| ) |
Defines a module function for module.
| module | an module or a class. |
| name | name of the function |
| func | the method body |
| argc | the number of parameters, or -1 or -2. see Defining methods. |
Definition at line 1771 of file class.c.
References argc, name, rb_define_private_method(), and rb_define_singleton_method().
Referenced by exp2(), Init_coverage(), Init_fiddle(), Init_nkf(), Init_object_tracing(), Init_objspace(), Init_objspace_dump(), Init_openssl(), Init_ossl_pkey(), Init_ossl_rand(), and rb_define_global_function().
Definition at line 797 of file class.c.
References name, rb_define_module_id_under(), and rb_intern.
Referenced by Init_GC(), Init_ossl_dh(), Init_ossl_dsa(), Init_ossl_ec(), Init_ossl_ns_spki(), Init_ossl_ocsp(), Init_ossl_pkey(), Init_ossl_rand(), Init_ossl_rsa(), Init_ossl_ssl(), Init_ossl_ssl_session(), Init_ossl_x509(), Init_ossl_x509attr(), Init_ossl_x509cert(), Init_ossl_x509crl(), Init_ossl_x509ext(), Init_ossl_x509req(), Init_ossl_x509revoked(), Init_ossl_x509store(), Init_psych_to_ruby(), Init_psych_yaml_tree(), Init_win32ole_variant_m(), and InitVM_resolv().
Definition at line 505 of file variable.c.
References name, rb_define_hooked_variable(), and rb_gvar_readonly_setter().
Definition at line 499 of file variable.c.
References name, and rb_define_hooked_variable().
| void rb_define_virtual_variable | ( | const char * | , |
| rb_gvar_getter_t * | , | ||
| rb_gvar_setter_t * | |||
| ) |
Definition at line 511 of file variable.c.
References rb_global_variable::getter, name, rb_define_hooked_variable(), rb_gvar_readonly_setter(), rb_gvar_val_getter(), and rb_global_variable::setter.
| int rb_empty_keyword_given_p | ( | void | ) |
Definition at line 919 of file eval.c.
References GET_EC, and rb_vm_cframe_empty_keyword_p().
Referenced by rb_adjust_argv_kw_splat().
An equivalent to ensure clause.
Equivalent to begin .. ensure .. end.
Calls the function b_proc with data1 as the argument, then calls e_proc with data2 when execution terminated.
Qnil if otherwise. Definition at line 1115 of file eval.c.
Referenced by rb_gvar_set(), rb_mutex_sleep(), rb_mutex_synchronize(), rb_str_locktmp_ensure(), rsock_init_inetsock(), and rsock_make_hostent().
Same as Object#===, case equality.
Definition at line 124 of file object.c.
Referenced by rb_ary_assoc(), rb_ary_delete(), rb_ary_includes(), rb_ary_rassoc(), and rb_str_equal().
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.
| str | Ruby code to evaluate. |
| Exception | Raises an exception on error. |
Definition at line 1715 of file vm_eval.c.
References ruby_eval_string_from_file(), and str.
Evaluates the given string in an isolated binding.
FILE will be "(eval)", and LINE starts from 1 in the evaluation.
| str | Ruby code to evaluate. |
| state | Being set to zero if succeeded. Nonzero if an error occurred. |
Definition at line 1737 of file vm_eval.c.
References rb_protect().
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.
| str | Ruby code to evaluate. |
| state | Being set to zero if succeeded. Nonzero if an error occurred. |
Definition at line 1769 of file vm_eval.c.
References GET_THREAD, eval_string_wrap_arg::klass, rb_extend_object(), rb_module_new(), rb_obj_clone(), rb_protect(), rb_vm_top_self(), str, eval_string_wrap_arg::str, rb_thread_struct::top_self, eval_string_wrap_arg::top_self, and rb_thread_struct::top_wrapper.
Extend the object with the module.
Same as Module#extend_object.
Definition at line 1701 of file eval.c.
References rb_include_module(), and rb_singleton_class().
Referenced by rb_eval_string_wrap(), rb_mod_syserr_fail(), and rb_mod_syserr_fail_str().
| void void rb_free_tmp_buffer | ( | volatile VALUE * | store | ) |
Definition at line 10277 of file gc.c.
References ATOMIC_PTR_EXCHANGE, ATOMIC_VALUE_EXCHANGE, rb_imemo_tmpbuf_struct::cnt, ptr, rb_imemo_tmpbuf_struct::ptr, and ruby_xfree().
Referenced by rb_proc_call_kw(), and rb_vm_call_kw().
| void rb_freeze_singleton_class | ( | VALUE | klass | ) |
Definition at line 1674 of file class.c.
References FL_FREEZE, FL_SINGLETON, FL_TEST, OBJ_FREEZE_RAW, RBASIC, RBASIC_CLASS, and RCLASS_ORIGIN.
Calls a method.
| recv | receiver of the method |
| mid | an ID that represents the name of the method |
| n | the number of arguments |
| ... | arbitrary number of method arguments |
Definition at line 922 of file vm_eval.c.
References ALLOCA_N, argv, and va_init_list.
Referenced by default_inspect(), DupConfigPtr(), generic_to_value(), ossl_time_split(), ossl_to_der(), rb_class_inherited(), rb_cmpint(), rb_int_odd_p(), rb_io_flush_raw(), rb_obj_as_string(), and rb_obj_init_dup_clone().
Definition at line 1032 of file vm_eval.c.
References PASS_PASSED_BLOCK_HANDLER.
Definition at line 1039 of file vm_eval.c.
References argc, argv, PASS_PASSED_BLOCK_HANDLER, and rb_adjust_argv_kw_splat().
Calls a method.
| recv | receiver of the method |
| mid | an ID that represents the name of the method |
| argc | the number of arguments |
| argv | pointer to an array of method arguments |
Definition at line 956 of file vm_eval.c.
Referenced by fun2(), GetPrivPKeyPtr(), ossl_obj2bio(), rb_const_missing(), rb_inspect(), rb_io_write(), and rb_numeric_quo().
Definition at line 962 of file vm_eval.c.
References argc, argv, rescue_funcall_args::kw_splat, and rb_adjust_argv_kw_splat().
Referenced by rb_eval_cmd_kw(), rb_obj_call_init(), and rb_obj_call_init_kw().
Definition at line 986 of file vm_eval.c.
References argc, argv, rescue_funcall_args::kw_splat, and rb_adjust_argv_kw_splat().
| void rb_gc_register_address | ( | VALUE * | ) |
Definition at line 7080 of file gc.c.
References ALLOC, global_list, gc_list::next, rb_objspace, and gc_list::varptr.
Referenced by rb_global_variable(), and ruby_init_loadpath().
| void rb_gc_register_mark_object | ( | VALUE | ) |
Definition at line 7066 of file gc.c.
References GET_VM, MARK_OBJECT_ARY_BUCKET_SIZE, Qnil, RARRAY_LEN, rb_ary_last(), rb_ary_push(), and rb_ary_tmp_new().
Referenced by Init_sym(), rb_define_class_id_under(), rb_define_const(), rb_define_module(), rb_define_module_id_under(), rb_iseq_defined_string(), rb_sym_to_proc(), and rb_vm_register_special_exception_str().
| void rb_gc_unregister_address | ( | VALUE * | ) |
Definition at line 7092 of file gc.c.
References global_list, gc_list::next, rb_objspace, gc_list::varptr, and xfree.
Definition at line 6820 of file gc.c.
References is_incremental_marking, rb_bug(), rb_objspace, RGENGC_CHECK_MODE, and SPECIAL_CONST_P.
Definition at line 1886 of file class.c.
References extract_kwarg, ID2SYM, key, NIL_P, Qnil, rb_ary_push(), rb_ary_tmp_new(), and st_data_t.
Referenced by rb_opts_exception_p().
Definition at line 2544 of file dir.c.
References glob_args::enc, glob_args::func, rb_ascii8bit_encoding(), and glob_args::value.
| void rb_global_variable | ( | VALUE * | ) |
Definition at line 7115 of file gc.c.
References rb_gc_register_address().
Referenced by Init_openssl().
Definition at line 680 of file variable.c.
Definition at line 671 of file variable.c.
References rb_global_entry().
Definition at line 801 of file symbol.c.
References rb_id2str(), RSTRING_PTR, and str.
Referenced by rb_undef(), rsock_inspect_sockaddr(), and ruby_debug_print_id().
Definition at line 795 of file symbol.c.
Referenced by rb_id2name(), rb_id_attrset(), and rb_sym2str().
Definition at line 869 of file class.c.
Referenced by Init_Array(), Init_Dir(), Init_stringio(), InitVM_Struct(), and rb_extend_object().
Definition at line 660 of file symbol.c.
References name, rb_intern2(), and strlen().
Definition at line 653 of file symbol.c.
References len, name, rb_intern3(), and rb_usascii_encoding().
Referenced by Init_load(), and rb_intern().
Definition at line 1444 of file vm_eval.c.
Referenced by rb_block_call(), rb_block_call_kw(), and rb_check_block_call().
Definition at line 3305 of file variable.c.
References name, Qnil, rb_check_id_cstr(), rb_ivar_get(), rb_usascii_encoding(), rb_warning(), RTEST, ruby_verbose, and strlen().
Definition at line 3318 of file variable.c.
References name, rb_intern, and rb_ivar_set().
| int rb_keyword_given_p | ( | void | ) |
Definition at line 911 of file eval.c.
References GET_EC, and rb_vm_cframe_keyword_p().
| void rb_need_block | ( | void | ) |
Declares that the current method needs a block.
Raises a LocalJumpError if not given a block.
Definition at line 932 of file eval.c.
References Qnil, rb_block_given_p(), and rb_vm_localjump_error().
Definition at line 289 of file variable.c.
References CLASS_OF, and rb_class2name().
Referenced by rb_Hash().
Does nothing.
This method is deprecated and will be removed in Ruby 3.2.
Definition at line 1068 of file object.c.
References rb_warning().
| void rb_p | ( | VALUE | ) |
Definition at line 7798 of file io.c.
References CLASS_OF, rb_default_rs, rb_inspect(), rb_method_basic_definition_p(), rb_obj_as_string(), rb_stdout, RB_TYPE_P, and T_FILE.
| int rb_remove_event_hook | ( | rb_event_hook_func_t | func | ) |
Definition at line 262 of file vm_trace.c.
Definition at line 1117 of file load.c.
References rb_require_string(), and rb_str_new_cstr().
Referenced by Init_generator(), Init_ossl_digest(), and Init_parser().
An equivalent of rescue clause.
Equivalent to begin .. rescue .. end.
It is same as
Definition at line 1047 of file eval.c.
References rb_eStandardError, and rb_rescue2().
| VALUE rb_rescue2 | ( | VALUE(*)(VALUE) | b_proc, |
| VALUE | data1, | ||
| VALUE(*)(VALUE, VALUE) | r_proc, | ||
| VALUE | data2, | ||
| ... | |||
| ) |
An equivalent of rescue clause.
Equivalent to begin .. rescue err_type .. end
| [in] | b_proc | a function which potentially raises an exception. |
| [in] | data1 | the argument of b_proc |
| [in] | r_proc | a function which rescues an exception in b_proc. |
| [in] | data2 | the first argument of r_proc |
| [in] | ... | 1 or more exception classes. Must be terminated by (VALUE)0. |
First it calls the function b_proc, with data1 as the argument. When b_proc raises an exception, it calls r_proc with data2 and the exception object if the exception is a kind of one of the given exception classes.
Definition at line 962 of file eval.c.
References rb_vrescue2().
Referenced by rb_rescue().
Definition at line 2159 of file class.c.
References rb_scan_args_t::tmp_buffer.
Referenced by rb_f_eval(), rb_f_trace_var(), rb_f_untrace_var(), rb_math_log(), rsock_bsock_send(), and rsock_s_recvfrom().
Definition at line 2180 of file class.c.
References rb_scan_args_t::tmp_buffer, and rb_scan_args_t::vargs.
Definition at line 784 of file symbol.c.
References DYNAMIC_SYM_P, rb_id2str(), RSYMBOL, STATIC_SYM2ID, and sym.
Definition at line 2769 of file error.c.
References Qnil, rb_str_new2, and rb_syserr_new_str().
Referenced by rb_mod_syserr_fail(), and rb_syserr_fail().
Definition at line 2777 of file error.c.
References rb_class_new_instance().
Referenced by rb_mod_syserr_fail_str(), rb_syserr_fail_str(), and rb_syserr_new().
Definition at line 1575 of file class.c.
References METHOD_VISI_UNDEF, name, rb_add_method(), rb_intern, and VM_METHOD_TYPE_UNDEF.
Referenced by Init_Binding(), Init_VM(), and rsock_init_basicsocket().
| VALUE rb_vrescue2 | ( | VALUE(*)(VALUE) | b_proc, |
| VALUE | data1, | ||
| VALUE(*)(VALUE, VALUE) | r_proc, | ||
| VALUE | data2, | ||
| va_list | args | ||
| ) |
An equivalent of rescue clause.
Equivalent to begin .. rescue err_type .. end
| [in] | b_proc | a function which potentially raises an exception. |
| [in] | data1 | the argument of b_proc |
| [in] | r_proc | a function which rescues an exception in b_proc. |
| [in] | data2 | the first argument of r_proc |
| [in] | ... | 1 or more exception classes. Must be terminated by (VALUE)0. |
First it calls the function b_proc, with data1 as the argument. When b_proc raises an exception, it calls r_proc with data2 and the exception object if the exception is a kind of one of the given exception classes.
| [in] | args | exception classes, terminated by 0. |
Definition at line 977 of file eval.c.
References rb_execution_context_struct::cfp, and GET_EC.
Referenced by ruby::backward::cxxanyargs::rb_rescue2(), and rb_rescue2().
Definition at line 1237 of file vm_eval.c.
References Qundef.
Referenced by ossl_generate_cb_2(), rb_ary_delete(), and ruby_float_step().
| VALUE rb_yield_block | ( | RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg) | ) |
Definition at line 1283 of file vm_eval.c.
References NIL_P, rb_check_array_type(), rb_eArgError, and rb_raise().
Definition at line 1296 of file vm_eval.c.
References NIL_P, rb_check_array_type(), rb_eArgError, and rb_raise().
| int ruby_brace_glob | ( | const char * | , |
| int | , | ||
| ruby_glob_func * | , | ||
| VALUE | |||
| ) |
Definition at line 2659 of file dir.c.
References brace_args::flags, rb_ascii8bit_encoding(), ruby_brace_glob_with_enc(), and str.
| int ruby_glob | ( | const char * | , |
| int | , | ||
| ruby_glob_func * | , | ||
| VALUE | |||
| ) |
Definition at line 2519 of file dir.c.
References ruby_glob_funcs_t::error, push_glob0_args::funcs, ruby_glob_funcs_t::match, and NULL.
| unsigned long ruby_strtoul | ( | const char * | str, |
| char ** | endptr, | ||
| int | base | ||
| ) |
| int ruby_vsnprintf | ( | char * | str, |
| size_t | n, | ||
| char const * | fmt, | ||
| va_list | ap | ||
| ) |
| const VALUE RArray::ary[RARRAY_EMBED_LEN_MAX] |
| const { ... } ::ary[RARRAY_EMBED_LEN_MAX] |
| VALUE RObject::ary[ROBJECT_EMBED_LEN_MAX] |
| VALUE { ... } ::ary[ROBJECT_EMBED_LEN_MAX] |
| char RString::ary[RSTRING_EMBED_LEN_MAX+1] |
Definition at line 999 of file ruby.h.
Referenced by rb_struct_define(), rb_struct_define_under(), and rb_sym_all_symbols().
| char { ... } ::ary[RSTRING_EMBED_LEN_MAX+1] |
| union { ... } RObject::as |
| union { ... } RString::as |
Referenced by rb_str_tmp_frozen_release().
| union { ... } RArray::as |
| union { ... } RString::aux |
| union { ... } ::aux |
| union { ... } RArray::aux |
| union { ... } ::aux |
| long RString::capa |
Definition at line 995 of file ruby.h.
Referenced by rb_str_change_terminator_length(), and rb_str_set_len().
| struct { ... } rb_data_type_struct::function |
| struct { ... } ::heap |
| struct { ... } RObject::heap |
| struct { ... } RString::heap |
| struct { ... } ::heap |
| struct { ... } ::heap |
| struct { ... } RArray::heap |
| const rb_data_type_t* rb_data_type_struct::parent |
Definition at line 1158 of file ruby.h.
Referenced by rb_typeddata_inherited_p().
| struct re_pattern_buffer* RRegexp::ptr |
| RUBY_EXTERN VALUE rb_cArray |
| RUBY_EXTERN VALUE rb_cBasicObject |
Definition at line 2009 of file ruby.h.
Referenced by Init_class_hierarchy(), and rb_clear_method_cache_by_class().
| RUBY_EXTERN VALUE rb_cBinding |
| RUBY_EXTERN VALUE rb_cClass |
Definition at line 2016 of file ruby.h.
Referenced by rb_check_inheritable().
| RUBY_EXTERN VALUE rb_cComplex |
| RUBY_EXTERN VALUE rb_cCont |
| RUBY_EXTERN VALUE rb_cData |
Definition at line 2018 of file ruby.h.
Referenced by Init_stringio(), and rsock_init_sockifaddr().
| RUBY_EXTERN VALUE rb_cDir |
| RUBY_EXTERN VALUE rb_cEncoding |
| RUBY_EXTERN VALUE rb_cEnumerator |
| RUBY_EXTERN VALUE rb_cFalseClass |
| RUBY_EXTERN VALUE rb_cFile |
| RUBY_EXTERN VALUE rb_cFloat |
| RUBY_EXTERN VALUE rb_cHash |
| RUBY_EXTERN VALUE rb_cInteger |
Definition at line 2031 of file ruby.h.
Referenced by Init_Bignum().
| RUBY_EXTERN VALUE rb_cIO |
Definition at line 2030 of file ruby.h.
Referenced by Init_File(), Init_nonblock(), Init_ossl_ssl(), Init_wait(), InitVM_console(), and rsock_init_basicsocket().
| 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 |
Definition at line 2037 of file ruby.h.
Referenced by rb_check_to_float(), and rb_node_case_when_optimizable_literal().
| RUBY_EXTERN VALUE rb_cObject |
Definition at line 2010 of file ruby.h.
Referenced by Init_Array(), Init_Bignum(), Init_Binding(), Init_cparse(), Init_Dir(), Init_Encoding(), Init_Exception(), Init_fiddle_closure(), Init_fiddle_function(), Init_fiddle_handle(), Init_ISeq(), Init_monitor(), Init_objspace(), Init_ossl_bn(), Init_ossl_cipher(), Init_ossl_config(), Init_ossl_dh(), Init_ossl_dsa(), Init_ossl_ec(), Init_ossl_engine(), Init_ossl_hmac(), Init_ossl_ns_spki(), Init_ossl_ocsp(), Init_ossl_pkcs12(), Init_ossl_pkcs7(), Init_ossl_pkey(), Init_ossl_rsa(), Init_ossl_ssl_session(), Init_ossl_x509attr(), Init_ossl_x509cert(), Init_ossl_x509crl(), Init_ossl_x509ext(), Init_ossl_x509req(), Init_ossl_x509revoked(), Init_Proc(), Init_psych_emitter(), Init_psych_parser(), Init_psych_to_ruby(), Init_psych_yaml_tree(), Init_String(), Init_top_self(), Init_VM(), Init_win32ole_method(), Init_win32ole_param(), Init_win32ole_record(), Init_win32ole_type(), Init_win32ole_typelib(), Init_win32ole_variable(), Init_win32ole_variant(), InitVM_Struct(), rb_catch(), rb_class_inherited(), rb_clear_method_cache_by_class(), rb_const_warn_if_deprecated(), rb_define_class(), rb_define_class_id(), rb_define_global_const(), rb_define_module(), rb_mod_const_of(), rb_path_to_class(), rb_uninterruptible(), rsock_init_ancdata(), and rsock_init_sockopt().
| RUBY_EXTERN VALUE rb_cProc |
| RUBY_EXTERN VALUE rb_cRandom |
| RUBY_EXTERN VALUE rb_cRange |
| RUBY_EXTERN VALUE rb_cRational |
| RUBY_EXTERN VALUE rb_cRegexp |
| RUBY_EXTERN VALUE rb_cStat |
| RUBY_EXTERN VALUE rb_cString |
Definition at line 2044 of file ruby.h.
Referenced by rb_hash_key_str().
| RUBY_EXTERN VALUE rb_cStruct |
| RUBY_EXTERN VALUE rb_cSymbol |
| RUBY_EXTERN VALUE rb_cThread |
| RUBY_EXTERN VALUE rb_cTime |
Definition at line 2048 of file ruby.h.
Referenced by asn1time_to_time(), and ole_val2variant().
| RUBY_EXTERN VALUE rb_cTrueClass |
| RUBY_EXTERN VALUE rb_cUnboundMethod |
| RUBY_EXTERN VALUE rb_eArgError |
| RUBY_EXTERN VALUE rb_eEncCompatError |
| RUBY_EXTERN VALUE rb_eEncodingError |
| RUBY_EXTERN VALUE rb_eEOFError |
| RUBY_EXTERN VALUE rb_eException |
| RUBY_EXTERN VALUE rb_eFatal |
| RUBY_EXTERN VALUE rb_eFloatDomainError |
| RUBY_EXTERN VALUE rb_eFrozenError |
| RUBY_EXTERN VALUE rb_eIndexError |
| RUBY_EXTERN VALUE rb_eInterrupt |
| RUBY_EXTERN VALUE rb_eIOError |
| RUBY_EXTERN VALUE rb_eKeyError |
| RUBY_EXTERN VALUE rb_eLoadError |
| RUBY_EXTERN VALUE rb_eLocalJumpError |
| RUBY_EXTERN VALUE rb_eMathDomainError |
| RUBY_EXTERN VALUE rb_eNameError |
| RUBY_EXTERN VALUE rb_eNoMatchingPatternError |
| RUBY_EXTERN VALUE rb_eNoMemError |
| RUBY_EXTERN VALUE rb_eNoMethodError |
| RUBY_EXTERN VALUE rb_eNotImpError |
| RUBY_EXTERN VALUE rb_eRangeError |
| RUBY_EXTERN VALUE rb_eRegexpError |
| RUBY_EXTERN VALUE rb_eRuntimeError |
| RUBY_EXTERN VALUE rb_eScriptError |
| RUBY_EXTERN VALUE rb_eSecurityError |
| RUBY_EXTERN VALUE rb_eSignal |
| RUBY_EXTERN VALUE rb_eStandardError |
| RUBY_EXTERN VALUE rb_eStopIteration |
| RUBY_EXTERN VALUE rb_eSyntaxError |
| RUBY_EXTERN VALUE rb_eSysStackError |
| RUBY_EXTERN VALUE rb_eSystemCallError |
| RUBY_EXTERN VALUE rb_eSystemExit |
| RUBY_EXTERN VALUE rb_eThreadError |
| RUBY_EXTERN VALUE rb_eTypeError |
| RUBY_EXTERN VALUE rb_eZeroDivError |
| rb_gvar_getter_t rb_gvar_undef_getter |
| rb_gvar_marker_t rb_gvar_undef_marker |
| rb_gvar_setter_t rb_gvar_undef_setter |
| rb_gvar_getter_t rb_gvar_val_getter |
| rb_gvar_marker_t rb_gvar_val_marker |
| rb_gvar_setter_t rb_gvar_val_setter |
| rb_gvar_getter_t rb_gvar_var_getter |
| rb_gvar_marker_t rb_gvar_var_marker |
| rb_gvar_setter_t rb_gvar_var_setter |
| 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_mKernel |
Definition at line 1998 of file ruby.h.
Referenced by Init_eval_method(), InitVM_Enumerator(), rb_clear_method_cache_by_class(), and rb_define_global_function().
| RUBY_EXTERN VALUE rb_mMath |
| RUBY_EXTERN VALUE rb_mProcess |
| RUBY_EXTERN VALUE rb_mWaitReadable |
Definition at line 2006 of file ruby.h.
Referenced by Init_ossl_ssl().
| RUBY_EXTERN VALUE rb_mWaitWritable |
Definition at line 2007 of file ruby.h.
Referenced by Init_ossl_ssl().
| RUBY_EXTERN VALUE rb_stderr |
Definition at line 2090 of file ruby.h.
Referenced by rb_f_abort().
| RUBY_EXTERN VALUE rb_stdin |
| RUBY_EXTERN VALUE rb_stdout |
| VALUE RString::shared |
Definition at line 996 of file ruby.h.
Referenced by rb_str_tmp_frozen_release().
| const rb_data_type_t* RTypedData::type |