Ruby 2.1.5p273(2014-11-13revision48405)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

intern.h
Go to the documentation of this file.
1 /**********************************************************************
2
3 intern.h -
4
5 $Author: nagachika $
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 #include "ruby/defines.h"
25 #ifdef RUBY_EXTCONF_H
26 #include RUBY_EXTCONF_H
27 #endif
28
29 #ifdef HAVE_STDARG_PROTOTYPES
30 # include <stdarg.h>
31 #else
32 # include <varargs.h>
33 #endif
34
35 #include "ruby/st.h"
36
37 RUBY_SYMBOL_EXPORT_BEGIN
38
39 /*
40 * Functions and variables that are used by more than one source file of
41 * the kernel.
42 */
43
44 #define UNLIMITED_ARGUMENTS (-1)
45
46 /* array.c */
47 void rb_mem_clear(register VALUE*, register long);
48 VALUE rb_assoc_new(VALUE, VALUE);
49 VALUE rb_check_array_type(VALUE);
50 VALUE rb_ary_new(void);
51 VALUE rb_ary_new_capa(long capa);
52 VALUE rb_ary_new_from_args(long n, ...);
53 VALUE rb_ary_new_from_values(long n, const VALUE *elts);
54 VALUE rb_ary_tmp_new(long);
55 void rb_ary_free(VALUE);
56 void rb_ary_modify(VALUE);
57 VALUE rb_ary_freeze(VALUE);
58 VALUE rb_ary_shared_with_p(VALUE, VALUE);
59 VALUE rb_ary_aref(int, VALUE*, VALUE);
60 VALUE rb_ary_subseq(VALUE, long, long);
61 void rb_ary_store(VALUE, long, VALUE);
62 VALUE rb_ary_dup(VALUE);
63 VALUE rb_ary_resurrect(VALUE ary);
64 VALUE rb_ary_to_ary(VALUE);
65 VALUE rb_ary_to_s(VALUE);
66 VALUE rb_ary_cat(VALUE, const VALUE *, long);
67 VALUE rb_ary_push(VALUE, VALUE);
68 VALUE rb_ary_pop(VALUE);
69 VALUE rb_ary_shift(VALUE);
70 VALUE rb_ary_unshift(VALUE, VALUE);
71 VALUE rb_ary_entry(VALUE, long);
72 VALUE rb_ary_each(VALUE);
73 VALUE rb_ary_join(VALUE, VALUE);
74 VALUE rb_ary_reverse(VALUE);
75 VALUE rb_ary_rotate(VALUE, long);
76 VALUE rb_ary_sort(VALUE);
77 VALUE rb_ary_sort_bang(VALUE);
78 VALUE rb_ary_delete(VALUE, VALUE);
79 VALUE rb_ary_delete_at(VALUE, long);
80 VALUE rb_ary_clear(VALUE);
81 VALUE rb_ary_plus(VALUE, VALUE);
82 VALUE rb_ary_concat(VALUE, VALUE);
83 VALUE rb_ary_assoc(VALUE, VALUE);
84 VALUE rb_ary_rassoc(VALUE, VALUE);
85 VALUE rb_ary_includes(VALUE, VALUE);
86 VALUE rb_ary_cmp(VALUE, VALUE);
87 VALUE rb_ary_replace(VALUE copy, VALUE orig);
88 VALUE rb_get_values_at(VALUE, long, int, VALUE*, VALUE(*)(VALUE,long));
89 VALUE rb_ary_resize(VALUE ary, long len);
90 #define rb_ary_new2 rb_ary_new_capa
91 #define rb_ary_new3 rb_ary_new_from_args
92 #define rb_ary_new4 rb_ary_new_from_values
93 /* bignum.c */
94 VALUE rb_big_new(long, int);
95 int rb_bigzero_p(VALUE x);
96 VALUE rb_big_clone(VALUE);
97 void rb_big_2comp(VALUE);
98 VALUE rb_big_norm(VALUE);
99 void rb_big_resize(VALUE big, long len);
100 VALUE rb_cstr_to_inum(const char*, int, int);
101 VALUE rb_str_to_inum(VALUE, int, int);
102 VALUE rb_cstr2inum(const char*, int);
103 VALUE rb_str2inum(VALUE, int);
104 VALUE rb_big2str(VALUE, int);
105 DEPRECATED(VALUE rb_big2str0(VALUE, int, int));
106 SIGNED_VALUE rb_big2long(VALUE);
107 #define rb_big2int(x) rb_big2long(x)
108 VALUE rb_big2ulong(VALUE);
109 #define rb_big2uint(x) rb_big2ulong(x)
110 DEPRECATED(VALUE rb_big2ulong_pack(VALUE x));
111 #if HAVE_LONG_LONG
112 LONG_LONG rb_big2ll(VALUE);
113 unsigned LONG_LONG rb_big2ull(VALUE);
114 #endif /* HAVE_LONG_LONG */
115 DEPRECATED(void rb_quad_pack(char*,VALUE));
116 DEPRECATED(VALUE rb_quad_unpack(const char*,int));
117 void rb_big_pack(VALUE val, unsigned long *buf, long num_longs);
118 VALUE rb_big_unpack(unsigned long *buf, long num_longs);
119 int rb_uv_to_utf8(char[6],unsigned long);
120 VALUE rb_dbl2big(double);
121 double rb_big2dbl(VALUE);
122 VALUE rb_big_cmp(VALUE, VALUE);
123 VALUE rb_big_eq(VALUE, VALUE);
124 VALUE rb_big_eql(VALUE, VALUE);
125 VALUE rb_big_plus(VALUE, VALUE);
126 VALUE rb_big_minus(VALUE, VALUE);
127 VALUE rb_big_mul(VALUE, VALUE);
128 VALUE rb_big_div(VALUE, VALUE);
129 VALUE rb_big_idiv(VALUE, VALUE);
130 VALUE rb_big_modulo(VALUE, VALUE);
131 VALUE rb_big_divmod(VALUE, VALUE);
132 VALUE rb_big_pow(VALUE, VALUE);
133 VALUE rb_big_and(VALUE, VALUE);
134 VALUE rb_big_or(VALUE, VALUE);
135 VALUE rb_big_xor(VALUE, VALUE);
136 VALUE rb_big_lshift(VALUE, VALUE);
137 VALUE rb_big_rshift(VALUE, VALUE);
138
139 /* For rb_integer_pack and rb_integer_unpack: */
140 /* "MS" in MSWORD and MSBYTE means "most significant" */
141 /* "LS" in LSWORD and LSBYTE means "least significant" */
142 #define INTEGER_PACK_MSWORD_FIRST 0x01
143 #define INTEGER_PACK_LSWORD_FIRST 0x02
144 #define INTEGER_PACK_MSBYTE_FIRST 0x10
145 #define INTEGER_PACK_LSBYTE_FIRST 0x20
146 #define INTEGER_PACK_NATIVE_BYTE_ORDER 0x40
147 #define INTEGER_PACK_2COMP 0x80
148 #define INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION 0x400
149 /* For rb_integer_unpack: */
150 #define INTEGER_PACK_FORCE_BIGNUM 0x100
151 #define INTEGER_PACK_NEGATIVE 0x200
152 /* Combinations: */
153 #define INTEGER_PACK_LITTLE_ENDIAN \
154 (INTEGER_PACK_LSWORD_FIRST | \
155 INTEGER_PACK_LSBYTE_FIRST)
156 #define INTEGER_PACK_BIG_ENDIAN \
157 (INTEGER_PACK_MSWORD_FIRST | \
158 INTEGER_PACK_MSBYTE_FIRST)
159 int rb_integer_pack(VALUE val, void *words, size_t numwords, size_t wordsize, size_t nails, int flags);
160 VALUE rb_integer_unpack(const void *words, size_t numwords, size_t wordsize, size_t nails, int flags);
161 size_t rb_absint_size(VALUE val, int *nlz_bits_ret);
162 size_t rb_absint_numwords(VALUE val, size_t word_numbits, size_t *nlz_bits_ret);
163 int rb_absint_singlebit_p(VALUE val);
164
165 /* rational.c */
166 VALUE rb_rational_raw(VALUE, VALUE);
167 #define rb_rational_raw1(x) rb_rational_raw((x), INT2FIX(1))
168 #define rb_rational_raw2(x,y) rb_rational_raw((x), (y))
169 VALUE rb_rational_new(VALUE, VALUE);
170 #define rb_rational_new1(x) rb_rational_new((x), INT2FIX(1))
171 #define rb_rational_new2(x,y) rb_rational_new((x), (y))
172 VALUE rb_Rational(VALUE, VALUE);
173 #define rb_Rational1(x) rb_Rational((x), INT2FIX(1))
174 #define rb_Rational2(x,y) rb_Rational((x), (y))
175 VALUE rb_flt_rationalize_with_prec(VALUE, VALUE);
176 VALUE rb_flt_rationalize(VALUE);
177 /* complex.c */
178 VALUE rb_complex_raw(VALUE, VALUE);
179 #define rb_complex_raw1(x) rb_complex_raw((x), INT2FIX(0))
180 #define rb_complex_raw2(x,y) rb_complex_raw((x), (y))
181 VALUE rb_complex_new(VALUE, VALUE);
182 #define rb_complex_new1(x) rb_complex_new((x), INT2FIX(0))
183 #define rb_complex_new2(x,y) rb_complex_new((x), (y))
184 VALUE rb_complex_polar(VALUE, VALUE);
185 VALUE rb_Complex(VALUE, VALUE);
186 #define rb_Complex1(x) rb_Complex((x), INT2FIX(0))
187 #define rb_Complex2(x,y) rb_Complex((x), (y))
188 /* class.c */
189 VALUE rb_class_boot(VALUE);
190 VALUE rb_class_new(VALUE);
191 VALUE rb_mod_init_copy(VALUE, VALUE);
192 VALUE rb_singleton_class_clone(VALUE);
193 void rb_singleton_class_attached(VALUE,VALUE);
194 VALUE rb_make_metaclass(VALUE, VALUE);
195 void rb_check_inheritable(VALUE);
196 VALUE rb_class_inherited(VALUE, VALUE);
197 VALUE rb_define_class_id(ID, VALUE);
198 VALUE rb_define_class_id_under(VALUE, ID, VALUE);
199 VALUE rb_module_new(void);
200 VALUE rb_define_module_id(ID);
201 VALUE rb_define_module_id_under(VALUE, ID);
202 VALUE rb_include_class_new(VALUE, VALUE);
203 VALUE rb_mod_included_modules(VALUE);
204 VALUE rb_mod_include_p(VALUE, VALUE);
205 VALUE rb_mod_ancestors(VALUE);
206 VALUE rb_class_instance_methods(int, VALUE*, VALUE);
207 VALUE rb_class_public_instance_methods(int, VALUE*, VALUE);
208 VALUE rb_class_protected_instance_methods(int, VALUE*, VALUE);
209 VALUE rb_class_private_instance_methods(int, VALUE*, VALUE);
210 VALUE rb_obj_singleton_methods(int, VALUE*, VALUE);
211 void rb_define_method_id(VALUE, ID, VALUE (*)(ANYARGS), int);
212 void rb_frozen_class_p(VALUE);
213 void rb_undef(VALUE, ID);
214 void rb_define_protected_method(VALUE, const char*, VALUE (*)(ANYARGS), int);
215 void rb_define_private_method(VALUE, const char*, VALUE (*)(ANYARGS), int);
216 void rb_define_singleton_method(VALUE, const char*, VALUE(*)(ANYARGS), int);
217 VALUE rb_singleton_class(VALUE);
218 /* compar.c */
219 int rb_cmpint(VALUE, VALUE, VALUE);
220 NORETURN(void rb_cmperr(VALUE, VALUE));
221 /* cont.c */
222 VALUE rb_fiber_new(VALUE (*)(ANYARGS), VALUE);
223 VALUE rb_fiber_resume(VALUE fib, int argc, VALUE *args);
224 VALUE rb_fiber_yield(int argc, VALUE *args);
225 VALUE rb_fiber_current(void);
226 VALUE rb_fiber_alive_p(VALUE);
227 /* enum.c */
228 VALUE rb_enum_values_pack(int, const VALUE*);
229 /* enumerator.c */
230 VALUE rb_enumeratorize(VALUE, VALUE, int, VALUE *);
231 typedef VALUE rb_enumerator_size_func(VALUE, VALUE, VALUE);
232 VALUE rb_enumeratorize_with_size(VALUE, VALUE, int, VALUE *, rb_enumerator_size_func *);
233 #ifndef RUBY_EXPORT
234 #define rb_enumeratorize_with_size(obj, id, argc, argv, size_fn) \
235 rb_enumeratorize_with_size(obj, id, argc, argv, (rb_enumerator_size_func *)(size_fn))
236 #endif
237 #define RETURN_SIZED_ENUMERATOR(obj, argc, argv, size_fn) do { \
238 if (!rb_block_given_p()) \
239 return rb_enumeratorize_with_size((obj), ID2SYM(rb_frame_this_func()),\
240 (argc), (argv), (size_fn)); \
241 } while (0)
242 #define RETURN_ENUMERATOR(obj, argc, argv) RETURN_SIZED_ENUMERATOR(obj, argc, argv, 0)
243 /* error.c */
244 VALUE rb_exc_new(VALUE, const char*, long);
245 VALUE rb_exc_new_cstr(VALUE, const char*);
246 VALUE rb_exc_new_str(VALUE, VALUE);
247 #define rb_exc_new2 rb_exc_new_cstr
248 #define rb_exc_new3 rb_exc_new_str
249 PRINTF_ARGS(NORETURN(void rb_loaderror(const char*, ...)), 1, 2);
250 PRINTF_ARGS(NORETURN(void rb_loaderror_with_path(VALUE path, const char*, ...)), 2, 3);
251 PRINTF_ARGS(NORETURN(void rb_name_error(ID, const char*, ...)), 2, 3);
252 PRINTF_ARGS(NORETURN(void rb_name_error_str(VALUE, const char*, ...)), 2, 3);
253 NORETURN(void rb_invalid_str(const char*, const char*));
254 PRINTF_ARGS(void rb_compile_error(const char*, int, const char*, ...), 3, 4);
255 PRINTF_ARGS(void rb_compile_error_with_enc(const char*, int, void *, const char*, ...), 4, 5);
256 PRINTF_ARGS(void rb_compile_error_append(const char*, ...), 1, 2);
257 NORETURN(void rb_error_frozen(const char*));
258 void rb_error_untrusted(VALUE);
259 void rb_check_frozen(VALUE);
260 void rb_check_trusted(VALUE);
261 #define rb_check_frozen_internal(obj) do { \
262 VALUE frozen_obj = (obj); \
263 if (OBJ_FROZEN(frozen_obj)) { \
264 rb_error_frozen(rb_obj_classname(frozen_obj)); \
265 } \
266 } while (0)
267 #define rb_check_trusted_internal(obj) ((void) 0)
268 #ifdef __GNUC__
269 #define rb_check_frozen(obj) __extension__({rb_check_frozen_internal(obj);})
270 #define rb_check_trusted(obj) __extension__({rb_check_trusted_internal(obj);})
271 #else
272 static inline void
273 rb_check_frozen_inline(VALUE obj)
274 {
275 rb_check_frozen_internal(obj);
276 }
277 #define rb_check_frozen(obj) rb_check_frozen_inline(obj)
278 static inline void
279 rb_check_trusted_inline(VALUE obj)
280 {
281 rb_check_trusted_internal(obj);
282 }
283 #define rb_check_trusted(obj) rb_check_trusted_inline(obj)
284 #endif
285 void rb_check_copyable(VALUE obj, VALUE orig);
286
287 #define OBJ_INIT_COPY(obj, orig) \
288 ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1))
289
290 /* eval.c */
291 int rb_sourceline(void);
292 const char *rb_sourcefile(void);
293 VALUE rb_check_funcall(VALUE, ID, int, const VALUE*);
294
295 NORETURN(void rb_error_arity(int, int, int));
296 #define rb_check_arity rb_check_arity /* for ifdef */
297 static inline void
298 rb_check_arity(int argc, int min, int max)
299 {
300 if ((argc < min) || (max != UNLIMITED_ARGUMENTS && argc > max))
301 rb_error_arity(argc, min, max);
302 }
303
304 #if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)
305 typedef struct {
306 int maxfd;
307 fd_set *fdset;
308 } rb_fdset_t;
309
310 void rb_fd_init(rb_fdset_t *);
311 void rb_fd_term(rb_fdset_t *);
312 void rb_fd_zero(rb_fdset_t *);
313 void rb_fd_set(int, rb_fdset_t *);
314 void rb_fd_clr(int, rb_fdset_t *);
315 int rb_fd_isset(int, const rb_fdset_t *);
316 void rb_fd_copy(rb_fdset_t *, const fd_set *, int);
317 void rb_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src);
318 int rb_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
319
320 #define rb_fd_ptr(f) ((f)->fdset)
321 #define rb_fd_max(f) ((f)->maxfd)
322
323 #elif defined(_WIN32)
324
325 typedef struct {
326 int capa;
327 fd_set *fdset;
328 } rb_fdset_t;
329
330 void rb_fd_init(rb_fdset_t *);
331 void rb_fd_term(rb_fdset_t *);
332 #define rb_fd_zero(f) ((f)->fdset->fd_count = 0)
333 void rb_fd_set(int, rb_fdset_t *);
334 #define rb_fd_clr(n, f) rb_w32_fdclr((n), (f)->fdset)
335 #define rb_fd_isset(n, f) rb_w32_fdisset((n), (f)->fdset)
336 #define rb_fd_copy(d, s, n) rb_w32_fd_copy((d), (s), (n))
337 void rb_w32_fd_copy(rb_fdset_t *, const fd_set *, int);
338 #define rb_fd_dup(d, s) rb_w32_fd_dup((d), (s))
339 void rb_w32_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src);
340 #define rb_fd_select(n, rfds, wfds, efds, timeout) rb_w32_select((n), (rfds) ? ((rb_fdset_t*)(rfds))->fdset : NULL, (wfds) ? ((rb_fdset_t*)(wfds))->fdset : NULL, (efds) ? ((rb_fdset_t*)(efds))->fdset: NULL, (timeout))
341 #define rb_fd_resize(n, f) ((void)(f))
342
343 #define rb_fd_ptr(f) ((f)->fdset)
344 #define rb_fd_max(f) ((f)->fdset->fd_count)
345
346 #else
347
348 typedef fd_set rb_fdset_t;
349 #define rb_fd_zero(f) FD_ZERO(f)
350 #define rb_fd_set(n, f) FD_SET((n), (f))
351 #define rb_fd_clr(n, f) FD_CLR((n), (f))
352 #define rb_fd_isset(n, f) FD_ISSET((n), (f))
353 #define rb_fd_copy(d, s, n) (*(d) = *(s))
354 #define rb_fd_dup(d, s) (*(d) = *(s))
355 #define rb_fd_resize(n, f) ((void)(f))
356 #define rb_fd_ptr(f) (f)
357 #define rb_fd_init(f) FD_ZERO(f)
358 #define rb_fd_init_copy(d, s) (*(d) = *(s))
359 #define rb_fd_term(f) ((void)(f))
360 #define rb_fd_max(f) FD_SETSIZE
361 #define rb_fd_select(n, rfds, wfds, efds, timeout) select((n), (rfds), (wfds), (efds), (timeout))
362
363 #endif
364
365 NORETURN(void rb_exc_raise(VALUE));
366 NORETURN(void rb_exc_fatal(VALUE));
367 VALUE rb_f_exit(int,VALUE*);
368 VALUE rb_f_abort(int,VALUE*);
369 void rb_remove_method(VALUE, const char*);
370 void rb_remove_method_id(VALUE, ID);
371 #define rb_disable_super(klass, name) ((void)0)
372 #define rb_enable_super(klass, name) ((void)0)
373 #define HAVE_RB_DEFINE_ALLOC_FUNC 1
374 typedef VALUE (*rb_alloc_func_t)(VALUE);
375 void rb_define_alloc_func(VALUE, rb_alloc_func_t);
376 void rb_undef_alloc_func(VALUE);
377 rb_alloc_func_t rb_get_alloc_func(VALUE);
378 void rb_clear_cache(void);
379 void rb_clear_constant_cache(void);
380 void rb_clear_method_cache_by_class(VALUE);
381 void rb_alias(VALUE, ID, ID);
382 void rb_attr(VALUE,ID,int,int,int);
383 int rb_method_boundp(VALUE, ID, int);
384 int rb_method_basic_definition_p(VALUE, ID);
385 VALUE rb_eval_cmd(VALUE, VALUE, int);
386 int rb_obj_respond_to(VALUE, ID, int);
387 int rb_respond_to(VALUE, ID);
388 VALUE rb_f_notimplement(int argc, VALUE *argv, VALUE obj);
389 void rb_interrupt(void);
390 VALUE rb_apply(VALUE, ID, VALUE);
391 void rb_backtrace(void);
392 ID rb_frame_this_func(void);
393 VALUE rb_obj_instance_eval(int, VALUE*, VALUE);
394 VALUE rb_obj_instance_exec(int, VALUE*, VALUE);
395 VALUE rb_mod_module_eval(int, VALUE*, VALUE);
396 VALUE rb_mod_module_exec(int, VALUE*, VALUE);
397 void rb_load(VALUE, int);
398 void rb_load_protect(VALUE, int, int*);
399 NORETURN(void rb_jump_tag(int));
400 int rb_provided(const char*);
401 int rb_feature_provided(const char *, const char **);
402 void rb_provide(const char*);
403 VALUE rb_f_require(VALUE, VALUE);
404 VALUE rb_require_safe(VALUE, int);
405 void rb_obj_call_init(VALUE, int, VALUE*);
406 VALUE rb_class_new_instance(int, VALUE*, VALUE);
407 VALUE rb_block_proc(void);
408 VALUE rb_block_lambda(void);
409 VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE);
410 VALUE rb_obj_is_proc(VALUE);
411 VALUE rb_proc_call(VALUE, VALUE);
412 VALUE rb_proc_call_with_block(VALUE, int argc, const VALUE *argv, VALUE);
413 int rb_proc_arity(VALUE);
414 VALUE rb_proc_lambda_p(VALUE);
415 VALUE rb_binding_new(void);
416 VALUE rb_obj_method(VALUE, VALUE);
417 VALUE rb_obj_is_method(VALUE);
418 VALUE rb_method_call(int, VALUE*, VALUE);
419 VALUE rb_method_call_with_block(int, VALUE *, VALUE, VALUE);
420 int rb_mod_method_arity(VALUE, ID);
421 int rb_obj_method_arity(VALUE, ID);
422 VALUE rb_protect(VALUE (*)(VALUE), VALUE, int*);
423 void rb_set_end_proc(void (*)(VALUE), VALUE);
424 void rb_exec_end_proc(void);
425 void rb_thread_schedule(void);
426 void rb_thread_wait_fd(int);
427 int rb_thread_fd_writable(int);
428 void rb_thread_fd_close(int);
429 int rb_thread_alone(void);
430 DEPRECATED(void rb_thread_polling(void));
431 void rb_thread_sleep(int);
432 void rb_thread_sleep_forever(void);
433 void rb_thread_sleep_deadly(void);
434 VALUE rb_thread_stop(void);
435 VALUE rb_thread_wakeup(VALUE);
436 VALUE rb_thread_wakeup_alive(VALUE);
437 VALUE rb_thread_run(VALUE);
438 VALUE rb_thread_kill(VALUE);
439 VALUE rb_thread_create(VALUE (*)(ANYARGS), void*);
440 DEPRECATED(int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *));
441 int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
442 void rb_thread_wait_for(struct timeval);
443 VALUE rb_thread_current(void);
444 VALUE rb_thread_main(void);
445 VALUE rb_thread_local_aref(VALUE, ID);
446 VALUE rb_thread_local_aset(VALUE, ID, VALUE);
447 void rb_thread_atfork(void);
448 void rb_thread_atfork_before_exec(void);
449 VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
450 VALUE rb_exec_recursive_paired(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE,VALUE);
451 VALUE rb_exec_recursive_outer(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
452 VALUE rb_exec_recursive_paired_outer(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE,VALUE);
453 /* dir.c */
454 VALUE rb_dir_getwd(void);
455 /* file.c */
456 VALUE rb_file_s_expand_path(int, VALUE *);
457 VALUE rb_file_expand_path(VALUE, VALUE);
458 VALUE rb_file_s_absolute_path(int, VALUE *);
459 VALUE rb_file_absolute_path(VALUE, VALUE);
460 VALUE rb_file_dirname(VALUE fname);
461 int rb_find_file_ext_safe(VALUE*, const char* const*, int);
462 VALUE rb_find_file_safe(VALUE, int);
463 int rb_find_file_ext(VALUE*, const char* const*);
464 VALUE rb_find_file(VALUE);
465 VALUE rb_file_directory_p(VALUE,VALUE);
466 VALUE rb_str_encode_ospath(VALUE);
467 int rb_is_absolute_path(const char *);
468 /* gc.c */
469 NORETURN(void rb_memerror(void));
470 int rb_during_gc(void);
471 void rb_gc_mark_locations(VALUE*, VALUE*);
472 void rb_mark_tbl(struct st_table*);
473 void rb_mark_set(struct st_table*);
474 void rb_mark_hash(struct st_table*);
475 void rb_gc_mark_maybe(VALUE);
476 void rb_gc_mark(VALUE);
477 void rb_gc_force_recycle(VALUE);
478 void rb_gc(void);
479 void rb_gc_copy_finalizer(VALUE,VALUE);
480 void rb_gc_finalize_deferred(void);
481 void rb_gc_call_finalizer_at_exit(void);
482 VALUE rb_gc_enable(void);
483 VALUE rb_gc_disable(void);
484 VALUE rb_gc_start(void);
485 DEPRECATED(void rb_gc_set_params(void));
486 VALUE rb_define_finalizer(VALUE, VALUE);
487 VALUE rb_undefine_finalizer(VALUE);
488 size_t rb_gc_count(void);
489 size_t rb_gc_stat(VALUE);
490 VALUE rb_gc_latest_gc_info(VALUE);
491 /* hash.c */
492 void st_foreach_safe(struct st_table *, int (*)(ANYARGS), st_data_t);
493 VALUE rb_check_hash_type(VALUE);
494 void rb_hash_foreach(VALUE, int (*)(ANYARGS), VALUE);
495 VALUE rb_hash(VALUE);
496 VALUE rb_hash_new(void);
497 VALUE rb_hash_dup(VALUE);
498 VALUE rb_hash_freeze(VALUE);
499 VALUE rb_hash_aref(VALUE, VALUE);
500 VALUE rb_hash_lookup(VALUE, VALUE);
501 VALUE rb_hash_lookup2(VALUE, VALUE, VALUE);
502 VALUE rb_hash_fetch(VALUE, VALUE);
503 VALUE rb_hash_aset(VALUE, VALUE, VALUE);
504 VALUE rb_hash_clear(VALUE);
505 VALUE rb_hash_delete_if(VALUE);
506 VALUE rb_hash_delete(VALUE,VALUE);
507 VALUE rb_hash_set_ifnone(VALUE hash, VALUE ifnone);
508 typedef VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value);
509 VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func);
510 struct st_table *rb_hash_tbl(VALUE);
511 int rb_path_check(const char*);
512 int rb_env_path_tainted(void);
513 VALUE rb_env_clear(void);
514 /* io.c */
515 #define rb_defout rb_stdout
516 RUBY_EXTERN VALUE rb_fs;
517 RUBY_EXTERN VALUE rb_output_fs;
518 RUBY_EXTERN VALUE rb_rs;
519 RUBY_EXTERN VALUE rb_default_rs;
520 RUBY_EXTERN VALUE rb_output_rs;
521 VALUE rb_io_write(VALUE, VALUE);
522 VALUE rb_io_gets(VALUE);
523 VALUE rb_io_getbyte(VALUE);
524 VALUE rb_io_ungetc(VALUE, VALUE);
525 VALUE rb_io_ungetbyte(VALUE, VALUE);
526 VALUE rb_io_close(VALUE);
527 VALUE rb_io_flush(VALUE);
528 VALUE rb_io_eof(VALUE);
529 VALUE rb_io_binmode(VALUE);
530 VALUE rb_io_ascii8bit_binmode(VALUE);
531 VALUE rb_io_addstr(VALUE, VALUE);
532 VALUE rb_io_printf(int, VALUE*, VALUE);
533 VALUE rb_io_print(int, VALUE*, VALUE);
534 VALUE rb_io_puts(int, VALUE*, VALUE);
535 VALUE rb_io_fdopen(int, int, const char*);
536 VALUE rb_io_get_io(VALUE);
537 VALUE rb_file_open(const char*, const char*);
538 VALUE rb_file_open_str(VALUE, const char*);
539 VALUE rb_gets(void);
540 void rb_write_error(const char*);
541 void rb_write_error2(const char*, long);
542 void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds);
543 int rb_pipe(int *pipes);
544 int rb_reserved_fd_p(int fd);
545 int rb_cloexec_open(const char *pathname, int flags, mode_t mode);
546 int rb_cloexec_dup(int oldfd);
547 int rb_cloexec_dup2(int oldfd, int newfd);
548 int rb_cloexec_pipe(int fildes[2]);
549 int rb_cloexec_fcntl_dupfd(int fd, int minfd);
550 #define RB_RESERVED_FD_P(fd) rb_reserved_fd_p(fd)
551 void rb_update_max_fd(int fd);
552 void rb_fd_fix_cloexec(int fd);
553 /* marshal.c */
554 VALUE rb_marshal_dump(VALUE, VALUE);
555 VALUE rb_marshal_load(VALUE);
556 void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE (*dumper)(VALUE), VALUE (*loader)(VALUE, VALUE));
557 /* numeric.c */
558 NORETURN(void rb_num_zerodiv(void));
559 #define RB_NUM_COERCE_FUNCS_NEED_OPID 1
560 VALUE rb_num_coerce_bin(VALUE, VALUE, ID);
561 VALUE rb_num_coerce_cmp(VALUE, VALUE, ID);
562 VALUE rb_num_coerce_relop(VALUE, VALUE, ID);
563 VALUE rb_num_coerce_bit(VALUE, VALUE, ID);
564 VALUE rb_num2fix(VALUE);
565 VALUE rb_fix2str(VALUE, int);
566 VALUE rb_dbl_cmp(double, double);
567 /* object.c */
568 int rb_eql(VALUE, VALUE);
569 VALUE rb_any_to_s(VALUE);
570 VALUE rb_inspect(VALUE);
571 VALUE rb_obj_is_instance_of(VALUE, VALUE);
572 VALUE rb_obj_is_kind_of(VALUE, VALUE);
573 VALUE rb_obj_alloc(VALUE);
574 VALUE rb_obj_clone(VALUE);
575 VALUE rb_obj_dup(VALUE);
576 VALUE rb_obj_init_copy(VALUE,VALUE);
577 VALUE rb_obj_taint(VALUE);
578 VALUE rb_obj_tainted(VALUE);
579 VALUE rb_obj_untaint(VALUE);
580 VALUE rb_obj_untrust(VALUE);
581 VALUE rb_obj_untrusted(VALUE);
582 VALUE rb_obj_trust(VALUE);
583 VALUE rb_obj_freeze(VALUE);
584 VALUE rb_obj_frozen_p(VALUE);
585 VALUE rb_obj_id(VALUE);
586 VALUE rb_obj_class(VALUE);
587 VALUE rb_class_real(VALUE);
588 VALUE rb_class_inherited_p(VALUE, VALUE);
589 VALUE rb_class_superclass(VALUE);
590 VALUE rb_class_get_superclass(VALUE);
591 VALUE rb_convert_type(VALUE,int,const char*,const char*);
592 VALUE rb_check_convert_type(VALUE,int,const char*,const char*);
593 VALUE rb_check_to_integer(VALUE, const char *);
594 VALUE rb_check_to_float(VALUE);
595 VALUE rb_to_int(VALUE);
596 VALUE rb_check_to_int(VALUE);
597 VALUE rb_Integer(VALUE);
598 VALUE rb_to_float(VALUE);
599 VALUE rb_Float(VALUE);
600 VALUE rb_String(VALUE);
601 VALUE rb_Array(VALUE);
602 VALUE rb_Hash(VALUE);
603 double rb_cstr_to_dbl(const char*, int);
604 double rb_str_to_dbl(VALUE, int);
605 /* parse.y */
606 RUBY_EXTERN int ruby_sourceline;
607 RUBY_EXTERN char *ruby_sourcefile;
608 ID rb_id_attrset(ID);
609 int rb_is_const_id(ID);
610 int rb_is_global_id(ID);
611 int rb_is_instance_id(ID);
612 int rb_is_attrset_id(ID);
613 int rb_is_class_id(ID);
614 int rb_is_local_id(ID);
615 int rb_is_junk_id(ID);
616 int rb_symname_p(const char*);
617 int rb_sym_interned_p(VALUE);
618 VALUE rb_backref_get(void);
619 void rb_backref_set(VALUE);
620 VALUE rb_lastline_get(void);
621 void rb_lastline_set(VALUE);
622 VALUE rb_sym_all_symbols(void);
623 /* process.c */
624 void rb_last_status_set(int status, rb_pid_t pid);
625 VALUE rb_last_status_get(void);
626 struct rb_exec_arg {
627 VALUE execarg_obj;
628 };
629 DEPRECATED(int rb_proc_exec_n(int, VALUE*, const char*));
630 int rb_proc_exec(const char*);
631 DEPRECATED(VALUE rb_exec_arg_init(int argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e));
632 DEPRECATED(int rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val));
633 DEPRECATED(void rb_exec_arg_fixup(struct rb_exec_arg *e));
634 DEPRECATED(int rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s));
635 DEPRECATED(int rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char*, size_t));
636 DEPRECATED(int rb_exec(const struct rb_exec_arg*));
637 DEPRECATED(int rb_exec_err(const struct rb_exec_arg*, char*, size_t));
638 DEPRECATED(rb_pid_t rb_fork(int*, int (*)(void*), void*, VALUE));
639 DEPRECATED(rb_pid_t rb_fork_err(int*, int (*)(void*, char*, size_t), void*, VALUE, char*, size_t));
640 VALUE rb_f_exec(int,VALUE*);
641 rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags);
642 void rb_syswait(rb_pid_t pid);
643 rb_pid_t rb_spawn(int, VALUE*);
644 rb_pid_t rb_spawn_err(int, VALUE*, char*, size_t);
645 VALUE rb_proc_times(VALUE);
646 VALUE rb_detach_process(rb_pid_t pid);
647 /* range.c */
648 VALUE rb_range_new(VALUE, VALUE, int);
649 VALUE rb_range_beg_len(VALUE, long*, long*, long, int);
650 int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp);
651 /* random.c */
652 unsigned int rb_genrand_int32(void);
653 double rb_genrand_real(void);
654 void rb_reset_random_seed(void);
655 VALUE rb_random_bytes(VALUE rnd, long n);
656 VALUE rb_random_int(VALUE rnd, VALUE max);
657 unsigned int rb_random_int32(VALUE rnd);
658 double rb_random_real(VALUE rnd);
659 unsigned long rb_random_ulong_limited(VALUE rnd, unsigned long limit);
660 unsigned long rb_genrand_ulong_limited(unsigned long i);
661 /* re.c */
662 #define rb_memcmp memcmp
663 int rb_memcicmp(const void*,const void*,long);
664 void rb_match_busy(VALUE);
665 VALUE rb_reg_nth_defined(int, VALUE);
666 VALUE rb_reg_nth_match(int, VALUE);
667 int rb_reg_backref_number(VALUE match, VALUE backref);
668 VALUE rb_reg_last_match(VALUE);
669 VALUE rb_reg_match_pre(VALUE);
670 VALUE rb_reg_match_post(VALUE);
671 VALUE rb_reg_match_last(VALUE);
672 #define HAVE_RB_REG_NEW_STR 1
673 VALUE rb_reg_new_str(VALUE, int);
674 VALUE rb_reg_new(const char *, long, int);
675 VALUE rb_reg_alloc(void);
676 VALUE rb_reg_init_str(VALUE re, VALUE s, int options);
677 VALUE rb_reg_match(VALUE, VALUE);
678 VALUE rb_reg_match2(VALUE);
679 int rb_reg_options(VALUE);
680 /* ruby.c */
681 #define rb_argv rb_get_argv()
682 RUBY_EXTERN VALUE rb_argv0;
683 VALUE rb_get_argv(void);
684 void *rb_load_file(const char*);
685 void *rb_load_file_str(VALUE);
686 /* signal.c */
687 VALUE rb_f_kill(int, VALUE*);
688 #ifdef POSIX_SIGNAL
689 #define posix_signal ruby_posix_signal
690 RETSIGTYPE (*posix_signal(int, RETSIGTYPE (*)(int)))(int);
691 #endif
692 void rb_trap_exit(void);
693 void rb_trap_exec(void);
694 const char *ruby_signal_name(int);
695 void ruby_default_signal(int);
696 /* sprintf.c */
697 VALUE rb_f_sprintf(int, const VALUE*);
698 PRINTF_ARGS(VALUE rb_sprintf(const char*, ...), 1, 2);
699 VALUE rb_vsprintf(const char*, va_list);
700 PRINTF_ARGS(VALUE rb_str_catf(VALUE, const char*, ...), 2, 3);
701 VALUE rb_str_vcatf(VALUE, const char*, va_list);
702 VALUE rb_str_format(int, const VALUE *, VALUE);
703 /* string.c */
704 VALUE rb_str_new(const char*, long);
705 VALUE rb_str_new_cstr(const char*);
706 VALUE rb_str_new_shared(VALUE);
707 VALUE rb_str_new_frozen(VALUE);
708 VALUE rb_str_new_with_class(VALUE, const char*, long);
709 VALUE rb_tainted_str_new_cstr(const char*);
710 VALUE rb_tainted_str_new(const char*, long);
711 VALUE rb_external_str_new(const char*, long);
712 VALUE rb_external_str_new_cstr(const char*);
713 VALUE rb_locale_str_new(const char*, long);
714 VALUE rb_locale_str_new_cstr(const char*);
715 VALUE rb_filesystem_str_new(const char*, long);
716 VALUE rb_filesystem_str_new_cstr(const char*);
717 VALUE rb_str_buf_new(long);
718 VALUE rb_str_buf_new_cstr(const char*);
719 VALUE rb_str_buf_new2(const char*);
720 VALUE rb_str_tmp_new(long);
721 VALUE rb_usascii_str_new(const char*, long);
722 VALUE rb_usascii_str_new_cstr(const char*);
723 void rb_str_free(VALUE);
724 void rb_str_shared_replace(VALUE, VALUE);
725 VALUE rb_str_buf_append(VALUE, VALUE);
726 VALUE rb_str_buf_cat(VALUE, const char*, long);
727 VALUE rb_str_buf_cat2(VALUE, const char*);
728 VALUE rb_str_buf_cat_ascii(VALUE, const char*);
729 VALUE rb_obj_as_string(VALUE);
730 VALUE rb_check_string_type(VALUE);
731 void rb_must_asciicompat(VALUE);
732 VALUE rb_str_dup(VALUE);
733 VALUE rb_str_resurrect(VALUE str);
734 VALUE rb_str_locktmp(VALUE);
735 VALUE rb_str_unlocktmp(VALUE);
736 VALUE rb_str_dup_frozen(VALUE);
737 #define rb_str_dup_frozen rb_str_new_frozen
738 VALUE rb_str_plus(VALUE, VALUE);
739 VALUE rb_str_times(VALUE, VALUE);
740 long rb_str_sublen(VALUE, long);
741 VALUE rb_str_substr(VALUE, long, long);
742 VALUE rb_str_subseq(VALUE, long, long);
743 char *rb_str_subpos(VALUE, long, long*);
744 void rb_str_modify(VALUE);
745 void rb_str_modify_expand(VALUE, long);
746 VALUE rb_str_freeze(VALUE);
747 void rb_str_set_len(VALUE, long);
748 VALUE rb_str_resize(VALUE, long);
749 VALUE rb_str_cat(VALUE, const char*, long);
750 VALUE rb_str_cat2(VALUE, const char*);
751 VALUE rb_str_append(VALUE, VALUE);
752 VALUE rb_str_concat(VALUE, VALUE);
753 st_index_t rb_memhash(const void *ptr, long len);
754 st_index_t rb_hash_start(st_index_t);
755 st_index_t rb_hash_uint32(st_index_t, uint32_t);
756 st_index_t rb_hash_uint(st_index_t, st_index_t);
757 st_index_t rb_hash_end(st_index_t);
758 #define rb_hash_uint32(h, i) st_hash_uint32((h), (i))
759 #define rb_hash_uint(h, i) st_hash_uint((h), (i))
760 #define rb_hash_end(h) st_hash_end(h)
761 st_index_t rb_str_hash(VALUE);
762 int rb_str_hash_cmp(VALUE,VALUE);
763 int rb_str_comparable(VALUE, VALUE);
764 int rb_str_cmp(VALUE, VALUE);
765 VALUE rb_str_equal(VALUE str1, VALUE str2);
766 VALUE rb_str_drop_bytes(VALUE, long);
767 void rb_str_update(VALUE, long, long, VALUE);
768 VALUE rb_str_replace(VALUE, VALUE);
769 VALUE rb_str_inspect(VALUE);
770 VALUE rb_str_dump(VALUE);
771 VALUE rb_str_split(VALUE, const char*);
772 void rb_str_associate(VALUE, VALUE);
773 VALUE rb_str_associated(VALUE);
774 void rb_str_setter(VALUE, ID, VALUE*);
775 VALUE rb_str_intern(VALUE);
776 VALUE rb_sym_to_s(VALUE);
777 long rb_str_strlen(VALUE);
778 VALUE rb_str_length(VALUE);
779 long rb_str_offset(VALUE, long);
780 size_t rb_str_capacity(VALUE);
781 VALUE rb_str_ellipsize(VALUE, long);
782 VALUE rb_str_scrub(VALUE, VALUE);
783 #if defined(__GNUC__) && !defined(__PCC__)
784 #define rb_str_new_cstr(str) __extension__ ( \
785 { \
786 (__builtin_constant_p(str)) ? \
787 rb_str_new((str), (long)strlen(str)) : \
788 rb_str_new_cstr(str); \
789 })
790 #define rb_tainted_str_new_cstr(str) __extension__ ( \
791 { \
792 (__builtin_constant_p(str)) ? \
793 rb_tainted_str_new((str), (long)strlen(str)) : \
794 rb_tainted_str_new_cstr(str); \
795 })
796 #define rb_usascii_str_new_cstr(str) __extension__ ( \
797 { \
798 (__builtin_constant_p(str)) ? \
799 rb_usascii_str_new((str), (long)strlen(str)) : \
800 rb_usascii_str_new_cstr(str); \
801 })
802 #define rb_external_str_new_cstr(str) __extension__ ( \
803 { \
804 (__builtin_constant_p(str)) ? \
805 rb_external_str_new((str), (long)strlen(str)) : \
806 rb_external_str_new_cstr(str); \
807 })
808 #define rb_locale_str_new_cstr(str) __extension__ ( \
809 { \
810 (__builtin_constant_p(str)) ? \
811 rb_locale_str_new((str), (long)strlen(str)) : \
812 rb_locale_str_new_cstr(str); \
813 })
814 #define rb_str_buf_new_cstr(str) __extension__ ( \
815 { \
816 (__builtin_constant_p(str)) ? \
817 rb_str_buf_cat(rb_str_buf_new((long)strlen(str)), \
818 (str), (long)strlen(str)) : \
819 rb_str_buf_new_cstr(str); \
820 })
821 #define rb_str_buf_cat2(str, ptr) __extension__ ( \
822 { \
823 (__builtin_constant_p(ptr)) ? \
824 rb_str_buf_cat((str), (ptr), (long)strlen(ptr)) : \
825 rb_str_buf_cat2((str), (ptr)); \
826 })
827 #define rb_str_cat2(str, ptr) __extension__ ( \
828 { \
829 (__builtin_constant_p(ptr)) ? \
830 rb_str_cat((str), (ptr), (long)strlen(ptr)) : \
831 rb_str_cat2((str), (ptr)); \
832 })
833 #define rb_exc_new_cstr(klass, ptr) __extension__ ( \
834 { \
835 (__builtin_constant_p(ptr)) ? \
836 rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \
837 rb_exc_new_cstr((klass), (ptr)); \
838 })
839 #endif
840 #define rb_str_new2 rb_str_new_cstr
841 #define rb_str_new3 rb_str_new_shared
842 #define rb_str_new4 rb_str_new_frozen
843 #define rb_str_new5 rb_str_new_with_class
844 #define rb_tainted_str_new2 rb_tainted_str_new_cstr
845 #define rb_str_buf_new2 rb_str_buf_new_cstr
846 #define rb_usascii_str_new2 rb_usascii_str_new_cstr
847 /* struct.c */
848 VALUE rb_struct_new(VALUE, ...);
849 VALUE rb_struct_define(const char*, ...);
850 VALUE rb_struct_define_under(VALUE, const char*, ...);
851 VALUE rb_struct_alloc(VALUE, VALUE);
852 VALUE rb_struct_initialize(VALUE, VALUE);
853 VALUE rb_struct_aref(VALUE, VALUE);
854 VALUE rb_struct_aset(VALUE, VALUE, VALUE);
855 VALUE rb_struct_getmember(VALUE, ID);
856 DEPRECATED(VALUE rb_struct_iv_get(VALUE, const char*));
857 VALUE rb_struct_s_members(VALUE);
858 VALUE rb_struct_members(VALUE);
859 VALUE rb_struct_alloc_noinit(VALUE);
860 VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t, ...);
861 VALUE rb_struct_define_without_accessor_under(VALUE outer, const char *class_name, VALUE super, rb_alloc_func_t alloc, ...);
862
863 /* thread.c */
864 typedef void rb_unblock_function_t(void *);
865 typedef VALUE rb_blocking_function_t(void *);
866 void rb_thread_check_ints(void);
867 int rb_thread_interrupted(VALUE thval);
868
869 /* Use rb_thread_call_without_gvl family instead. */
870 DEPRECATED(VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1,
871 rb_unblock_function_t *ubf, void *data2));
872 #define RUBY_UBF_IO ((rb_unblock_function_t *)-1)
873 #define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1)
874 VALUE rb_mutex_new(void);
875 VALUE rb_mutex_locked_p(VALUE mutex);
876 VALUE rb_mutex_trylock(VALUE mutex);
877 VALUE rb_mutex_lock(VALUE mutex);
878 VALUE rb_mutex_unlock(VALUE mutex);
879 VALUE rb_mutex_sleep(VALUE self, VALUE timeout);
880 VALUE rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg);
881 /* time.c */
882 VALUE rb_time_new(time_t, long);
883 VALUE rb_time_nano_new(time_t, long);
884 VALUE rb_time_num_new(VALUE, VALUE);
885 struct timeval rb_time_interval(VALUE num);
886 struct timeval rb_time_timeval(VALUE time);
887 struct timespec rb_time_timespec(VALUE time);
888 /* variable.c */
889 VALUE rb_mod_name(VALUE);
890 VALUE rb_class_path(VALUE);
891 VALUE rb_class_path_cached(VALUE);
892 void rb_set_class_path(VALUE, VALUE, const char*);
893 void rb_set_class_path_string(VALUE, VALUE, VALUE);
894 VALUE rb_path_to_class(VALUE);
895 VALUE rb_path2class(const char*);
896 void rb_name_class(VALUE, ID);
897 VALUE rb_class_name(VALUE);
898 void rb_autoload(VALUE, ID, const char*);
899 VALUE rb_autoload_load(VALUE, ID);
900 VALUE rb_autoload_p(VALUE, ID);
901 VALUE rb_f_trace_var(int, VALUE*);
902 VALUE rb_f_untrace_var(int, VALUE*);
903 VALUE rb_f_global_variables(void);
904 void rb_alias_variable(ID, ID);
905 struct st_table* rb_generic_ivar_table(VALUE);
906 void rb_copy_generic_ivar(VALUE,VALUE);
907 void rb_free_generic_ivar(VALUE);
908 VALUE rb_ivar_get(VALUE, ID);
909 VALUE rb_ivar_set(VALUE, ID, VALUE);
910 VALUE rb_ivar_defined(VALUE, ID);
911 void rb_ivar_foreach(VALUE, int (*)(ANYARGS), st_data_t);
912 st_index_t rb_ivar_count(VALUE);
913 VALUE rb_attr_get(VALUE, ID);
914 VALUE rb_obj_instance_variables(VALUE);
915 VALUE rb_obj_remove_instance_variable(VALUE, VALUE);
916 void *rb_mod_const_at(VALUE, void*);
917 void *rb_mod_const_of(VALUE, void*);
918 VALUE rb_const_list(void*);
919 VALUE rb_mod_constants(int, VALUE *, VALUE);
920 VALUE rb_mod_remove_const(VALUE, VALUE);
921 int rb_const_defined(VALUE, ID);
922 int rb_const_defined_at(VALUE, ID);
923 int rb_const_defined_from(VALUE, ID);
924 VALUE rb_const_get(VALUE, ID);
925 VALUE rb_const_get_at(VALUE, ID);
926 VALUE rb_const_get_from(VALUE, ID);
927 void rb_const_set(VALUE, ID, VALUE);
928 VALUE rb_const_remove(VALUE, ID);
929 VALUE rb_mod_const_missing(VALUE,VALUE);
930 VALUE rb_cvar_defined(VALUE, ID);
931 void rb_cvar_set(VALUE, ID, VALUE);
932 VALUE rb_cvar_get(VALUE, ID);
933 void rb_cv_set(VALUE, const char*, VALUE);
934 VALUE rb_cv_get(VALUE, const char*);
935 void rb_define_class_variable(VALUE, const char*, VALUE);
936 VALUE rb_mod_class_variables(int, VALUE*, VALUE);
937 VALUE rb_mod_remove_cvar(VALUE, VALUE);
938
939 ID rb_frame_callee(void);
940 VALUE rb_str_succ(VALUE);
941 VALUE rb_time_succ(VALUE);
942 int rb_frame_method_id_and_class(ID *idp, VALUE *klassp);
943 VALUE rb_make_backtrace(void);
944 VALUE rb_make_exception(int, VALUE*);
945
946 /* deprecated */
947 DEPRECATED(void rb_frame_pop(void));
948
949
950 RUBY_SYMBOL_EXPORT_END
951
952 #if defined(__cplusplus)
953 #if 0
954 { /* satisfy cc-mode */
955 #endif
956 } /* extern "C" { */
957 #endif
958
959 #endif /* RUBY_INTERN_H */
rb_alloc_func_t
VALUE(* rb_alloc_func_t)(VALUE)
Definition: intern.h:374
rb_apply
VALUE rb_apply(VALUE, ID, VALUE)
Calls a method.
Definition: vm_eval.c:746
rb_gc_call_finalizer_at_exit
void rb_gc_call_finalizer_at_exit(void)
Definition: gc.c:2144
rb_time_interval
struct timeval rb_time_interval(VALUE num)
Definition: time.c:2411
rb_provided
int rb_provided(const char *)
Definition: load.c:523
rb_mutex_lock
VALUE rb_mutex_lock(VALUE mutex)
Definition: thread.c:4373
rb_hash_tbl
struct st_table * rb_hash_tbl(VALUE)
Definition: hash.c:344
rb_cvar_get
VALUE rb_cvar_get(VALUE, ID)
Definition: variable.c:2381
rb_thread_schedule
void rb_thread_schedule(void)
Definition: thread.c:1187
rb_gc_mark_locations
void rb_gc_mark_locations(VALUE *, VALUE *)
Definition: gc.c:3311
rb_thread_atfork_before_exec
void rb_thread_atfork_before_exec(void)
Definition: thread.c:3954
rb_io_addstr
VALUE rb_io_addstr(VALUE, VALUE)
Definition: io.c:1449
rb_reg_match_last
VALUE rb_reg_match_last(VALUE)
Definition: re.c:1572
rb_reg_backref_number
int rb_reg_backref_number(VALUE match, VALUE backref)
Definition: re.c:1100
rb_hash_delete_if
VALUE rb_hash_delete_if(VALUE)
Definition: hash.c:1094
rb_hash_delete
VALUE rb_hash_delete(VALUE, VALUE)
Definition: hash.c:996
rb_define_module_id_under
VALUE rb_define_module_id_under(VALUE, ID)
Definition: class.c:772
rb_thread_atfork
void rb_thread_atfork(void)
Definition: thread.c:3931
rb_struct_iv_get
VALUE rb_struct_iv_get(VALUE c, const char *name)
Definition: struct.c:33
rb_file_dirname
VALUE rb_file_dirname(VALUE fname)
Definition: file.c:3910
rb_find_file_ext_safe
int rb_find_file_ext_safe(VALUE *, const char *const *, int)
Definition: file.c:5434
rb_cloexec_fcntl_dupfd
int rb_cloexec_fcntl_dupfd(int fd, int minfd)
Definition: io.c:323
rb_str_length
VALUE rb_str_length(VALUE)
Definition: string.c:1298
rb_mod_include_p
VALUE rb_mod_include_p(VALUE, VALUE)
Definition: class.c:1026
rb_proc_call_with_block
VALUE rb_proc_call_with_block(VALUE, int argc, const VALUE *argv, VALUE)
Definition: proc.c:745
rb_num_coerce_bin
VALUE rb_num_coerce_bin(VALUE, VALUE, ID)
Definition: numeric.c:280
rb_ary_new_from_args
VALUE rb_ary_new_from_args(long n,...)
Definition: array.c:501
rb_compile_error
void rb_compile_error(const char *file, int line, const char *fmt,...)
Definition: error.c:145
rb_detach_process
VALUE rb_detach_process(rb_pid_t pid)
Definition: process.c:1027
rb_big_clone
VALUE rb_big_clone(VALUE)
Definition: bignum.c:3004
rb_str_equal
VALUE rb_str_equal(VALUE str1, VALUE str2)
Definition: string.c:2543
rb_ary_new_capa
VALUE rb_ary_new_capa(long capa)
Definition: array.c:489
rb_cv_set
void rb_cv_set(VALUE, const char *, VALUE)
Definition: variable.c:2416
rb_check_inheritable
void rb_check_inheritable(VALUE)
Ensures a class can be derived from super.
Definition: class.c:206
rb_mod_name
VALUE rb_mod_name(VALUE)
Definition: variable.c:206
rb_update_max_fd
void rb_update_max_fd(int fd)
Definition: io.c:183
rb_ary_delete
VALUE rb_ary_delete(VALUE, VALUE)
Definition: array.c:2898
rb_file_s_expand_path
VALUE rb_file_s_expand_path(int, VALUE *)
Definition: file.c:3462
rb_backref_set
void rb_backref_set(VALUE)
Definition: vm.c:953
st_table
Definition: st.h:69
rb_String
VALUE rb_String(VALUE)
Definition: object.c:2986
rb_time_nano_new
VALUE rb_time_nano_new(time_t, long)
Definition: time.c:2305
rb_Rational
VALUE rb_Rational(VALUE, VALUE)
Definition: rational.c:1768
rb_io_get_io
VALUE rb_io_get_io(VALUE)
Definition: io.c:627
rb_file_expand_path
VALUE rb_file_expand_path(VALUE, VALUE)
Definition: file.c:3421
rb_hash_lookup2
VALUE rb_hash_lookup2(VALUE, VALUE, VALUE)
Definition: hash.c:708
rb_hash_aref
VALUE rb_hash_aref(VALUE, VALUE)
Definition: hash.c:697
rb_gc_force_recycle
void rb_gc_force_recycle(VALUE)
Definition: gc.c:4897
rb_range_new
VALUE rb_range_new(VALUE, VALUE, int)
Definition: range.c:70
rb_big_pow
VALUE rb_big_pow(VALUE, VALUE)
Definition: bignum.c:6363
rb_w32_fd_dup
void rb_w32_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src)
Definition: win32.c:2601
max
static int max(int a, int b)
Definition: strftime.c:141
rb_undef_alloc_func
void rb_undef_alloc_func(VALUE)
Definition: vm_method.c:519
DEPRECATED
DEPRECATED(VALUE rb_big2str0(VALUE, int, int))
rb_define_singleton_method
void rb_define_singleton_method(VALUE, const char *, VALUE(*)(ANYARGS), int)
Defines a singleton method for obj.
Definition: class.c:1655
rb_ary_aref
VALUE rb_ary_aref(int, VALUE *, VALUE)
Definition: array.c:1234
rb_exec_recursive_outer
VALUE rb_exec_recursive_outer(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE)
Definition: thread.c:5005
rb_f_sprintf
VALUE rb_f_sprintf(int, const VALUE *)
Definition: sprintf.c:415
rb_ary_reverse
VALUE rb_ary_reverse(VALUE)
Definition: array.c:2176
rb_ary_shared_with_p
VALUE rb_ary_shared_with_p(VALUE, VALUE)
Definition: array.c:425
rb_obj_method_arity
int rb_obj_method_arity(VALUE, ID)
Definition: proc.c:2108
rb_thread_sleep_deadly
void rb_thread_sleep_deadly(void)
Definition: thread.c:1076
rb_class_private_instance_methods
VALUE rb_class_private_instance_methods(int, VALUE *, VALUE)
Definition: class.c:1243
rb_cloexec_open
int rb_cloexec_open(const char *pathname, int flags, mode_t mode)
Definition: io.c:228
rb_define_class_variable
void rb_define_class_variable(VALUE, const char *, VALUE)
Definition: variable.c:2436
rb_str_cat
VALUE rb_str_cat(VALUE, const char *, long)
Definition: string.c:2140
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:699
rb_unblock_function_t
void rb_unblock_function_t(void *)
Definition: intern.h:864
rb_f_notimplement
VALUE rb_f_notimplement(int argc, VALUE *argv, VALUE obj)
Definition: vm_method.c:85
rb_str_dup_frozen
#define rb_str_dup_frozen
Definition: intern.h:737
rb_hash_lookup
VALUE rb_hash_lookup(VALUE, VALUE)
Definition: hash.c:719
rb_is_absolute_path
int rb_is_absolute_path(const char *)
Definition: file.c:5281
rb_enumerator_size_func
VALUE rb_enumerator_size_func(VALUE, VALUE, VALUE)
Definition: intern.h:231
rb_complex_raw
VALUE rb_complex_raw(VALUE, VALUE)
Definition: complex.c:1317
rb_reg_alloc
VALUE rb_reg_alloc(void)
Definition: re.c:2499
rb_error_frozen
void rb_error_frozen(const char *what)
Definition: error.c:2077
rb_io_flush
VALUE rb_io_flush(VALUE)
Definition: io.c:1510
rb_mod_ancestors
VALUE rb_mod_ancestors(VALUE)
Definition: class.c:1056
rb_ary_cmp
VALUE rb_ary_cmp(VALUE, VALUE)
Definition: array.c:3877
rb_write_error2
void rb_write_error2(const char *, long)
Definition: io.c:7143
rb_symname_p
int rb_symname_p(const char *)
Definition: ripper.c:16827
rb_dbl_cmp
VALUE rb_dbl_cmp(double, double)
Definition: numeric.c:1124
rb_method_call
VALUE rb_method_call(int, VALUE *, VALUE)
Definition: proc.c:1780
rb_generic_ivar_table
struct st_table * rb_generic_ivar_table(VALUE)
Definition: variable.c:907
rb_check_frozen_internal
#define rb_check_frozen_internal(obj)
Definition: intern.h:261
rb_cstr2inum
VALUE rb_cstr2inum(const char *, int)
Definition: bignum.c:4373
rb_str_unlocktmp
VALUE rb_str_unlocktmp(VALUE)
Definition: string.c:1991
rb_define_private_method
void rb_define_private_method(VALUE, const char *, VALUE(*)(ANYARGS), int)
Definition: class.c:1500
rb_hash_clear
VALUE rb_hash_clear(VALUE)
Definition: hash.c:1324
rb_Hash
VALUE rb_Hash(VALUE)
Definition: object.c:3045
rb_big2dbl
double rb_big2dbl(VALUE)
Definition: bignum.c:5269
rb_str_new_with_class
VALUE rb_str_new_with_class(VALUE, const char *, long)
Definition: string.c:874
rb_autoload
void rb_autoload(VALUE, ID, const char *)
Definition: variable.c:1607
rb_must_asciicompat
void rb_must_asciicompat(VALUE)
Definition: string.c:1580
rb_check_arity
#define rb_check_arity
Definition: intern.h:296
rb_trap_exec
void rb_trap_exec(void)
rb_struct_alloc_noinit
VALUE rb_struct_alloc_noinit(VALUE)
Definition: struct.c:235
rb_reg_match
VALUE rb_reg_match(VALUE, VALUE)
Definition: re.c:2765
rb_range_values
int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp)
Definition: range.c:981
rb_struct_new
VALUE rb_struct_new(VALUE,...)
Definition: struct.c:500
rb_ary_sort
VALUE rb_ary_sort(VALUE)
Definition: array.c:2507
rb_close_before_exec
void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds)
rb_reg_nth_defined
VALUE rb_reg_nth_defined(int, VALUE)
Definition: re.c:1465
rb_proc_exec_n
int rb_proc_exec_n(int argc, VALUE *argv, const char *prog)
Definition: process.c:1285
rb_cvar_set
void rb_cvar_set(VALUE, ID, VALUE)
Definition: variable.c:2348
rb_singleton_class_clone
VALUE rb_singleton_class_clone(VALUE)
Definition: class.c:371
rb_str_concat
VALUE rb_str_concat(VALUE, VALUE)
Definition: string.c:2340
rb_thread_alone
int rb_thread_alone(void)
Definition: thread.c:2990
rb_obj_is_method
VALUE rb_obj_is_method(VALUE)
Definition: proc.c:1095
rb_memhash
st_index_t rb_memhash(const void *ptr, long len)
Definition: random.c:1302
rb_io_ungetc
VALUE rb_io_ungetc(VALUE, VALUE)
Definition: io.c:3868
rb_str_plus
VALUE rb_str_plus(VALUE, VALUE)
Definition: string.c:1352
rb_mark_hash
void rb_mark_hash(struct st_table *)
Definition: gc.c:3381
rb_thread_wakeup
VALUE rb_thread_wakeup(VALUE)
Definition: thread.c:2272
rb_mod_init_copy
VALUE rb_mod_init_copy(VALUE, VALUE)
Definition: class.c:319
rb_hash_uint32
#define rb_hash_uint32(h, i)
Definition: intern.h:758
rb_check_trusted
#define rb_check_trusted(obj)
Definition: intern.h:283
rb_sourcefile
const char * rb_sourcefile(void)
Definition: vm.c:987
rb_path_check
int rb_path_check(const char *)
Definition: file.c:5360
rb_fd_zero
#define rb_fd_zero(f)
Definition: intern.h:349
rb_thread_fd_select
int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *)
Definition: thread.c:3576
rb_genrand_real
double rb_genrand_real(void)
Definition: random.c:258
rb_file_absolute_path
VALUE rb_file_absolute_path(VALUE, VALUE)
Definition: file.c:3475
rb_str_times
VALUE rb_str_times(VALUE, VALUE)
Definition: string.c:1384
rb_error_untrusted
void rb_error_untrusted(VALUE)
Definition: error.c:2090
rb_path_to_class
VALUE rb_path_to_class(VALUE)
Definition: variable.c:339
rb_str_set_len
void rb_str_set_len(VALUE, long)
Definition: string.c:2008
rb_reg_options
int rb_reg_options(VALUE)
Definition: re.c:3102
rb_backref_get
VALUE rb_backref_get(void)
Definition: vm.c:947
rb_undefine_finalizer
VALUE rb_undefine_finalizer(VALUE)
Definition: gc.c:1911
rb_ary_dup
VALUE rb_ary_dup(VALUE)
Definition: array.c:1888
rb_to_int
VALUE rb_to_int(VALUE)
Definition: object.c:2679
rb_str_associated
VALUE rb_str_associated(VALUE)
Definition: string.c:1570
rb_ivar_get
VALUE rb_ivar_get(VALUE, ID)
Definition: variable.c:1115
rb_str_update
void rb_str_update(VALUE, long, long, VALUE)
Definition: string.c:3739
rb_mod_module_eval
VALUE rb_mod_module_eval(int, VALUE *, VALUE)
Definition: vm_eval.c:1677
rb_io_getbyte
VALUE rb_io_getbyte(VALUE)
Definition: io.c:3772
rb_convert_type
VALUE rb_convert_type(VALUE, int, const char *, const char *)
Definition: object.c:2616
rb_big_pack
void rb_big_pack(VALUE val, unsigned long *buf, long num_longs)
Definition: bignum.c:3199
rb_exec_recursive
VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE)
Definition: thread.c:4982
rb_exec
int rb_exec(const struct rb_exec_arg *e)
Definition: process.c:3153
rb_gc_stat
size_t rb_gc_stat(VALUE)
Definition: gc.c:5555
rb_define_alloc_func
void rb_define_alloc_func(VALUE, rb_alloc_func_t)
rb_obj_is_kind_of
VALUE rb_obj_is_kind_of(VALUE, VALUE)
Definition: object.c:652
rb_backtrace
void rb_backtrace(void)
Definition: vm_backtrace.c:782
rb_clear_constant_cache
void rb_clear_constant_cache(void)
Definition: vm_method.c:60
rb_const_defined
int rb_const_defined(VALUE, ID)
Definition: variable.c:2124
rb_reg_match2
VALUE rb_reg_match2(VALUE)
Definition: re.c:2824
rb_hash
VALUE rb_hash(VALUE)
Definition: hash.c:106
rb_str_hash
st_index_t rb_str_hash(VALUE)
Definition: string.c:2422
rb_get_values_at
VALUE rb_get_values_at(VALUE, long, int, VALUE *, VALUE(*)(VALUE, long))
Definition: array.c:2718
rb_interrupt
void rb_interrupt(void)
Definition: eval.c:585
rb_str_subpos
char * rb_str_subpos(VALUE, long, long *)
Definition: string.c:1860
rb_syswait
void rb_syswait(rb_pid_t pid)
Definition: process.c:3754
rb_check_to_float
VALUE rb_check_to_float(VALUE)
Definition: object.c:2954
rb_pipe
int rb_pipe(int *pipes)
Definition: io.c:5651
rb_feature_provided
int rb_feature_provided(const char *, const char **)
Definition: load.c:529
rb_exec_arg::execarg_obj
VALUE execarg_obj
Definition: intern.h:627
st_index_t
st_data_t st_index_t
Definition: st.h:48
rb_range_beg_len
VALUE rb_range_beg_len(VALUE, long *, long *, long, int)
Definition: range.c:1005
rb_big_xor
VALUE rb_big_xor(VALUE, VALUE)
Definition: bignum.c:6705
rb_ary_sort_bang
VALUE rb_ary_sort_bang(VALUE)
Definition: array.c:2425
rb_str_to_dbl
double rb_str_to_dbl(VALUE, int)
Definition: object.c:2867
rb_hash_fetch
VALUE rb_hash_fetch(VALUE, VALUE)
Definition: hash.c:782
rb_reg_match_post
VALUE rb_reg_match_post(VALUE)
Definition: re.c:1554
rb_io_write
VALUE rb_io_write(VALUE, VALUE)
Definition: io.c:1427
rb_tainted_str_new_cstr
VALUE rb_tainted_str_new_cstr(const char *)
Definition: string.c:598
rb_str_cmp
int rb_str_cmp(VALUE, VALUE)
Definition: string.c:2486
rb_file_open_str
VALUE rb_file_open_str(VALUE, const char *)
Definition: io.c:5554
rb_ary_entry
VALUE rb_ary_entry(VALUE, long)
Definition: array.c:1171
rb_check_copyable
void rb_check_copyable(VALUE obj, VALUE orig)
Definition: error.c:2101
rb_define_protected_method
void rb_define_protected_method(VALUE, const char *, VALUE(*)(ANYARGS), int)
Definition: class.c:1494
rb_hash_dup
VALUE rb_hash_dup(VALUE)
Definition: hash.c:320
rb_env_path_tainted
int rb_env_path_tainted(void)
Definition: hash.c:2676
rb_exec_err
int rb_exec_err(const struct rb_exec_arg *e, char *errmsg, size_t errmsg_buflen)
Definition: process.c:3147
rb_undef
void rb_undef(VALUE, ID)
Definition: vm_method.c:898
rb_path2class
VALUE rb_path2class(const char *)
Definition: variable.c:379
rb_Float
VALUE rb_Float(VALUE)
Definition: object.c:2895
rb_proc_times
VALUE rb_proc_times(VALUE)
rb_find_file
VALUE rb_find_file(VALUE)
Definition: file.c:5499
rb_struct_getmember
VALUE rb_struct_getmember(VALUE, ID)
Definition: struct.c:97
rb_str_tmp_new
VALUE rb_str_tmp_new(long)
Definition: string.c:919
rb_check_to_integer
VALUE rb_check_to_integer(VALUE, const char *)
Definition: object.c:2665
rb_obj_untrust
VALUE rb_obj_untrust(VALUE)
Definition: object.c:1025
rb_const_defined_from
int rb_const_defined_from(VALUE, ID)
Definition: variable.c:2118
rb_loaderror
void rb_loaderror(const char *fmt,...)
Definition: error.c:1879
rb_str_buf_append
VALUE rb_str_buf_append(VALUE, VALUE)
Definition: string.c:2282
rb_ary_store
void rb_ary_store(VALUE, long, VALUE)
Definition: array.c:790
rb_mod_module_exec
VALUE rb_mod_module_exec(int, VALUE *, VALUE)
Definition: vm_eval.c:1705
rb_big2str
VALUE rb_big2str(VALUE, int)
Definition: bignum.c:5014
rb_fix2str
VALUE rb_fix2str(VALUE, int)
Definition: numeric.c:2644
rb_ivar_defined
VALUE rb_ivar_defined(VALUE, ID)
Definition: variable.c:1207
rb_get_argv
VALUE rb_get_argv(void)
Definition: io.c:11640
rb_flt_rationalize_with_prec
VALUE rb_flt_rationalize_with_prec(VALUE, VALUE)
Definition: rational.c:2020
rb_struct_define_under
VALUE rb_struct_define_under(VALUE, const char *,...)
Definition: struct.c:327
rb_mod_remove_cvar
VALUE rb_mod_remove_cvar(VALUE, VALUE)
Definition: variable.c:2569
rb_reg_last_match
VALUE rb_reg_last_match(VALUE)
Definition: re.c:1509
ruby_sourcefile
RUBY_EXTERN char * ruby_sourcefile
Definition: intern.h:607
rb_external_str_new_cstr
VALUE rb_external_str_new_cstr(const char *)
Definition: string.c:713
rb_ivar_foreach
void rb_ivar_foreach(VALUE, int(*)(ANYARGS), st_data_t)
Definition: variable.c:1274
rb_mutex_new
VALUE rb_mutex_new(void)
Definition: thread.c:4251
rb_ary_delete_at
VALUE rb_ary_delete_at(VALUE, long)
Definition: array.c:2951
rb_is_instance_id
int rb_is_instance_id(ID)
Definition: ripper.c:17289
rb_name_error_str
void rb_name_error_str(VALUE str, const char *fmt,...)
Definition: error.c:982
rb_str_to_inum
VALUE rb_str_to_inum(VALUE, int, int)
Definition: bignum.c:4129
rb_time_timespec
struct timespec rb_time_timespec(VALUE time)
Definition: time.c:2434
rb_thread_local_aref
VALUE rb_thread_local_aref(VALUE, ID)
Definition: thread.c:2761
rb_fd_set
#define rb_fd_set(n, f)
Definition: intern.h:350
PRINTF_ARGS
PRINTF_ARGS(NORETURN(void rb_loaderror(const char *,...)), 1, 2)
rb_str_buf_cat
VALUE rb_str_buf_cat(VALUE, const char *, long)
Definition: string.c:2124
st_data_t
RUBY_SYMBOL_EXPORT_BEGIN typedef unsigned long st_data_t
Definition: st.h:20
rb_name_error
void rb_name_error(ID id, const char *fmt,...)
Definition: error.c:967
rb_obj_untaint
VALUE rb_obj_untaint(VALUE)
Definition: object.c:993
rb_thread_fd_close
void rb_thread_fd_close(int)
Definition: thread.c:2131
rb_fiber_resume
VALUE rb_fiber_resume(VALUE fib, int argc, VALUE *args)
Definition: cont.c:1480
rb_Complex
VALUE rb_Complex(VALUE, VALUE)
Definition: complex.c:1337
rb_fd_isset
#define rb_fd_isset(n, f)
Definition: intern.h:352
rb_loaderror_with_path
void rb_loaderror_with_path(VALUE path, const char *fmt,...)
Definition: error.c:1891
rb_load_file
void * rb_load_file(const char *)
Definition: pepper_main.c:824
rb_exc_raise
void rb_exc_raise(VALUE mesg)
Definition: eval.c:567
rb_struct_members
VALUE rb_struct_members(VALUE)
Definition: struct.c:53
rb_gc_latest_gc_info
VALUE rb_gc_latest_gc_info(VALUE)
Definition: gc.c:5318
rb_time_timeval
struct timeval rb_time_timeval(VALUE time)
Definition: time.c:2417
rb_exc_new_str
VALUE rb_exc_new_str(VALUE, VALUE)
Definition: error.c:585
rb_obj_dup
VALUE rb_obj_dup(VALUE)
Definition: object.c:406
rb_singleton_class
VALUE rb_singleton_class(VALUE)
Returns the singleton class of obj.
Definition: class.c:1628
rb_load_file_str
void * rb_load_file_str(VALUE)
Definition: ruby.c:1776
rb_reset_random_seed
void rb_reset_random_seed(void)
Definition: random.c:1323
rb_mutex_locked_p
VALUE rb_mutex_locked_p(VALUE mutex)
Definition: thread.c:4263
rb_struct_s_members
VALUE rb_struct_s_members(VALUE)
Definition: struct.c:39
rb_write_error
void rb_write_error(const char *)
Definition: io.c:7157
rb_binding_new
VALUE rb_binding_new(void)
Definition: proc.c:326
rb_file_open
VALUE rb_file_open(const char *, const char *)
Definition: io.c:5561
rb_thread_kill
VALUE rb_thread_kill(VALUE)
Definition: thread.c:2187
posix_signal
sighandler_t posix_signal(int signum, sighandler_t handler)
Definition: missing-pips.c:43
rb_big2ulong_pack
VALUE rb_big2ulong_pack(VALUE x)
Definition: bignum.c:5075
rb_str_encode_ospath
VALUE rb_str_encode_ospath(VALUE)
Definition: file.c:231
rb_big_cmp
VALUE rb_big_cmp(VALUE, VALUE)
Definition: bignum.c:5393
rb_thread_fd_writable
int rb_thread_fd_writable(int)
Definition: thread.c:3525
rb_rational_raw
VALUE rb_rational_raw(VALUE, VALUE)
Definition: rational.c:1754
rb_obj_method
VALUE rb_obj_method(VALUE, VALUE)
Definition: proc.c:1439
rb_lastline_get
VALUE rb_lastline_get(void)
Definition: vm.c:959
rb_enum_values_pack
VALUE rb_enum_values_pack(int, const VALUE *)
Definition: enum.c:33
rb_hash_freeze
VALUE rb_hash_freeze(VALUE)
Definition: hash.c:62
rb_output_rs
RUBY_EXTERN VALUE rb_output_rs
Definition: intern.h:520
rb_free_generic_ivar
void rb_free_generic_ivar(VALUE)
Definition: variable.c:1030
rb_str_setter
void rb_str_setter(VALUE, ID, VALUE *)
Definition: string.c:7875
rb_cvar_defined
VALUE rb_cvar_defined(VALUE, ID)
Definition: variable.c:2408
rb_class_inherited
VALUE rb_class_inherited(VALUE, VALUE)
Calls Class::inherited.
Definition: class.c:604
rb_thread_sleep
void rb_thread_sleep(int)
Definition: thread.c:1164
rb_fdset_t
fd_set rb_fdset_t
Definition: intern.h:348
rb_fd_term
#define rb_fd_term(f)
Definition: intern.h:359
rb_Array
VALUE rb_Array(VALUE)
Definition: object.c:3014
rb_str_succ
VALUE rb_str_succ(VALUE)
Definition: string.c:3257
rb_marshal_dump
VALUE rb_marshal_dump(VALUE, VALUE)
Definition: marshal.c:2138
rb_is_attrset_id
int rb_is_attrset_id(ID)
Definition: ripper.c:17295
rb_class_new_instance
VALUE rb_class_new_instance(int, VALUE *, VALUE)
Definition: object.c:1855
rb_f_exit
VALUE rb_f_exit(int, VALUE *)
Definition: process.c:3703
rb_class_name
VALUE rb_class_name(VALUE)
Definition: variable.c:391
rb_spawn_err
rb_pid_t rb_spawn_err(int, VALUE *, char *, size_t)
Definition: process.c:3827
rb_mod_const_at
void * rb_mod_const_at(VALUE, void *)
Definition: variable.c:2004
rb_compile_error_append
void rb_compile_error_append(const char *fmt,...)
Definition: error.c:157
rb_compile_error_with_enc
void rb_compile_error_with_enc(const char *file, int line, void *enc, const char *fmt,...)
Definition: error.c:133
rb_str_new_shared
VALUE rb_str_new_shared(VALUE)
Definition: string.c:799
rb_obj_taint
VALUE rb_obj_taint(VALUE)
Definition: object.c:973
rb_proc_exec
int rb_proc_exec(const char *)
Definition: process.c:1359
rb_str_substr
VALUE rb_str_substr(VALUE, long, long)
Definition: string.c:1945
rb_big_and
VALUE rb_big_and(VALUE, VALUE)
Definition: bignum.c:6479
rb_output_fs
RUBY_EXTERN VALUE rb_output_fs
Definition: intern.h:517
val
#define val
rb_exec_recursive_paired
VALUE rb_exec_recursive_paired(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE, VALUE)
Definition: thread.c:4993
NORETURN
NORETURN(void rb_cmperr(VALUE, VALUE))
rb_is_const_id
int rb_is_const_id(ID)
Definition: ripper.c:17271
rb_block_lambda
VALUE rb_block_lambda(void)
Definition: proc.c:634
rb_obj_tainted
VALUE rb_obj_tainted(VALUE)
Definition: object.c:945
rb_dbl2big
VALUE rb_dbl2big(double)
Definition: bignum.c:5213
rb_check_trusted_inline
static void rb_check_trusted_inline(VALUE obj)
Definition: intern.h:279
rb_mem_clear
void rb_mem_clear(register VALUE *, register long)
Definition: array.c:35
rb_str_free
void rb_str_free(VALUE)
Definition: string.c:941
rb_attr
void rb_attr(VALUE, ID, int, int, int)
Definition: vm_method.c:860
rb_mutex_sleep
VALUE rb_mutex_sleep(VALUE self, VALUE timeout)
Definition: thread.c:4567
ruby_signal_name
const char * ruby_signal_name(int)
Definition: signal.c:254
rb_time_succ
VALUE rb_time_succ(VALUE)
Definition: time.c:3764
rb_check_hash_type
VALUE rb_check_hash_type(VALUE)
Definition: hash.c:588
rb_frame_method_id_and_class
int rb_frame_method_id_and_class(ID *idp, VALUE *klassp)
Definition: vm.c:1702
rb_class_real
VALUE rb_class_real(VALUE)
Definition: object.c:204
rb_gc_count
size_t rb_gc_count(void)
Definition: gc.c:5219
rb_str_cat2
VALUE rb_str_cat2(VALUE, const char *)
Definition: string.c:2159
rb_run_exec_options_err
int rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char *errmsg, size_t errmsg_buflen)
Definition: process.c:3091
rb_obj_as_string
VALUE rb_obj_as_string(VALUE)
Definition: string.c:1011
rb_ary_replace
VALUE rb_ary_replace(VALUE copy, VALUE orig)
Definition: array.c:3331
rb_str_buf_cat2
VALUE rb_str_buf_cat2(VALUE, const char *)
Definition: string.c:2134
rb_str_buf_new2
#define rb_str_buf_new2
Definition: intern.h:845
rb_f_require
VALUE rb_f_require(VALUE, VALUE)
Definition: load.c:815
rb_thread_current
VALUE rb_thread_current(void)
Definition: thread.c:2401
rb_locale_str_new
VALUE rb_locale_str_new(const char *, long)
Definition: string.c:719
rb_set_end_proc
void rb_set_end_proc(void(*)(VALUE), VALUE)
Definition: eval_jump.c:60
rb_w32_fd_copy
void rb_w32_fd_copy(rb_fdset_t *dst, const fd_set *src, int max)
Definition: win32.c:2586
rb_absint_size
size_t rb_absint_size(VALUE val, int *nlz_bits_ret)
Definition: bignum.c:3231
rb_mutex_synchronize
VALUE rb_mutex_synchronize(VALUE mutex, VALUE(*func)(VALUE arg), VALUE arg)
Definition: thread.c:4619
rb_remove_method_id
void rb_remove_method_id(VALUE, ID)
Definition: vm_method.c:750
rb_str_associate
void rb_str_associate(VALUE, VALUE)
Definition: string.c:1539
rb_define_module_id
VALUE rb_define_module_id(ID)
Definition: class.c:735
rb_hash_update_func
VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value)
Definition: intern.h:508
rb_lastline_set
void rb_lastline_set(VALUE)
Definition: vm.c:965
rb_class_inherited_p
VALUE rb_class_inherited_p(VALUE, VALUE)
Definition: object.c:1564
rb_ary_join
VALUE rb_ary_join(VALUE, VALUE)
Definition: array.c:1995
argc
int argc
Definition: ruby.c:131
rb_ary_concat
VALUE rb_ary_concat(VALUE, VALUE)
Definition: array.c:3542
rb_complex_polar
VALUE rb_complex_polar(VALUE, VALUE)
Definition: complex.c:1329
rb_require_safe
VALUE rb_require_safe(VALUE, int)
Definition: load.c:943
rb_external_str_new
VALUE rb_external_str_new(const char *, long)
Definition: string.c:707
rb_ary_rassoc
VALUE rb_ary_rassoc(VALUE, VALUE)
Definition: array.c:3670
rb_rational_new
VALUE rb_rational_new(VALUE, VALUE)
Definition: rational.c:1760
rb_Integer
VALUE rb_Integer(VALUE)
Definition: object.c:2736
rb_cloexec_dup2
int rb_cloexec_dup2(int oldfd, int newfd)
Definition: io.c:251
rb_mutex_trylock
VALUE rb_mutex_trylock(VALUE mutex)
Definition: thread.c:4290
rb_uv_to_utf8
int rb_uv_to_utf8(char[6], unsigned long)
Definition: pack.c:1900
defines.h
rb_absint_numwords
size_t rb_absint_numwords(VALUE val, size_t word_numbits, size_t *nlz_bits_ret)
Definition: bignum.c:3366
rb_frame_pop
void rb_frame_pop(void)
Definition: vm.c:309
rb_fs
RUBY_EXTERN VALUE rb_fs
Definition: intern.h:516
rb_exc_new_cstr
VALUE rb_exc_new_cstr(VALUE, const char *)
Definition: error.c:579
range
#define range(low, item, hi)
Definition: date_strftime.c:21
rb_check_frozen_inline
static void rb_check_frozen_inline(VALUE obj)
Definition: intern.h:273
rb_big_mul
VALUE rb_big_mul(VALUE, VALUE)
Definition: bignum.c:5997
rb_get_alloc_func
rb_alloc_func_t rb_get_alloc_func(VALUE)
Definition: vm_method.c:525
rb_random_real
double rb_random_real(VALUE rnd)
Definition: random.c:812
rb_obj_alloc
VALUE rb_obj_alloc(VALUE)
Definition: object.c:1801
rb_gets
VALUE rb_gets(void)
Definition: io.c:8014
rb_class_get_superclass
VALUE rb_class_get_superclass(VALUE)
Definition: object.c:1903
rb_str_split
VALUE rb_str_split(VALUE, const char *)
Definition: string.c:6411
rb_class_superclass
VALUE rb_class_superclass(VALUE)
Definition: object.c:1885
rb_obj_id
VALUE rb_obj_id(VALUE)
Definition: gc.c:2373
rb_mod_constants
VALUE rb_mod_constants(int, VALUE *, VALUE)
Definition: variable.c:2068
rb_struct_aset
VALUE rb_struct_aset(VALUE, VALUE, VALUE)
Definition: struct.c:827
st_foreach_safe
void st_foreach_safe(struct st_table *, int(*)(ANYARGS), st_data_t)
Definition: hash.c:189
rb_obj_init_copy
VALUE rb_obj_init_copy(VALUE, VALUE)
Definition: object.c:422
rb_num_zerodiv
void rb_num_zerodiv(void)
Definition: numeric.c:125
rb_big_norm
VALUE rb_big_norm(VALUE)
Definition: bignum.c:3136
rb_reg_init_str
VALUE rb_reg_init_str(VALUE re, VALUE s, int options)
Definition: re.c:2511
rb_sym_to_s
VALUE rb_sym_to_s(VALUE)
Definition: string.c:8478
rb_obj_call_init
void rb_obj_call_init(VALUE, int, VALUE *)
Definition: eval.c:1298
rb_thread_wakeup_alive
VALUE rb_thread_wakeup_alive(VALUE)
Definition: thread.c:2281
rb_time_new
VALUE rb_time_new(time_t, long)
Definition: time.c:2279
rb_flt_rationalize
VALUE rb_flt_rationalize(VALUE)
Definition: rational.c:2036
rb_trap_exit
void rb_trap_exit(void)
Definition: signal.c:849
rb_ary_subseq
VALUE rb_ary_subseq(VALUE, long, long)
Definition: array.c:1180
rb_make_backtrace
VALUE rb_make_backtrace(void)
Definition: vm_backtrace.c:817
rb_str_resurrect
VALUE rb_str_resurrect(VALUE str)
Definition: string.c:1068
rb_big_divmod
VALUE rb_big_divmod(VALUE, VALUE)
Definition: bignum.c:6237
rb_remove_method
void rb_remove_method(VALUE, const char *)
Definition: vm_method.c:756
rb_thread_polling
void rb_thread_polling(void)
Definition: thread.c:1122
rb_str_resize
VALUE rb_str_resize(VALUE, long)
Definition: string.c:2025
rb_io_binmode
VALUE rb_io_binmode(VALUE)
Definition: io.c:4679
rb_str_capacity
size_t rb_str_capacity(VALUE)
Definition: string.c:468
rb_str_offset
long rb_str_offset(VALUE, long)
Definition: string.c:1781
rb_const_get
VALUE rb_const_get(VALUE, ID)
Definition: variable.c:1880
rb_define_finalizer
VALUE rb_define_finalizer(VALUE, VALUE)
Definition: gc.c:1990
rb_str_hash_cmp
int rb_str_hash_cmp(VALUE, VALUE)
Definition: string.c:2432
rb_num_coerce_bit
VALUE rb_num_coerce_bit(VALUE, VALUE, ID)
Definition: numeric.c:3309
rb_big_or
VALUE rb_big_or(VALUE, VALUE)
Definition: bignum.c:6605
rb_ary_plus
VALUE rb_ary_plus(VALUE, VALUE)
Definition: array.c:3510
rb_exec_arg
Definition: intern.h:626
rb_thread_local_aset
VALUE rb_thread_local_aset(VALUE, ID, VALUE)
Definition: thread.c:2854
rb_str_subseq
VALUE rb_str_subseq(VALUE, long, long)
Definition: string.c:1839
rb_absint_singlebit_p
int rb_absint_singlebit_p(VALUE val)
Definition: bignum.c:3430
rb_f_abort
VALUE rb_f_abort(int, VALUE *)
Definition: process.c:3732
rb_thread_select
int rb_thread_select(int max, fd_set *read, fd_set *write, fd_set *except, struct timeval *timeout)
Definition: thread.c:3532
rb_frame_this_func
ID rb_frame_this_func(void)
Definition: eval.c:943
rb_alias_variable
void rb_alias_variable(ID, ID)
Definition: variable.c:869
rb_big_resize
void rb_big_resize(VALUE big, long len)
Definition: bignum.c:2973
rb_locale_str_new_cstr
VALUE rb_locale_str_new_cstr(const char *)
Definition: string.c:725
rb_str_replace
VALUE rb_str_replace(VALUE, VALUE)
Definition: string.c:4314
rb_str2inum
VALUE rb_str2inum(VALUE, int)
Definition: bignum.c:4379
rb_io_fdopen
VALUE rb_io_fdopen(int, int, const char *)
Definition: io.c:7219
rb_env_clear
VALUE rb_env_clear(void)
Definition: hash.c:3216
rb_reg_new
VALUE rb_reg_new(const char *, long, int)
Definition: re.c:2542
rb_genrand_ulong_limited
unsigned long rb_genrand_ulong_limited(unsigned long i)
Definition: random.c:789
timeval
Definition: ossl_asn1.c:16
func
SSL_METHOD *(* func)(void)
Definition: ossl_ssl.c:113
RUBY_EXTERN
#define RUBY_EXTERN
Definition: missing.h:67
rb_mark_tbl
void rb_mark_tbl(struct st_table *)
Definition: gc.c:3519
rb_io_gets
VALUE rb_io_gets(VALUE)
Definition: io.c:3187
rb_obj_is_proc
VALUE rb_obj_is_proc(VALUE)
Definition: proc.c:94
rb_mod_class_variables
VALUE rb_mod_class_variables(int, VALUE *, VALUE)
Definition: variable.c:2528
rb_sprintf
VALUE rb_sprintf(const char *format,...)
Definition: sprintf.c:1250
rb_big_2comp
void rb_big_2comp(VALUE)
Definition: bignum.c:3033
rb_random_bytes
VALUE rb_random_bytes(VALUE rnd, long n)
Definition: random.c:877
rb_ary_resurrect
VALUE rb_ary_resurrect(VALUE ary)
Definition: array.c:1898
rb_str_format
VALUE rb_str_format(int, const VALUE *, VALUE)
Definition: sprintf.c:421
rb_eql
int rb_eql(VALUE, VALUE)
Definition: object.c:100
rb_include_class_new
VALUE rb_include_class_new(VALUE, VALUE)
Definition: class.c:792
rb_obj_respond_to
int rb_obj_respond_to(VALUE, ID, int)
Definition: vm_method.c:1600
rb_fd_copy
#define rb_fd_copy(d, s, n)
Definition: intern.h:353
rb_last_status_set
void rb_last_status_set(int status, rb_pid_t pid)
Definition: process.c:327
rb_class_path
VALUE rb_class_path(VALUE)
Definition: variable.c:257
rb_complex_new
VALUE rb_complex_new(VALUE, VALUE)
Definition: complex.c:1323
rb_ary_assoc
VALUE rb_ary_assoc(VALUE, VALUE)
Definition: array.c:3637
rb_str_vcatf
VALUE rb_str_vcatf(VALUE, const char *, va_list)
Definition: sprintf.c:1263
rb_ary_each
VALUE rb_ary_each(VALUE)
Definition: array.c:1778
RUBY_SYMBOL_EXPORT_END
#define RUBY_SYMBOL_EXPORT_END
Definition: missing.h:39
rb_is_class_id
int rb_is_class_id(ID)
Definition: ripper.c:17277
rb_mod_const_of
void * rb_mod_const_of(VALUE, void *)
Definition: variable.c:2017
rb_str_modify_expand
void rb_str_modify_expand(VALUE, long)
Definition: string.c:1492
rb_ivar_set
VALUE rb_ivar_set(VALUE, ID, VALUE)
Definition: variable.c:1133
buf
unsigned char buf[MIME_BUF_SIZE]
Definition: nkf.c:4308
ID
unsigned long ID
Definition: ruby.h:89
rb_thread_wait_fd
void rb_thread_wait_fd(int)
Definition: thread.c:3519
rb_thread_main
VALUE rb_thread_main(void)
Definition: thread.c:2422
rb_big_unpack
VALUE rb_big_unpack(unsigned long *buf, long num_longs)
Definition: bignum.c:3207
rb_hash_foreach
void rb_hash_foreach(VALUE, int(*)(ANYARGS), VALUE)
Definition: hash.c:264
rb_clear_method_cache_by_class
void rb_clear_method_cache_by_class(VALUE)
Definition: vm_method.c:66
rb_str_comparable
int rb_str_comparable(VALUE, VALUE)
Definition: string.c:2461
rb_clear_cache
void rb_clear_cache(void)
Definition: vm_method.c:52
rb_const_set
void rb_const_set(VALUE, ID, VALUE)
Definition: variable.c:2160
rb_const_list
VALUE rb_const_list(void *)
Definition: variable.c:2039
rb_quad_unpack
VALUE rb_quad_unpack(const char *buf, int signed_p)
Definition: bignum.c:3699
rb_f_exec
VALUE rb_f_exec(int, VALUE *)
Definition: process.c:2482
mode_t
#define mode_t
Definition: win32.h:116
options
static int options(unsigned char *cp)
Definition: nkf.c:6357
rb_ary_includes
VALUE rb_ary_includes(VALUE, VALUE)
Definition: array.c:3818
rb_ary_unshift
VALUE rb_ary_unshift(VALUE, VALUE)
Definition: array.c:1153
rb_is_global_id
int rb_is_global_id(ID)
Definition: ripper.c:17283
rb_io_close
VALUE rb_io_close(VALUE)
Definition: io.c:4292
VALUE
unsigned long VALUE
Definition: ruby.h:88
rb_name_class
void rb_name_class(VALUE, ID)
Definition: variable.c:385
rb_during_gc
int rb_during_gc(void)
Definition: gc.c:5198
rb_fiber_new
VALUE rb_fiber_new(VALUE(*)(ANYARGS), VALUE)
Definition: cont.c:1223
rb_big_plus
VALUE rb_big_plus(VALUE, VALUE)
Definition: bignum.c:5867
rb_big_idiv
VALUE rb_big_idiv(VALUE, VALUE)
Definition: bignum.c:6174
RUBY_SYMBOL_EXPORT_BEGIN
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition: missing.h:38
rb_make_metaclass
VALUE rb_make_metaclass(VALUE, VALUE)
Definition: class.c:561
rb_alias
void rb_alias(VALUE, ID, ID)
Definition: vm_method.c:1244
rb_match_busy
void rb_match_busy(VALUE)
Definition: re.c:1214
rb_gc_enable
VALUE rb_gc_enable(void)
Definition: gc.c:5616
rb_check_funcall
VALUE rb_check_funcall(VALUE, ID, int, const VALUE *)
Definition: vm_eval.c:409
rb_random_int
VALUE rb_random_int(VALUE rnd, VALUE max)
rb_num_coerce_relop
VALUE rb_num_coerce_relop(VALUE, VALUE, ID)
Definition: numeric.c:295
rb_file_directory_p
VALUE rb_file_directory_p(VALUE, VALUE)
Definition: file.c:1215
rb_cv_get
VALUE rb_cv_get(VALUE, const char *)
Definition: variable.c:2426
rb_is_junk_id
int rb_is_junk_id(ID)
Definition: ripper.c:17307
rb_sym_interned_p
int rb_sym_interned_p(VALUE)
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:7969
rb_str_new_cstr
VALUE rb_str_new_cstr(const char *)
Definition: string.c:560
rb_str_dump
VALUE rb_str_dump(VALUE)
Definition: string.c:4899
rb_proc_call
VALUE rb_proc_call(VALUE, VALUE)
Definition: proc.c:733
rb_proc_lambda_p
VALUE rb_proc_lambda_p(VALUE)
Definition: proc.c:234
rb_rs
RUBY_EXTERN VALUE rb_rs
Definition: intern.h:518
rb_blocking_function_t
VALUE rb_blocking_function_t(void *)
Definition: intern.h:865
rb_io_ungetbyte
VALUE rb_io_ungetbyte(VALUE, VALUE)
Definition: io.c:3833
rb_obj_remove_instance_variable
VALUE rb_obj_remove_instance_variable(VALUE, VALUE)
Definition: variable.c:1403
rb_jump_tag
void rb_jump_tag(int tag)
Definition: eval.c:706
rb_str_dup
VALUE rb_str_dup(VALUE)
Definition: string.c:1062
rb_num2fix
VALUE rb_num2fix(VALUE)
Definition: numeric.c:2273
rb_fiber_yield
VALUE rb_fiber_yield(int argc, VALUE *args)
Definition: cont.c:1496
rb_bigzero_p
int rb_bigzero_p(VALUE x)
Definition: bignum.c:2903
rb_reserved_fd_p
int rb_reserved_fd_p(int fd)
rb_class_instance_methods
VALUE rb_class_instance_methods(int, VALUE *, VALUE)
Definition: class.c:1205
rb_random_ulong_limited
unsigned long rb_random_ulong_limited(VALUE rnd, unsigned long limit)
Definition: random.c:843
rb_respond_to
int rb_respond_to(VALUE, ID)
Definition: vm_method.c:1639
rb_memerror
void rb_memerror(void)
Definition: gc.c:5882
uint32_t
unsigned int uint32_t
Definition: sha2.h:101
rb_str_freeze
VALUE rb_str_freeze(VALUE)
Definition: string.c:1968
rb_gc_set_params
void rb_gc_set_params(void)
Definition: gc.c:5773
rb_default_rs
RUBY_EXTERN VALUE rb_default_rs
Definition: intern.h:519
rb_check_to_int
VALUE rb_check_to_int(VALUE)
Definition: object.c:2685
rb_enumeratorize_with_size
#define rb_enumeratorize_with_size(obj, id, argc, argv, size_fn)
Definition: intern.h:234
rb_cloexec_pipe
int rb_cloexec_pipe(int fildes[2])
Definition: io.c:286
rb_mark_set
void rb_mark_set(struct st_table *)
Definition: gc.c:3357
rb_thread_wait_for
void rb_thread_wait_for(struct timeval)
Definition: thread.c:1115
rb_obj_is_instance_of
VALUE rb_obj_is_instance_of(VALUE, VALUE)
Definition: object.c:615
rb_obj_trust
VALUE rb_obj_trust(VALUE)
Definition: object.c:1040
rb_class_protected_instance_methods
VALUE rb_class_protected_instance_methods(int, VALUE *, VALUE)
Definition: class.c:1220
rb_str_modify
void rb_str_modify(VALUE)
Definition: string.c:1484
rb_const_defined_at
int rb_const_defined_at(VALUE, ID)
Definition: variable.c:2130
rb_define_method_id
void rb_define_method_id(VALUE, ID, VALUE(*)(ANYARGS), int)
Definition: class.c:1482
rb_class_public_instance_methods
VALUE rb_class_public_instance_methods(int, VALUE *, VALUE)
Definition: class.c:1258
rb_singleton_class_attached
void rb_singleton_class_attached(VALUE, VALUE)
Attach a object to a singleton class.
Definition: class.c:423
UNLIMITED_ARGUMENTS
#define UNLIMITED_ARGUMENTS
Definition: intern.h:44
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:3531
rb_sourceline
int rb_sourceline(void)
Definition: vm.c:1001
rb_fiber_current
VALUE rb_fiber_current(void)
Definition: cont.c:1332
rb_module_new
VALUE rb_module_new(void)
Definition: class.c:727
rb_check_convert_type
VALUE rb_check_convert_type(VALUE, int, const char *, const char *)
Definition: object.c:2631
rb_ary_tmp_new
VALUE rb_ary_tmp_new(long)
Definition: array.c:534
rb_big2long
SIGNED_VALUE rb_big2long(VALUE)
Definition: bignum.c:5101
rb_integer_unpack
VALUE rb_integer_unpack(const void *words, size_t numwords, size_t wordsize, size_t nails, int flags)
Definition: bignum.c:3617
rb_block_proc
VALUE rb_block_proc(void)
Definition: proc.c:620
rb_obj_singleton_methods
VALUE rb_obj_singleton_methods(int, VALUE *, VALUE)
Definition: class.c:1391
rb_ary_resize
VALUE rb_ary_resize(VALUE ary, long len)
expands or shrinks ary to len elements.
Definition: array.c:1615
rb_str_buf_cat_ascii
VALUE rb_str_buf_cat_ascii(VALUE, const char *)
Definition: string.c:2258
rb_str_buf_new_cstr
VALUE rb_str_buf_new_cstr(const char *)
Definition: string.c:907
ANYARGS
#define ANYARGS
Definition: defines.h:98
rb_fd_fix_cloexec
void rb_fd_fix_cloexec(int fd)
Definition: io.c:221
rb_big_div
VALUE rb_big_div(VALUE, VALUE)
Definition: bignum.c:6161
rb_gc_mark_maybe
void rb_gc_mark_maybe(VALUE)
Definition: gc.c:3537
rb_struct_aref
VALUE rb_struct_aref(VALUE, VALUE)
Definition: struct.c:757
rb_exec_arg_init
VALUE rb_exec_arg_init(int argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e)
Definition: process.c:2293
rb_big_eql
VALUE rb_big_eql(VALUE, VALUE)
Definition: bignum.c:5561
rb_error_arity
void rb_error_arity(int argc, int min, int max)
Definition: vm_insnhelper.c:149
rb_obj_frozen_p
VALUE rb_obj_frozen_p(VALUE)
Definition: object.c:1102
rb_fd_select
#define rb_fd_select(n, rfds, wfds, efds, timeout)
Definition: intern.h:361
rb_str_catf
VALUE rb_str_catf(VALUE str, const char *format,...)
Definition: sprintf.c:1290
rb_class_path_cached
VALUE rb_class_path_cached(VALUE)
Definition: variable.c:281
rb_dir_getwd
VALUE rb_dir_getwd(void)
Definition: dir.c:886
rb_check_string_type
VALUE rb_check_string_type(VALUE)
Definition: string.c:1679
rb_f_kill
VALUE rb_f_kill(int, VALUE *)
Definition: signal.c:385
rb_io_ascii8bit_binmode
VALUE rb_io_ascii8bit_binmode(VALUE)
Definition: io.c:4725
key
uint8_t key[16]
Definition: random.c:1250
rb_fd_clr
#define rb_fd_clr(n, f)
Definition: intern.h:351
rb_any_to_s
VALUE rb_any_to_s(VALUE)
Definition: object.c:452
rb_ary_push
VALUE rb_ary_push(VALUE, VALUE)
Definition: array.c:896
rb_str_shared_replace
void rb_str_shared_replace(VALUE, VALUE)
Definition: string.c:972
rb_marshal_define_compat
void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE(*dumper)(VALUE), VALUE(*loader)(VALUE, VALUE))
Definition: marshal.c:113
rb_proc_new
VALUE rb_proc_new(VALUE(*)(ANYARGS), VALUE)
Definition: proc.c:2301
rb_thread_check_ints
void rb_thread_check_ints(void)
Definition: thread.c:1139
rb_thread_run
VALUE rb_thread_run(VALUE)
Definition: thread.c:2318
rb_str_locktmp
VALUE rb_str_locktmp(VALUE)
rb_mod_remove_const
VALUE rb_mod_remove_const(VALUE, VALUE)
Definition: variable.c:1920
rb_ary_free
void rb_ary_free(VALUE)
Definition: array.c:540
rb_mutex_unlock
VALUE rb_mutex_unlock(VALUE mutex)
Definition: thread.c:4504
rb_make_exception
VALUE rb_make_exception(int, VALUE *)
Definition: eval.c:682
rb_big_new
VALUE rb_big_new(long, int)
Definition: bignum.c:2998
rb_big2str0
VALUE rb_big2str0(VALUE x, int base, int trim)
Definition: bignum.c:4980
rb_method_basic_definition_p
int rb_method_basic_definition_p(VALUE, ID)
Definition: vm_method.c:1573
rb_enumeratorize
VALUE rb_enumeratorize(VALUE, VALUE, int, VALUE *)
Definition: enumerator.c:401
rb_check_trusted_internal
#define rb_check_trusted_internal(obj)
Definition: intern.h:267
rb_mod_const_missing
VALUE rb_mod_const_missing(VALUE, VALUE)
Definition: variable.c:1519
rb_str_sublen
long rb_str_sublen(VALUE, long)
Definition: string.c:1828
rb_hash_update_by
VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func)
Definition: hash.c:2208
rb_f_global_variables
VALUE rb_f_global_variables(void)
Definition: variable.c:853
timespec
Definition: missing.h:50
rb_find_file_safe
VALUE rb_find_file_safe(VALUE, int)
Definition: file.c:5505
rb_marshal_load
VALUE rb_marshal_load(VALUE)
Definition: marshal.c:2150
rb_gc
void rb_gc(void)
Definition: gc.c:5190
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:270
rb_str_inspect
VALUE rb_str_inspect(VALUE)
Definition: string.c:4792
rb_eval_cmd
VALUE rb_eval_cmd(VALUE, VALUE, int)
Definition: vm_eval.c:1464
rb_io_puts
VALUE rb_io_puts(int, VALUE *, VALUE)
Definition: io.c:6983
rb_gc_mark
void rb_gc_mark(VALUE)
Definition: gc.c:3604
st.h
rb_econv_t::flags
int flags
Definition: transcode.c:112
rb_exec_recursive_paired_outer
VALUE rb_exec_recursive_paired_outer(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE, VALUE)
Definition: thread.c:5017
hash
static unsigned int hash(const char *str, unsigned int len)
Definition: lex.c:56
rb_filesystem_str_new_cstr
VALUE rb_filesystem_str_new_cstr(const char *)
Definition: string.c:737
rb_hash_new
VALUE rb_hash_new(void)
Definition: hash.c:298
rb_gc_disable
VALUE rb_gc_disable(void)
Definition: gc.c:5638
rb_obj_untrusted
VALUE rb_obj_untrusted(VALUE)
Definition: object.c:1011
rb_frozen_class_p
void rb_frozen_class_p(VALUE)
Definition: eval.c:406
rb_const_get_at
VALUE rb_const_get_at(VALUE, ID)
Definition: variable.c:1886
rb_reg_match_pre
VALUE rb_reg_match_pre(VALUE)
Definition: re.c:1527
rb_set_class_path
void rb_set_class_path(VALUE, VALUE, const char *)
Definition: variable.c:316
rb_ary_shift
VALUE rb_ary_shift(VALUE)
Definition: array.c:991
rb_thread_interrupted
int rb_thread_interrupted(VALUE thval)
Definition: thread.c:1156
rb_gc_finalize_deferred
void rb_gc_finalize_deferred(void)
Definition: gc.c:2112
rb_str_strlen
long rb_str_strlen(VALUE)
Definition: string.c:1284
rb_protect
VALUE rb_protect(VALUE(*)(VALUE), VALUE, int *)
Definition: eval.c:807
rb_load
void rb_load(VALUE, int)
Definition: load.c:648
rb_frame_callee
ID rb_frame_callee(void)
Definition: eval.c:949
rb_sym_all_symbols
VALUE rb_sym_all_symbols(void)
Definition: ripper.c:17262
rb_reg_new_str
VALUE rb_reg_new_str(VALUE, int)
Definition: re.c:2505
rb_assoc_new
VALUE rb_assoc_new(VALUE, VALUE)
Definition: array.c:616
rb_thread_stop
VALUE rb_thread_stop(void)
Definition: thread.c:2342
rb_gc_copy_finalizer
void rb_gc_copy_finalizer(VALUE, VALUE)
Definition: gc.c:1998
rb_ary_to_s
VALUE rb_ary_to_s(VALUE)
Definition: array.c:2096
rb_mod_included_modules
VALUE rb_mod_included_modules(VALUE)
Definition: class.c:990
rb_exec_arg_addopt
int rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val)
Definition: process.c:1837
rb_str_new_frozen
VALUE rb_str_new_frozen(VALUE)
Definition: string.c:833
rb_obj_instance_exec
VALUE rb_obj_instance_exec(int, VALUE *, VALUE)
Definition: vm_eval.c:1638
rb_big_modulo
VALUE rb_big_modulo(VALUE, VALUE)
Definition: bignum.c:6189
rb_struct_define_without_accessor
VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t,...)
Definition: struct.c:288
rb_obj_instance_eval
VALUE rb_obj_instance_eval(int, VALUE *, VALUE)
Definition: vm_eval.c:1606
rb_str_drop_bytes
VALUE rb_str_drop_bytes(VALUE, long)
Definition: string.c:3635
rb_define_class_id
VALUE rb_define_class_id(ID, VALUE)
Defines a new class.
Definition: class.c:583
rb_fd_init
#define rb_fd_init(f)
Definition: intern.h:357
rb_inspect
VALUE rb_inspect(VALUE)
Definition: object.c:470
rb_big_minus
VALUE rb_big_minus(VALUE, VALUE)
Definition: bignum.c:5903
rb_cloexec_dup
int rb_cloexec_dup(int oldfd)
Definition: io.c:244
rb_gc_start
VALUE rb_gc_start(void)
Definition: gc.c:5183
rb_big_rshift
VALUE rb_big_rshift(VALUE, VALUE)
Definition: bignum.c:6798
rb_fd_dup
#define rb_fd_dup(d, s)
Definition: intern.h:354
rb_ary_modify
void rb_ary_modify(VALUE)
Definition: array.c:314
rb_hash_end
#define rb_hash_end(h)
Definition: intern.h:760
rb_ary_freeze
VALUE rb_ary_freeze(VALUE)
Definition: array.c:397
rb_random_int32
unsigned int rb_random_int32(VALUE rnd)
Definition: random.c:795
rb_check_frozen
#define rb_check_frozen(obj)
Definition: intern.h:277
rb_f_untrace_var
VALUE rb_f_untrace_var(int, VALUE *)
Definition: variable.c:715
rb_ary_cat
VALUE rb_ary_cat(VALUE, const VALUE *, long)
Definition: array.c:907
rb_proc_arity
int rb_proc_arity(VALUE)
Definition: proc.c:851
rb_str_intern
VALUE rb_str_intern(VALUE)
Definition: string.c:7467
rb_obj_freeze
VALUE rb_obj_freeze(VALUE)
Definition: object.c:1076
rb_copy_generic_ivar
void rb_copy_generic_ivar(VALUE, VALUE)
Definition: variable.c:1049
rb_struct_define
VALUE rb_struct_define(const char *,...)
Definition: struct.c:306
rb_id_attrset
ID rb_id_attrset(ID)
Definition: ripper.c:15422
rb_file_s_absolute_path
VALUE rb_file_s_absolute_path(int, VALUE *)
Definition: file.c:3495
rb_big2ulong
VALUE rb_big2ulong(VALUE)
Definition: bignum.c:5084
rb_cmpint
int rb_cmpint(VALUE, VALUE, VALUE)
Definition: bignum.c:2909
rb_run_exec_options
int rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s)
Definition: process.c:3097
rb_tainted_str_new
VALUE rb_tainted_str_new(const char *, long)
Definition: string.c:589
rb_ary_pop
VALUE rb_ary_pop(VALUE)
Definition: array.c:940
rb_str_buf_new
VALUE rb_str_buf_new(long)
Definition: string.c:891
rb_usascii_str_new
VALUE rb_usascii_str_new(const char *, long)
Definition: string.c:540
rb_method_boundp
int rb_method_boundp(VALUE, ID, int)
Definition: vm_method.c:836
rb_obj_instance_variables
VALUE rb_obj_instance_variables(VALUE)
Definition: variable.c:1371
rb_const_remove
VALUE rb_const_remove(VALUE, ID)
Definition: variable.c:1942
rb_f_trace_var
VALUE rb_f_trace_var(int, VALUE *)
Definition: variable.c:656
rb_const_get_from
VALUE rb_const_get_from(VALUE, ID)
Definition: variable.c:1874
rb_ary_new
VALUE rb_ary_new(void)
Definition: array.c:495
rb_vsprintf
VALUE rb_vsprintf(const char *, va_list)
Definition: sprintf.c:1244
rb_str_scrub
VALUE rb_str_scrub(VALUE, VALUE)
Definition: string.c:8037
rb_last_status_get
VALUE rb_last_status_get(void)
Definition: process.c:321
rb_ary_new_from_values
VALUE rb_ary_new_from_values(long n, const VALUE *elts)
Definition: array.c:520
rb_is_local_id
int rb_is_local_id(ID)
Definition: ripper.c:17301
rb_exec_arg_fixup
void rb_exec_arg_fixup(struct rb_exec_arg *e)
Definition: process.c:2401
rb_cstr_to_inum
VALUE rb_cstr_to_inum(const char *, int, int)
Definition: bignum.c:3963
rb_exc_fatal
void rb_exc_fatal(VALUE mesg)
Definition: eval.c:576
rb_fiber_alive_p
VALUE rb_fiber_alive_p(VALUE)
Definition: cont.c:1524
rb_hash_aset
VALUE rb_hash_aset(VALUE, VALUE, VALUE)
Definition: hash.c:1393
rb_hash_set_ifnone
VALUE rb_hash_set_ifnone(VALUE hash, VALUE ifnone)
Definition: hash.c:73
rb_io_printf
VALUE rb_io_printf(int, VALUE *, VALUE)
Definition: io.c:6759
rb_struct_initialize
VALUE rb_struct_initialize(VALUE, VALUE)
Definition: struct.c:466
ruby_default_signal
void ruby_default_signal(int)
Definition: signal.c:340
rb_thread_create
VALUE rb_thread_create(VALUE(*)(ANYARGS), void *)
Definition: thread.c:745
rb_thread_blocking_region
VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, rb_unblock_function_t *ubf, void *data2)
Definition: thread.c:1413
rb_waitpid
rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags)
Definition: process.c:758
rb_class_new
VALUE rb_class_new(VALUE)
Creates a new class.
Definition: class.c:228
match
static int match(VALUE str, VALUE pat, VALUE hash, int(*cb)(VALUE, VALUE))
Definition: date_parse.c:273
rb_check_array_type
VALUE rb_check_array_type(VALUE)
Definition: array.c:628
rb_str_append
VALUE rb_str_append(VALUE, VALUE)
Definition: string.c:2298
rb_quad_pack
void rb_quad_pack(char *buf, VALUE val)
Definition: bignum.c:3691
rb_genrand_int32
unsigned int rb_genrand_int32(void)
Definition: random.c:251
rb_io_print
VALUE rb_io_print(int, VALUE *, VALUE)
Definition: io.c:6818
rb_io_eof
VALUE rb_io_eof(VALUE)
Definition: io.c:1745
rb_load_protect
void rb_load_protect(VALUE, int, int *)
Definition: load.c:656
rb_provide
void rb_provide(const char *)
Definition: load.c:572
rb_memcicmp
int rb_memcicmp(const void *, const void *, long)
Definition: re.c:80
rb_time_num_new
VALUE rb_time_num_new(VALUE, VALUE)
Definition: time.c:2311
rb_invalid_str
void rb_invalid_str(const char *str, const char *type)
Definition: error.c:1190
rb_class_boot
VALUE rb_class_boot(VALUE)
A utility function that wraps class_alloc.
Definition: class.c:187
rb_cstr_to_dbl
double rb_cstr_to_dbl(const char *, int)
Definition: object.c:2783
rb_find_file_ext
int rb_find_file_ext(VALUE *, const char *const *)
Definition: file.c:5428
rb_ivar_count
st_index_t rb_ivar_count(VALUE)
Definition: variable.c:1302
rb_struct_alloc
VALUE rb_struct_alloc(VALUE, VALUE)
Definition: struct.c:494
rb_ary_rotate
VALUE rb_ary_rotate(VALUE, long)
Definition: array.c:2240
rb_hash_uint
#define rb_hash_uint(h, i)
Definition: intern.h:759
rb_autoload_load
VALUE rb_autoload_load(VALUE, ID)
Definition: variable.c:1769
rb_set_class_path_string
void rb_set_class_path_string(VALUE, VALUE, VALUE)
Definition: variable.c:293
rb_cmperr
void rb_cmperr(VALUE x, VALUE y)
Definition: compar.c:19
rb_exec_end_proc
void rb_exec_end_proc(void)
Definition: eval_jump.c:112
rb_big_eq
VALUE rb_big_eq(VALUE, VALUE)
Definition: bignum.c:5529
rb_hash_start
st_index_t rb_hash_start(st_index_t)
Definition: random.c:1296
rb_obj_clone
VALUE rb_obj_clone(VALUE)
Definition: object.c:337
rb_spawn
rb_pid_t rb_spawn(int, VALUE *)
Definition: process.c:3833
rb_ary_to_ary
VALUE rb_ary_to_ary(VALUE)
Definition: array.c:1522
rb_method_call_with_block
VALUE rb_method_call_with_block(int, VALUE *, VALUE, VALUE)
Definition: proc.c:1787
rb_reg_nth_match
VALUE rb_reg_nth_match(int, VALUE)
Definition: re.c:1483
rb_attr_get
VALUE rb_attr_get(VALUE, ID)
Definition: variable.c:1127
rb_exc_new
VALUE rb_exc_new(VALUE, const char *, long)
Definition: error.c:573
rb_usascii_str_new_cstr
VALUE rb_usascii_str_new_cstr(const char *)
Definition: string.c:569
argv
char ** argv
Definition: ruby.c:132
rb_ary_clear
VALUE rb_ary_clear(VALUE)
Definition: array.c:3381
ruby_sourceline
RUBY_EXTERN int ruby_sourceline
Definition: intern.h:606
rb_to_float
VALUE rb_to_float(VALUE)
Definition: object.c:2940
rb_num_coerce_cmp
VALUE rb_num_coerce_cmp(VALUE, VALUE, ID)
Definition: numeric.c:287
rb_filesystem_str_new
VALUE rb_filesystem_str_new(const char *, long)
Definition: string.c:731
rb_argv0
RUBY_EXTERN VALUE rb_argv0
Definition: intern.h:682
rb_thread_sleep_forever
void rb_thread_sleep_forever(void)
Definition: thread.c:1069
rb_autoload_p
VALUE rb_autoload_p(VALUE, ID)
Definition: variable.c:1814
rb_str_new
VALUE rb_str_new(const char *, long)
Definition: string.c:534
rb_obj_class
VALUE rb_obj_class(VALUE)
Definition: object.c:226
SIGNED_VALUE
#define SIGNED_VALUE
Definition: ruby.h:90
rb_mod_method_arity
int rb_mod_method_arity(VALUE, ID)
Definition: proc.c:2100
rb_big_lshift
VALUE rb_big_lshift(VALUE, VALUE)
Definition: bignum.c:6760