Ruby  2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)
intern.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  intern.h -
4 
5  $Author$
6  created at: Thu Jun 10 14:22:17 JST 1993
7 
8  Copyright (C) 1993-2007 Yukihiro Matsumoto
9  Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
10  Copyright (C) 2000 Information-technology Promotion Agency, Japan
11 
12 **********************************************************************/
13 
14 #ifndef RUBY_INTERN_H
15 #define RUBY_INTERN_H 1
16 
17 #if defined(__cplusplus)
18 extern "C" {
19 #if 0
20 } /* satisfy cc-mode */
21 #endif
22 #endif
23 
24 #if !defined(__has_attribute)
25 #define __has_attribute(x) 0
26 #endif
27 
28 #include "ruby/defines.h"
29 #ifdef RUBY_EXTCONF_H
30 #include RUBY_EXTCONF_H
31 #endif
32 
33 #ifdef HAVE_STDARG_PROTOTYPES
34 # include <stdarg.h>
35 #else
36 # include <varargs.h>
37 #endif
38 
39 #include "ruby/st.h"
40 
41 /* On mswin, MJIT header transformation can't be used since cl.exe can't output
42  preprocessed output preserving macros. So this `MJIT_STATIC` is needed
43  to force non-static function to static on MJIT header to avoid symbol conflict. */
44 #ifdef MJIT_HEADER
45 # define MJIT_STATIC static
46 #else
47 # define MJIT_STATIC
48 #endif
49 
51 
52 /*
53  * Functions and variables that are used by more than one source file of
54  * the kernel.
55  */
56 
57 #define UNLIMITED_ARGUMENTS (-1)
58 
59 /* array.c */
60 void rb_mem_clear(VALUE*, long);
63 VALUE rb_ary_new(void);
64 VALUE rb_ary_new_capa(long capa);
65 VALUE rb_ary_new_from_args(long n, ...);
66 VALUE rb_ary_new_from_values(long n, const VALUE *elts);
67 VALUE rb_ary_tmp_new(long);
68 void rb_ary_free(VALUE);
69 void rb_ary_modify(VALUE);
72 VALUE rb_ary_aref(int, const VALUE*, VALUE);
73 VALUE rb_ary_subseq(VALUE, long, long);
74 void rb_ary_store(VALUE, long, VALUE);
79 VALUE rb_ary_cat(VALUE, const VALUE *, long);
84 VALUE rb_ary_entry(VALUE, long);
100 VALUE rb_ary_replace(VALUE copy, VALUE orig);
101 VALUE rb_get_values_at(VALUE, long, int, const VALUE*, VALUE(*)(VALUE,long));
102 VALUE rb_ary_resize(VALUE ary, long len);
103 #define rb_ary_new2 rb_ary_new_capa
104 #define rb_ary_new3 rb_ary_new_from_args
105 #define rb_ary_new4 rb_ary_new_from_values
106 /* bignum.c */
107 VALUE rb_big_new(size_t, int);
108 int rb_bigzero_p(VALUE x);
110 void rb_big_2comp(VALUE);
112 void rb_big_resize(VALUE big, size_t len);
113 VALUE rb_cstr_to_inum(const char*, int, int);
114 VALUE rb_str_to_inum(VALUE, int, int);
115 VALUE rb_cstr2inum(const char*, int);
116 VALUE rb_str2inum(VALUE, int);
117 VALUE rb_big2str(VALUE, int);
118 long rb_big2long(VALUE);
119 #define rb_big2int(x) rb_big2long(x)
120 unsigned long rb_big2ulong(VALUE);
121 #define rb_big2uint(x) rb_big2ulong(x)
122 #if HAVE_LONG_LONG
124 unsigned LONG_LONG rb_big2ull(VALUE);
125 #endif /* HAVE_LONG_LONG */
126 void rb_big_pack(VALUE val, unsigned long *buf, long num_longs);
127 VALUE rb_big_unpack(unsigned long *buf, long num_longs);
128 int rb_uv_to_utf8(char[6],unsigned long);
129 VALUE rb_dbl2big(double);
130 double rb_big2dbl(VALUE);
147 
148 /* For rb_integer_pack and rb_integer_unpack: */
149 /* "MS" in MSWORD and MSBYTE means "most significant" */
150 /* "LS" in LSWORD and LSBYTE means "least significant" */
151 #define INTEGER_PACK_MSWORD_FIRST 0x01
152 #define INTEGER_PACK_LSWORD_FIRST 0x02
153 #define INTEGER_PACK_MSBYTE_FIRST 0x10
154 #define INTEGER_PACK_LSBYTE_FIRST 0x20
155 #define INTEGER_PACK_NATIVE_BYTE_ORDER 0x40
156 #define INTEGER_PACK_2COMP 0x80
157 #define INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION 0x400
158 /* For rb_integer_unpack: */
159 #define INTEGER_PACK_FORCE_BIGNUM 0x100
160 #define INTEGER_PACK_NEGATIVE 0x200
161 /* Combinations: */
162 #define INTEGER_PACK_LITTLE_ENDIAN \
163  (INTEGER_PACK_LSWORD_FIRST | \
164  INTEGER_PACK_LSBYTE_FIRST)
165 #define INTEGER_PACK_BIG_ENDIAN \
166  (INTEGER_PACK_MSWORD_FIRST | \
167  INTEGER_PACK_MSBYTE_FIRST)
168 int rb_integer_pack(VALUE val, void *words, size_t numwords, size_t wordsize, size_t nails, int flags);
169 VALUE rb_integer_unpack(const void *words, size_t numwords, size_t wordsize, size_t nails, int flags);
170 size_t rb_absint_size(VALUE val, int *nlz_bits_ret);
171 size_t rb_absint_numwords(VALUE val, size_t word_numbits, size_t *nlz_bits_ret);
173 
174 /* rational.c */
176 #define rb_rational_raw1(x) rb_rational_raw((x), INT2FIX(1))
177 #define rb_rational_raw2(x,y) rb_rational_raw((x), (y))
179 #define rb_rational_new1(x) rb_rational_new((x), INT2FIX(1))
180 #define rb_rational_new2(x,y) rb_rational_new((x), (y))
182 #define rb_Rational1(x) rb_Rational((x), INT2FIX(1))
183 #define rb_Rational2(x,y) rb_Rational((x), (y))
188 /* complex.c */
190 #define rb_complex_raw1(x) rb_complex_raw((x), INT2FIX(0))
191 #define rb_complex_raw2(x,y) rb_complex_raw((x), (y))
193 #define rb_complex_new1(x) rb_complex_new((x), INT2FIX(0))
194 #define rb_complex_new2(x,y) rb_complex_new((x), (y))
208 VALUE rb_dbl_complex_new(double real, double imag);
209 #define rb_complex_add rb_complex_plus
210 #define rb_complex_sub rb_complex_minus
211 #define rb_complex_nagate rb_complex_uminus
212 
214 #define rb_Complex1(x) rb_Complex((x), INT2FIX(0))
215 #define rb_Complex2(x,y) rb_Complex((x), (y))
216 /* class.c */
224 VALUE rb_module_new(void);
235 void rb_define_method_id(VALUE, ID, VALUE (*)(ANYARGS), int);
236 void rb_undef(VALUE, ID);
237 void rb_define_protected_method(VALUE, const char*, VALUE (*)(ANYARGS), int);
238 void rb_define_private_method(VALUE, const char*, VALUE (*)(ANYARGS), int);
239 void rb_define_singleton_method(VALUE, const char*, VALUE(*)(ANYARGS), int);
241 /* compar.c */
242 int rb_cmpint(VALUE, VALUE, VALUE);
243 NORETURN(void rb_cmperr(VALUE, VALUE));
244 /* cont.c */
246 VALUE rb_fiber_resume(VALUE fib, int argc, const VALUE *argv);
247 VALUE rb_fiber_resume_kw(VALUE fib, int argc, const VALUE *argv, int kw_splat);
248 VALUE rb_fiber_yield(int argc, const VALUE *argv);
249 VALUE rb_fiber_yield_kw(int argc, const VALUE *argv, int kw_splat);
250 VALUE rb_fiber_current(void);
252 /* enum.c */
253 VALUE rb_enum_values_pack(int, const VALUE*);
254 /* enumerator.c */
255 VALUE rb_enumeratorize(VALUE, VALUE, int, const VALUE *);
259 #ifndef RUBY_EXPORT
260 #define rb_enumeratorize_with_size(obj, id, argc, argv, size_fn) \
261  rb_enumeratorize_with_size(obj, id, argc, argv, (rb_enumerator_size_func *)(size_fn))
262 #define rb_enumeratorize_with_size_kw(obj, id, argc, argv, size_fn, kw_splat) \
263  rb_enumeratorize_with_size_kw(obj, id, argc, argv, (rb_enumerator_size_func *)(size_fn), kw_splat)
264 #endif
265 #define SIZED_ENUMERATOR(obj, argc, argv, size_fn) \
266  rb_enumeratorize_with_size((obj), ID2SYM(rb_frame_this_func()), \
267  (argc), (argv), (size_fn))
268 #define SIZED_ENUMERATOR_KW(obj, argc, argv, size_fn, kw_splat) \
269  rb_enumeratorize_with_size_kw((obj), ID2SYM(rb_frame_this_func()), \
270  (argc), (argv), (size_fn), (kw_splat))
271 #define RETURN_SIZED_ENUMERATOR(obj, argc, argv, size_fn) do { \
272  if (!rb_block_given_p()) \
273  return SIZED_ENUMERATOR(obj, argc, argv, size_fn); \
274  } while (0)
275 #define RETURN_SIZED_ENUMERATOR_KW(obj, argc, argv, size_fn, kw_splat) do { \
276  if (!rb_block_given_p()) \
277  return SIZED_ENUMERATOR_KW(obj, argc, argv, size_fn, kw_splat); \
278  } while (0)
279 #define RETURN_ENUMERATOR(obj, argc, argv) RETURN_SIZED_ENUMERATOR(obj, argc, argv, 0)
280 #define RETURN_ENUMERATOR_KW(obj, argc, argv, kw_splat) RETURN_SIZED_ENUMERATOR_KW(obj, argc, argv, 0, kw_splat)
281 typedef struct {
288 /* error.c */
289 VALUE rb_exc_new(VALUE, const char*, long);
290 VALUE rb_exc_new_cstr(VALUE, const char*);
292 #define rb_exc_new2 rb_exc_new_cstr
293 #define rb_exc_new3 rb_exc_new_str
294 PRINTF_ARGS(NORETURN(void rb_loaderror(const char*, ...)), 1, 2);
295 PRINTF_ARGS(NORETURN(void rb_loaderror_with_path(VALUE path, const char*, ...)), 2, 3);
296 PRINTF_ARGS(NORETURN(void rb_name_error(ID, const char*, ...)), 2, 3);
297 PRINTF_ARGS(NORETURN(void rb_name_error_str(VALUE, const char*, ...)), 2, 3);
298 PRINTF_ARGS(NORETURN(void rb_frozen_error_raise(VALUE, const char*, ...)), 2, 3);
299 NORETURN(void rb_invalid_str(const char*, const char*));
300 NORETURN(void rb_error_frozen(const char*));
303 void rb_check_frozen(VALUE);
304 void rb_check_trusted(VALUE);
305 #define rb_check_frozen_internal(obj) do { \
306  VALUE frozen_obj = (obj); \
307  if (RB_UNLIKELY(RB_OBJ_FROZEN(frozen_obj))) { \
308  rb_error_frozen_object(frozen_obj); \
309  } \
310  } while (0)
311 #ifdef __GNUC__
312 #define rb_check_frozen(obj) __extension__({rb_check_frozen_internal(obj);})
313 #else
314 static inline void
315 rb_check_frozen_inline(VALUE obj)
316 {
318 }
319 #define rb_check_frozen(obj) rb_check_frozen_inline(obj)
320 static inline void
321 rb_check_trusted_inline(VALUE obj)
322 {
324 }
325 #define rb_check_trusted(obj) rb_check_trusted_inline(obj)
326 #endif
327 void rb_check_copyable(VALUE obj, VALUE orig);
328 
329 #define RB_OBJ_INIT_COPY(obj, orig) \
330  ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1))
331 #define OBJ_INIT_COPY(obj, orig) RB_OBJ_INIT_COPY(obj, orig)
332 
333 /* eval.c */
334 int rb_sourceline(void);
335 const char *rb_sourcefile(void);
336 VALUE rb_check_funcall(VALUE, ID, int, const VALUE*);
337 VALUE rb_check_funcall_kw(VALUE, ID, int, const VALUE*, int);
338 
339 NORETURN(MJIT_STATIC void rb_error_arity(int, int, int));
340 static inline int
341 rb_check_arity(int argc, int min, int max)
342 {
343  if ((argc < min) || (max != UNLIMITED_ARGUMENTS && argc > max))
344  rb_error_arity(argc, min, max);
345  return argc;
346 }
347 #define rb_check_arity rb_check_arity /* for ifdef */
348 
349 #if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)
350 typedef struct {
351  int maxfd;
352  fd_set *fdset;
353 } rb_fdset_t;
354 
355 void rb_fd_init(rb_fdset_t *);
356 void rb_fd_term(rb_fdset_t *);
357 void rb_fd_zero(rb_fdset_t *);
358 void rb_fd_set(int, rb_fdset_t *);
359 void rb_fd_clr(int, rb_fdset_t *);
360 int rb_fd_isset(int, const rb_fdset_t *);
361 void rb_fd_copy(rb_fdset_t *, const fd_set *, int);
362 void rb_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src);
363 
364 struct timeval;
365 int rb_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
366 
367 #define rb_fd_ptr(f) ((f)->fdset)
368 #define rb_fd_max(f) ((f)->maxfd)
369 
370 #elif defined(_WIN32)
371 
372 typedef struct {
373  int capa;
374  fd_set *fdset;
375 } rb_fdset_t;
376 
377 void rb_fd_init(rb_fdset_t *);
378 void rb_fd_term(rb_fdset_t *);
379 #define rb_fd_zero(f) ((f)->fdset->fd_count = 0)
380 void rb_fd_set(int, rb_fdset_t *);
381 #define rb_fd_clr(n, f) rb_w32_fdclr((n), (f)->fdset)
382 #define rb_fd_isset(n, f) rb_w32_fdisset((n), (f)->fdset)
383 #define rb_fd_copy(d, s, n) rb_w32_fd_copy((d), (s), (n))
384 void rb_w32_fd_copy(rb_fdset_t *, const fd_set *, int);
385 #define rb_fd_dup(d, s) rb_w32_fd_dup((d), (s))
386 void rb_w32_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src);
387 static inline int
388 rb_fd_select(int n, rb_fdset_t *rfds, rb_fdset_t *wfds, rb_fdset_t *efds, struct timeval *timeout)
389 {
390  return rb_w32_select(n,
391  rfds ? rfds->fdset : NULL,
392  wfds ? wfds->fdset : NULL,
393  efds ? efds->fdset : NULL,
394  timeout);
395 }
396 #define rb_fd_resize(n, f) ((void)(f))
397 
398 #define rb_fd_ptr(f) ((f)->fdset)
399 #define rb_fd_max(f) ((f)->fdset->fd_count)
400 
401 #else
402 
404 #define rb_fd_zero(f) FD_ZERO(f)
405 #define rb_fd_set(n, f) FD_SET((n), (f))
406 #define rb_fd_clr(n, f) FD_CLR((n), (f))
407 #define rb_fd_isset(n, f) FD_ISSET((n), (f))
408 #define rb_fd_copy(d, s, n) (*(d) = *(s))
409 #define rb_fd_dup(d, s) (*(d) = *(s))
410 #define rb_fd_resize(n, f) ((void)(f))
411 #define rb_fd_ptr(f) (f)
412 #define rb_fd_init(f) FD_ZERO(f)
413 #define rb_fd_init_copy(d, s) (*(d) = *(s))
414 #define rb_fd_term(f) ((void)(f))
415 #define rb_fd_max(f) FD_SETSIZE
416 #define rb_fd_select(n, rfds, wfds, efds, timeout) select((n), (rfds), (wfds), (efds), (timeout))
417 
418 #endif
419 
422 NORETURN(VALUE rb_f_exit(int, const VALUE*));
423 NORETURN(VALUE rb_f_abort(int, const VALUE*));
424 void rb_remove_method(VALUE, const char*);
426 #define HAVE_RB_DEFINE_ALLOC_FUNC 1
431 void rb_clear_constant_cache(void);
433 void rb_alias(VALUE, ID, ID);
434 void rb_attr(VALUE,ID,int,int,int);
435 int rb_method_boundp(VALUE, ID, int);
439 int rb_obj_respond_to(VALUE, ID, int);
440 int rb_respond_to(VALUE, ID);
442 #if !defined(RUBY_EXPORT) && defined(_WIN32)
444 #define rb_f_notimplement (*rb_f_notimplement_)
445 #endif
446 NORETURN(void rb_interrupt(void));
448 void rb_backtrace(void);
449 ID rb_frame_this_func(void);
450 VALUE rb_obj_instance_eval(int, const VALUE*, VALUE);
451 VALUE rb_obj_instance_exec(int, const VALUE*, VALUE);
452 VALUE rb_mod_module_eval(int, const VALUE*, VALUE);
453 VALUE rb_mod_module_exec(int, const VALUE*, VALUE);
454 void rb_load(VALUE, int);
455 void rb_load_protect(VALUE, int, int*);
456 NORETURN(void rb_jump_tag(int));
457 int rb_provided(const char*);
458 int rb_feature_provided(const char *, const char **);
459 void rb_provide(const char*);
461 VALUE rb_require_safe(VALUE, int); /* Remove in 3.0 */
463 void rb_obj_call_init(VALUE, int, const VALUE*);
464 void rb_obj_call_init_kw(VALUE, int, const VALUE*, int);
465 VALUE rb_class_new_instance(int, const VALUE*, VALUE);
466 VALUE rb_class_new_instance_kw(int, const VALUE*, VALUE, int);
467 VALUE rb_block_proc(void);
468 VALUE rb_block_lambda(void);
475 int rb_proc_arity(VALUE);
477 VALUE rb_binding_new(void);
480 VALUE rb_method_call(int, const VALUE*, VALUE);
481 VALUE rb_method_call_kw(int, const VALUE*, VALUE, int);
483 VALUE rb_method_call_with_block_kw(int, const VALUE *, VALUE, VALUE, int);
486 VALUE rb_protect(VALUE (*)(VALUE), VALUE, int*);
487 void rb_set_end_proc(void (*)(VALUE), VALUE);
488 void rb_thread_schedule(void);
489 void rb_thread_wait_fd(int);
490 int rb_thread_fd_writable(int);
491 void rb_thread_fd_close(int);
492 int rb_thread_alone(void);
493 void rb_thread_sleep(int);
494 void rb_thread_sleep_forever(void);
495 void rb_thread_sleep_deadly(void);
496 VALUE rb_thread_stop(void);
501 VALUE rb_thread_create(VALUE (*)(void *), void*);
502 int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
503 void rb_thread_wait_for(struct timeval);
505 VALUE rb_thread_main(void);
508 void rb_thread_atfork(void);
514 /* dir.c */
515 VALUE rb_dir_getwd(void);
516 /* file.c */
517 VALUE rb_file_s_expand_path(int, const VALUE *);
519 VALUE rb_file_s_absolute_path(int, const VALUE *);
522 int rb_find_file_ext_safe(VALUE*, const char* const*, int); /* Remove in 3.0 */
523 VALUE rb_find_file_safe(VALUE, int); /* Remove in 3.0 */
524 int rb_find_file_ext(VALUE*, const char* const*);
528 int rb_is_absolute_path(const char *);
529 /* gc.c */
530 COLDFUNC NORETURN(void rb_memerror(void));
531 PUREFUNC(int rb_during_gc(void));
532 void rb_gc_mark_locations(const VALUE*, const VALUE*);
533 void rb_mark_tbl(struct st_table*);
534 void rb_mark_tbl_no_pin(struct st_table*);
535 void rb_mark_set(struct st_table*);
536 void rb_mark_hash(struct st_table*);
538 void rb_gc_mark_maybe(VALUE);
539 void rb_gc_mark(VALUE);
543 void rb_gc(void);
545 VALUE rb_gc_enable(void);
546 VALUE rb_gc_disable(void);
547 VALUE rb_gc_start(void);
550 size_t rb_gc_count(void);
551 size_t rb_gc_stat(VALUE);
554 /* hash.c */
556 #define st_foreach_safe rb_st_foreach_safe
558 void rb_hash_foreach(VALUE, int (*)(VALUE, VALUE, VALUE), VALUE);
560 VALUE rb_hash_new(void);
571 VALUE rb_hash_set_ifnone(VALUE hash, VALUE ifnone);
572 void rb_hash_bulk_insert(long, const VALUE *, VALUE);
573 typedef VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value);
575 struct st_table *rb_hash_tbl(VALUE, const char *file, int line);
576 int rb_path_check(const char*);
577 int rb_env_path_tainted(void);
578 VALUE rb_env_clear(void);
580 void rb_hash_free(VALUE);
581 /* io.c */
582 #define rb_defout rb_stdout
599 VALUE rb_io_printf(int, const VALUE*, VALUE);
600 VALUE rb_io_print(int, const VALUE*, VALUE);
601 VALUE rb_io_puts(int, const VALUE*, VALUE);
602 VALUE rb_io_fdopen(int, int, const char*);
604 VALUE rb_file_open(const char*, const char*);
605 VALUE rb_file_open_str(VALUE, const char*);
606 VALUE rb_gets(void);
607 void rb_write_error(const char*);
608 void rb_write_error2(const char*, long);
609 void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds);
610 int rb_pipe(int *pipes);
611 int rb_reserved_fd_p(int fd);
612 int rb_cloexec_open(const char *pathname, int flags, mode_t mode);
613 int rb_cloexec_dup(int oldfd);
614 int rb_cloexec_dup2(int oldfd, int newfd);
615 int rb_cloexec_pipe(int fildes[2]);
616 int rb_cloexec_fcntl_dupfd(int fd, int minfd);
617 #define RB_RESERVED_FD_P(fd) rb_reserved_fd_p(fd)
618 void rb_update_max_fd(int fd);
619 void rb_fd_fix_cloexec(int fd);
620 /* marshal.c */
623 void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE (*dumper)(VALUE), VALUE (*loader)(VALUE, VALUE));
624 /* numeric.c */
625 NORETURN(void rb_num_zerodiv(void));
626 #define RB_NUM_COERCE_FUNCS_NEED_OPID 1
632 VALUE rb_fix2str(VALUE, int);
633 CONSTFUNC(VALUE rb_dbl_cmp(double, double));
634 /* object.c */
635 int rb_eql(VALUE, VALUE);
659 VALUE rb_convert_type(VALUE,int,const char*,const char*);
660 VALUE rb_check_convert_type(VALUE,int,const char*,const char*);
661 VALUE rb_check_to_integer(VALUE, const char *);
671 double rb_cstr_to_dbl(const char*, int);
672 double rb_str_to_dbl(VALUE, int);
673 /* parse.y */
682 int rb_symname_p(const char*);
684 VALUE rb_backref_get(void);
685 void rb_backref_set(VALUE);
686 VALUE rb_lastline_get(void);
687 void rb_lastline_set(VALUE);
688 /* process.c */
689 void rb_last_status_set(int status, rb_pid_t pid);
691 int rb_proc_exec(const char*);
692 NORETURN(VALUE rb_f_exec(int, const VALUE*));
693 rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags);
694 void rb_syswait(rb_pid_t pid);
695 rb_pid_t rb_spawn(int, const VALUE*);
696 rb_pid_t rb_spawn_err(int, const VALUE*, char*, size_t);
699 /* range.c */
701 VALUE rb_range_beg_len(VALUE, long*, long*, long, int);
702 int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp);
703 /* random.c */
704 unsigned int rb_genrand_int32(void);
705 double rb_genrand_real(void);
706 void rb_reset_random_seed(void);
707 VALUE rb_random_bytes(VALUE rnd, long n);
708 VALUE rb_random_int(VALUE rnd, VALUE max);
709 unsigned int rb_random_int32(VALUE rnd);
710 double rb_random_real(VALUE rnd);
711 unsigned long rb_random_ulong_limited(VALUE rnd, unsigned long limit);
712 unsigned long rb_genrand_ulong_limited(unsigned long i);
713 /* re.c */
714 #define rb_memcmp memcmp
715 int rb_memcicmp(const void*,const void*,long);
716 void rb_match_busy(VALUE);
719 int rb_reg_backref_number(VALUE match, VALUE backref);
724 #define HAVE_RB_REG_NEW_STR 1
726 VALUE rb_reg_new(const char *, long, int);
727 VALUE rb_reg_alloc(void);
728 VALUE rb_reg_init_str(VALUE re, VALUE s, int options);
731 int rb_reg_options(VALUE);
732 /* ruby.c */
733 #define rb_argv rb_get_argv()
735 VALUE rb_get_argv(void);
736 void *rb_load_file(const char*);
737 void *rb_load_file_str(VALUE);
738 /* signal.c */
739 VALUE rb_f_kill(int, const VALUE*);
740 #ifdef POSIX_SIGNAL
741 #define posix_signal ruby_posix_signal
742 RETSIGTYPE (*posix_signal(int, RETSIGTYPE (*)(int)))(int);
743 #endif
744 const char *ruby_signal_name(int);
745 void ruby_default_signal(int);
746 /* sprintf.c */
747 VALUE rb_f_sprintf(int, const VALUE*);
748 PRINTF_ARGS(VALUE rb_sprintf(const char*, ...), 1, 2);
749 VALUE rb_vsprintf(const char*, va_list);
750 PRINTF_ARGS(VALUE rb_str_catf(VALUE, const char*, ...), 2, 3);
751 VALUE rb_str_vcatf(VALUE, const char*, va_list);
752 VALUE rb_str_format(int, const VALUE *, VALUE);
753 /* string.c */
754 VALUE rb_str_new(const char*, long);
755 VALUE rb_str_new_cstr(const char*);
758 VALUE rb_str_new_with_class(VALUE, const char*, long);
759 VALUE rb_tainted_str_new_cstr(const char*);
760 VALUE rb_tainted_str_new(const char*, long);
761 VALUE rb_external_str_new(const char*, long);
762 VALUE rb_external_str_new_cstr(const char*);
763 VALUE rb_locale_str_new(const char*, long);
764 VALUE rb_locale_str_new_cstr(const char*);
765 VALUE rb_filesystem_str_new(const char*, long);
766 VALUE rb_filesystem_str_new_cstr(const char*);
767 VALUE rb_str_buf_new(long);
768 VALUE rb_str_buf_new_cstr(const char*);
769 VALUE rb_str_buf_new2(const char*);
770 VALUE rb_str_tmp_new(long);
771 VALUE rb_usascii_str_new(const char*, long);
772 VALUE rb_usascii_str_new_cstr(const char*);
773 VALUE rb_utf8_str_new(const char*, long);
774 VALUE rb_utf8_str_new_cstr(const char*);
775 VALUE rb_str_new_static(const char *, long);
776 VALUE rb_usascii_str_new_static(const char *, long);
777 VALUE rb_utf8_str_new_static(const char *, long);
778 void rb_str_free(VALUE);
781 VALUE rb_str_buf_cat(VALUE, const char*, long);
782 VALUE rb_str_buf_cat2(VALUE, const char*);
783 VALUE rb_str_buf_cat_ascii(VALUE, const char*);
792 #define rb_str_dup_frozen rb_str_new_frozen
795 long rb_str_sublen(VALUE, long);
796 VALUE rb_str_substr(VALUE, long, long);
797 VALUE rb_str_subseq(VALUE, long, long);
798 char *rb_str_subpos(VALUE, long, long*);
799 void rb_str_modify(VALUE);
800 void rb_str_modify_expand(VALUE, long);
802 void rb_str_set_len(VALUE, long);
803 VALUE rb_str_resize(VALUE, long);
804 VALUE rb_str_cat(VALUE, const char*, long);
805 VALUE rb_str_cat_cstr(VALUE, const char*);
806 VALUE rb_str_cat2(VALUE, const char*);
809 st_index_t rb_memhash(const void *ptr, long len);
814 #define rb_hash_uint32(h, i) st_hash_uint32((h), (i))
815 #define rb_hash_uint(h, i) st_hash_uint((h), (i))
816 #define rb_hash_end(h) st_hash_end(h)
820 int rb_str_cmp(VALUE, VALUE);
821 VALUE rb_str_equal(VALUE str1, VALUE str2);
823 void rb_str_update(VALUE, long, long, VALUE);
827 VALUE rb_str_split(VALUE, const char*);
831 long rb_str_strlen(VALUE);
833 long rb_str_offset(VALUE, long);
837 /* symbol.c */
839 
840 #ifdef HAVE_BUILTIN___BUILTIN_CONSTANT_P
841 #define rb_str_new(str, len) RB_GNUC_EXTENSION_BLOCK( \
842  (__builtin_constant_p(str) && __builtin_constant_p(len)) ? \
843  rb_str_new_static((str), (len)) : \
844  rb_str_new((str), (len)) \
845 )
846 #define rb_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
847  (__builtin_constant_p(str)) ? \
848  rb_str_new_static((str), (long)strlen(str)) : \
849  rb_str_new_cstr(str) \
850 )
851 #define rb_usascii_str_new(str, len) RB_GNUC_EXTENSION_BLOCK( \
852  (__builtin_constant_p(str) && __builtin_constant_p(len)) ? \
853  rb_usascii_str_new_static((str), (len)) : \
854  rb_usascii_str_new((str), (len)) \
855 )
856 #define rb_utf8_str_new(str, len) RB_GNUC_EXTENSION_BLOCK( \
857  (__builtin_constant_p(str) && __builtin_constant_p(len)) ? \
858  rb_utf8_str_new_static((str), (len)) : \
859  rb_utf8_str_new((str), (len)) \
860 )
861 #define rb_tainted_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
862  (__builtin_constant_p(str)) ? \
863  rb_tainted_str_new((str), (long)strlen(str)) : \
864  rb_tainted_str_new_cstr(str) \
865 )
866 #define rb_usascii_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
867  (__builtin_constant_p(str)) ? \
868  rb_usascii_str_new_static((str), (long)strlen(str)) : \
869  rb_usascii_str_new_cstr(str) \
870 )
871 #define rb_utf8_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
872  (__builtin_constant_p(str)) ? \
873  rb_utf8_str_new_static((str), (long)strlen(str)) : \
874  rb_utf8_str_new_cstr(str) \
875 )
876 #define rb_external_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
877  (__builtin_constant_p(str)) ? \
878  rb_external_str_new((str), (long)strlen(str)) : \
879  rb_external_str_new_cstr(str) \
880 )
881 #define rb_locale_str_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
882  (__builtin_constant_p(str)) ? \
883  rb_locale_str_new((str), (long)strlen(str)) : \
884  rb_locale_str_new_cstr(str) \
885 )
886 #define rb_str_buf_new_cstr(str) RB_GNUC_EXTENSION_BLOCK( \
887  (__builtin_constant_p(str)) ? \
888  rb_str_buf_cat(rb_str_buf_new((long)strlen(str)), \
889  (str), (long)strlen(str)) : \
890  rb_str_buf_new_cstr(str) \
891 )
892 #define rb_str_cat_cstr(str, ptr) RB_GNUC_EXTENSION_BLOCK( \
893  (__builtin_constant_p(ptr)) ? \
894  rb_str_cat((str), (ptr), (long)strlen(ptr)) : \
895  rb_str_cat_cstr((str), (ptr)) \
896 )
897 #define rb_exc_new_cstr(klass, ptr) RB_GNUC_EXTENSION_BLOCK( \
898  (__builtin_constant_p(ptr)) ? \
899  rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \
900  rb_exc_new_cstr((klass), (ptr)) \
901 )
902 #endif
903 #define rb_str_new2 rb_str_new_cstr
904 #define rb_str_new3 rb_str_new_shared
905 #define rb_str_new4 rb_str_new_frozen
906 #define rb_str_new5 rb_str_new_with_class
907 #define rb_tainted_str_new2 rb_tainted_str_new_cstr
908 #define rb_str_buf_new2 rb_str_buf_new_cstr
909 #define rb_usascii_str_new2 rb_usascii_str_new_cstr
910 #define rb_str_buf_cat rb_str_cat
911 #define rb_str_buf_cat2 rb_str_cat_cstr
912 #define rb_str_cat2 rb_str_cat_cstr
913 #define rb_strlen_lit(str) (sizeof(str "") - 1)
914 #define rb_str_new_lit(str) rb_str_new_static((str), rb_strlen_lit(str))
915 #define rb_usascii_str_new_lit(str) rb_usascii_str_new_static((str), rb_strlen_lit(str))
916 #define rb_utf8_str_new_lit(str) rb_utf8_str_new_static((str), rb_strlen_lit(str))
917 #define rb_enc_str_new_lit(str, enc) rb_enc_str_new_static((str), rb_strlen_lit(str), (enc))
918 #define rb_str_new_literal(str) rb_str_new_lit(str)
919 #define rb_usascii_str_new_literal(str) rb_usascii_str_new_lit(str)
920 #define rb_utf8_str_new_literal(str) rb_utf8_str_new_lit(str)
921 #define rb_enc_str_new_literal(str, enc) rb_enc_str_new_lit(str, enc)
922 
923 /* struct.c */
925 VALUE rb_struct_define(const char*, ...);
926 VALUE rb_struct_define_under(VALUE, const char*, ...);
937 VALUE rb_struct_define_without_accessor_under(VALUE outer, const char *class_name, VALUE super, rb_alloc_func_t alloc, ...);
938 
939 /* thread.c */
940 typedef void rb_unblock_function_t(void *);
942 void rb_thread_check_ints(void);
943 int rb_thread_interrupted(VALUE thval);
944 
945 #define RUBY_UBF_IO ((rb_unblock_function_t *)-1)
946 #define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1)
947 VALUE rb_mutex_new(void);
950 VALUE rb_mutex_lock(VALUE mutex);
952 VALUE rb_mutex_sleep(VALUE self, VALUE timeout);
954 /* time.c */
955 struct timespec;
956 void rb_timespec_now(struct timespec *);
957 VALUE rb_time_new(time_t, long);
959 VALUE rb_time_timespec_new(const struct timespec *, int);
961 struct timeval rb_time_interval(VALUE num);
966 /* variable.c */
970 void rb_set_class_path(VALUE, VALUE, const char*);
973 VALUE rb_path2class(const char*);
977 VALUE rb_f_trace_var(int, const VALUE*);
978 VALUE rb_f_untrace_var(int, const VALUE*);
980 void rb_alias_variable(ID, ID);
986 void rb_ivar_foreach(VALUE, int (*)(ID, VALUE, st_data_t), st_data_t);
991 void *rb_mod_const_at(VALUE, void*);
992 void *rb_mod_const_of(VALUE, void*);
993 VALUE rb_const_list(void*);
994 VALUE rb_mod_constants(int, const VALUE *, VALUE);
1002 void rb_const_set(VALUE, ID, VALUE);
1004 #if 0 /* EXPERIMENTAL: remove if no problem */
1006 #endif
1008 void rb_cvar_set(VALUE, ID, VALUE);
1010 void rb_cv_set(VALUE, const char*, VALUE);
1011 VALUE rb_cv_get(VALUE, const char*);
1012 void rb_define_class_variable(VALUE, const char*, VALUE);
1013 VALUE rb_mod_class_variables(int, const VALUE*, VALUE);
1015 
1016 ID rb_frame_callee(void);
1017 int rb_frame_method_id_and_class(ID *idp, VALUE *klassp);
1020 VALUE rb_make_backtrace(void);
1021 VALUE rb_make_exception(int, const VALUE*);
1022 
1024 
1025 #if defined(__cplusplus)
1026 #if 0
1027 { /* satisfy cc-mode */
1028 #endif
1029 } /* extern "C" { */
1030 extern "C++" {
1031 #endif
1032 
1033 #if defined(HAVE_BUILTIN___BUILTIN_TYPES_COMPATIBLE_P)
1034 # define rb_f_notimplement_p(f) __builtin_types_compatible_p(__typeof__(f),__typeof__(rb_f_notimplement))
1035 #else
1036 # define rb_f_notimplement_p(f) 0
1037 #endif
1038 
1039 #if defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P) && !defined(_WIN32) && !defined(__CYGWIN__)
1040 #if defined(__has_attribute) && __has_attribute(transparent_union) && __has_attribute(unused) && __has_attribute(weakref) && __has_attribute(nonnull)
1041 #define RB_METHOD_DEFINITION_DECL_C(def,nonnull,defname,decl,vars,funcargs) \
1042  __attribute__((__unused__,__weakref__(#def),__nonnull__ nonnull))static void defname(RB_UNWRAP_MACRO decl,VALUE(*func)funcargs,int arity);
1043 #endif
1044 #endif
1045 
1046 #if defined(RB_METHOD_DEFINITION_DECL_C) || defined(__cplusplus)
1047 #ifndef RB_METHOD_DEFINITION_DECL_C
1048 #define RB_METHOD_DEFINITION_DECL_C(def,nonnull,defname,decl,vars,funcargs) \
1049  static inline void defname(RB_UNWRAP_MACRO decl,VALUE(*func)funcargs,int arity) \
1050  { \
1051  def(RB_UNWRAP_MACRO vars,(VALUE(*)(ANYARGS))(func),arity); \
1052  }
1053 #endif
1054 
1055 #define RB_UNWRAP_MACRO(...) __VA_ARGS__
1056 
1057 #ifdef __cplusplus
1058 #define RB_METHOD_DEFINITION_DECL_CXX_BEGIN(def) template <int Arity> struct def##_tmpl {};
1059 #define RB_METHOD_DEFINITION_DECL_CXX(def,defname,decl,vars,funcargs,arity) \
1060  template <> struct def##_tmpl<arity> { \
1061  static void define(RB_UNWRAP_MACRO decl, VALUE (*func)funcargs) {::defname(RB_UNWRAP_MACRO vars, func, arity);} \
1062  static void define(RB_UNWRAP_MACRO decl, VALUE (*func)(...)) {::defname(RB_UNWRAP_MACRO vars, reinterpret_cast<VALUE(*)funcargs>(func), arity);} \
1063  };
1064 #else
1065 #define RB_METHOD_DEFINITION_DECL_CXX_BEGIN(def) /* nothing */
1066 #define RB_METHOD_DEFINITION_DECL_CXX(def,defname,decl,vars,funcargs,arity) /* nothing */
1067 #endif
1068 #define RB_METHOD_DEFINITION_DECL_1(def,nonnull,defname,arity,decl,vars,funcargs) \
1069  RB_METHOD_DEFINITION_DECL_C(def,nonnull,defname,decl,vars,funcargs) \
1070  RB_METHOD_DEFINITION_DECL_CXX(def,defname,decl,vars,funcargs,arity)
1071 
1072 #define RB_METHOD_DEFINITION_DECL(def,nonnull,decl,vars) \
1073 RB_METHOD_DEFINITION_DECL_CXX_BEGIN(def) \
1074 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##0 ,0 ,decl,vars,(VALUE)) \
1075 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##1 ,1 ,decl,vars,(VALUE,VALUE)) \
1076 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##2 ,2 ,decl,vars,(VALUE,VALUE,VALUE)) \
1077 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##3 ,3 ,decl,vars,(VALUE,VALUE,VALUE,VALUE)) \
1078 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##4 ,4 ,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE)) \
1079 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##5 ,5 ,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE,VALUE)) \
1080 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##6 ,6 ,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE)) \
1081 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##7 ,7 ,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE)) \
1082 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##8 ,8 ,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE)) \
1083 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##9 ,9 ,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE)) \
1084 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##10,10,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE)) \
1085 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##11,11,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE)) \
1086 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##12,12,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE)) \
1087 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##13,13,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE)) \
1088 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##14,14,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE)) \
1089 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##15,15,decl,vars,(VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE,VALUE)) \
1090 RB_METHOD_DEFINITION_DECL_M3(def,nonnull,def##m3,decl,vars) \
1091 RB_METHOD_DEFINITION_DECL_1(def,nonnull,def##m2,-2,decl,vars,(VALUE,VALUE)) \
1092 RB_METHOD_DEFINITION_DECL_M1(def,nonnull,def##m1,decl,vars) /* END */
1093 #ifdef __cplusplus
1094 #define RB_METHOD_DEFINITION_DECL_M1(def,nonnull,defname,decl,vars) \
1095  RB_METHOD_DEFINITION_DECL_C(def,nonnull,defname,decl,vars,(int,VALUE*,VALUE)) \
1096  RB_METHOD_DEFINITION_DECL_C(def,nonnull,defname,decl,vars,(int,const VALUE*,VALUE)) \
1097  RB_METHOD_DEFINITION_DECL_C(def,nonnull,defname,decl,vars,(int,const VALUE*,VALUE,VALUE)) \
1098  RB_METHOD_DEFINITION_DECL_C(def,nonnull,defname,decl,vars,(...)) \
1099  template <> struct def##_tmpl<-1> { \
1100  static void define(RB_UNWRAP_MACRO decl, VALUE (*func)(int,VALUE*,VALUE)) {::defname(RB_UNWRAP_MACRO vars, func, -1);} \
1101  static void define(RB_UNWRAP_MACRO decl, VALUE (*func)(int,const VALUE*,VALUE)) {::defname(RB_UNWRAP_MACRO vars, func, -1);} \
1102  static void define(RB_UNWRAP_MACRO decl, VALUE (*func)(int,const VALUE*,VALUE,VALUE)) {::defname(RB_UNWRAP_MACRO vars, func, -1);} \
1103  static void define(RB_UNWRAP_MACRO decl, VALUE (*func)(...)) {::defname(RB_UNWRAP_MACRO vars, func, -1);} \
1104  };
1105 #define RB_METHOD_DEFINITION_DECL_M3(def,nonnull,defname,decl,vars) /* nothing */
1106 #else
1107 #define RB_METHOD_DEFINITION_DECL_M1(def,nonnull,defname,decl,vars) \
1108  RB_METHOD_DEFINITION_DECL_C(def,nonnull,defname,decl,vars,(int,union{VALUE*x;const VALUE*y;}__attribute__((__transparent_union__)),VALUE))
1109 #define RB_METHOD_DEFINITION_DECL_M3(def,nonnull,defname,decl,vars) \
1110  RB_METHOD_DEFINITION_DECL_C(def,nonnull,defname,decl,vars,())
1111 #endif
1112 
1113 #endif
1114 
1115 #ifdef RB_METHOD_DEFINITION_DECL
1116 
1117 RB_METHOD_DEFINITION_DECL(rb_define_method_id, (3), (VALUE klass, ID name), (klass, name))
1118 #ifdef __cplusplus
1119 #define rb_define_method_id(m, n, f, a) rb_define_method_id_tmpl<a>::define(m, n, f)
1120 #else
1121 #define rb_define_method_id_choose_prototype15(n) rb_define_method_if_constexpr((n)==15,rb_define_method_id15,rb_define_method_idm3)
1122 #define rb_define_method_id_choose_prototype14(n) rb_define_method_if_constexpr((n)==14,rb_define_method_id14,rb_define_method_id_choose_prototype15(n))
1123 #define rb_define_method_id_choose_prototype13(n) rb_define_method_if_constexpr((n)==13,rb_define_method_id13,rb_define_method_id_choose_prototype14(n))
1124 #define rb_define_method_id_choose_prototype12(n) rb_define_method_if_constexpr((n)==12,rb_define_method_id12,rb_define_method_id_choose_prototype13(n))
1125 #define rb_define_method_id_choose_prototype11(n) rb_define_method_if_constexpr((n)==11,rb_define_method_id11,rb_define_method_id_choose_prototype12(n))
1126 #define rb_define_method_id_choose_prototype10(n) rb_define_method_if_constexpr((n)==10,rb_define_method_id10,rb_define_method_id_choose_prototype11(n))
1127 #define rb_define_method_id_choose_prototype9(n) rb_define_method_if_constexpr((n)== 9,rb_define_method_id9, rb_define_method_id_choose_prototype10(n))
1128 #define rb_define_method_id_choose_prototype8(n) rb_define_method_if_constexpr((n)== 8,rb_define_method_id8, rb_define_method_id_choose_prototype9(n))
1129 #define rb_define_method_id_choose_prototype7(n) rb_define_method_if_constexpr((n)== 7,rb_define_method_id7, rb_define_method_id_choose_prototype8(n))
1130 #define rb_define_method_id_choose_prototype6(n) rb_define_method_if_constexpr((n)== 6,rb_define_method_id6, rb_define_method_id_choose_prototype7(n))
1131 #define rb_define_method_id_choose_prototype5(n) rb_define_method_if_constexpr((n)== 5,rb_define_method_id5, rb_define_method_id_choose_prototype6(n))
1132 #define rb_define_method_id_choose_prototype4(n) rb_define_method_if_constexpr((n)== 4,rb_define_method_id4, rb_define_method_id_choose_prototype5(n))
1133 #define rb_define_method_id_choose_prototype3(n) rb_define_method_if_constexpr((n)== 3,rb_define_method_id3, rb_define_method_id_choose_prototype4(n))
1134 #define rb_define_method_id_choose_prototype2(n) rb_define_method_if_constexpr((n)== 2,rb_define_method_id2, rb_define_method_id_choose_prototype3(n))
1135 #define rb_define_method_id_choose_prototype1(n) rb_define_method_if_constexpr((n)== 1,rb_define_method_id1, rb_define_method_id_choose_prototype2(n))
1136 #define rb_define_method_id_choose_prototype0(n) rb_define_method_if_constexpr((n)== 0,rb_define_method_id0, rb_define_method_id_choose_prototype1(n))
1137 #define rb_define_method_id_choose_prototypem1(n) rb_define_method_if_constexpr((n)==-1,rb_define_method_idm1,rb_define_method_id_choose_prototype0(n))
1138 #define rb_define_method_id_choose_prototypem2(n) rb_define_method_if_constexpr((n)==-2,rb_define_method_idm2,rb_define_method_id_choose_prototypem1(n))
1139 #define rb_define_method_id_choose_prototypem3(n, f) rb_define_method_if_constexpr(rb_f_notimplement_p(f),rb_define_method_idm3,rb_define_method_id_choose_prototypem2(n))
1140 #define rb_define_method_id(klass, mid, func, arity) rb_define_method_id_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));
1141 #endif
1142 
1143 RB_METHOD_DEFINITION_DECL(rb_define_protected_method, (2,3), (VALUE klass, const char *name), (klass, name))
1144 #ifdef __cplusplus
1145 #define rb_define_protected_method(m, n, f, a) rb_define_protected_method_tmpl<a>::define(m, n, f)
1146 #else
1147 #define rb_define_protected_method_choose_prototype15(n) rb_define_method_if_constexpr((n)==15,rb_define_protected_method15,rb_define_protected_methodm3)
1148 #define rb_define_protected_method_choose_prototype14(n) rb_define_method_if_constexpr((n)==14,rb_define_protected_method14,rb_define_protected_method_choose_prototype15(n))
1149 #define rb_define_protected_method_choose_prototype13(n) rb_define_method_if_constexpr((n)==13,rb_define_protected_method13,rb_define_protected_method_choose_prototype14(n))
1150 #define rb_define_protected_method_choose_prototype12(n) rb_define_method_if_constexpr((n)==12,rb_define_protected_method12,rb_define_protected_method_choose_prototype13(n))
1151 #define rb_define_protected_method_choose_prototype11(n) rb_define_method_if_constexpr((n)==11,rb_define_protected_method11,rb_define_protected_method_choose_prototype12(n))
1152 #define rb_define_protected_method_choose_prototype10(n) rb_define_method_if_constexpr((n)==10,rb_define_protected_method10,rb_define_protected_method_choose_prototype11(n))
1153 #define rb_define_protected_method_choose_prototype9(n) rb_define_method_if_constexpr((n)== 9,rb_define_protected_method9, rb_define_protected_method_choose_prototype10(n))
1154 #define rb_define_protected_method_choose_prototype8(n) rb_define_method_if_constexpr((n)== 8,rb_define_protected_method8, rb_define_protected_method_choose_prototype9(n))
1155 #define rb_define_protected_method_choose_prototype7(n) rb_define_method_if_constexpr((n)== 7,rb_define_protected_method7, rb_define_protected_method_choose_prototype8(n))
1156 #define rb_define_protected_method_choose_prototype6(n) rb_define_method_if_constexpr((n)== 6,rb_define_protected_method6, rb_define_protected_method_choose_prototype7(n))
1157 #define rb_define_protected_method_choose_prototype5(n) rb_define_method_if_constexpr((n)== 5,rb_define_protected_method5, rb_define_protected_method_choose_prototype6(n))
1158 #define rb_define_protected_method_choose_prototype4(n) rb_define_method_if_constexpr((n)== 4,rb_define_protected_method4, rb_define_protected_method_choose_prototype5(n))
1159 #define rb_define_protected_method_choose_prototype3(n) rb_define_method_if_constexpr((n)== 3,rb_define_protected_method3, rb_define_protected_method_choose_prototype4(n))
1160 #define rb_define_protected_method_choose_prototype2(n) rb_define_method_if_constexpr((n)== 2,rb_define_protected_method2, rb_define_protected_method_choose_prototype3(n))
1161 #define rb_define_protected_method_choose_prototype1(n) rb_define_method_if_constexpr((n)== 1,rb_define_protected_method1, rb_define_protected_method_choose_prototype2(n))
1162 #define rb_define_protected_method_choose_prototype0(n) rb_define_method_if_constexpr((n)== 0,rb_define_protected_method0, rb_define_protected_method_choose_prototype1(n))
1163 #define rb_define_protected_method_choose_prototypem1(n) rb_define_method_if_constexpr((n)==-1,rb_define_protected_methodm1,rb_define_protected_method_choose_prototype0(n))
1164 #define rb_define_protected_method_choose_prototypem2(n) rb_define_method_if_constexpr((n)==-2,rb_define_protected_methodm2,rb_define_protected_method_choose_prototypem1(n))
1165 #define rb_define_protected_method_choose_prototypem3(n, f) rb_define_method_if_constexpr(rb_f_notimplement_p(f),rb_define_protected_methodm3,rb_define_protected_method_choose_prototypem2(n))
1166 #define rb_define_protected_method(klass, mid, func, arity) rb_define_protected_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));
1167 #endif
1168 
1169 RB_METHOD_DEFINITION_DECL(rb_define_private_method, (2,3), (VALUE klass, const char *name), (klass, name))
1170 #ifdef __cplusplus
1171 #define rb_define_private_method(m, n, f, a) rb_define_private_method_tmpl<a>::define(m, n, f)
1172 #else
1173 #define rb_define_private_method_choose_prototype15(n) rb_define_method_if_constexpr((n)==15,rb_define_private_method15,rb_define_private_methodm3)
1174 #define rb_define_private_method_choose_prototype14(n) rb_define_method_if_constexpr((n)==14,rb_define_private_method14,rb_define_private_method_choose_prototype15(n))
1175 #define rb_define_private_method_choose_prototype13(n) rb_define_method_if_constexpr((n)==13,rb_define_private_method13,rb_define_private_method_choose_prototype14(n))
1176 #define rb_define_private_method_choose_prototype12(n) rb_define_method_if_constexpr((n)==12,rb_define_private_method12,rb_define_private_method_choose_prototype13(n))
1177 #define rb_define_private_method_choose_prototype11(n) rb_define_method_if_constexpr((n)==11,rb_define_private_method11,rb_define_private_method_choose_prototype12(n))
1178 #define rb_define_private_method_choose_prototype10(n) rb_define_method_if_constexpr((n)==10,rb_define_private_method10,rb_define_private_method_choose_prototype11(n))
1179 #define rb_define_private_method_choose_prototype9(n) rb_define_method_if_constexpr((n)== 9,rb_define_private_method9, rb_define_private_method_choose_prototype10(n))
1180 #define rb_define_private_method_choose_prototype8(n) rb_define_method_if_constexpr((n)== 8,rb_define_private_method8, rb_define_private_method_choose_prototype9(n))
1181 #define rb_define_private_method_choose_prototype7(n) rb_define_method_if_constexpr((n)== 7,rb_define_private_method7, rb_define_private_method_choose_prototype8(n))
1182 #define rb_define_private_method_choose_prototype6(n) rb_define_method_if_constexpr((n)== 6,rb_define_private_method6, rb_define_private_method_choose_prototype7(n))
1183 #define rb_define_private_method_choose_prototype5(n) rb_define_method_if_constexpr((n)== 5,rb_define_private_method5, rb_define_private_method_choose_prototype6(n))
1184 #define rb_define_private_method_choose_prototype4(n) rb_define_method_if_constexpr((n)== 4,rb_define_private_method4, rb_define_private_method_choose_prototype5(n))
1185 #define rb_define_private_method_choose_prototype3(n) rb_define_method_if_constexpr((n)== 3,rb_define_private_method3, rb_define_private_method_choose_prototype4(n))
1186 #define rb_define_private_method_choose_prototype2(n) rb_define_method_if_constexpr((n)== 2,rb_define_private_method2, rb_define_private_method_choose_prototype3(n))
1187 #define rb_define_private_method_choose_prototype1(n) rb_define_method_if_constexpr((n)== 1,rb_define_private_method1, rb_define_private_method_choose_prototype2(n))
1188 #define rb_define_private_method_choose_prototype0(n) rb_define_method_if_constexpr((n)== 0,rb_define_private_method0, rb_define_private_method_choose_prototype1(n))
1189 #define rb_define_private_method_choose_prototypem1(n) rb_define_method_if_constexpr((n)==-1,rb_define_private_methodm1,rb_define_private_method_choose_prototype0(n))
1190 #define rb_define_private_method_choose_prototypem2(n) rb_define_method_if_constexpr((n)==-2,rb_define_private_methodm2,rb_define_private_method_choose_prototypem1(n))
1191 #define rb_define_private_method_choose_prototypem3(n, f) rb_define_method_if_constexpr(rb_f_notimplement_p(f),rb_define_private_methodm3,rb_define_private_method_choose_prototypem2(n))
1192 #define rb_define_private_method(klass, mid, func, arity) rb_define_private_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));
1193 #endif
1194 
1195 RB_METHOD_DEFINITION_DECL(rb_define_singleton_method, (2,3), (VALUE klass, const char *name), (klass, name))
1196 #ifdef __cplusplus
1197 #define rb_define_singleton_method(m, n, f, a) rb_define_singleton_method_tmpl<a>::define(m, n, f)
1198 #else
1199 #define rb_define_singleton_method_choose_prototype15(n) rb_define_method_if_constexpr((n)==15,rb_define_singleton_method15,rb_define_singleton_methodm3)
1200 #define rb_define_singleton_method_choose_prototype14(n) rb_define_method_if_constexpr((n)==14,rb_define_singleton_method14,rb_define_singleton_method_choose_prototype15(n))
1201 #define rb_define_singleton_method_choose_prototype13(n) rb_define_method_if_constexpr((n)==13,rb_define_singleton_method13,rb_define_singleton_method_choose_prototype14(n))
1202 #define rb_define_singleton_method_choose_prototype12(n) rb_define_method_if_constexpr((n)==12,rb_define_singleton_method12,rb_define_singleton_method_choose_prototype13(n))
1203 #define rb_define_singleton_method_choose_prototype11(n) rb_define_method_if_constexpr((n)==11,rb_define_singleton_method11,rb_define_singleton_method_choose_prototype12(n))
1204 #define rb_define_singleton_method_choose_prototype10(n) rb_define_method_if_constexpr((n)==10,rb_define_singleton_method10,rb_define_singleton_method_choose_prototype11(n))
1205 #define rb_define_singleton_method_choose_prototype9(n) rb_define_method_if_constexpr((n)== 9,rb_define_singleton_method9, rb_define_singleton_method_choose_prototype10(n))
1206 #define rb_define_singleton_method_choose_prototype8(n) rb_define_method_if_constexpr((n)== 8,rb_define_singleton_method8, rb_define_singleton_method_choose_prototype9(n))
1207 #define rb_define_singleton_method_choose_prototype7(n) rb_define_method_if_constexpr((n)== 7,rb_define_singleton_method7, rb_define_singleton_method_choose_prototype8(n))
1208 #define rb_define_singleton_method_choose_prototype6(n) rb_define_method_if_constexpr((n)== 6,rb_define_singleton_method6, rb_define_singleton_method_choose_prototype7(n))
1209 #define rb_define_singleton_method_choose_prototype5(n) rb_define_method_if_constexpr((n)== 5,rb_define_singleton_method5, rb_define_singleton_method_choose_prototype6(n))
1210 #define rb_define_singleton_method_choose_prototype4(n) rb_define_method_if_constexpr((n)== 4,rb_define_singleton_method4, rb_define_singleton_method_choose_prototype5(n))
1211 #define rb_define_singleton_method_choose_prototype3(n) rb_define_method_if_constexpr((n)== 3,rb_define_singleton_method3, rb_define_singleton_method_choose_prototype4(n))
1212 #define rb_define_singleton_method_choose_prototype2(n) rb_define_method_if_constexpr((n)== 2,rb_define_singleton_method2, rb_define_singleton_method_choose_prototype3(n))
1213 #define rb_define_singleton_method_choose_prototype1(n) rb_define_method_if_constexpr((n)== 1,rb_define_singleton_method1, rb_define_singleton_method_choose_prototype2(n))
1214 #define rb_define_singleton_method_choose_prototype0(n) rb_define_method_if_constexpr((n)== 0,rb_define_singleton_method0, rb_define_singleton_method_choose_prototype1(n))
1215 #define rb_define_singleton_method_choose_prototypem1(n) rb_define_method_if_constexpr((n)==-1,rb_define_singleton_methodm1,rb_define_singleton_method_choose_prototype0(n))
1216 #define rb_define_singleton_method_choose_prototypem2(n) rb_define_method_if_constexpr((n)==-2,rb_define_singleton_methodm2,rb_define_singleton_method_choose_prototypem1(n))
1217 #define rb_define_singleton_method_choose_prototypem3(n, f) rb_define_method_if_constexpr(rb_f_notimplement_p(f),rb_define_singleton_methodm3,rb_define_singleton_method_choose_prototypem2(n))
1218 #define rb_define_singleton_method(klass, mid, func, arity) rb_define_singleton_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));
1219 #endif
1220 
1221 #endif
1222 
1223 #if defined(__cplusplus)
1224 #if 0
1225 { /* satisfy cc-mode */
1226 #endif
1227 } /* extern "C++" { */
1228 #endif
1229 
1230 #endif /* RUBY_INTERN_H */
rb_reg_match_post
VALUE rb_reg_match_post(VALUE)
Definition: re.c:1775
rb_mutex_synchronize
VALUE rb_mutex_synchronize(VALUE mutex, VALUE(*func)(VALUE arg), VALUE arg)
Definition: thread_sync.c:522
rb_io_gets
VALUE rb_io_gets(VALUE)
Definition: io.c:3573
rb_str_replace
VALUE rb_str_replace(VALUE, VALUE)
Definition: string.c:5363
rb_thread_fd_writable
int rb_thread_fd_writable(int)
Definition: thread.c:4048
rb_match_busy
void rb_match_busy(VALUE)
Definition: re.c:1287
rb_io_puts
VALUE rb_io_puts(int, const VALUE *, VALUE)
Definition: io.c:7747
rb_reset_random_seed
void rb_reset_random_seed(void)
Definition: random.c:1498
rb_hash_update_func
VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value)
Definition: intern.h:573
rb_str_plus
VALUE rb_str_plus(VALUE, VALUE)
Definition: string.c:1894
rb_str_ellipsize
VALUE rb_str_ellipsize(VALUE, long)
Shortens str and adds three dots, an ellipsis, if it is longer than len characters.
Definition: string.c:10185
rb_big_div
VALUE rb_big_div(VALUE, VALUE)
Definition: bignum.c:6091
rb_proc_lambda_p
VALUE rb_proc_lambda_p(VALUE)
Definition: proc.c:275
rb_reg_nth_defined
VALUE rb_reg_nth_defined(int, VALUE)
Definition: re.c:1688
rb_fd_copy
#define rb_fd_copy(d, s, n)
Definition: intern.h:408
ID
unsigned long ID
Definition: ruby.h:103
rb_gc_enable
VALUE rb_gc_enable(void)
Definition: gc.c:9209
rb_check_funcall
VALUE rb_check_funcall(VALUE, ID, int, const VALUE *)
Definition: vm_eval.c:505
RUBY_SYMBOL_EXPORT_END
#define RUBY_SYMBOL_EXPORT_END
Definition: missing.h:49
rb_cv_get
VALUE rb_cv_get(VALUE, const char *)
Definition: variable.c:3138
rb_str_concat
VALUE rb_str_concat(VALUE, VALUE)
Definition: string.c:3065
fd_set
#define fd_set
Definition: rb_mjit_min_header-2.7.0.h:1271
rb_define_method_id
void rb_define_method_id(VALUE, ID, VALUE(*)(ANYARGS), int)
Definition: class.c:1542
rb_genrand_real
double rb_genrand_real(void)
Definition: random.c:122
rb_sourcefile
const char * rb_sourcefile(void)
Definition: vm.c:1331
rb_is_const_id
int rb_is_const_id(ID id)
Definition: symbol.c:854
rb_big_minus
VALUE rb_big_minus(VALUE, VALUE)
Definition: bignum.c:5853
rb_cloexec_dup2
int rb_cloexec_dup2(int oldfd, int newfd)
Definition: io.c:325
rb_ary_modify
void rb_ary_modify(VALUE)
Definition: array.c:548
rb_spawn_err
rb_pid_t rb_spawn_err(int, const VALUE *, char *, size_t)
Definition: process.c:4435
rb_str_vcatf
VALUE rb_str_vcatf(VALUE, const char *, va_list)
Definition: sprintf.c:1210
rb_ary_push
VALUE rb_ary_push(VALUE, VALUE)
Definition: array.c:1195
rb_struct_define_under
VALUE rb_struct_define_under(VALUE, const char *,...)
Definition: struct.c:449
rb_str_freeze
VALUE rb_str_freeze(VALUE)
Definition: string.c:2616
rb_fd_dup
#define rb_fd_dup(d, s)
Definition: intern.h:409
rb_thread_check_ints
void rb_thread_check_ints(void)
Definition: thread.c:1362
rb_flt_rationalize_with_prec
VALUE rb_flt_rationalize_with_prec(VALUE, VALUE)
Definition: rational.c:2226
time_t
long time_t
Definition: rb_mjit_min_header-2.7.0.h:1236
abs
int abs(int)
rb_method_call
VALUE rb_method_call(int, const VALUE *, VALUE)
Definition: proc.c:2261
rb_ary_dup
VALUE rb_ary_dup(VALUE)
Definition: array.c:2238
rb_cloexec_dup
int rb_cloexec_dup(int oldfd)
Definition: io.c:318
rb_exc_new
VALUE rb_exc_new(VALUE, const char *, long)
Definition: error.c:959
rb_time_timespec
struct timespec rb_time_timespec(VALUE time)
Definition: time.c:2692
rb_mod_remove_const
VALUE rb_mod_remove_const(VALUE, VALUE)
Definition: variable.c:2479
rb_proc_call_with_block_kw
VALUE rb_proc_call_with_block_kw(VALUE, int argc, const VALUE *argv, VALUE, int)
Definition: proc.c:986
rb_default_rs
RUBY_EXTERN VALUE rb_default_rs
Definition: intern.h:586
rb_cloexec_pipe
int rb_cloexec_pipe(int fildes[2])
Definition: io.c:378
rb_big_pack
void rb_big_pack(VALUE val, unsigned long *buf, long num_longs)
Definition: bignum.c:3215
rb_str_hash
st_index_t rb_str_hash(VALUE)
Definition: string.c:3163
rb_method_basic_definition_p
int rb_method_basic_definition_p(VALUE, ID)
Definition: vm_method.c:2072
range
#define range(low, item, hi)
Definition: date_strftime.c:21
rb_io_close
VALUE rb_io_close(VALUE)
Definition: io.c:4820
rb_thread_wakeup_alive
VALUE rb_thread_wakeup_alive(VALUE)
Definition: thread.c:2549
rb_exc_new_str
VALUE rb_exc_new_str(VALUE, VALUE)
Definition: error.c:972
rb_cmpint
int rb_cmpint(VALUE, VALUE, VALUE)
Definition: bignum.c:2925
rb_const_defined
int rb_const_defined(VALUE, ID)
Definition: variable.c:2682
rb_tainted_str_new
VALUE rb_tainted_str_new(const char *, long)
Definition: string.c:896
rb_struct_size
VALUE rb_struct_size(VALUE s)
Definition: struct.c:1294
rb_feature_provided
int rb_feature_provided(const char *, const char **)
Definition: load.c:519
rb_frame_method_id_and_class
int rb_frame_method_id_and_class(ID *idp, VALUE *klassp)
Definition: vm.c:2206
rb_gc_count
size_t rb_gc_count(void)
Definition: gc.c:8711
rb_str_scrub
VALUE rb_str_scrub(VALUE, VALUE)
Definition: string.c:10248
rb_timespec_now
void rb_timespec_now(struct timespec *)
Definition: time.c:1873
path
VALUE path
Definition: rb_mjit_min_header-2.7.0.h:7351
rb_gc_mark_locations
void rb_gc_mark_locations(const VALUE *, const VALUE *)
Definition: gc.c:4699
rb_Hash
VALUE rb_Hash(VALUE)
Equivalent to Kernel#Hash in Ruby.
Definition: object.c:3727
rb_last_status_get
VALUE rb_last_status_get(void)
Definition: process.c:518
rb_mod_class_variables
VALUE rb_mod_class_variables(int, const VALUE *, VALUE)
Definition: variable.c:3237
rb_struct_members
VALUE rb_struct_members(VALUE)
Definition: struct.c:72
rb_ary_plus
VALUE rb_ary_plus(VALUE, VALUE)
Definition: array.c:4000
rb_str_buf_cat2
#define rb_str_buf_cat2
Definition: intern.h:911
rb_str_buf_new
VALUE rb_str_buf_new(long)
Definition: string.c:1315
rb_hash_free
void rb_hash_free(VALUE)
rb_complex_polar
VALUE rb_complex_polar(VALUE x, VALUE y)
Definition: complex.c:1539
rb_fiber_yield
VALUE rb_fiber_yield(int argc, const VALUE *argv)
Definition: cont.c:2114
COLDFUNC
#define COLDFUNC
Definition: defines.h:102
rb_assoc_new
VALUE rb_assoc_new(VALUE, VALUE)
Definition: array.c:896
rb_genrand_ulong_limited
unsigned long rb_genrand_ulong_limited(unsigned long i)
Definition: random.c:807
rb_binding_new
VALUE rb_binding_new(void)
Definition: proc.c:364
rb_str_buf_cat_ascii
VALUE rb_str_buf_cat_ascii(VALUE, const char *)
Definition: string.c:2926
marker
const VALUE VALUE VALUE marker
Definition: rb_mjit_min_header-2.7.0.h:5742
rb_random_bytes
VALUE rb_random_bytes(VALUE rnd, long n)
Definition: random.c:1021
rb_time_num_new
VALUE rb_time_num_new(VALUE, VALUE)
Definition: time.c:2553
rb_proc_times
VALUE rb_proc_times(VALUE)
rb_cvar_defined
VALUE rb_cvar_defined(VALUE, ID)
Definition: variable.c:3112
rb_str_buf_new_cstr
VALUE rb_str_buf_new_cstr(const char *)
Definition: string.c:1331
rb_ary_to_ary
VALUE rb_ary_to_ary(VALUE)
Definition: array.c:1853
rb_mutex_trylock
VALUE rb_mutex_trylock(VALUE mutex)
Definition: thread_sync.c:203
rb_during_gc
int rb_during_gc(void)
Definition: gc.c:8687
rb_f_abort
VALUE rb_f_abort(int argc, const VALUE *argv)
Definition: process.c:4277
rb_ary_concat
VALUE rb_ary_concat(VALUE, VALUE)
Definition: array.c:4069
rb_proc_exec
int rb_proc_exec(const char *)
Definition: process.c:1665
rb_fd_clr
#define rb_fd_clr(n, f)
Definition: intern.h:406
rb_complex_conjugate
VALUE rb_complex_conjugate(VALUE z)
Definition: complex.c:1254
rb_dbl_cmp
VALUE rb_dbl_cmp(double a, double b)
Definition: numeric.c:1431
rb_io_printf
VALUE rb_io_printf(int, const VALUE *, VALUE)
Definition: io.c:7505
rb_get_alloc_func
rb_alloc_func_t rb_get_alloc_func(VALUE)
Definition: vm_method.c:728
rb_mod_constants
VALUE rb_mod_constants(int, const VALUE *, VALUE)
Definition: variable.c:2626
time
time_t time(time_t *_timer)
rb_external_str_new
VALUE rb_external_str_new(const char *, long)
Definition: string.c:1087
rb_str_substr
VALUE rb_str_substr(VALUE, long, long)
Definition: string.c:2584
rb_ary_rassoc
VALUE rb_ary_rassoc(VALUE, VALUE)
Definition: array.c:4189
rb_marshal_define_compat
void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE(*dumper)(VALUE), VALUE(*loader)(VALUE, VALUE))
Definition: marshal.c:133
rb_random_ulong_limited
unsigned long rb_random_ulong_limited(VALUE rnd, unsigned long limit)
Definition: random.c:930
rb_ary_assoc
VALUE rb_ary_assoc(VALUE, VALUE)
Definition: array.c:4156
rb_attr_get
VALUE rb_attr_get(VALUE, ID)
Definition: variable.c:1084
LONG_LONG
#define LONG_LONG
Definition: rb_mjit_min_header-2.7.0.h:3939
rb_str_new
VALUE rb_str_new(const char *, long)
Definition: string.c:774
rb_class_superclass
VALUE rb_class_superclass(VALUE)
Returns the superclass of klass.
Definition: object.c:1976
rb_class_new_instance_kw
VALUE rb_class_new_instance_kw(int, const VALUE *, VALUE, int)
Definition: object.c:1931
rb_cstr_to_dbl
double rb_cstr_to_dbl(const char *, int)
Parses a string representation of a floating point number.
Definition: object.c:3319
rb_enumeratorize
VALUE rb_enumeratorize(VALUE, VALUE, int, const VALUE *)
Definition: enumerator.c:516
rb_singleton_class_clone
VALUE rb_singleton_class_clone(VALUE)
Definition: class.c:370
rb_ary_subseq
VALUE rb_ary_subseq(VALUE, long, long)
Definition: array.c:1518
VALUE
unsigned long VALUE
Definition: ruby.h:102
rb_id_attrset
ID rb_id_attrset(ID)
Definition: symbol.c:98
rb_complex_arg
VALUE rb_complex_arg(VALUE z)
Definition: complex.c:1208
rb_obj_as_string
VALUE rb_obj_as_string(VALUE)
Definition: string.c:1440
rb_module_new
VALUE rb_module_new(void)
Definition: class.c:758
rb_w32_fd_copy
void rb_w32_fd_copy(rb_fdset_t *dst, const fd_set *src, int max)
Definition: win32.c:2857
rb_clear_method_cache_by_class
void rb_clear_method_cache_by_class(VALUE)
Definition: vm_method.c:93
rb_mod_init_copy
VALUE rb_mod_init_copy(VALUE, VALUE)
Definition: class.c:313
rb_hash_update_by
VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func)
Definition: hash.c:3835
rb_str_cat_cstr
VALUE rb_str_cat_cstr(VALUE, const char *)
Definition: string.c:2822
rb_mutex_locked_p
VALUE rb_mutex_locked_p(VALUE mutex)
Definition: thread_sync.c:177
rb_hash_set_ifnone
VALUE rb_hash_set_ifnone(VALUE hash, VALUE ifnone)
Definition: hash.c:99
rb_Complex
VALUE rb_Complex(VALUE, VALUE)
Definition: complex.c:1545
rb_utf8_str_new
VALUE rb_utf8_str_new(const char *, long)
Definition: string.c:788
rb_big_divmod
VALUE rb_big_divmod(VALUE, VALUE)
Definition: bignum.c:6135
rb_thread_current
VALUE rb_thread_current(void)
Definition: thread.c:2676
rb_arithmetic_sequence_components_t
Definition: intern.h:281
rb_f_exit
VALUE rb_f_exit(int argc, const VALUE *argv)
Definition: process.c:4203
rb_ary_shift
VALUE rb_ary_shift(VALUE)
Definition: array.c:1294
rb_set_end_proc
void rb_set_end_proc(void(*)(VALUE), VALUE)
Definition: eval_jump.c:59
rb_file_open
VALUE rb_file_open(const char *, const char *)
Definition: io.c:6259
rb_rational_num
VALUE rb_rational_num(VALUE rat)
Definition: rational.c:1960
rb_check_convert_type
VALUE rb_check_convert_type(VALUE, int, const char *, const char *)
Tries to convert an object into another type.
Definition: object.c:2941
rb_obj_untrusted
VALUE rb_obj_untrusted(VALUE obj)
call-seq: obj.untrusted? -> false
Definition: object.c:1028
rb_str_strlen
long rb_str_strlen(VALUE)
Definition: string.c:1829
int
__inline__ int
Definition: rb_mjit_min_header-2.7.0.h:2839
rb_rational_den
VALUE rb_rational_den(VALUE rat)
Definition: rational.c:1966
rb_absint_size
size_t rb_absint_size(VALUE val, int *nlz_bits_ret)
Definition: bignum.c:3247
rb_hash_new
VALUE rb_hash_new(void)
Definition: hash.c:1501
PUREFUNC
PUREFUNC(int rb_during_gc(void))
rb_file_s_expand_path
VALUE rb_file_s_expand_path(int, const VALUE *)
Definition: file.c:4031
rb_output_rs
RUBY_EXTERN VALUE rb_output_rs
Definition: intern.h:587
rb_mark_tbl
void rb_mark_tbl(struct st_table *)
Definition: gc.c:5005
rb_const_get_at
VALUE rb_const_get_at(VALUE, ID)
Definition: variable.c:2393
rb_cv_set
void rb_cv_set(VALUE, const char *, VALUE)
Definition: variable.c:3131
rb_gc_disable
VALUE rb_gc_disable(void)
Definition: gc.c:9235
rb_fd_fix_cloexec
void rb_fd_fix_cloexec(int fd)
Definition: io.c:268
rb_complex_uminus
VALUE rb_complex_uminus(VALUE z)
Definition: complex.c:758
rb_cloexec_fcntl_dupfd
int rb_cloexec_fcntl_dupfd(int fd, int minfd)
Definition: io.c:419
rb_str_length
VALUE rb_str_length(VALUE)
Definition: string.c:1843
rb_thread_sleep
void rb_thread_sleep(int)
Definition: thread.c:1385
rb_ary_resurrect
VALUE rb_ary_resurrect(VALUE ary)
Definition: array.c:2251
rb_free_generic_ivar
void rb_free_generic_ivar(VALUE)
Definition: variable.c:993
rb_dir_getwd
VALUE rb_dir_getwd(void)
Definition: dir.c:1141
rb_lastline_set
void rb_lastline_set(VALUE)
Definition: vm.c:1322
rb_inspect
VALUE rb_inspect(VALUE)
Convenient wrapper of Object::inspect.
Definition: object.c:551
rb_time_nano_new
VALUE rb_time_nano_new(time_t, long)
Definition: time.c:2519
rb_complex_real
VALUE rb_complex_real(VALUE z)
Definition: complex.c:726
rb_marshal_dump
VALUE rb_marshal_dump(VALUE, VALUE)
Definition: marshal.c:2310
rb_complex_new
VALUE rb_complex_new(VALUE, VALUE)
Definition: complex.c:1527
rb_obj_untaint
VALUE rb_obj_untaint(VALUE)
call-seq: obj.untaint -> obj
Definition: object.c:1014
rb_Rational
VALUE rb_Rational(VALUE, VALUE)
Definition: rational.c:1951
rb_big_and
VALUE rb_big_and(VALUE, VALUE)
Definition: bignum.c:6360
rb_str_dup
VALUE rb_str_dup(VALUE)
Definition: string.c:1516
rb_f_exec
VALUE rb_f_exec(int argc, const VALUE *argv)
Definition: process.c:2882
rb_hash_tbl
struct st_table * rb_hash_tbl(VALUE, const char *file, int line)
Definition: hash.c:1574
rb_str_cat2
#define rb_str_cat2
Definition: intern.h:912
rb_check_string_type
VALUE rb_check_string_type(VALUE)
Definition: string.c:2314
rb_Float
VALUE rb_Float(VALUE)
Equivalent to Kernel#Float in Ruby.
Definition: object.c:3493
rb_dbl2big
VALUE rb_dbl2big(double)
Definition: bignum.c:5249
rb_time_utc_offset
VALUE rb_time_utc_offset(VALUE time)
Definition: time.c:4791
rb_mutex_sleep
VALUE rb_mutex_sleep(VALUE self, VALUE timeout)
Definition: thread_sync.c:465
rb_define_singleton_method
void rb_define_singleton_method(VALUE, const char *, VALUE(*)(ANYARGS), int)
Defines a singleton method for obj.
Definition: class.c:1755
rb_big_unpack
VALUE rb_big_unpack(unsigned long *buf, long num_longs)
Definition: bignum.c:3223
rb_arithmetic_sequence_extract
int rb_arithmetic_sequence_extract(VALUE, rb_arithmetic_sequence_components_t *)
Definition: enumerator.c:3374
rb_time_timespec_new
VALUE rb_time_timespec_new(const struct timespec *, int)
Returns a time object with UTC/localtime/fixed offset.
Definition: time.c:2530
rb_big_lshift
VALUE rb_big_lshift(VALUE, VALUE)
Definition: bignum.c:6621
rb_str_modify
void rb_str_modify(VALUE)
Definition: string.c:2114
rb_hash_lookup2
VALUE rb_hash_lookup2(VALUE, VALUE, VALUE)
Definition: hash.c:1977
rb_make_exception
VALUE rb_make_exception(int, const VALUE *)
Make an Exception object from the list of arguments in a manner similar to Kernel#raise.
Definition: eval.c:850
rb_str_to_dbl
double rb_str_to_dbl(VALUE, int)
Parses a string representation of a floating point number.
Definition: object.c:3371
rb_const_set
void rb_const_set(VALUE, ID, VALUE)
Definition: variable.c:2752
rb_proc_arity
int rb_proc_arity(VALUE)
Definition: proc.c:1112
ptr
struct RIMemo * ptr
Definition: debug.c:74
rb_define_protected_method
void rb_define_protected_method(VALUE, const char *, VALUE(*)(ANYARGS), int)
Definition: class.c:1560
rb_str_inspect
VALUE rb_str_inspect(VALUE)
Definition: string.c:5930
rb_check_hash_type
VALUE rb_check_hash_type(VALUE)
Definition: hash.c:1825
rb_Integer
VALUE rb_Integer(VALUE)
Equivalent to Kernel#Integer in Ruby.
Definition: object.c:3106
rb_define_class_variable
void rb_define_class_variable(VALUE, const char *, VALUE)
Definition: variable.c:3145
rb_str_setter
rb_gvar_setter_t rb_str_setter
Definition: intern.h:828
rb_memory_id
VALUE rb_memory_id(VALUE)
Definition: gc.c:3737
rb_loaderror
void rb_loaderror(const char *fmt,...)
Definition: error.c:2688
rb_provided
int rb_provided(const char *)
Definition: load.c:513
rb_find_file_safe
VALUE rb_find_file_safe(VALUE, int)
Definition: file.c:6329
ssize_t
_ssize_t ssize_t
Definition: rb_mjit_min_header-2.7.0.h:1329
CONSTFUNC
CONSTFUNC(VALUE rb_dbl_cmp(double, double))
rb_gvar_setter_t
void rb_gvar_setter_t(VALUE val, ID id, VALUE *data)
Definition: ruby.h:1783
rb_name_error
void rb_name_error(ID id, const char *fmt,...)
Definition: error.c:1513
rb_arithmetic_sequence_components_t::exclude_end
int exclude_end
Definition: intern.h:285
rb_obj_instance_variables
VALUE rb_obj_instance_variables(VALUE)
Definition: variable.c:1579
rb_method_boundp
int rb_method_boundp(VALUE, ID, int)
Definition: vm_method.c:1102
rb_reg_backref_number
int rb_reg_backref_number(VALUE match, VALUE backref)
Definition: re.c:1173
rb_enumerator_size_func
VALUE rb_enumerator_size_func(VALUE, VALUE, VALUE)
Definition: intern.h:256
rb_const_remove
VALUE rb_const_remove(VALUE, ID)
Definition: variable.c:2490
rb_integer_unpack
VALUE rb_integer_unpack(const void *words, size_t numwords, size_t wordsize, size_t nails, int flags)
Definition: bignum.c:3633
rb_set_class_path
void rb_set_class_path(VALUE, VALUE, const char *)
Definition: variable.c:218
rb_arithmetic_sequence_components_t::begin
VALUE begin
Definition: intern.h:282
st.h
NULL
#define NULL
Definition: _sdbm.c:101
rb_filesystem_str_new_cstr
VALUE rb_filesystem_str_new_cstr(const char *)
Definition: string.c:1117
rb_waitpid
rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags)
Definition: process.c:1213
rb_struct_initialize
VALUE rb_struct_initialize(VALUE, VALUE)
Definition: struct.c:662
uint32_t
unsigned int uint32_t
Definition: sha2.h:101
rb_fdset_t::fdset
_types_fd_set * fdset
Definition: rb_mjit_min_header-2.7.0.h:5707
rb_genrand_int32
unsigned int rb_genrand_int32(void)
Definition: random.c:115
rb_sym_all_symbols
VALUE rb_sym_all_symbols(void)
Definition: symbol.c:840
rb_thread_interrupted
int rb_thread_interrupted(VALUE thval)
Definition: thread.c:1379
rb_reg_new
VALUE rb_reg_new(const char *, long, int)
Definition: re.c:2946
rb_fd_select
#define rb_fd_select(n, rfds, wfds, efds, timeout)
Definition: intern.h:416
rb_gc_copy_finalizer
void rb_gc_copy_finalizer(VALUE, VALUE)
Definition: gc.c:3295
rb_write_error2
void rb_write_error2(const char *, long)
Definition: io.c:7911
rb_obj_respond_to
int rb_obj_respond_to(VALUE, ID, int)
Definition: vm_method.c:2180
rb_is_attrset_id
int rb_is_attrset_id(ID id)
Definition: symbol.c:878
rb_require_safe
VALUE rb_require_safe(VALUE, int)
Definition: load.c:1085
rb_file_s_absolute_path
VALUE rb_file_s_absolute_path(int, const VALUE *)
Definition: file.c:4079
rb_big_2comp
void rb_big_2comp(VALUE)
Definition: bignum.c:3049
rb_struct_alloc
VALUE rb_struct_alloc(VALUE, VALUE)
Definition: struct.c:727
rb_is_junk_id
int rb_is_junk_id(ID id)
Definition: symbol.c:890
rb_struct_alloc_noinit
VALUE rb_struct_alloc_noinit(VALUE)
Definition: struct.c:352
rb_big_rshift
VALUE rb_big_rshift(VALUE, VALUE)
Definition: bignum.c:6651
rb_check_frozen_internal
#define rb_check_frozen_internal(obj)
Definition: intern.h:305
rb_blocking_function_t
VALUE rb_blocking_function_t(void *)
Definition: intern.h:941
rb_str_locktmp
VALUE rb_str_locktmp(VALUE)
rb_str_split
VALUE rb_str_split(VALUE, const char *)
Definition: string.c:8116
rb_gc_start
VALUE rb_gc_start(void)
Definition: gc.c:8672
rb_num_coerce_cmp
VALUE rb_num_coerce_cmp(VALUE, VALUE, ID)
Definition: numeric.c:453
rb_hash_aref
VALUE rb_hash_aref(VALUE, VALUE)
Definition: hash.c:1964
rb_complex_pow
VALUE rb_complex_pow(VALUE base, VALUE exp)
Definition: complex.c:985
rb_big_mul
VALUE rb_big_mul(VALUE, VALUE)
Definition: bignum.c:5933
rb_respond_to
int rb_respond_to(VALUE, ID)
Definition: vm_method.c:2190
rb_is_class_id
int rb_is_class_id(ID id)
Definition: symbol.c:860
posix_signal
#define posix_signal
Definition: rb_mjit_min_header-2.7.0.h:6022
rb_struct_new
VALUE rb_struct_new(VALUE,...)
Definition: struct.c:733
rb_protect
VALUE rb_protect(VALUE(*)(VALUE), VALUE, int *)
Protects a function call from potential global escapes from the function.
Definition: eval.c:1071
rb_check_arity
#define rb_check_arity
Definition: intern.h:347
rb_eql
int rb_eql(VALUE, VALUE)
Determines if obj1 and obj2 are equal in terms of Object::eql?.
Definition: object.c:147
rb_cvar_set
void rb_cvar_set(VALUE, ID, VALUE)
Definition: variable.c:3074
rb_hash_uint32
#define rb_hash_uint32(h, i)
Definition: intern.h:814
rb_memhash
st_index_t rb_memhash(const void *ptr, long len)
Definition: random.c:1440
rb_obj_taint
VALUE rb_obj_taint(VALUE)
call-seq: obj.taint -> obj
Definition: object.c:999
rb_usascii_str_new_static
VALUE rb_usascii_str_new_static(const char *, long)
Definition: string.c:878
rb_error_frozen
void rb_error_frozen(const char *what)
Definition: error.c:2974
rb_ary_free
void rb_ary_free(VALUE)
Definition: array.c:786
rb_mutex_lock
VALUE rb_mutex_lock(VALUE mutex)
Definition: thread_sync.c:333
rb_fiber_resume_kw
VALUE rb_fiber_resume_kw(VALUE fib, int argc, const VALUE *argv, int kw_splat)
Definition: cont.c:2082
rb_str_capacity
size_t rb_str_capacity(VALUE str)
Definition: string.c:712
rb_fiber_resume
VALUE rb_fiber_resume(VALUE fib, int argc, const VALUE *argv)
Definition: cont.c:2102
rb_f_global_variables
VALUE rb_f_global_variables(void)
Definition: variable.c:728
rb_str_resize
VALUE rb_str_resize(VALUE, long)
Definition: string.c:2709
rb_obj_untrust
VALUE rb_obj_untrust(VALUE)
call-seq: obj.untrust -> obj
Definition: object.c:1042
UNLIMITED_ARGUMENTS
#define UNLIMITED_ARGUMENTS
Definition: intern.h:57
rb_fdset_t
Definition: rb_mjit_min_header-2.7.0.h:5705
rb_vsprintf
VALUE rb_vsprintf(const char *, va_list)
Definition: sprintf.c:1191
rb_require_string
VALUE rb_require_string(VALUE)
Definition: load.c:1102
rb_define_finalizer
VALUE rb_define_finalizer(VALUE, VALUE)
Definition: gc.c:3287
rb_str_hash_cmp
int rb_str_hash_cmp(VALUE, VALUE)
Definition: string.c:3173
rb_sourceline
int rb_sourceline(void)
Definition: vm.c:1346
rb_ivar_get
VALUE rb_ivar_get(VALUE, ID)
Definition: variable.c:1070
rb_hash_lookup
VALUE rb_hash_lookup(VALUE, VALUE)
Definition: hash.c:1990
defines.h
rb_str_times
VALUE rb_str_times(VALUE, VALUE)
Definition: string.c:1966
rb_thread_sleep_deadly
void rb_thread_sleep_deadly(void)
Definition: thread.c:1321
rb_big_idiv
VALUE rb_big_idiv(VALUE, VALUE)
Definition: bignum.c:6097
rb_io_binmode
VALUE rb_io_binmode(VALUE)
Definition: io.c:5334
rb_st_foreach_safe
void rb_st_foreach_safe(struct st_table *, int(*)(st_data_t, st_data_t, st_data_t), st_data_t)
rb_to_float
VALUE rb_to_float(VALUE)
Converts a Numeric object into Float.
Definition: object.c:3542
rb_env_clear
VALUE rb_env_clear(void)
Definition: hash.c:5553
rb_ivar_foreach
void rb_ivar_foreach(VALUE, int(*)(ID, VALUE, st_data_t), st_data_t)
rb_integer_pack
int rb_integer_pack(VALUE val, void *words, size_t numwords, size_t wordsize, size_t nails, int flags)
Definition: bignum.c:3547
obj
const VALUE VALUE obj
Definition: rb_mjit_min_header-2.7.0.h:5742
rb_backtrace
void rb_backtrace(void)
Definition: vm_backtrace.c:829
rb_io_eof
VALUE rb_io_eof(VALUE)
Definition: io.c:2149
rb_reg_match_last
VALUE rb_reg_match_last(VALUE)
Definition: re.c:1792
rb_obj_class
VALUE rb_obj_class(VALUE)
Equivalent to Object#class in Ruby.
Definition: object.c:217
rb_alias_variable
void rb_alias_variable(ID, ID)
Definition: variable.c:756
rb_io_flush
VALUE rb_io_flush(VALUE)
Definition: io.c:1903
rb_alias
void rb_alias(VALUE, ID, ID)
Definition: vm_method.c:1581
rb_complex_raw
VALUE rb_complex_raw(VALUE, VALUE)
Definition: complex.c:1521
rb_str_format
VALUE rb_str_format(int, const VALUE *, VALUE)
Definition: sprintf.c:204
rb_obj_is_proc
VALUE rb_obj_is_proc(VALUE)
Definition: proc.c:152
rb_define_class_id
VALUE rb_define_class_id(ID, VALUE)
Defines a new class.
Definition: class.c:602
rb_reg_match_pre
VALUE rb_reg_match_pre(VALUE)
Definition: re.c:1749
rb_str_dump
VALUE rb_str_dump(VALUE)
Definition: string.c:6042
rb_ary_to_s
VALUE rb_ary_to_s(VALUE)
Definition: array.c:2453
rb_gc_mark_movable
void rb_gc_mark_movable(VALUE)
Definition: gc.c:5206
rb_ary_new_capa
VALUE rb_ary_new_capa(long capa)
Definition: array.c:717
DEPRECATED_BY
DEPRECATED_BY(rb_complex_new_polar, VALUE rb_complex_polar(VALUE abs, VALUE arg))
rb_syswait
void rb_syswait(rb_pid_t pid)
Definition: process.c:4308
rb_file_open_str
VALUE rb_file_open_str(VALUE, const char *)
Definition: io.c:6252
rb_str_drop_bytes
VALUE rb_str_drop_bytes(VALUE, long)
Definition: string.c:4573
rb_define_module_id_under
VALUE rb_define_module_id_under(VALUE, ID)
Definition: class.c:803
rb_utf8_str_new_static
VALUE rb_utf8_str_new_static(const char *, long)
Definition: string.c:884
rb_ary_entry
VALUE rb_ary_entry(VALUE, long)
Definition: array.c:1512
rb_big2ulong
unsigned long rb_big2ulong(VALUE)
Definition: bignum.c:5125
rb_ary_each
VALUE rb_ary_each(VALUE)
Definition: array.c:2129
rb_must_asciicompat
void rb_must_asciicompat(VALUE)
Definition: string.c:2166
rb_check_frozen
#define rb_check_frozen(obj)
Definition: intern.h:319
rb_str_intern
VALUE rb_str_intern(VALUE)
Definition: symbol.c:710
rb_obj_is_instance_of
VALUE rb_obj_is_instance_of(VALUE, VALUE)
Determines if obj is an instance of c.
Definition: object.c:675
rb_mem_clear
void rb_mem_clear(VALUE *, long)
Definition: array.c:243
rb_enumeratorize_with_size
#define rb_enumeratorize_with_size(obj, id, argc, argv, size_fn)
Definition: intern.h:260
rb_Array
VALUE rb_Array(VALUE)
Equivalent to Kernel#Array in Ruby.
Definition: object.c:3684
rb_thread_main
VALUE rb_thread_main(void)
Definition: thread.c:2697
rb_const_list
VALUE rb_const_list(void *)
Definition: variable.c:2594
rb_big2str
VALUE rb_big2str(VALUE, int)
Definition: bignum.c:5091
rb_thread_wait_fd
void rb_thread_wait_fd(int)
Definition: thread.c:4042
rb_argv0
RUBY_EXTERN VALUE rb_argv0
Definition: intern.h:734
rb_frame_this_func
ID rb_frame_this_func(void)
The original name of the current method.
Definition: eval.c:1182
rb_const_defined_from
int rb_const_defined_from(VALUE, ID)
Definition: variable.c:2676
rb_ary_includes
VALUE rb_ary_includes(VALUE, VALUE)
Definition: array.c:4340
rb_error_untrusted
void rb_error_untrusted(VALUE)
Definition: error.c:3034
rb_str_update
void rb_str_update(VALUE, long, long, VALUE)
Definition: string.c:4643
rb_complex_div
VALUE rb_complex_div(VALUE x, VALUE y)
Definition: complex.c:948
i
uint32_t i
Definition: rb_mjit_min_header-2.7.0.h:5464
rb_ary_new
VALUE rb_ary_new(void)
Definition: array.c:723
rb_singleton_class_attached
void rb_singleton_class_attached(VALUE, VALUE)
Attach a object to a singleton class.
Definition: class.c:426
rb_hash_delete_if
VALUE rb_hash_delete_if(VALUE)
Definition: hash.c:2420
rb_str_dup_frozen
#define rb_str_dup_frozen
Definition: intern.h:792
rb_hash_delete
VALUE rb_hash_delete(VALUE, VALUE)
Definition: hash.c:2271
rb_jump_tag
void rb_jump_tag(int tag)
Continues the exception caught by rb_protect() and rb_eval_string_protect().
Definition: eval.c:883
rb_file_dirname
VALUE rb_file_dirname(VALUE fname)
Definition: file.c:4645
rb_check_to_integer
VALUE rb_check_to_integer(VALUE, const char *)
Tries to convert val into Integer.
Definition: object.c:2999
rb_str_new_cstr
VALUE rb_str_new_cstr(const char *)
Definition: string.c:808
rb_clear_constant_cache
void rb_clear_constant_cache(void)
Definition: vm_method.c:87
rb_class_private_instance_methods
VALUE rb_class_private_instance_methods(int, const VALUE *, VALUE)
Definition: class.c:1310
rb_gc_adjust_memory_usage
void rb_gc_adjust_memory_usage(ssize_t)
Definition: gc.c:10300
rb_fd_set
#define rb_fd_set(n, f)
Definition: intern.h:405
rb_detach_process
VALUE rb_detach_process(rb_pid_t pid)
Definition: process.c:1423
rb_check_array_type
VALUE rb_check_array_type(VALUE)
Definition: array.c:909
rb_time_timespec_interval
struct timespec rb_time_timespec_interval(VALUE num)
Definition: time.c:2706
rb_hash
VALUE rb_hash(VALUE)
Definition: hash.c:129
rb_sym_interned_p
int rb_sym_interned_p(VALUE)
rb_memcicmp
int rb_memcicmp(const void *, const void *, long)
Definition: re.c:80
rb_gc_latest_gc_info
VALUE rb_gc_latest_gc_info(VALUE)
Definition: gc.c:8816
rb_ary_new_from_args
VALUE rb_ary_new_from_args(long n,...)
Definition: array.c:729
rb_ary_aref
VALUE rb_ary_aref(int, const VALUE *, VALUE)
Definition: array.c:1574
rb_reg_new_str
VALUE rb_reg_new_str(VALUE, int)
Definition: re.c:2894
rb_load_file_str
void * rb_load_file_str(VALUE)
Definition: ruby.c:2187
rb_gc_update_tbl_refs
void rb_gc_update_tbl_refs(st_table *ptr)
Definition: gc.c:7983
rb_load
void rb_load(VALUE, int)
Definition: load.c:649
rb_str_equal
VALUE rb_str_equal(VALUE str1, VALUE str2)
Definition: string.c:3267
rb_bigzero_p
int rb_bigzero_p(VALUE x)
Definition: bignum.c:2919
rb_struct_aref
VALUE rb_struct_aref(VALUE, VALUE)
Definition: struct.c:1064
rb_io_ascii8bit_binmode
VALUE rb_io_ascii8bit_binmode(VALUE)
Definition: io.c:5380
rb_find_file_ext
int rb_find_file_ext(VALUE *, const char *const *)
Definition: file.c:6270
st_index_t
st_data_t st_index_t
Definition: st.h:50
rb_big_eql
VALUE rb_big_eql(VALUE, VALUE)
Definition: bignum.c:5544
rb_thread_stop
VALUE rb_thread_stop(void)
Definition: thread.c:2596
rb_ivar_count
st_index_t rb_ivar_count(VALUE)
Definition: variable.c:1511
rb_num2fix
VALUE rb_num2fix(VALUE)
Definition: numeric.c:3083
rb_update_max_fd
void rb_update_max_fd(int fd)
Definition: io.c:218
rb_hash_start
st_index_t rb_hash_start(st_index_t)
Definition: random.c:1434
rb_obj_freeze
VALUE rb_obj_freeze(VALUE)
Make the object unmodifiable.
Definition: object.c:1080
rb_ary_cat
VALUE rb_ary_cat(VALUE, const VALUE *, long)
Definition: array.c:1208
rb_struct_define_without_accessor
VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t,...)
Definition: struct.c:421
rb_ary_clear
VALUE rb_ary_clear(VALUE)
Definition: array.c:3862
rb_str_shared_replace
void rb_str_shared_replace(VALUE, VALUE)
Definition: string.c:1391
rb_ary_sort
VALUE rb_ary_sort(VALUE)
Definition: array.c:2866
rb_mutex_unlock
VALUE rb_mutex_unlock(VALUE mutex)
Definition: thread_sync.c:403
rb_spawn
rb_pid_t rb_spawn(int, const VALUE *)
Definition: process.c:4441
rb_gc_force_recycle
void rb_gc_force_recycle(VALUE)
Definition: gc.c:7011
rb_file_expand_path
VALUE rb_file_expand_path(VALUE, VALUE)
Definition: file.c:4018
rb_big_eq
VALUE rb_big_eq(VALUE, VALUE)
Definition: bignum.c:5524
rb_ary_freeze
VALUE rb_ary_freeze(VALUE)
Definition: array.c:648
rb_obj_method
VALUE rb_obj_method(VALUE, VALUE)
Definition: proc.c:1861
rb_error_frozen_object
void rb_error_frozen_object(VALUE frozen_obj)
Definition: error.c:3006
rb_thread_run
VALUE rb_thread_run(VALUE)
Definition: thread.c:2587
rb_copy_generic_ivar
void rb_copy_generic_ivar(VALUE, VALUE)
Definition: variable.c:1447
rb_fdset_t
fd_set rb_fdset_t
Definition: intern.h:403
rb_interrupt
void rb_interrupt(void)
Raises an Interrupt exception.
Definition: eval.c:696
rb_utf8_str_new_cstr
VALUE rb_utf8_str_new_cstr(const char *)
Definition: string.c:828
rb_time_interval
struct timeval rb_time_interval(VALUE num)
Definition: time.c:2669
rb_thread_sleep_forever
void rb_thread_sleep_forever(void)
Definition: thread.c:1314
rb_is_global_id
int rb_is_global_id(ID id)
Definition: symbol.c:866
rb_env_path_tainted
int rb_env_path_tainted(void)
Definition: hash.c:4829
rb_big2ull
unsigned long long rb_big2ull(VALUE)
rb_f_sprintf
VALUE rb_f_sprintf(int, const VALUE *)
Definition: sprintf.c:198
rb_get_argv
VALUE rb_get_argv(void)
Definition: io.c:12889
rb_mod_remove_cvar
VALUE rb_mod_remove_cvar(VALUE, VALUE)
Definition: variable.c:3273
rb_mod_const_at
void * rb_mod_const_at(VALUE, void *)
Definition: variable.c:2559
rb_obj_frozen_p
VALUE rb_obj_frozen_p(VALUE obj)
Determines if the object is frozen.
Definition: object.c:1099
rb_thread_fd_select
int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *)
Definition: thread.c:4067
rb_cstr_to_inum
VALUE rb_cstr_to_inum(const char *, int, int)
Definition: bignum.c:4012
rb_eval_cmd_kw
VALUE rb_eval_cmd_kw(VALUE, VALUE, int)
Definition: vm_eval.c:1799
rb_fd_zero
#define rb_fd_zero(f)
Definition: intern.h:404
rb_eval_cmd
VALUE rb_eval_cmd(VALUE, VALUE, int)
Definition: vm_eval.c:1822
rb_unblock_function_t
void rb_unblock_function_t(void *)
Definition: intern.h:940
rb_w32_fd_dup
void rb_w32_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src)
Definition: win32.c:2872
rb_mod_included_modules
VALUE rb_mod_included_modules(VALUE)
Definition: class.c:1031
rb_str_to_inum
VALUE rb_str_to_inum(VALUE, int, int)
Definition: bignum.c:4268
rb_str_set_len
void rb_str_set_len(VALUE, long)
Definition: string.c:2692
rb_exec_recursive_paired_outer
VALUE rb_exec_recursive_paired_outer(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE, VALUE)
Definition: thread.c:5110
rb_is_instance_id
int rb_is_instance_id(ID id)
Definition: symbol.c:872
rb_backref_get
VALUE rb_backref_get(void)
Definition: vm.c:1304
rb_const_get_from
VALUE rb_const_get_from(VALUE, ID)
Definition: variable.c:2381
rb_gc_stat
size_t rb_gc_stat(VALUE)
Definition: gc.c:9174
rb_to_int
VALUE rb_to_int(VALUE)
Converts val into Integer.
Definition: object.c:3021
rb_proc_call_with_block
VALUE rb_proc_call_with_block(VALUE, int argc, const VALUE *argv, VALUE)
Definition: proc.c:1000
rb_ary_delete_at
VALUE rb_ary_delete_at(VALUE, long)
Definition: array.c:3419
rb_num_coerce_bin
VALUE rb_num_coerce_bin(VALUE, VALUE, ID)
Definition: numeric.c:446
rb_frozen_error_raise
void rb_frozen_error_raise(VALUE frozen_obj, const char *fmt,...)
Definition: error.c:2980
rb_obj_call_init_kw
void rb_obj_call_init_kw(VALUE, int, const VALUE *, int)
Definition: eval.c:1687
rb_class_get_superclass
VALUE rb_class_get_superclass(VALUE)
Returns the superclass of klass The return value might be an iclass of a module, unlike rb_class_supe...
Definition: object.c:2001
rb_check_to_int
VALUE rb_check_to_int(VALUE)
Tries to convert val into Integer.
Definition: object.c:3036
rb_str_new_frozen
VALUE rb_str_new_frozen(VALUE)
Definition: string.c:1203
rb_reg_match2
VALUE rb_reg_match2(VALUE)
Definition: re.c:3238
rb_time_timeval
struct timeval rb_time_timeval(VALUE time)
Definition: time.c:2675
rb_error_arity
MJIT_STATIC void rb_error_arity(int argc, int min, int max)
Definition: vm_insnhelper.c:387
rb_invalid_str
void rb_invalid_str(const char *str, const char *type)
Definition: error.c:1865
rb_backref_set
void rb_backref_set(VALUE)
Definition: vm.c:1310
rb_obj_dup
VALUE rb_obj_dup(VALUE)
Equivalent to Object#dup in Ruby.
Definition: object.c:420
rb_thread_kill
VALUE rb_thread_kill(VALUE)
Definition: thread.c:2446
rb_big_cmp
VALUE rb_big_cmp(VALUE, VALUE)
Definition: bignum.c:5419
rb_obj_trust
VALUE rb_obj_trust(VALUE)
call-seq: obj.trust -> obj
Definition: object.c:1057
rb_class_path_cached
VALUE rb_class_path_cached(VALUE)
Definition: variable.c:162
rb_set_class_path_string
void rb_set_class_path_string(VALUE, VALUE, VALUE)
Definition: variable.c:198
rb_enum_values_pack
VALUE rb_enum_values_pack(int, const VALUE *)
Definition: enum.c:33
rb_ary_sort_bang
VALUE rb_ary_sort_bang(VALUE)
Definition: array.c:2777
rb_lastline_get
VALUE rb_lastline_get(void)
Definition: vm.c:1316
rb_frame_callee
ID rb_frame_callee(void)
The name of the current method.
Definition: eval.c:1199
rb_close_before_exec
void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds)
rb_fd_term
#define rb_fd_term(f)
Definition: intern.h:414
src
__inline__ const void *__restrict src
Definition: rb_mjit_min_header-2.7.0.h:2836
rb_str_buf_append
VALUE rb_str_buf_append(VALUE, VALUE)
Definition: string.c:2950
rb_find_file
VALUE rb_find_file(VALUE)
Definition: file.c:6336
rb_ary_store
void rb_ary_store(VALUE, long, VALUE)
Definition: array.c:1079
rb_obj_method_arity
int rb_obj_method_arity(VALUE, ID)
Definition: proc.c:2640
rb_exec_recursive_outer
VALUE rb_exec_recursive_outer(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE)
Definition: thread.c:5098
rb_num_zerodiv
void rb_num_zerodiv(void)
Definition: numeric.c:194
rb_struct_getmember
VALUE rb_struct_getmember(VALUE, ID)
Definition: struct.c:211
rb_ary_shared_with_p
VALUE rb_ary_shared_with_p(VALUE, VALUE)
Definition: array.c:661
rb_proc_call_kw
VALUE rb_proc_call_kw(VALUE, VALUE, int)
Definition: proc.c:948
rb_ary_reverse
VALUE rb_ary_reverse(VALUE)
Definition: array.c:2544
rb_fs
RUBY_EXTERN VALUE rb_fs
Definition: intern.h:583
rb_io_ungetc
VALUE rb_io_ungetc(VALUE, VALUE)
Definition: io.c:4315
rb_class_new
VALUE rb_class_new(VALUE)
Creates a new class.
Definition: class.c:241
rb_thread_schedule
void rb_thread_schedule(void)
Definition: thread.c:1408
rb_ary_new_from_values
VALUE rb_ary_new_from_values(long n, const VALUE *elts)
Definition: array.c:762
rb_str_succ
VALUE rb_str_succ(VALUE)
Definition: string.c:4090
rb_rational_new
VALUE rb_rational_new(VALUE, VALUE)
Definition: rational.c:1945
rb_check_funcall_kw
VALUE rb_check_funcall_kw(VALUE, ID, int, const VALUE *, int)
Definition: vm_eval.c:499
rb_mark_tbl_no_pin
void rb_mark_tbl_no_pin(struct st_table *)
Definition: gc.c:5011
rb_complex_plus
VALUE rb_complex_plus(VALUE x, VALUE y)
Definition: complex.c:778
rb_struct_define_without_accessor_under
VALUE rb_struct_define_without_accessor_under(VALUE outer, const char *class_name, VALUE super, rb_alloc_func_t alloc,...)
Definition: struct.c:408
rb_reg_options
int rb_reg_options(VALUE)
Definition: re.c:3578
rb_marshal_load
VALUE rb_marshal_load(VALUE)
Definition: marshal.c:2316
rb_obj_instance_exec
VALUE rb_obj_instance_exec(int, const VALUE *, VALUE)
Definition: vm_eval.c:2027
rb_gc_mark
void rb_gc_mark(VALUE)
Definition: gc.c:5212
rb_cloexec_open
int rb_cloexec_open(const char *pathname, int flags, mode_t mode)
Definition: io.c:292
rb_uv_to_utf8
int rb_uv_to_utf8(char[6], unsigned long)
Definition: pack.c:1651
rb_random_real
double rb_random_real(VALUE rnd)
Definition: random.c:870
rb_hash_aset
VALUE rb_hash_aset(VALUE, VALUE, VALUE)
Definition: hash.c:2779
buf
unsigned char buf[MIME_BUF_SIZE]
Definition: nkf.c:4322
n
const char size_t n
Definition: rb_mjit_min_header-2.7.0.h:5456
rb_exc_raise
void rb_exc_raise(VALUE mesg)
Raises an exception in the current thread.
Definition: eval.c:667
rb_big_norm
VALUE rb_big_norm(VALUE)
Definition: bignum.c:3152
rb_thread_atfork
void rb_thread_atfork(void)
Definition: thread.c:4548
rb_str_append
VALUE rb_str_append(VALUE, VALUE)
Definition: string.c:2965
rb_gets
VALUE rb_gets(void)
Definition: io.c:8902
rb_exc_new_cstr
VALUE rb_exc_new_cstr(VALUE, const char *)
Definition: error.c:966
rb_complex_minus
VALUE rb_complex_minus(VALUE x, VALUE y)
Definition: complex.c:812
rb_provide
void rb_provide(const char *)
Definition: load.c:563
rb_is_absolute_path
int rb_is_absolute_path(const char *)
Definition: file.c:6089
ruby_default_signal
void ruby_default_signal(int)
Definition: signal.c:402
rb_block_call_func_t
rb_block_call_func * rb_block_call_func_t
Definition: ruby.h:1967
arg
VALUE arg
Definition: rb_mjit_min_header-2.7.0.h:5601
argv
char ** argv
Definition: ruby.c:223
rb_w32_select
int WSAAPI rb_w32_select(int, fd_set *, fd_set *, fd_set *, struct timeval *)
Definition: win32.c:3250
rb_hash_foreach
void rb_hash_foreach(VALUE, int(*)(VALUE, VALUE, VALUE), VALUE)
rb_class_protected_instance_methods
VALUE rb_class_protected_instance_methods(int, const VALUE *, VALUE)
Definition: class.c:1287
rb_make_backtrace
VALUE rb_make_backtrace(void)
Definition: vm_backtrace.c:872
rb_f_require
VALUE rb_f_require(VALUE, VALUE)
Definition: load.c:809
rb_fd_isset
#define rb_fd_isset(n, f)
Definition: intern.h:407
rb_remove_method
void rb_remove_method(VALUE, const char *)
Definition: vm_method.c:1032
RUBY_SYMBOL_EXPORT_BEGIN
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition: missing.h:48
rb_time_new
VALUE rb_time_new(time_t, long)
Definition: time.c:2492
rb_absint_singlebit_p
int rb_absint_singlebit_p(VALUE val)
Definition: bignum.c:3446
rb_hash_uint
#define rb_hash_uint(h, i)
Definition: intern.h:815
rb_str_subpos
char * rb_str_subpos(VALUE, long, long *)
Definition: string.c:2497
rb_big2dbl
double rb_big2dbl(VALUE)
Definition: bignum.c:5310
ANYARGS
#define ANYARGS
Definition: defines.h:201
rb_sprintf
VALUE rb_sprintf(const char *format,...)
Definition: sprintf.c:1197
rb_range_beg_len
VALUE rb_range_beg_len(VALUE, long *, long *, long, int)
Definition: range.c:1273
rb_cmperr
void rb_cmperr(VALUE x, VALUE y)
Definition: compar.c:25
rb_mod_name
VALUE rb_mod_name(VALUE)
Definition: variable.c:102
klass
VALUE klass
Definition: rb_mjit_min_header-2.7.0.h:13254
rb_ary_delete
VALUE rb_ary_delete(VALUE, VALUE)
Definition: array.c:3365
rb_str_subseq
VALUE rb_str_subseq(VALUE, long, long)
Definition: string.c:2474
st_data_t
unsigned long st_data_t
Definition: rb_mjit_min_header-2.7.0.h:5363
rb_cstr2inum
VALUE rb_cstr2inum(const char *, int)
Definition: bignum.c:4538
rb_autoload_load
VALUE rb_autoload_load(VALUE, ID)
Definition: variable.c:2222
rb_big_modulo
VALUE rb_big_modulo(VALUE, VALUE)
Definition: bignum.c:6103
rb_fd_init
#define rb_fd_init(f)
Definition: intern.h:412
rb_locale_str_new_cstr
VALUE rb_locale_str_new_cstr(const char *)
Definition: string.c:1105
timeval
Definition: missing.h:53
rb_random_int32
unsigned int rb_random_int32(VALUE rnd)
Definition: random.c:835
rb_obj_alloc
VALUE rb_obj_alloc(VALUE)
Allocates an instance of klass.
Definition: object.c:1895
str
char str[HTML_ESCAPE_MAX_LEN+1]
Definition: escape.c:18
rb_hash_fetch
VALUE rb_hash_fetch(VALUE, VALUE)
Definition: hash.c:2061
rb_rational_raw
VALUE rb_rational_raw(VALUE, VALUE)
Definition: rational.c:1939
rb_struct_s_members
VALUE rb_struct_s_members(VALUE)
Definition: struct.c:58
exp
double exp(double)
rb_hash_end
#define rb_hash_end(h)
Definition: intern.h:816
rb_f_notimplement_
VALUE(*const rb_f_notimplement_)(int, const VALUE *, VALUE, VALUE)
Definition: win32.c:8099
rb_range_new
VALUE rb_range_new(VALUE, VALUE, int)
Definition: range.c:52
rb_thread_wakeup
VALUE rb_thread_wakeup(VALUE)
Definition: thread.c:2540
rb_convert_type
VALUE rb_convert_type(VALUE, int, const char *, const char *)
Converts an object into another type.
Definition: object.c:2900
rb_fiber_new
VALUE rb_fiber_new(rb_block_call_func_t, VALUE)
Definition: cont.c:1780
rb_autoload_p
VALUE rb_autoload_p(VALUE, ID)
Definition: variable.c:2281
rb_mod_method_arity
int rb_mod_method_arity(VALUE, ID)
Definition: proc.c:2632
rb_struct_define
VALUE rb_struct_define(const char *,...)
Definition: struct.c:434
rb_mark_hash
void rb_mark_hash(struct st_table *)
Definition: gc.c:4862
MJIT_STATIC
#define MJIT_STATIC
Definition: intern.h:47
rb_ary_pop
VALUE rb_ary_pop(VALUE)
Definition: array.c:1241
rb_hash_freeze
VALUE rb_hash_freeze(VALUE)
Definition: hash.c:87
rb_complex_imag
VALUE rb_complex_imag(VALUE z)
Definition: complex.c:743
rb_usascii_str_new
VALUE rb_usascii_str_new(const char *, long)
Definition: string.c:780
rb_reg_last_match
VALUE rb_reg_last_match(VALUE)
Definition: re.c:1731
rb_fiber_yield_kw
VALUE rb_fiber_yield_kw(int argc, const VALUE *argv, int kw_splat)
Definition: cont.c:2108
rb_enumeratorize_with_size_kw
#define rb_enumeratorize_with_size_kw(obj, id, argc, argv, size_fn, kw_splat)
Definition: intern.h:262
rb_io_addstr
VALUE rb_io_addstr(VALUE, VALUE)
Definition: io.c:1843
rb_mod_module_exec
VALUE rb_mod_module_exec(int, const VALUE *, VALUE)
Definition: vm_eval.c:2101
rb_path_check
int rb_path_check(const char *)
Definition: file.c:6168
rb_econv_t::flags
int flags
Definition: transcode.c:111
rb_output_fs
RUBY_EXTERN VALUE rb_output_fs
Definition: intern.h:584
rb_alloc_func_t
VALUE(* rb_alloc_func_t)(VALUE)
Definition: intern.h:427
rb_big_resize
void rb_big_resize(VALUE big, size_t len)
Definition: bignum.c:2989
rb_fix2str
VALUE rb_fix2str(VALUE, int)
Definition: numeric.c:3508
rb_io_getbyte
VALUE rb_io_getbyte(VALUE)
Definition: io.c:4215
rb_ivar_defined
VALUE rb_ivar_defined(VALUE, ID)
Definition: variable.c:1317
rb_obj_init_copy
VALUE rb_obj_init_copy(VALUE, VALUE)
Default implementation of #initialize_copy.
Definition: object.c:500
rb_str_new_shared
VALUE rb_str_new_shared(VALUE)
Definition: string.c:1197
rb_thread_atfork_before_exec
void rb_thread_atfork_before_exec(void)
Definition: thread.c:4553
rb_dbl_complex_new
VALUE rb_dbl_complex_new(double real, double imag)
Creates a Complex object.
Definition: complex.c:1561
rb_fiber_alive_p
VALUE rb_fiber_alive_p(VALUE)
Definition: cont.c:2137
rb_big2ll
long long rb_big2ll(VALUE)
rb_mod_const_of
void * rb_mod_const_of(VALUE, void *)
Definition: variable.c:2572
rb_str_modify_expand
void rb_str_modify_expand(VALUE, long)
Definition: string.c:2122
rb_struct_aset
VALUE rb_struct_aset(VALUE, VALUE, VALUE)
Definition: struct.c:1091
NORETURN
NORETURN(void rb_cmperr(VALUE, VALUE))
argc
int argc
Definition: ruby.c:222
rb_exec_recursive
VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE)
Definition: thread.c:5075
rb_reg_init_str
VALUE rb_reg_init_str(VALUE re, VALUE s, int options)
Definition: re.c:2900
rb_singleton_class
VALUE rb_singleton_class(VALUE)
Returns the singleton class of obj.
Definition: class.c:1725
rb_sym_to_s
VALUE rb_sym_to_s(VALUE)
Definition: string.c:10793
rb_ary_unshift
VALUE rb_ary_unshift(VALUE, VALUE)
Definition: array.c:1494
rb_f_kill
VALUE rb_f_kill(int, const VALUE *)
Definition: signal.c:418
rb_name_error_str
void rb_name_error_str(VALUE str, const char *fmt,...)
Definition: error.c:1528
rb_big_clone
VALUE rb_big_clone(VALUE)
Definition: bignum.c:3020
rb_obj_call_init
void rb_obj_call_init(VALUE, int, const VALUE *)
Calls #initialize method of obj with the given arguments.
Definition: eval.c:1680
rb_ary_rotate
VALUE rb_ary_rotate(VALUE, long)
Definition: array.c:2617
rb_complex_mul
VALUE rb_complex_mul(VALUE x, VALUE y)
Definition: complex.c:872
rb_is_local_id
int rb_is_local_id(ID id)
Definition: symbol.c:884
RUBY_EXTERN
#define RUBY_EXTERN
Definition: missing.h:77
rb_num_coerce_bit
VALUE rb_num_coerce_bit(VALUE, VALUE, ID)
Definition: numeric.c:4426
rb_load_protect
void rb_load_protect(VALUE, int, int *)
Definition: load.c:657
rb_io_write
VALUE rb_io_write(VALUE, VALUE)
Definition: io.c:1804
rb_locale_str_new
VALUE rb_locale_str_new(const char *, long)
Definition: string.c:1099
rb_symname_p
int rb_symname_p(const char *)
Definition: symbol.c:182
rb_tainted_str_new_cstr
VALUE rb_tainted_str_new_cstr(const char *)
Definition: string.c:903
rb_define_module_id
VALUE rb_define_module_id(ID)
Definition: class.c:766
rb_String
VALUE rb_String(VALUE)
Equivalent to Kernel#String in Ruby.
Definition: object.c:3652
rb_str_new_with_class
VALUE rb_str_new_with_class(VALUE, const char *, long)
Definition: string.c:1298
rb_write_error
void rb_write_error(const char *)
Definition: io.c:7930
rb_str_unlocktmp
VALUE rb_str_unlocktmp(VALUE)
Definition: string.c:2675
rb_big_or
VALUE rb_big_or(VALUE, VALUE)
Definition: bignum.c:6479
rb_proc_new
VALUE rb_proc_new(rb_block_call_func_t, VALUE)
Definition: proc.c:2979
rb_hash_clear
VALUE rb_hash_clear(VALUE)
Definition: hash.c:2696
rb_arithmetic_sequence_components_t::end
VALUE end
Definition: intern.h:283
rb_big_pow
VALUE rb_big_pow(VALUE, VALUE)
Definition: bignum.c:6244
rb_str2inum
VALUE rb_str2inum(VALUE, int)
Definition: bignum.c:4544
rb_thread_alone
int rb_thread_alone(void)
Definition: thread.c:3492
rb_str_new_static
VALUE rb_str_new_static(const char *, long)
Definition: string.c:872
rb_complex_abs
VALUE rb_complex_abs(VALUE z)
Definition: complex.c:1161
rb_rs
RUBY_EXTERN VALUE rb_rs
Definition: intern.h:585
rb_reg_nth_match
VALUE rb_reg_nth_match(int, VALUE)
Definition: re.c:1706
rb_path2class
VALUE rb_path2class(const char *)
Definition: variable.c:268
rb_usascii_str_new_cstr
VALUE rb_usascii_str_new_cstr(const char *)
Definition: string.c:820
rb_gc_location
VALUE rb_gc_location(VALUE)
Definition: gc.c:8111
rb_range_values
int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp)
Definition: range.c:1243
rb_io_ungetbyte
VALUE rb_io_ungetbyte(VALUE, VALUE)
Definition: io.c:4276
rb_random_int
VALUE rb_random_int(VALUE rnd, VALUE max)
rb_str_catf
VALUE rb_str_catf(VALUE str, const char *format,...)
Definition: sprintf.c:1237
rb_obj_is_method
VALUE rb_obj_is_method(VALUE)
Definition: proc.c:1459
rb_obj_remove_instance_variable
VALUE rb_obj_remove_instance_variable(VALUE, VALUE)
Definition: variable.c:1634
rb_ary_join
VALUE rb_ary_join(VALUE, VALUE)
Definition: array.c:2347
rb_class_name
VALUE rb_class_name(VALUE)
Definition: variable.c:274
rb_apply
VALUE rb_apply(VALUE, ID, VALUE)
Calls a method.
Definition: vm_eval.c:890
rb_filesystem_str_new
VALUE rb_filesystem_str_new(const char *, long)
Definition: string.c:1111
len
uint8_t len
Definition: escape.c:17
rb_class_path
VALUE rb_class_path(VALUE)
Definition: variable.c:153
rb_check_copyable
void rb_check_copyable(VALUE obj, VALUE orig)
Definition: error.c:3047
RETSIGTYPE
#define RETSIGTYPE
Definition: rb_mjit_min_header-2.7.0.h:246
rb_last_status_set
void rb_last_status_set(int status, rb_pid_t pid)
Definition: process.c:545
rb_memerror
void rb_memerror(void)
Definition: gc.c:9578
rb_class_new_instance
VALUE rb_class_new_instance(int, const VALUE *, VALUE)
Allocates and initializes an instance of klass.
Definition: object.c:1955
timespec
Definition: missing.h:60
rb_cvar_get
VALUE rb_cvar_get(VALUE, ID)
Definition: variable.c:3096
rb_absint_numwords
size_t rb_absint_numwords(VALUE val, size_t word_numbits, size_t *nlz_bits_ret)
Definition: bignum.c:3382
rb_exec_recursive_paired
VALUE rb_exec_recursive_paired(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE, VALUE)
Definition: thread.c:5086
rb_ivar_set
VALUE rb_ivar_set(VALUE, ID, VALUE)
Definition: variable.c:1300
rb_str_free
void rb_str_free(VALUE)
Definition: string.c:1349
rb_thread_wait_for
void rb_thread_wait_for(struct timeval)
Definition: thread.c:1347
rb_exc_fatal
void rb_exc_fatal(VALUE mesg)
Raises a fatal error in the current thread.
Definition: eval.c:683
rb_big_new
VALUE rb_big_new(size_t, int)
Definition: bignum.c:3014
rb_reg_alloc
VALUE rb_reg_alloc(void)
Definition: re.c:2888
rb_pid_t
#define rb_pid_t
Definition: rb_mjit_min_header-2.7.0.h:99
rb_find_file_ext_safe
int rb_find_file_ext_safe(VALUE *, const char *const *, int)
Definition: file.c:6263
PRINTF_ARGS
PRINTF_ARGS(NORETURN(void rb_loaderror(const char *,...)), 1, 2)
ruby_signal_name
const char * ruby_signal_name(int)
Definition: signal.c:310
rb_time_succ
VALUE rb_time_succ(VALUE)
Definition: time.c:4229
va_list
__gnuc_va_list va_list
Definition: rb_mjit_min_header-2.7.0.h:836
rb_thread_create
VALUE rb_thread_create(VALUE(*)(void *), void *)
Definition: thread.c:966
rb_arithmetic_sequence_components_t::step
VALUE step
Definition: intern.h:284
rb_mark_set
void rb_mark_set(struct st_table *)
Definition: gc.c:4798
rb_pipe
int rb_pipe(int *pipes)
Definition: io.c:6369
rb_const_defined_at
int rb_const_defined_at(VALUE, ID)
Definition: variable.c:2688
rb_mod_include_p
VALUE rb_mod_include_p(VALUE, VALUE)
Definition: class.c:1067
rb_f_trace_var
VALUE rb_f_trace_var(int, const VALUE *)
Definition: variable.c:528
rb_load_file
void * rb_load_file(const char *)
Definition: ruby.c:2180
rb_str_resurrect
VALUE rb_str_resurrect(VALUE str)
Definition: string.c:1522
rb_big_xor
VALUE rb_big_xor(VALUE, VALUE)
Definition: bignum.c:6573
rb_fiber_current
VALUE rb_fiber_current(void)
Definition: cont.c:1942
rb_io_get_io
VALUE rb_io_get_io(VALUE)
Definition: io.c:733
rb_ary_tmp_new
VALUE rb_ary_tmp_new(long)
Definition: array.c:768
rb_class_instance_methods
VALUE rb_class_instance_methods(int, const VALUE *, VALUE)
Definition: class.c:1272
rb_method_call_with_block
VALUE rb_method_call_with_block(int, const VALUE *, VALUE, VALUE)
Definition: proc.c:2297
rb_reg_match
VALUE rb_reg_match(VALUE, VALUE)
Definition: re.c:3179
rb_num_coerce_relop
VALUE rb_num_coerce_relop(VALUE, VALUE, ID)
Definition: numeric.c:461
rb_file_directory_p
VALUE rb_file_directory_p(VALUE, VALUE)
Definition: file.c:1577
rb_f_notimplement
VALUE rb_f_notimplement(int argc, const VALUE *argv, VALUE obj, VALUE marker)
Definition: vm_method.c:120
rb_str_buf_cat
#define rb_str_buf_cat
Definition: intern.h:910
rb_gc_mark_maybe
void rb_gc_mark_maybe(VALUE)
Definition: gc.c:5044
rb_define_class_id_under
VALUE rb_define_class_id_under(VALUE, ID, VALUE)
Defines a class under the namespace of outer.
Definition: class.c:721
rb_check_trusted
#define rb_check_trusted(obj)
Definition: intern.h:325
mode_t
__mode_t mode_t
Definition: rb_mjit_min_header-2.7.0.h:1331
rb_undef
void rb_undef(VALUE, ID)
Definition: vm_method.c:1200
rb_hash_dup
VALUE rb_hash_dup(VALUE)
Definition: hash.c:1537
rb_remove_method_id
void rb_remove_method_id(VALUE, ID)
Definition: vm_method.c:1026
rb_get_values_at
VALUE rb_get_values_at(VALUE, long, int, const VALUE *, VALUE(*)(VALUE, long))
Definition: array.c:3106
rb_undef_alloc_func
void rb_undef_alloc_func(VALUE)
Definition: vm_method.c:722
rb_proc_call
VALUE rb_proc_call(VALUE, VALUE)
Definition: proc.c:966
rb_big2long
long rb_big2long(VALUE)
Definition: bignum.c:5140
rb_reserved_fd_p
int rb_reserved_fd_p(int fd)
rb_str_tmp_new
VALUE rb_str_tmp_new(long)
Definition: string.c:1343
rb_method_call_kw
VALUE rb_method_call_kw(int, const VALUE *, VALUE, int)
Definition: proc.c:2254
rb_loaderror_with_path
void rb_loaderror_with_path(VALUE path, const char *fmt,...)
Definition: error.c:2700
rb_obj_singleton_methods
VALUE rb_obj_singleton_methods(int, const VALUE *, VALUE)
Definition: class.c:1449
st_table
Definition: st.h:79
rb_path_to_class
VALUE rb_path_to_class(VALUE)
Definition: variable.c:226
rb_file_absolute_path
VALUE rb_file_absolute_path(VALUE, VALUE)
Definition: file.c:4072
rb_define_private_method
void rb_define_private_method(VALUE, const char *, VALUE(*)(ANYARGS), int)
Definition: class.c:1569
rb_mod_const_missing
VALUE rb_mod_const_missing(VALUE klass, VALUE name)
Definition: variable.c:1739
rb_any_to_s
VALUE rb_any_to_s(VALUE)
Default implementation of #to_s.
Definition: object.c:527
rb_mod_module_eval
VALUE rb_mod_module_eval(int, const VALUE *, VALUE)
Definition: vm_eval.c:2067
rb_mutex_new
VALUE rb_mutex_new(void)
Definition: thread_sync.c:165
rb_undefine_finalizer
VALUE rb_undefine_finalizer(VALUE)
Definition: gc.c:3191
rb_attr
void rb_attr(VALUE, ID, int, int, int)
Definition: vm_method.c:1163
rb_str_cat
VALUE rb_str_cat(VALUE, const char *, long)
Definition: string.c:2812
rb_block_lambda
VALUE rb_block_lambda(void)
Definition: proc.c:856
rb_method_call_with_block_kw
VALUE rb_method_call_with_block_kw(int, const VALUE *, VALUE, VALUE, int)
Definition: proc.c:2284
rb_obj_is_kind_of
VALUE rb_obj_is_kind_of(VALUE, VALUE)
Determines if obj is a kind of c.
Definition: object.c:692
rb_define_alloc_func
void rb_define_alloc_func(VALUE, rb_alloc_func_t)
rb_external_str_new_cstr
VALUE rb_external_str_new_cstr(const char *)
Definition: string.c:1093
rb_thread_fd_close
void rb_thread_fd_close(int)
Definition: thread.c:2386
rb_complex_new_polar
VALUE rb_complex_new_polar(VALUE abs, VALUE arg)
Definition: complex.c:1533
rb_obj_id
VALUE rb_obj_id(VALUE)
Definition: gc.c:3770
rb_flt_rationalize
VALUE rb_flt_rationalize(VALUE)
Definition: rational.c:2242
rb_thread_local_aref
VALUE rb_thread_local_aref(VALUE, ID)
Definition: thread.c:3216
rb_str_buf_new2
#define rb_str_buf_new2
Definition: intern.h:908
rb_hash_bulk_insert
void rb_hash_bulk_insert(long, const VALUE *, VALUE)
Definition: hash.c:4515
rb_obj_instance_eval
VALUE rb_obj_instance_eval(int, const VALUE *, VALUE)
Definition: vm_eval.c:1995
rb_str_comparable
int rb_str_comparable(VALUE, VALUE)
Definition: string.c:3203
rb_str_offset
long rb_str_offset(VALUE, long)
Definition: string.c:2416
rb_class_public_instance_methods
VALUE rb_class_public_instance_methods(int, const VALUE *, VALUE)
Definition: class.c:1325
rb_obj_tainted
VALUE rb_obj_tainted(VALUE obj)
call-seq: obj.tainted? -> false
Definition: object.c:985
rb_obj_clone
VALUE rb_obj_clone(VALUE)
Almost same as Object::clone.
Definition: object.c:410
rb_ary_cmp
VALUE rb_ary_cmp(VALUE, VALUE)
Definition: array.c:4420
rb_str_sublen
long rb_str_sublen(VALUE, long)
Definition: string.c:2463
rb_mod_ancestors
VALUE rb_mod_ancestors(VALUE)
Definition: class.c:1099
rb_hash_size
VALUE rb_hash_size(VALUE)
Definition: hash.c:2866
rb_gc
void rb_gc(void)
Definition: gc.c:8679
rb_ary_replace
VALUE rb_ary_replace(VALUE copy, VALUE orig)
Definition: array.c:3811
rb_check_to_float
VALUE rb_check_to_float(VALUE)
Tries to convert an object into Float.
Definition: object.c:3559
rb_big_plus
VALUE rb_big_plus(VALUE, VALUE)
Definition: bignum.c:5824
rb_str_cmp
int rb_str_cmp(VALUE, VALUE)
Definition: string.c:3228
rb_f_untrace_var
VALUE rb_f_untrace_var(int, const VALUE *)
Definition: variable.c:574
rb_class_inherited_p
VALUE rb_class_inherited_p(VALUE mod, VALUE arg)
Determines if mod inherits arg.
Definition: object.c:1574
rb_io_fdopen
VALUE rb_io_fdopen(int, int, const char *)
Definition: io.c:8004
rb_thread_local_aset
VALUE rb_thread_local_aset(VALUE, ID, VALUE)
Definition: thread.c:3364
rb_check_inheritable
void rb_check_inheritable(VALUE)
Ensures a class can be derived from super.
Definition: class.c:219
rb_class_real
VALUE rb_class_real(VALUE cl)
Looks up the nearest ancestor of cl, skipping singleton classes or module inclusions.
Definition: object.c:202
rb_str_encode_ospath
VALUE rb_str_encode_ospath(VALUE)
Definition: file.c:236
name
const char * name
Definition: nkf.c:208
rb_io_print
VALUE rb_io_print(int, const VALUE *, VALUE)
Definition: io.c:7576
rb_ary_resize
VALUE rb_ary_resize(VALUE ary, long len)
expands or shrinks ary to len elements.
Definition: array.c:1955
rb_block_proc
VALUE rb_block_proc(void)
Definition: proc.c:837
rb_const_get
VALUE rb_const_get(VALUE, ID)
Definition: variable.c:2387