Ruby 2.0.0p353(2013-11-22revision43784)

- 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 #if defined(HAVE_SYS_TYPES_H)
36 #include <sys/types.h>
37 #endif
38
39 #if defined(HAVE_SYS_TIME_H)
40 #include <sys/time.h>
41 #endif
42
43 #include "ruby/st.h"
44
45 #if defined __GNUC__ && __GNUC__ >= 4
46 #pragma GCC visibility push(default)
47 #endif
48
49 /*
50 * Functions and variables that are used by more than one source file of
51 * the kernel.
52 */
53
54 #define UNLIMITED_ARGUMENTS (-1)
55
56 /* array.c */
57 void rb_mem_clear(register VALUE*, register long);
58 VALUE rb_assoc_new(VALUE, VALUE);
59 VALUE rb_check_array_type(VALUE);
60 VALUE rb_ary_new(void);
61 VALUE rb_ary_new2(long);
62 VALUE rb_ary_new3(long,...);
63 VALUE rb_ary_new4(long, const VALUE *);
64 VALUE rb_ary_tmp_new(long);
65 void rb_ary_free(VALUE);
66 void rb_ary_modify(VALUE);
67 VALUE rb_ary_freeze(VALUE);
68 VALUE rb_ary_shared_with_p(VALUE, VALUE);
69 VALUE rb_ary_aref(int, VALUE*, VALUE);
70 VALUE rb_ary_subseq(VALUE, long, long);
71 void rb_ary_store(VALUE, long, VALUE);
72 VALUE rb_ary_dup(VALUE);
73 VALUE rb_ary_resurrect(VALUE ary);
74 VALUE rb_ary_to_ary(VALUE);
75 VALUE rb_ary_to_s(VALUE);
76 VALUE rb_ary_push(VALUE, VALUE);
77 VALUE rb_ary_pop(VALUE);
78 VALUE rb_ary_shift(VALUE);
79 VALUE rb_ary_unshift(VALUE, VALUE);
80 VALUE rb_ary_entry(VALUE, long);
81 VALUE rb_ary_each(VALUE);
82 VALUE rb_ary_join(VALUE, VALUE);
83 VALUE rb_ary_reverse(VALUE);
84 VALUE rb_ary_rotate(VALUE, long);
85 VALUE rb_ary_sort(VALUE);
86 VALUE rb_ary_sort_bang(VALUE);
87 VALUE rb_ary_delete(VALUE, VALUE);
88 VALUE rb_ary_delete_at(VALUE, long);
89 VALUE rb_ary_clear(VALUE);
90 VALUE rb_ary_plus(VALUE, VALUE);
91 VALUE rb_ary_concat(VALUE, VALUE);
92 VALUE rb_ary_assoc(VALUE, VALUE);
93 VALUE rb_ary_rassoc(VALUE, VALUE);
94 VALUE rb_ary_includes(VALUE, VALUE);
95 VALUE rb_ary_cmp(VALUE, VALUE);
96 VALUE rb_ary_replace(VALUE copy, VALUE orig);
97 VALUE rb_get_values_at(VALUE, long, int, VALUE*, VALUE(*)(VALUE,long));
98 VALUE rb_ary_resize(VALUE ary, long len);
99 /* bignum.c */
100 VALUE rb_big_new(long, int);
101 int rb_bigzero_p(VALUE x);
102 VALUE rb_big_clone(VALUE);
103 void rb_big_2comp(VALUE);
104 VALUE rb_big_norm(VALUE);
105 void rb_big_resize(VALUE big, long len);
106 VALUE rb_uint2big(VALUE);
107 VALUE rb_int2big(SIGNED_VALUE);
108 VALUE rb_uint2inum(VALUE);
109 VALUE rb_int2inum(SIGNED_VALUE);
110 VALUE rb_cstr_to_inum(const char*, int, int);
111 VALUE rb_str_to_inum(VALUE, int, int);
112 VALUE rb_cstr2inum(const char*, int);
113 VALUE rb_str2inum(VALUE, int);
114 VALUE rb_big2str(VALUE, int);
115 VALUE rb_big2str0(VALUE, int, int);
116 SIGNED_VALUE rb_big2long(VALUE);
117 #define rb_big2int(x) rb_big2long(x)
118 VALUE rb_big2ulong(VALUE);
119 #define rb_big2uint(x) rb_big2ulong(x)
120 VALUE rb_big2ulong_pack(VALUE x);
121 #if HAVE_LONG_LONG
122 VALUE rb_ll2inum(LONG_LONG);
123 VALUE rb_ull2inum(unsigned LONG_LONG);
124 LONG_LONG rb_big2ll(VALUE);
125 unsigned LONG_LONG rb_big2ull(VALUE);
126 #endif /* HAVE_LONG_LONG */
127 DEPRECATED(void rb_quad_pack(char*,VALUE));
128 DEPRECATED(VALUE rb_quad_unpack(const char*,int));
129 void rb_big_pack(VALUE val, unsigned long *buf, long num_longs);
130 VALUE rb_big_unpack(unsigned long *buf, long num_longs);
131 int rb_uv_to_utf8(char[6],unsigned long);
132 VALUE rb_dbl2big(double);
133 double rb_big2dbl(VALUE);
134 VALUE rb_big_cmp(VALUE, VALUE);
135 VALUE rb_big_eq(VALUE, VALUE);
136 VALUE rb_big_eql(VALUE, VALUE);
137 VALUE rb_big_plus(VALUE, VALUE);
138 VALUE rb_big_minus(VALUE, VALUE);
139 VALUE rb_big_mul(VALUE, VALUE);
140 VALUE rb_big_div(VALUE, VALUE);
141 VALUE rb_big_idiv(VALUE, VALUE);
142 VALUE rb_big_modulo(VALUE, VALUE);
143 VALUE rb_big_divmod(VALUE, VALUE);
144 VALUE rb_big_pow(VALUE, VALUE);
145 VALUE rb_big_and(VALUE, VALUE);
146 VALUE rb_big_or(VALUE, VALUE);
147 VALUE rb_big_xor(VALUE, VALUE);
148 VALUE rb_big_lshift(VALUE, VALUE);
149 VALUE rb_big_rshift(VALUE, VALUE);
150 /* rational.c */
151 VALUE rb_rational_raw(VALUE, VALUE);
152 #define rb_rational_raw1(x) rb_rational_raw((x), INT2FIX(1))
153 #define rb_rational_raw2(x,y) rb_rational_raw((x), (y))
154 VALUE rb_rational_new(VALUE, VALUE);
155 #define rb_rational_new1(x) rb_rational_new((x), INT2FIX(1))
156 #define rb_rational_new2(x,y) rb_rational_new((x), (y))
157 VALUE rb_Rational(VALUE, VALUE);
158 #define rb_Rational1(x) rb_Rational((x), INT2FIX(1))
159 #define rb_Rational2(x,y) rb_Rational((x), (y))
160 /* complex.c */
161 VALUE rb_complex_raw(VALUE, VALUE);
162 #define rb_complex_raw1(x) rb_complex_raw((x), INT2FIX(0))
163 #define rb_complex_raw2(x,y) rb_complex_raw((x), (y))
164 VALUE rb_complex_new(VALUE, VALUE);
165 #define rb_complex_new1(x) rb_complex_new((x), INT2FIX(0))
166 #define rb_complex_new2(x,y) rb_complex_new((x), (y))
167 VALUE rb_complex_polar(VALUE, VALUE);
168 VALUE rb_Complex(VALUE, VALUE);
169 #define rb_Complex1(x) rb_Complex((x), INT2FIX(0))
170 #define rb_Complex2(x,y) rb_Complex((x), (y))
171 /* class.c */
172 VALUE rb_class_boot(VALUE);
173 VALUE rb_class_new(VALUE);
174 VALUE rb_mod_init_copy(VALUE, VALUE);
175 VALUE rb_singleton_class_clone(VALUE);
176 void rb_singleton_class_attached(VALUE,VALUE);
177 VALUE rb_make_metaclass(VALUE, VALUE);
178 void rb_check_inheritable(VALUE);
179 VALUE rb_class_inherited(VALUE, VALUE);
180 VALUE rb_define_class_id(ID, VALUE);
181 VALUE rb_define_class_id_under(VALUE, ID, VALUE);
182 VALUE rb_module_new(void);
183 VALUE rb_define_module_id(ID);
184 VALUE rb_define_module_id_under(VALUE, ID);
185 VALUE rb_include_class_new(VALUE, VALUE);
186 VALUE rb_mod_included_modules(VALUE);
187 VALUE rb_mod_include_p(VALUE, VALUE);
188 VALUE rb_mod_ancestors(VALUE);
189 VALUE rb_class_instance_methods(int, VALUE*, VALUE);
190 VALUE rb_class_public_instance_methods(int, VALUE*, VALUE);
191 VALUE rb_class_protected_instance_methods(int, VALUE*, VALUE);
192 VALUE rb_class_private_instance_methods(int, VALUE*, VALUE);
193 VALUE rb_obj_singleton_methods(int, VALUE*, VALUE);
194 void rb_define_method_id(VALUE, ID, VALUE (*)(ANYARGS), int);
195 void rb_frozen_class_p(VALUE);
196 void rb_undef(VALUE, ID);
197 void rb_define_protected_method(VALUE, const char*, VALUE (*)(ANYARGS), int);
198 void rb_define_private_method(VALUE, const char*, VALUE (*)(ANYARGS), int);
199 void rb_define_singleton_method(VALUE, const char*, VALUE(*)(ANYARGS), int);
200 VALUE rb_singleton_class(VALUE);
201 /* compar.c */
202 int rb_cmpint(VALUE, VALUE, VALUE);
203 NORETURN(void rb_cmperr(VALUE, VALUE));
204 /* cont.c */
205 VALUE rb_fiber_new(VALUE (*)(ANYARGS), VALUE);
206 VALUE rb_fiber_resume(VALUE fib, int argc, VALUE *args);
207 VALUE rb_fiber_yield(int argc, VALUE *args);
208 VALUE rb_fiber_current(void);
209 VALUE rb_fiber_alive_p(VALUE);
210 /* enum.c */
211 VALUE rb_enum_values_pack(int, VALUE*);
212 /* enumerator.c */
213 VALUE rb_enumeratorize(VALUE, VALUE, int, VALUE *);
214 VALUE rb_enumeratorize_with_size(VALUE, VALUE, int, VALUE *, VALUE (*)(ANYARGS));
215 #define RETURN_SIZED_ENUMERATOR(obj, argc, argv, size_fn) do { \
216 if (!rb_block_given_p()) \
217 return rb_enumeratorize_with_size((obj), ID2SYM(rb_frame_this_func()),\
218 (argc), (argv), (size_fn)); \
219 } while (0)
220 #define RETURN_ENUMERATOR(obj, argc, argv) RETURN_SIZED_ENUMERATOR(obj, argc, argv, 0)
221 /* error.c */
222 VALUE rb_exc_new(VALUE, const char*, long);
223 VALUE rb_exc_new2(VALUE, const char*);
224 VALUE rb_exc_new3(VALUE, VALUE);
225 PRINTF_ARGS(NORETURN(void rb_loaderror(const char*, ...)), 1, 2);
226 PRINTF_ARGS(NORETURN(void rb_loaderror_with_path(VALUE path, const char*, ...)), 2, 3);
227 PRINTF_ARGS(NORETURN(void rb_name_error(ID, const char*, ...)), 2, 3);
228 PRINTF_ARGS(NORETURN(void rb_name_error_str(VALUE, const char*, ...)), 2, 3);
229 NORETURN(void rb_invalid_str(const char*, const char*));
230 PRINTF_ARGS(void rb_compile_error(const char*, int, const char*, ...), 3, 4);
231 PRINTF_ARGS(void rb_compile_error_with_enc(const char*, int, void *, const char*, ...), 4, 5);
232 PRINTF_ARGS(void rb_compile_error_append(const char*, ...), 1, 2);
233 NORETURN(void rb_error_frozen(const char*));
234 void rb_error_untrusted(VALUE);
235 void rb_check_frozen(VALUE);
236 void rb_check_trusted(VALUE);
237 #define rb_check_frozen_internal(obj) do { \
238 VALUE frozen_obj = (obj); \
239 if (OBJ_FROZEN(frozen_obj)) { \
240 rb_error_frozen(rb_obj_classname(frozen_obj)); \
241 } \
242 } while (0)
243 #define rb_check_trusted_internal(obj) do { \
244 VALUE untrusted_obj = (obj); \
245 if (!OBJ_UNTRUSTED(untrusted_obj)) { \
246 rb_error_untrusted(untrusted_obj); \
247 } \
248 } while (0)
249 #ifdef __GNUC__
250 #define rb_check_frozen(obj) __extension__({rb_check_frozen_internal(obj);})
251 #define rb_check_trusted(obj) __extension__({rb_check_trusted_internal(obj);})
252 #else
253 static inline void
254 rb_check_frozen_inline(VALUE obj)
255 {
256 rb_check_frozen_internal(obj);
257 }
258 #define rb_check_frozen(obj) rb_check_frozen_inline(obj)
259 static inline void
260 rb_check_trusted_inline(VALUE obj)
261 {
262 rb_check_trusted_internal(obj);
263 }
264 #define rb_check_trusted(obj) rb_check_trusted_inline(obj)
265 #endif
266 void rb_check_copyable(VALUE obj, VALUE orig);
267
268 #define OBJ_INIT_COPY(obj, orig) \
269 ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1))
270
271 /* eval.c */
272 int rb_sourceline(void);
273 const char *rb_sourcefile(void);
274 VALUE rb_check_funcall(VALUE, ID, int, VALUE*);
275
276 NORETURN(void rb_error_arity(int, int, int));
277 #define rb_check_arity(argc, min, max) do { \
278 if (((argc) < (min)) || ((argc) > (max) && (max) != UNLIMITED_ARGUMENTS)) \
279 rb_error_arity(argc, min, max); \
280 } while(0)
281
282 #if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)
283 typedef struct {
284 int maxfd;
285 fd_set *fdset;
286 } rb_fdset_t;
287
288 void rb_fd_init(rb_fdset_t *);
289 void rb_fd_term(rb_fdset_t *);
290 void rb_fd_zero(rb_fdset_t *);
291 void rb_fd_set(int, rb_fdset_t *);
292 void rb_fd_clr(int, rb_fdset_t *);
293 int rb_fd_isset(int, const rb_fdset_t *);
294 void rb_fd_copy(rb_fdset_t *, const fd_set *, int);
295 void rb_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src);
296 int rb_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
297
298 #define rb_fd_ptr(f) ((f)->fdset)
299 #define rb_fd_max(f) ((f)->maxfd)
300
301 #elif defined(_WIN32)
302
303 typedef struct {
304 int capa;
305 fd_set *fdset;
306 } rb_fdset_t;
307
308 void rb_fd_init(rb_fdset_t *);
309 void rb_fd_term(rb_fdset_t *);
310 #define rb_fd_zero(f) ((f)->fdset->fd_count = 0)
311 void rb_fd_set(int, rb_fdset_t *);
312 #define rb_fd_clr(n, f) rb_w32_fdclr((n), (f)->fdset)
313 #define rb_fd_isset(n, f) rb_w32_fdisset((n), (f)->fdset)
314 #define rb_fd_copy(d, s, n) rb_w32_fd_copy((d), (s), (n))
315 void rb_w32_fd_copy(rb_fdset_t *, const fd_set *, int);
316 #define rb_fd_dup(d, s) rb_w32_fd_dup((d), (s))
317 void rb_w32_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src);
318 #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))
319 #define rb_fd_resize(n, f) ((void)(f))
320
321 #define rb_fd_ptr(f) ((f)->fdset)
322 #define rb_fd_max(f) ((f)->fdset->fd_count)
323
324 #else
325
326 typedef fd_set rb_fdset_t;
327 #define rb_fd_zero(f) FD_ZERO(f)
328 #define rb_fd_set(n, f) FD_SET((n), (f))
329 #define rb_fd_clr(n, f) FD_CLR((n), (f))
330 #define rb_fd_isset(n, f) FD_ISSET((n), (f))
331 #define rb_fd_copy(d, s, n) (*(d) = *(s))
332 #define rb_fd_dup(d, s) (*(d) = *(s))
333 #define rb_fd_resize(n, f) ((void)(f))
334 #define rb_fd_ptr(f) (f)
335 #define rb_fd_init(f) FD_ZERO(f)
336 #define rb_fd_init_copy(d, s) (*(d) = *(s))
337 #define rb_fd_term(f) ((void)(f))
338 #define rb_fd_max(f) FD_SETSIZE
339 #define rb_fd_select(n, rfds, wfds, efds, timeout) select((n), (rfds), (wfds), (efds), (timeout))
340
341 #endif
342
343 NORETURN(void rb_exc_raise(VALUE));
344 NORETURN(void rb_exc_fatal(VALUE));
345 VALUE rb_f_exit(int,VALUE*);
346 VALUE rb_f_abort(int,VALUE*);
347 void rb_remove_method(VALUE, const char*);
348 void rb_remove_method_id(VALUE, ID);
349 #define rb_disable_super(klass, name) ((void)0)
350 #define rb_enable_super(klass, name) ((void)0)
351 #define HAVE_RB_DEFINE_ALLOC_FUNC 1
352 typedef VALUE (*rb_alloc_func_t)(VALUE);
353 void rb_define_alloc_func(VALUE, rb_alloc_func_t);
354 void rb_undef_alloc_func(VALUE);
355 rb_alloc_func_t rb_get_alloc_func(VALUE);
356 void rb_clear_cache(void);
357 void rb_clear_cache_by_class(VALUE);
358 void rb_alias(VALUE, ID, ID);
359 void rb_attr(VALUE,ID,int,int,int);
360 int rb_method_boundp(VALUE, ID, int);
361 int rb_method_basic_definition_p(VALUE, ID);
362 VALUE rb_eval_cmd(VALUE, VALUE, int);
363 int rb_obj_respond_to(VALUE, ID, int);
364 int rb_respond_to(VALUE, ID);
365 VALUE rb_f_notimplement(int argc, VALUE *argv, VALUE obj);
366 void rb_interrupt(void);
367 VALUE rb_apply(VALUE, ID, VALUE);
368 void rb_backtrace(void);
369 ID rb_frame_this_func(void);
370 VALUE rb_obj_instance_eval(int, VALUE*, VALUE);
371 VALUE rb_obj_instance_exec(int, VALUE*, VALUE);
372 VALUE rb_mod_module_eval(int, VALUE*, VALUE);
373 VALUE rb_mod_module_exec(int, VALUE*, VALUE);
374 void rb_load(VALUE, int);
375 void rb_load_protect(VALUE, int, int*);
376 NORETURN(void rb_jump_tag(int));
377 int rb_provided(const char*);
378 int rb_feature_provided(const char *, const char **);
379 void rb_provide(const char*);
380 VALUE rb_f_require(VALUE, VALUE);
381 VALUE rb_require_safe(VALUE, int);
382 void rb_obj_call_init(VALUE, int, VALUE*);
383 VALUE rb_class_new_instance(int, VALUE*, VALUE);
384 VALUE rb_block_proc(void);
385 DEPRECATED(VALUE rb_f_lambda(void));
386 VALUE rb_block_lambda(void);
387 VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE);
388 VALUE rb_obj_is_proc(VALUE);
389 VALUE rb_proc_call(VALUE, VALUE);
390 VALUE rb_proc_call_with_block(VALUE, int argc, VALUE *argv, VALUE);
391 int rb_proc_arity(VALUE);
392 VALUE rb_proc_lambda_p(VALUE);
393 VALUE rb_binding_new(void);
394 VALUE rb_obj_method(VALUE, VALUE);
395 VALUE rb_obj_is_method(VALUE);
396 VALUE rb_method_call(int, VALUE*, VALUE);
397 VALUE rb_method_call_with_block(int, VALUE *, VALUE, VALUE);
398 int rb_mod_method_arity(VALUE, ID);
399 int rb_obj_method_arity(VALUE, ID);
400 VALUE rb_protect(VALUE (*)(VALUE), VALUE, int*);
401 void rb_set_end_proc(void (*)(VALUE), VALUE);
402 void rb_exec_end_proc(void);
403 void rb_thread_schedule(void);
404 void rb_thread_wait_fd(int);
405 int rb_thread_fd_writable(int);
406 void rb_thread_fd_close(int);
407 int rb_thread_alone(void);
408 DEPRECATED(void rb_thread_polling(void));
409 void rb_thread_sleep(int);
410 void rb_thread_sleep_forever(void);
411 VALUE rb_thread_stop(void);
412 VALUE rb_thread_wakeup(VALUE);
413 VALUE rb_thread_wakeup_alive(VALUE);
414 VALUE rb_thread_run(VALUE);
415 VALUE rb_thread_kill(VALUE);
416 VALUE rb_thread_create(VALUE (*)(ANYARGS), void*);
417 DEPRECATED(int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *));
418 int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
419 void rb_thread_wait_for(struct timeval);
420 VALUE rb_thread_current(void);
421 VALUE rb_thread_main(void);
422 VALUE rb_thread_local_aref(VALUE, ID);
423 VALUE rb_thread_local_aset(VALUE, ID, VALUE);
424 void rb_thread_atfork(void);
425 void rb_thread_atfork_before_exec(void);
426 VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
427 VALUE rb_exec_recursive_paired(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE,VALUE);
428 VALUE rb_exec_recursive_outer(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
429 VALUE rb_exec_recursive_paired_outer(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE,VALUE);
430 /* dir.c */
431 VALUE rb_dir_getwd(void);
432 /* file.c */
433 VALUE rb_file_s_expand_path(int, VALUE *);
434 VALUE rb_file_expand_path(VALUE, VALUE);
435 VALUE rb_file_s_absolute_path(int, VALUE *);
436 VALUE rb_file_absolute_path(VALUE, VALUE);
437 VALUE rb_file_dirname(VALUE fname);
438 int rb_find_file_ext_safe(VALUE*, const char* const*, int);
439 VALUE rb_find_file_safe(VALUE, int);
440 int rb_find_file_ext(VALUE*, const char* const*);
441 VALUE rb_find_file(VALUE);
442 VALUE rb_file_directory_p(VALUE,VALUE);
443 VALUE rb_str_encode_ospath(VALUE);
444 int rb_is_absolute_path(const char *);
445 /* gc.c */
446 NORETURN(void rb_memerror(void));
447 int rb_during_gc(void);
448 void rb_gc_mark_locations(VALUE*, VALUE*);
449 void rb_mark_tbl(struct st_table*);
450 void rb_mark_set(struct st_table*);
451 void rb_mark_hash(struct st_table*);
452 void rb_gc_mark_maybe(VALUE);
453 void rb_gc_mark(VALUE);
454 void rb_gc_force_recycle(VALUE);
455 void rb_gc(void);
456 void rb_gc_copy_finalizer(VALUE,VALUE);
457 void rb_gc_finalize_deferred(void);
458 void rb_gc_call_finalizer_at_exit(void);
459 VALUE rb_gc_enable(void);
460 VALUE rb_gc_disable(void);
461 VALUE rb_gc_start(void);
462 void rb_gc_set_params(void);
463 /* hash.c */
464 void st_foreach_safe(struct st_table *, int (*)(ANYARGS), st_data_t);
465 VALUE rb_check_hash_type(VALUE);
466 void rb_hash_foreach(VALUE, int (*)(ANYARGS), VALUE);
467 VALUE rb_hash(VALUE);
468 VALUE rb_hash_new(void);
469 VALUE rb_hash_dup(VALUE);
470 VALUE rb_hash_freeze(VALUE);
471 VALUE rb_hash_aref(VALUE, VALUE);
472 VALUE rb_hash_lookup(VALUE, VALUE);
473 VALUE rb_hash_lookup2(VALUE, VALUE, VALUE);
474 VALUE rb_hash_fetch(VALUE, VALUE);
475 VALUE rb_hash_aset(VALUE, VALUE, VALUE);
476 VALUE rb_hash_clear(VALUE);
477 VALUE rb_hash_delete_if(VALUE);
478 VALUE rb_hash_delete(VALUE,VALUE);
479 typedef VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value);
480 VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func);
481 struct st_table *rb_hash_tbl(VALUE);
482 int rb_path_check(const char*);
483 int rb_env_path_tainted(void);
484 VALUE rb_env_clear(void);
485 /* io.c */
486 #define rb_defout rb_stdout
487 RUBY_EXTERN VALUE rb_fs;
488 RUBY_EXTERN VALUE rb_output_fs;
489 RUBY_EXTERN VALUE rb_rs;
490 RUBY_EXTERN VALUE rb_default_rs;
491 RUBY_EXTERN VALUE rb_output_rs;
492 VALUE rb_io_write(VALUE, VALUE);
493 VALUE rb_io_gets(VALUE);
494 VALUE rb_io_getbyte(VALUE);
495 VALUE rb_io_ungetc(VALUE, VALUE);
496 VALUE rb_io_ungetbyte(VALUE, VALUE);
497 VALUE rb_io_close(VALUE);
498 VALUE rb_io_flush(VALUE);
499 VALUE rb_io_eof(VALUE);
500 VALUE rb_io_binmode(VALUE);
501 VALUE rb_io_ascii8bit_binmode(VALUE);
502 VALUE rb_io_addstr(VALUE, VALUE);
503 VALUE rb_io_printf(int, VALUE*, VALUE);
504 VALUE rb_io_print(int, VALUE*, VALUE);
505 VALUE rb_io_puts(int, VALUE*, VALUE);
506 VALUE rb_io_fdopen(int, int, const char*);
507 VALUE rb_io_get_io(VALUE);
508 VALUE rb_file_open(const char*, const char*);
509 VALUE rb_file_open_str(VALUE, const char*);
510 VALUE rb_gets(void);
511 void rb_write_error(const char*);
512 void rb_write_error2(const char*, long);
513 void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds);
514 int rb_pipe(int *pipes);
515 int rb_reserved_fd_p(int fd);
516 int rb_cloexec_open(const char *pathname, int flags, mode_t mode);
517 int rb_cloexec_dup(int oldfd);
518 int rb_cloexec_dup2(int oldfd, int newfd);
519 int rb_cloexec_pipe(int fildes[2]);
520 int rb_cloexec_fcntl_dupfd(int fd, int minfd);
521 #define RB_RESERVED_FD_P(fd) rb_reserved_fd_p(fd)
522 void rb_update_max_fd(int fd);
523 void rb_fd_fix_cloexec(int fd);
524 /* marshal.c */
525 VALUE rb_marshal_dump(VALUE, VALUE);
526 VALUE rb_marshal_load(VALUE);
527 void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE (*dumper)(VALUE), VALUE (*loader)(VALUE, VALUE));
528 /* numeric.c */
529 NORETURN(void rb_num_zerodiv(void));
530 #define RB_NUM_COERCE_FUNCS_NEED_OPID 1
531 VALUE rb_num_coerce_bin(VALUE, VALUE, ID);
532 VALUE rb_num_coerce_cmp(VALUE, VALUE, ID);
533 VALUE rb_num_coerce_relop(VALUE, VALUE, ID);
534 VALUE rb_num_coerce_bit(VALUE, VALUE, ID);
535 VALUE rb_num2fix(VALUE);
536 VALUE rb_fix2str(VALUE, int);
537 VALUE rb_dbl_cmp(double, double);
538 /* object.c */
539 int rb_eql(VALUE, VALUE);
540 VALUE rb_any_to_s(VALUE);
541 VALUE rb_inspect(VALUE);
542 VALUE rb_obj_is_instance_of(VALUE, VALUE);
543 VALUE rb_obj_is_kind_of(VALUE, VALUE);
544 VALUE rb_obj_alloc(VALUE);
545 VALUE rb_obj_clone(VALUE);
546 VALUE rb_obj_dup(VALUE);
547 VALUE rb_obj_init_copy(VALUE,VALUE);
548 VALUE rb_obj_taint(VALUE);
549 VALUE rb_obj_tainted(VALUE);
550 VALUE rb_obj_untaint(VALUE);
551 VALUE rb_obj_untrust(VALUE);
552 VALUE rb_obj_untrusted(VALUE);
553 VALUE rb_obj_trust(VALUE);
554 VALUE rb_obj_freeze(VALUE);
555 VALUE rb_obj_frozen_p(VALUE);
556 VALUE rb_obj_id(VALUE);
557 VALUE rb_obj_class(VALUE);
558 VALUE rb_class_real(VALUE);
559 VALUE rb_class_inherited_p(VALUE, VALUE);
560 VALUE rb_class_superclass(VALUE);
561 VALUE rb_class_get_superclass(VALUE);
562 VALUE rb_convert_type(VALUE,int,const char*,const char*);
563 VALUE rb_check_convert_type(VALUE,int,const char*,const char*);
564 VALUE rb_check_to_integer(VALUE, const char *);
565 VALUE rb_check_to_float(VALUE);
566 VALUE rb_to_int(VALUE);
567 VALUE rb_check_to_int(VALUE);
568 VALUE rb_Integer(VALUE);
569 VALUE rb_to_float(VALUE);
570 VALUE rb_Float(VALUE);
571 VALUE rb_String(VALUE);
572 VALUE rb_Array(VALUE);
573 VALUE rb_Hash(VALUE);
574 double rb_cstr_to_dbl(const char*, int);
575 double rb_str_to_dbl(VALUE, int);
576 /* parse.y */
577 RUBY_EXTERN int ruby_sourceline;
578 RUBY_EXTERN char *ruby_sourcefile;
579 ID rb_id_attrset(ID);
580 int rb_is_const_id(ID);
581 int rb_is_global_id(ID);
582 int rb_is_instance_id(ID);
583 int rb_is_attrset_id(ID);
584 int rb_is_class_id(ID);
585 int rb_is_local_id(ID);
586 int rb_is_junk_id(ID);
587 int rb_symname_p(const char*);
588 int rb_sym_interned_p(VALUE);
589 VALUE rb_backref_get(void);
590 void rb_backref_set(VALUE);
591 VALUE rb_lastline_get(void);
592 void rb_lastline_set(VALUE);
593 VALUE rb_sym_all_symbols(void);
594 /* process.c */
595 void rb_last_status_set(int status, rb_pid_t pid);
596 VALUE rb_last_status_get(void);
597 struct rb_exec_arg {
598 VALUE execarg_obj;
599 };
600 DEPRECATED(int rb_proc_exec_n(int, VALUE*, const char*));
601 int rb_proc_exec(const char*);
602 DEPRECATED(VALUE rb_exec_arg_init(int argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e));
603 DEPRECATED(int rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val));
604 DEPRECATED(void rb_exec_arg_fixup(struct rb_exec_arg *e));
605 DEPRECATED(int rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s));
606 DEPRECATED(int rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char*, size_t));
607 DEPRECATED(int rb_exec(const struct rb_exec_arg*));
608 DEPRECATED(int rb_exec_err(const struct rb_exec_arg*, char*, size_t));
609 DEPRECATED(rb_pid_t rb_fork(int*, int (*)(void*), void*, VALUE));
610 DEPRECATED(rb_pid_t rb_fork_err(int*, int (*)(void*, char*, size_t), void*, VALUE, char*, size_t));
611 VALUE rb_f_exec(int,VALUE*);
612 rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags);
613 void rb_syswait(rb_pid_t pid);
614 rb_pid_t rb_spawn(int, VALUE*);
615 rb_pid_t rb_spawn_err(int, VALUE*, char*, size_t);
616 VALUE rb_proc_times(VALUE);
617 VALUE rb_detach_process(rb_pid_t pid);
618 /* range.c */
619 VALUE rb_range_new(VALUE, VALUE, int);
620 VALUE rb_range_beg_len(VALUE, long*, long*, long, int);
621 int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp);
622 /* random.c */
623 unsigned int rb_genrand_int32(void);
624 double rb_genrand_real(void);
625 void rb_reset_random_seed(void);
626 VALUE rb_random_bytes(VALUE rnd, long n);
627 VALUE rb_random_int(VALUE rnd, VALUE max);
628 unsigned int rb_random_int32(VALUE rnd);
629 double rb_random_real(VALUE rnd);
630 unsigned long rb_random_ulong_limited(VALUE rnd, unsigned long limit);
631 unsigned long rb_genrand_ulong_limited(unsigned long i);
632 /* re.c */
633 #define rb_memcmp memcmp
634 int rb_memcicmp(const void*,const void*,long);
635 void rb_match_busy(VALUE);
636 VALUE rb_reg_nth_defined(int, VALUE);
637 VALUE rb_reg_nth_match(int, VALUE);
638 int rb_reg_backref_number(VALUE match, VALUE backref);
639 VALUE rb_reg_last_match(VALUE);
640 VALUE rb_reg_match_pre(VALUE);
641 VALUE rb_reg_match_post(VALUE);
642 VALUE rb_reg_match_last(VALUE);
643 #define HAVE_RB_REG_NEW_STR 1
644 VALUE rb_reg_new_str(VALUE, int);
645 VALUE rb_reg_new(const char *, long, int);
646 VALUE rb_reg_alloc(void);
647 VALUE rb_reg_init_str(VALUE re, VALUE s, int options);
648 VALUE rb_reg_match(VALUE, VALUE);
649 VALUE rb_reg_match2(VALUE);
650 int rb_reg_options(VALUE);
651 /* ruby.c */
652 #define rb_argv rb_get_argv()
653 RUBY_EXTERN VALUE rb_argv0;
654 VALUE rb_get_argv(void);
655 void *rb_load_file(const char*);
656 /* signal.c */
657 VALUE rb_f_kill(int, VALUE*);
658 #ifdef POSIX_SIGNAL
659 #define posix_signal ruby_posix_signal
660 RETSIGTYPE (*posix_signal(int, RETSIGTYPE (*)(int)))(int);
661 #endif
662 void rb_trap_exit(void);
663 void rb_trap_exec(void);
664 const char *ruby_signal_name(int);
665 void ruby_default_signal(int);
666 /* sprintf.c */
667 VALUE rb_f_sprintf(int, const VALUE*);
668 PRINTF_ARGS(VALUE rb_sprintf(const char*, ...), 1, 2);
669 VALUE rb_vsprintf(const char*, va_list);
670 PRINTF_ARGS(VALUE rb_str_catf(VALUE, const char*, ...), 2, 3);
671 VALUE rb_str_vcatf(VALUE, const char*, va_list);
672 VALUE rb_str_format(int, const VALUE *, VALUE);
673 /* string.c */
674 VALUE rb_str_new(const char*, long);
675 VALUE rb_str_new_cstr(const char*);
676 VALUE rb_str_new2(const char*);
677 VALUE rb_str_new_shared(VALUE);
678 VALUE rb_str_new3(VALUE);
679 VALUE rb_str_new_frozen(VALUE);
680 VALUE rb_str_new4(VALUE);
681 VALUE rb_str_new_with_class(VALUE, const char*, long);
682 VALUE rb_str_new5(VALUE, const char*, long);
683 VALUE rb_tainted_str_new_cstr(const char*);
684 VALUE rb_tainted_str_new(const char*, long);
685 VALUE rb_tainted_str_new2(const char*);
686 VALUE rb_external_str_new(const char*, long);
687 VALUE rb_external_str_new_cstr(const char*);
688 VALUE rb_locale_str_new(const char*, long);
689 VALUE rb_locale_str_new_cstr(const char*);
690 VALUE rb_filesystem_str_new(const char*, long);
691 VALUE rb_filesystem_str_new_cstr(const char*);
692 VALUE rb_str_buf_new(long);
693 VALUE rb_str_buf_new_cstr(const char*);
694 VALUE rb_str_buf_new2(const char*);
695 VALUE rb_str_tmp_new(long);
696 VALUE rb_usascii_str_new(const char*, long);
697 VALUE rb_usascii_str_new_cstr(const char*);
698 VALUE rb_usascii_str_new2(const char*);
699 void rb_str_free(VALUE);
700 void rb_str_shared_replace(VALUE, VALUE);
701 VALUE rb_str_buf_append(VALUE, VALUE);
702 VALUE rb_str_buf_cat(VALUE, const char*, long);
703 VALUE rb_str_buf_cat2(VALUE, const char*);
704 VALUE rb_str_buf_cat_ascii(VALUE, const char*);
705 VALUE rb_obj_as_string(VALUE);
706 VALUE rb_check_string_type(VALUE);
707 void rb_must_asciicompat(VALUE);
708 VALUE rb_str_dup(VALUE);
709 VALUE rb_str_resurrect(VALUE str);
710 VALUE rb_str_locktmp(VALUE);
711 VALUE rb_str_unlocktmp(VALUE);
712 VALUE rb_str_dup_frozen(VALUE);
713 #define rb_str_dup_frozen rb_str_new_frozen
714 VALUE rb_str_plus(VALUE, VALUE);
715 VALUE rb_str_times(VALUE, VALUE);
716 long rb_str_sublen(VALUE, long);
717 VALUE rb_str_substr(VALUE, long, long);
718 VALUE rb_str_subseq(VALUE, long, long);
719 void rb_str_modify(VALUE);
720 void rb_str_modify_expand(VALUE, long);
721 VALUE rb_str_freeze(VALUE);
722 void rb_str_set_len(VALUE, long);
723 VALUE rb_str_resize(VALUE, long);
724 VALUE rb_str_cat(VALUE, const char*, long);
725 VALUE rb_str_cat2(VALUE, const char*);
726 VALUE rb_str_append(VALUE, VALUE);
727 VALUE rb_str_concat(VALUE, VALUE);
728 st_index_t rb_memhash(const void *ptr, long len);
729 st_index_t rb_hash_start(st_index_t);
730 st_index_t rb_hash_uint32(st_index_t, uint32_t);
731 st_index_t rb_hash_uint(st_index_t, st_index_t);
732 st_index_t rb_hash_end(st_index_t);
733 #define rb_hash_uint32(h, i) st_hash_uint32((h), (i))
734 #define rb_hash_uint(h, i) st_hash_uint((h), (i))
735 #define rb_hash_end(h) st_hash_end(h)
736 st_index_t rb_str_hash(VALUE);
737 int rb_str_hash_cmp(VALUE,VALUE);
738 int rb_str_comparable(VALUE, VALUE);
739 int rb_str_cmp(VALUE, VALUE);
740 VALUE rb_str_equal(VALUE str1, VALUE str2);
741 VALUE rb_str_drop_bytes(VALUE, long);
742 void rb_str_update(VALUE, long, long, VALUE);
743 VALUE rb_str_replace(VALUE, VALUE);
744 VALUE rb_str_inspect(VALUE);
745 VALUE rb_str_dump(VALUE);
746 VALUE rb_str_split(VALUE, const char*);
747 void rb_str_associate(VALUE, VALUE);
748 VALUE rb_str_associated(VALUE);
749 void rb_str_setter(VALUE, ID, VALUE*);
750 VALUE rb_str_intern(VALUE);
751 VALUE rb_sym_to_s(VALUE);
752 long rb_str_strlen(VALUE);
753 VALUE rb_str_length(VALUE);
754 long rb_str_offset(VALUE, long);
755 size_t rb_str_capacity(VALUE);
756 VALUE rb_str_ellipsize(VALUE, long);
757 #if defined(__GNUC__) && !defined(__PCC__)
758 #define rb_str_new_cstr(str) __extension__ ( \
759 { \
760 (__builtin_constant_p(str)) ? \
761 rb_str_new((str), (long)strlen(str)) : \
762 rb_str_new_cstr(str); \
763 })
764 #define rb_tainted_str_new_cstr(str) __extension__ ( \
765 { \
766 (__builtin_constant_p(str)) ? \
767 rb_tainted_str_new((str), (long)strlen(str)) : \
768 rb_tainted_str_new_cstr(str); \
769 })
770 #define rb_usascii_str_new_cstr(str) __extension__ ( \
771 { \
772 (__builtin_constant_p(str)) ? \
773 rb_usascii_str_new((str), (long)strlen(str)) : \
774 rb_usascii_str_new_cstr(str); \
775 })
776 #define rb_external_str_new_cstr(str) __extension__ ( \
777 { \
778 (__builtin_constant_p(str)) ? \
779 rb_external_str_new((str), (long)strlen(str)) : \
780 rb_external_str_new_cstr(str); \
781 })
782 #define rb_locale_str_new_cstr(str) __extension__ ( \
783 { \
784 (__builtin_constant_p(str)) ? \
785 rb_locale_str_new((str), (long)strlen(str)) : \
786 rb_locale_str_new_cstr(str); \
787 })
788 #define rb_str_buf_new_cstr(str) __extension__ ( \
789 { \
790 (__builtin_constant_p(str)) ? \
791 rb_str_buf_cat(rb_str_buf_new((long)strlen(str)), \
792 (str), (long)strlen(str)) : \
793 rb_str_buf_new_cstr(str); \
794 })
795 #define rb_str_buf_cat2(str, ptr) __extension__ ( \
796 { \
797 (__builtin_constant_p(ptr)) ? \
798 rb_str_buf_cat((str), (ptr), (long)strlen(ptr)) : \
799 rb_str_buf_cat2((str), (ptr)); \
800 })
801 #define rb_str_cat2(str, ptr) __extension__ ( \
802 { \
803 (__builtin_constant_p(ptr)) ? \
804 rb_str_cat((str), (ptr), (long)strlen(ptr)) : \
805 rb_str_cat2((str), (ptr)); \
806 })
807 #define rb_exc_new2(klass, ptr) __extension__ ( \
808 { \
809 (__builtin_constant_p(ptr)) ? \
810 rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \
811 rb_exc_new2((klass), (ptr)); \
812 })
813 #endif
814 #define rb_str_new2 rb_str_new_cstr
815 #define rb_str_new3 rb_str_new_shared
816 #define rb_str_new4 rb_str_new_frozen
817 #define rb_str_new5 rb_str_new_with_class
818 #define rb_tainted_str_new2 rb_tainted_str_new_cstr
819 #define rb_str_buf_new2 rb_str_buf_new_cstr
820 #define rb_usascii_str_new2 rb_usascii_str_new_cstr
821 /* struct.c */
822 VALUE rb_struct_new(VALUE, ...);
823 VALUE rb_struct_define(const char*, ...);
824 VALUE rb_struct_alloc(VALUE, VALUE);
825 VALUE rb_struct_initialize(VALUE, VALUE);
826 VALUE rb_struct_aref(VALUE, VALUE);
827 VALUE rb_struct_aset(VALUE, VALUE, VALUE);
828 VALUE rb_struct_getmember(VALUE, ID);
829 DEPRECATED(VALUE rb_struct_iv_get(VALUE, const char*));
830 VALUE rb_struct_s_members(VALUE);
831 VALUE rb_struct_members(VALUE);
832 VALUE rb_struct_alloc_noinit(VALUE);
833 VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t, ...);
834 /* thread.c */
835 typedef void rb_unblock_function_t(void *);
836 typedef VALUE rb_blocking_function_t(void *);
837 void rb_thread_check_ints(void);
838 int rb_thread_interrupted(VALUE thval);
839
840 /* Use rb_thread_call_without_gvl family instead. */
841 DEPRECATED(VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1,
842 rb_unblock_function_t *ubf, void *data2));
843 #define RUBY_UBF_IO ((rb_unblock_function_t *)-1)
844 #define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1)
845 VALUE rb_mutex_new(void);
846 VALUE rb_mutex_locked_p(VALUE mutex);
847 VALUE rb_mutex_trylock(VALUE mutex);
848 VALUE rb_mutex_lock(VALUE mutex);
849 VALUE rb_mutex_unlock(VALUE mutex);
850 VALUE rb_mutex_sleep(VALUE self, VALUE timeout);
851 VALUE rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg);
852 /* time.c */
853 VALUE rb_time_new(time_t, long);
854 VALUE rb_time_nano_new(time_t, long);
855 VALUE rb_time_num_new(VALUE, VALUE);
856 struct timeval rb_time_interval(VALUE num);
857 struct timeval rb_time_timeval(VALUE time);
858 struct timespec rb_time_timespec(VALUE time);
859 /* variable.c */
860 VALUE rb_mod_name(VALUE);
861 VALUE rb_class_path(VALUE);
862 void rb_set_class_path(VALUE, VALUE, const char*);
863 void rb_set_class_path_string(VALUE, VALUE, VALUE);
864 VALUE rb_path_to_class(VALUE);
865 VALUE rb_path2class(const char*);
866 void rb_name_class(VALUE, ID);
867 VALUE rb_class_name(VALUE);
868 void rb_autoload(VALUE, ID, const char*);
869 VALUE rb_autoload_load(VALUE, ID);
870 VALUE rb_autoload_p(VALUE, ID);
871 VALUE rb_f_trace_var(int, VALUE*);
872 VALUE rb_f_untrace_var(int, VALUE*);
873 VALUE rb_f_global_variables(void);
874 void rb_alias_variable(ID, ID);
875 struct st_table* rb_generic_ivar_table(VALUE);
876 void rb_copy_generic_ivar(VALUE,VALUE);
877 void rb_free_generic_ivar(VALUE);
878 VALUE rb_ivar_get(VALUE, ID);
879 VALUE rb_ivar_set(VALUE, ID, VALUE);
880 VALUE rb_ivar_defined(VALUE, ID);
881 void rb_ivar_foreach(VALUE, int (*)(ANYARGS), st_data_t);
882 st_index_t rb_ivar_count(VALUE);
883 VALUE rb_iv_set(VALUE, const char*, VALUE);
884 VALUE rb_iv_get(VALUE, const char*);
885 VALUE rb_attr_get(VALUE, ID);
886 VALUE rb_obj_instance_variables(VALUE);
887 VALUE rb_obj_remove_instance_variable(VALUE, VALUE);
888 void *rb_mod_const_at(VALUE, void*);
889 void *rb_mod_const_of(VALUE, void*);
890 VALUE rb_const_list(void*);
891 VALUE rb_mod_constants(int, VALUE *, VALUE);
892 VALUE rb_mod_remove_const(VALUE, VALUE);
893 int rb_const_defined(VALUE, ID);
894 int rb_const_defined_at(VALUE, ID);
895 int rb_const_defined_from(VALUE, ID);
896 VALUE rb_const_get(VALUE, ID);
897 VALUE rb_const_get_at(VALUE, ID);
898 VALUE rb_const_get_from(VALUE, ID);
899 void rb_const_set(VALUE, ID, VALUE);
900 VALUE rb_const_remove(VALUE, ID);
901 VALUE rb_mod_const_missing(VALUE,VALUE);
902 VALUE rb_cvar_defined(VALUE, ID);
903 void rb_cvar_set(VALUE, ID, VALUE);
904 VALUE rb_cvar_get(VALUE, ID);
905 void rb_cv_set(VALUE, const char*, VALUE);
906 VALUE rb_cv_get(VALUE, const char*);
907 void rb_define_class_variable(VALUE, const char*, VALUE);
908 VALUE rb_mod_class_variables(int, VALUE*, VALUE);
909 VALUE rb_mod_remove_cvar(VALUE, VALUE);
910
911 ID rb_frame_callee(void);
912 VALUE rb_str_succ(VALUE);
913 VALUE rb_time_succ(VALUE);
914 void rb_frame_pop(void);
915 int rb_frame_method_id_and_class(ID *idp, VALUE *klassp);
916 VALUE rb_make_backtrace(void);
917 VALUE rb_make_exception(int, VALUE*);
918
919 #if defined __GNUC__ && __GNUC__ >= 4
920 #pragma GCC visibility pop
921 #endif
922
923 #if defined(__cplusplus)
924 #if 0
925 { /* satisfy cc-mode */
926 #endif
927 } /* extern "C" { */
928 #endif
929
930 #endif /* RUBY_INTERN_H */
rb_reg_match_last
VALUE rb_reg_match_last(VALUE)
Definition: re.c:1546
rb_big_modulo
VALUE rb_big_modulo(VALUE x, VALUE y)
Definition: bignum.c:2952
rb_mutex_locked_p
VALUE rb_mutex_locked_p(VALUE mutex)
Definition: thread.c:4181
rb_const_list
VALUE rb_const_list(void *)
Definition: variable.c:2017
rb_bigzero_p
int rb_bigzero_p(VALUE x)
Definition: bignum.c:91
rb_const_get_at
VALUE rb_const_get_at(VALUE, ID)
Definition: variable.c:1882
rb_to_int
VALUE rb_to_int(VALUE)
Definition: object.c:2431
rb_str_associated
VALUE rb_str_associated(VALUE)
Definition: string.c:1453
rb_gc_disable
VALUE rb_gc_disable(void)
Definition: gc.c:3283
rb_ary_unshift
VALUE rb_ary_unshift(VALUE ary, VALUE item)
Definition: array.c:1084
rb_big_clone
VALUE rb_big_clone(VALUE x)
Definition: bignum.c:192
rb_is_attrset_id
int rb_is_attrset_id(ID id)
Definition: ripper.c:17070
rb_define_module_id_under
VALUE rb_define_module_id_under(VALUE outer, ID id)
Definition: class.c:643
rb_exc_new
VALUE rb_exc_new(VALUE etype, const char *ptr, long len)
Definition: error.c:536
DEPRECATED
#define DEPRECATED(x)
Definition: ruby.h:34
n
ssize_t n
Definition: bigdecimal.c:5655
rb_time_num_new
VALUE rb_time_num_new(VALUE, VALUE)
Definition: time.c:2396
rb_reg_last_match
VALUE rb_reg_last_match(VALUE)
Definition: re.c:1483
rb_str_times
VALUE rb_str_times(VALUE, VALUE)
Definition: string.c:1268
ary
volatile VALUE ary
Definition: tcltklib.c:9713
rb_struct_iv_get
VALUE rb_struct_iv_get(VALUE c, const char *name)
Definition: struct.c:33
rb_thread_main
VALUE rb_thread_main(void)
Definition: thread.c:2371
rb_f_trace_var
VALUE rb_f_trace_var(int, VALUE *)
Definition: variable.c:646
int
VP_EXPORT int
Definition: bigdecimal.c:5050
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:7709
rb_ary_pop
VALUE rb_ary_pop(VALUE ary)
Definition: array.c:879
rb_ary_new4
VALUE rb_ary_new4(long n, const VALUE *elts)
Definition: array.c:451
rb_mod_include_p
VALUE rb_mod_include_p(VALUE mod, VALUE mod2)
Definition: class.c:890
rb_ary_entry
VALUE rb_ary_entry(VALUE ary, long offset)
Definition: array.c:1101
rb_any_to_s
VALUE rb_any_to_s(VALUE)
Definition: object.c:384
rb_eql
int rb_eql(VALUE, VALUE)
Definition: object.c:67
rb_interrupt
void rb_interrupt(void)
Definition: eval.c:545
rb_set_class_path
void rb_set_class_path(VALUE, VALUE, const char *)
Definition: variable.c:308
rb_obj_instance_exec
VALUE rb_obj_instance_exec(int, VALUE *, VALUE)
Definition: vm_eval.c:1630
rb_is_absolute_path
int rb_is_absolute_path(const char *)
Definition: file.c:5150
rb_uint2big
VALUE rb_uint2big(VALUE n)
Definition: bignum.c:288
rb_block_lambda
VALUE rb_block_lambda(void)
Definition: proc.c:493
rb_compile_error
void rb_compile_error(const char *file, int line, const char *fmt,...)
Definition: error.c:138
rb_require_safe
VALUE rb_require_safe(VALUE, int)
Definition: load.c:934
rb_match_busy
void rb_match_busy(VALUE)
Definition: re.c:1189
rb_hash_update_by
VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func)
Definition: hash.c:1951
rb_str_resurrect
VALUE rb_str_resurrect(VALUE str)
Definition: string.c:952
rb_check_inheritable
void rb_check_inheritable(VALUE super)
Ensures a class can be derived from super.
Definition: class.c:95
rb_mark_tbl
void rb_mark_tbl(struct st_table *)
Definition: gc.c:2541
rb_hash_lookup
#define rb_hash_lookup
Definition: tcltklib.c:268
rb_alloc_func_t
VALUE(* rb_alloc_func_t)(VALUE)
Definition: ripper.y:352
rb_gc_mark_locations
#define rb_gc_mark_locations(start, end)
Definition: gc.c:2346
rb_struct_members
VALUE rb_struct_members(VALUE)
Definition: struct.c:53
rb_ary_freeze
VALUE rb_ary_freeze(VALUE ary)
Definition: array.c:330
rb_make_exception
VALUE rb_make_exception(int argc, VALUE *argv)
Definition: eval.c:642
rb_thread_wait_fd
void rb_thread_wait_fd(int)
Definition: thread.c:3431
rb_class_new_instance
VALUE rb_class_new_instance(int, VALUE *, VALUE)
Definition: object.c:1775
rb_hash_uint32
#define rb_hash_uint32(h, i)
rb_f_notimplement
VALUE rb_f_notimplement(int argc, VALUE *argv, VALUE obj)
Definition: vm_method.c:70
st_table
Definition: ripper.y:77
rb_thread_atfork_before_exec
void rb_thread_atfork_before_exec(void)
Definition: thread.c:3868
rb_str_buf_cat_ascii
VALUE rb_str_buf_cat_ascii(VALUE, const char *)
Definition: string.c:2081
rb_mod_const_at
void * rb_mod_const_at(VALUE, void *)
Definition: variable.c:1982
rb_mod_module_eval
VALUE rb_mod_module_eval(int, VALUE *, VALUE)
Definition: vm_eval.c:1669
rb_iv_set
VALUE rb_iv_set(VALUE, const char *, VALUE)
Definition: variable.c:2591
rb_eval_cmd
VALUE rb_eval_cmd(VALUE, VALUE, int)
Definition: vm_eval.c:1447
rb_tainted_str_new2
#define rb_tainted_str_new2
rb_last_status_get
VALUE rb_last_status_get(void)
Definition: process.c:270
rb_big_xor
VALUE rb_big_xor(VALUE xx, VALUE yy)
Definition: bignum.c:3470
rb_w32_fd_dup
void rb_w32_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src)
Definition: win32.c:2499
max
static int max(int a, int b)
Definition: strftime.c:141
rb_big2ulong
VALUE rb_big2ulong(VALUE x)
Definition: bignum.c:1225
rb_check_trusted
#define rb_check_trusted(obj)
rb_str_tmp_new
VALUE rb_str_tmp_new(long)
rb_define_singleton_method
void rb_define_singleton_method(VALUE obj, const char *name, VALUE(*func)(ANYARGS), int argc)
Defines a singleton method for obj.
Definition: class.c:1497
rb_gets
VALUE rb_gets(void)
Definition: io.c:7920
rb_str_buf_append
VALUE rb_str_buf_append(VALUE, VALUE)
Definition: string.c:2105
rb_blocking_function_t
VALUE rb_blocking_function_t(void *)
Definition: ripper.y:836
rb_sym_to_s
VALUE rb_sym_to_s(VALUE)
Definition: string.c:7906
rb_io_puts
VALUE rb_io_puts(int, VALUE *, VALUE)
Definition: io.c:6890
rb_ary_sort
VALUE rb_ary_sort(VALUE ary)
Definition: array.c:2373
rb_class_private_instance_methods
VALUE rb_class_private_instance_methods(int argc, VALUE *argv, VALUE mod)
Definition: class.c:1109
rb_ary_subseq
VALUE rb_ary_subseq(VALUE ary, long beg, long len)
Definition: array.c:1110
rb_io_ungetc
VALUE rb_io_ungetc(VALUE, VALUE)
Definition: io.c:3797
rb_rational_new
VALUE rb_rational_new(VALUE, VALUE)
Definition: rational.c:1745
rb_struct_define
VALUE rb_struct_define(const char *,...)
Definition: struct.c:264
rb_num_coerce_relop
VALUE rb_num_coerce_relop(VALUE, VALUE, ID)
Definition: numeric.c:284
rb_io_eof
VALUE rb_io_eof(VALUE)
Definition: io.c:1706
rb_define_class_id_under
VALUE rb_define_class_id_under(VALUE outer, ID id, VALUE super)
Defines a class under the namespace of outer.
Definition: class.c:568
rb_ary_delete_at
VALUE rb_ary_delete_at(VALUE ary, long pos)
Definition: array.c:2813
rb_cstr_to_dbl
double rb_cstr_to_dbl(const char *, int)
Definition: object.c:2535
func
SSL_METHOD *(* func)(void)
Definition: ossl_ssl.c:108
rb_usascii_str_new2
#define rb_usascii_str_new2
rb_dbl_cmp
VALUE rb_dbl_cmp(double, double)
Definition: numeric.c:1121
rb_big_pack
void rb_big_pack(VALUE val, unsigned long *buf, long num_longs)
Definition: bignum.c:369
rb_const_get
VALUE rb_const_get(VALUE, ID)
Definition: variable.c:1876
rb_obj_remove_instance_variable
VALUE rb_obj_remove_instance_variable(VALUE, VALUE)
Definition: variable.c:1400
rb_str_cmp
int rb_str_cmp(VALUE, VALUE)
Definition: string.c:2308
rb_syswait
void rb_syswait(rb_pid_t pid)
Definition: process.c:3639
rb_file_s_absolute_path
VALUE rb_file_s_absolute_path(int, VALUE *)
Definition: file.c:3377
rb_external_str_new_cstr
VALUE rb_external_str_new_cstr(const char *)
Definition: string.c:590
rb_gc_force_recycle
void rb_gc_force_recycle(VALUE)
Definition: gc.c:2961
i
ssize_t i
Definition: bigdecimal.c:5655
rb_pipe
int rb_pipe(int *pipes)
Definition: io.c:5557
rb_time_nano_new
VALUE rb_time_nano_new(time_t, long)
Definition: time.c:2390
rb_exec_end_proc
void rb_exec_end_proc(void)
Definition: eval_jump.c:97
rb_error_frozen
void rb_error_frozen(const char *what)
Definition: error.c:1972
rb_genrand_real
double rb_genrand_real(void)
Definition: random.c:257
rb_trap_exec
void rb_trap_exec(void)
rb_str_locktmp
VALUE rb_str_locktmp(VALUE)
rb_check_frozen
#define rb_check_frozen(obj)
rb_ary_shift
VALUE rb_ary_shift(VALUE ary)
Definition: array.c:929
rb_mod_ancestors
VALUE rb_mod_ancestors(VALUE mod)
Definition: class.c:920
rb_ary_each
VALUE rb_ary_each(VALUE array)
Definition: array.c:1670
rb_big_eql
VALUE rb_big_eql(VALUE x, VALUE y)
Definition: bignum.c:1737
rb_big_plus
VALUE rb_big_plus(VALUE x, VALUE y)
Definition: bignum.c:2031
rb_str_subseq
VALUE rb_str_subseq(VALUE, long, long)
Definition: string.c:1668
rb_complex_polar
VALUE rb_complex_polar(VALUE x, VALUE y)
Definition: complex.c:1380
rb_hash_lookup2
VALUE rb_hash_lookup2(VALUE, VALUE, VALUE)
Definition: hash.c:571
rb_str_new_cstr
VALUE rb_str_new_cstr(const char *)
Definition: string.c:447
rb_check_frozen_internal
#define rb_check_frozen_internal(obj)
Definition: intern.h:237
rb_reg_alloc
VALUE rb_reg_alloc(void)
Definition: re.c:2481
rb_iv_get
VALUE rb_iv_get(VALUE, const char *)
Definition: variable.c:2583
rb_define_private_method
void rb_define_private_method(VALUE klass, const char *name, VALUE(*func)(ANYARGS), int argc)
Definition: class.c:1356
rb_env_clear
VALUE rb_env_clear(void)
Definition: hash.c:2866
rb_frame_this_func
ID rb_frame_this_func(void)
Definition: eval.c:902
status
int status
Definition: tcltklib.c:2197
rb_obj_freeze
VALUE rb_obj_freeze(VALUE)
Definition: object.c:989
rb_io_printf
VALUE rb_io_printf(int, VALUE *, VALUE)
Definition: io.c:6666
rb_str_strlen
long rb_str_strlen(VALUE)
Definition: string.c:1168
rb_mem_clear
void rb_mem_clear(register VALUE *mem, register long size)
Definition: array.c:37
rb_obj_dup
VALUE rb_obj_dup(VALUE)
Definition: object.c:338
rb_define_alloc_func
void rb_define_alloc_func(VALUE, rb_alloc_func_t)
rb_mod_remove_cvar
VALUE rb_mod_remove_cvar(VALUE, VALUE)
Definition: variable.c:2549
rb_update_max_fd
void rb_update_max_fd(int fd)
Definition: io.c:164
rb_find_file_ext_safe
int rb_find_file_ext_safe(VALUE *, const char *const *, int)
Definition: file.c:5302
rb_ary_push
VALUE rb_ary_push(VALUE ary, VALUE item)
Definition: array.c:822
rb_proc_exec_n
int rb_proc_exec_n(int argc, VALUE *argv, const char *prog)
Definition: process.c:1234
PRINTF_ARGS
#define PRINTF_ARGS(decl, string_index, first_to_check)
rb_mutex_lock
VALUE rb_mutex_lock(VALUE mutex)
Definition: thread.c:4291
rb_singleton_class_clone
VALUE rb_singleton_class_clone(VALUE obj)
Definition: class.c:241
path
gz path
Definition: zlib.c:2279
rb_hash_freeze
VALUE rb_hash_freeze(VALUE)
Definition: hash.c:36
rb_method_boundp
int rb_method_boundp(VALUE, ID, int)
Definition: vm_method.c:774
rb_ary_rassoc
VALUE rb_ary_rassoc(VALUE ary, VALUE value)
Definition: array.c:3510
rb_fiber_yield
VALUE rb_fiber_yield(int argc, VALUE *argv)
Definition: cont.c:1394
rb_mod_init_copy
VALUE rb_mod_init_copy(VALUE clone, VALUE orig)
Definition: class.c:196
rb_ary_tmp_new
VALUE rb_ary_tmp_new(long capa)
Definition: array.c:465
rb_f_lambda
VALUE rb_f_lambda(void)
Definition: proc.c:499
rb_fd_zero
#define rb_fd_zero(f)
Definition: intern.h:327
rb_remove_method_id
void rb_remove_method_id(VALUE, ID)
Definition: vm_method.c:687
rb_lastline_set
void rb_lastline_set(VALUE)
Definition: vm.c:780
rb_gc_copy_finalizer
void rb_gc_copy_finalizer(VALUE, VALUE)
Definition: gc.c:1349
rb_ary_shared_with_p
VALUE rb_ary_shared_with_p(VALUE ary1, VALUE ary2)
Definition: array.c:358
rb_reg_options
int rb_reg_options(VALUE)
Definition: re.c:3083
rb_str_comparable
int rb_str_comparable(VALUE, VALUE)
Definition: string.c:2283
rb_str_buf_cat2
VALUE rb_str_buf_cat2(VALUE, const char *)
Definition: string.c:1957
rb_obj_tainted
VALUE rb_obj_tainted(VALUE)
Definition: object.c:861
rb_protect
VALUE rb_protect(VALUE(*proc)(VALUE), VALUE data, int *state)
Definition: eval.c:771
rb_find_file_safe
VALUE rb_find_file_safe(VALUE, int)
Definition: file.c:5377
rb_fiber_alive_p
VALUE rb_fiber_alive_p(VALUE fibval)
Definition: cont.c:1422
rb_big_and
VALUE rb_big_and(VALUE xx, VALUE yy)
Definition: bignum.c:3279
rb_autoload_p
VALUE rb_autoload_p(VALUE, ID)
Definition: variable.c:1810
rb_exec_recursive_paired_outer
VALUE rb_exec_recursive_paired_outer(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE, VALUE)
Definition: thread.c:4887
rb_struct_new
VALUE rb_struct_new(VALUE,...)
Definition: struct.c:421
rb_quad_unpack
VALUE rb_quad_unpack(const char *buf, int sign)
Definition: bignum.c:561
rb_proc_new
VALUE rb_proc_new(VALUE(*)(ANYARGS), VALUE)
Definition: proc.c:2018
rb_proc_lambda_p
VALUE rb_proc_lambda_p(VALUE)
Definition: proc.c:231
rb_str_succ
VALUE rb_str_succ(VALUE)
Definition: string.c:2984
rb_fiber_current
VALUE rb_fiber_current(void)
Definition: cont.c:1230
rb_str_new4
#define rb_str_new4
rb_obj_class
VALUE rb_obj_class(VALUE)
Definition: object.c:194
rb_obj_id
VALUE rb_obj_id(VALUE)
Definition: gc.c:1688
rb_ary_clear
VALUE rb_ary_clear(VALUE ary)
Definition: array.c:3220
rb_marshal_dump
VALUE rb_marshal_dump(VALUE, VALUE)
Definition: marshal.c:2111
rb_backtrace
void rb_backtrace(void)
Definition: vm_backtrace.c:766
rb_str_encode_ospath
VALUE rb_str_encode_ospath(VALUE)
Definition: file.c:230
rb_hash_update_func
VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value)
Definition: ripper.y:479
rb_class_name
VALUE rb_class_name(VALUE)
Definition: variable.c:383
rb_external_str_new
VALUE rb_external_str_new(const char *, long)
Definition: string.c:584
rb_exec
int rb_exec(const struct rb_exec_arg *e)
Definition: process.c:3068
rb_spawn
rb_pid_t rb_spawn(int, VALUE *)
Definition: process.c:3720
rb_output_rs
RUBY_EXTERN VALUE rb_output_rs
Definition: ripper.y:491
rb_fs
RUBY_EXTERN VALUE rb_fs
Definition: ripper.y:487
rb_cvar_defined
VALUE rb_cvar_defined(VALUE, ID)
Definition: variable.c:2389
rb_struct_alloc
VALUE rb_struct_alloc(VALUE, VALUE)
Definition: struct.c:415
rb_ary_new3
VALUE rb_ary_new3(long n,...)
Definition: array.c:432
rb_mod_name
VALUE rb_mod_name(VALUE)
Definition: variable.c:210
rb_mark_set
void rb_mark_set(struct st_table *)
Definition: gc.c:2387
rb_obj_untrusted
VALUE rb_obj_untrusted(VALUE)
Definition: object.c:915
rb_exec_arg::execarg_obj
VALUE execarg_obj
Definition: ripper.y:598
rb_locale_str_new
VALUE rb_locale_str_new(const char *, long)
Definition: string.c:596
rb_big2dbl
double rb_big2dbl(VALUE x)
Definition: bignum.c:1429
rb_str_new2
#define rb_str_new2
rb_reg_nth_match
VALUE rb_reg_nth_match(int, VALUE)
Definition: re.c:1457
ruby_sourcefile
#define ruby_sourcefile
Definition: compile.c:424
rb_define_protected_method
void rb_define_protected_method(VALUE klass, const char *name, VALUE(*func)(ANYARGS), int argc)
Definition: class.c:1350
rb_must_asciicompat
void rb_must_asciicompat(VALUE)
Definition: string.c:1463
rb_cloexec_dup
int rb_cloexec_dup(int oldfd)
Definition: io.c:225
rb_lastline_get
VALUE rb_lastline_get(void)
Definition: vm.c:774
rb_str_unlocktmp
VALUE rb_str_unlocktmp(VALUE)
Definition: string.c:1820
rb_big_resize
void rb_big_resize(VALUE big, long len)
Definition: bignum.c:160
rb_ary_rotate
VALUE rb_ary_rotate(VALUE ary, long cnt)
Definition: array.c:2105
rb_frame_pop
void rb_frame_pop(void)
Definition: eval.c:935
rb_big_unpack
VALUE rb_big_unpack(unsigned long *buf, long num_longs)
Definition: bignum.c:411
rb_load_file
void * rb_load_file(const char *)
Definition: pepper_main.c:824
rb_random_bytes
VALUE rb_random_bytes(VALUE rnd, long n)
Definition: random.c:996
rb_big_new
VALUE rb_big_new(long len, int sign)
Definition: bignum.c:186
rb_str_substr
VALUE rb_str_substr(VALUE, long, long)
Definition: string.c:1774
rb_exec_err
int rb_exec_err(const struct rb_exec_arg *e, char *errmsg, size_t errmsg_buflen)
Definition: process.c:3062
rb_argv0
RUBY_EXTERN VALUE rb_argv0
Definition: ripper.y:653
rb_path2class
VALUE rb_path2class(const char *)
Definition: variable.c:371
rb_path_to_class
VALUE rb_path_to_class(VALUE)
Definition: variable.c:331
rb_class_path
VALUE rb_class_path(VALUE)
Definition: variable.c:261
args
VALUE VALUE args
Definition: tcltklib.c:2561
rb_loaderror
void rb_loaderror(const char *fmt,...)
Definition: error.c:1802
rb_cmpint
int rb_cmpint(VALUE val, VALUE a, VALUE b)
Definition: bignum.c:97
rb_sym_all_symbols
VALUE rb_sym_all_symbols(void)
Definition: ripper.c:17037
rb_str_append
VALUE rb_str_append(VALUE, VALUE)
Definition: string.c:2121
rb_str_new_frozen
VALUE rb_str_new_frozen(VALUE)
Definition: string.c:713
rb_reg_match_post
VALUE rb_reg_match_post(VALUE)
Definition: re.c:1528
rb_method_call_with_block
VALUE rb_method_call_with_block(int, VALUE *, VALUE, VALUE)
Definition: proc.c:1527
rb_reg_backref_number
int rb_reg_backref_number(VALUE match, VALUE backref)
Definition: re.c:1075
rb_Hash
VALUE rb_Hash(VALUE)
Definition: object.c:2797
rb_f_sprintf
VALUE rb_f_sprintf(int, const VALUE *)
Definition: sprintf.c:433
rb_ivar_get
VALUE rb_ivar_get(VALUE, ID)
Definition: variable.c:1116
rb_str_concat
VALUE rb_str_concat(VALUE, VALUE)
Definition: string.c:2162
rb_str_replace
VALUE rb_str_replace(VALUE, VALUE)
Definition: string.c:4030
rb_mutex_sleep
VALUE rb_mutex_sleep(VALUE self, VALUE timeout)
Definition: thread.c:4463
rb_str_modify_expand
void rb_str_modify_expand(VALUE, long)
Definition: string.c:1377
rb_fd_fix_cloexec
void rb_fd_fix_cloexec(int fd)
Definition: io.c:202
rb_hash_foreach
void rb_hash_foreach(VALUE, int(*)(ANYARGS), VALUE)
Definition: hash.c:200
rb_str_equal
VALUE rb_str_equal(VALUE str1, VALUE str2)
Definition: string.c:2359
rb_file_expand_path
VALUE rb_file_expand_path(VALUE, VALUE)
Definition: file.c:3314
rb_env_path_tainted
int rb_env_path_tainted(void)
Definition: hash.c:2336
rb_name_error_str
void rb_name_error_str(VALUE str, const char *fmt,...)
Definition: error.c:914
rb_proc_arity
int rb_proc_arity(VALUE)
Definition: proc.c:702
rb_hash_delete
VALUE rb_hash_delete(VALUE, VALUE)
Definition: hash.c:859
rb_fd_set
#define rb_fd_set(n, f)
Definition: intern.h:328
rb_copy_generic_ivar
void rb_copy_generic_ivar(VALUE, VALUE)
Definition: variable.c:1047
rb_autoload_load
VALUE rb_autoload_load(VALUE, ID)
Definition: variable.c:1765
rb_cvar_get
VALUE rb_cvar_get(VALUE, ID)
Definition: variable.c:2362
rb_name_error
void rb_name_error(ID id, const char *fmt,...)
Definition: error.c:899
rb_hash_start
st_index_t rb_hash_start(st_index_t)
Definition: random.c:1416
rb_fd_isset
#define rb_fd_isset(n, f)
Definition: intern.h:330
rb_loaderror_with_path
void rb_loaderror_with_path(VALUE path, const char *fmt,...)
Definition: error.c:1814
NORETURN
#define NORETURN(x)
Definition: ruby.h:31
rb_frame_method_id_and_class
int rb_frame_method_id_and_class(ID *idp, VALUE *klassp)
Definition: vm.c:1489
rb_feature_provided
int rb_feature_provided(const char *, const char **)
Definition: load.c:523
rb_hash_fetch
VALUE rb_hash_fetch(VALUE, VALUE)
Definition: hash.c:645
rb_enumeratorize
VALUE rb_enumeratorize(VALUE obj, VALUE meth, int argc, VALUE *argv)
Definition: enumerator.c:398
st_foreach_safe
void st_foreach_safe(struct st_table *, int(*)(ANYARGS), st_data_t)
Definition: hash.c:133
rb_exc_raise
void rb_exc_raise(VALUE mesg)
Definition: eval.c:527
rb_reg_new_str
VALUE rb_reg_new_str(VALUE, int)
Definition: re.c:2487
rb_rational_raw
VALUE rb_rational_raw(VALUE, VALUE)
Definition: rational.c:1739
st_data_t
unsigned long st_data_t
Definition: ripper.y:35
rb_usascii_str_new
VALUE rb_usascii_str_new(const char *, long)
Definition: string.c:431
rb_singleton_class
VALUE rb_singleton_class(VALUE obj)
Returns the singleton class of obj.
Definition: class.c:1470
rb_is_const_id
int rb_is_const_id(ID id)
Definition: ripper.c:17046
rb_obj_instance_eval
VALUE rb_obj_instance_eval(int, VALUE *, VALUE)
Definition: vm_eval.c:1598
rb_is_instance_id
int rb_is_instance_id(ID id)
Definition: ripper.c:17064
rb_ary_assoc
VALUE rb_ary_assoc(VALUE ary, VALUE key)
Definition: array.c:3477
rb_genrand_ulong_limited
unsigned long rb_genrand_ulong_limited(unsigned long i)
Definition: random.c:908
rb_enumeratorize_with_size
VALUE rb_enumeratorize_with_size(VALUE obj, VALUE meth, int argc, VALUE *argv, VALUE(*size_fn)(ANYARGS))
Definition: enumerator.c:407
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:1215
rb_f_untrace_var
VALUE rb_f_untrace_var(int, VALUE *)
Definition: variable.c:706
rb_find_file
VALUE rb_find_file(VALUE)
Definition: file.c:5371
rb_big_divmod
VALUE rb_big_divmod(VALUE x, VALUE y)
Definition: bignum.c:3010
rb_file_dirname
VALUE rb_file_dirname(VALUE fname)
Definition: file.c:3792
rb_binding_new
VALUE rb_binding_new(void)
Definition: proc.c:343
rb_str_dump
VALUE rb_str_dump(VALUE)
Definition: string.c:4630
rb_str_update
void rb_str_update(VALUE, long, long, VALUE)
Definition: string.c:3451
rb_provide
void rb_provide(const char *)
Definition: load.c:566
rb_check_to_float
VALUE rb_check_to_float(VALUE)
Definition: object.c:2706
rb_gc
void rb_gc(void)
Definition: gc.c:3108
rb_obj_is_instance_of
VALUE rb_obj_is_instance_of(VALUE, VALUE)
Definition: object.c:545
rb_gc_start
VALUE rb_gc_start(void)
Definition: gc.c:3101
rb_block_proc
VALUE rb_block_proc(void)
Definition: proc.c:479
rb_class_inherited
VALUE rb_class_inherited(VALUE super, VALUE klass)
Calls Class::inherited.
Definition: class.c:473
rb_fiber_resume
VALUE rb_fiber_resume(VALUE fibval, int argc, VALUE *argv)
Definition: cont.c:1378
rb_fd_term
#define rb_fd_term(f)
Definition: intern.h:337
rb_ary_free
void rb_ary_free(VALUE ary)
Definition: array.c:471
rb_obj_untrust
VALUE rb_obj_untrust(VALUE)
Definition: object.c:930
rb_Float
VALUE rb_Float(VALUE)
Definition: object.c:2647
rb_dbl2big
VALUE rb_dbl2big(double d)
Definition: bignum.c:1353
rb_big_eq
VALUE rb_big_eq(VALUE x, VALUE y)
Definition: bignum.c:1706
rb_compile_error_append
void rb_compile_error_append(const char *fmt,...)
Definition: error.c:150
rb_compile_error_with_enc
void rb_compile_error_with_enc(const char *file, int line, void *enc, const char *fmt,...)
Definition: error.c:126
rb_Rational
VALUE rb_Rational(VALUE, VALUE)
Definition: rational.c:1753
rb_str_offset
long rb_str_offset(VALUE, long)
Definition: string.c:1610
rb_str_capacity
size_t rb_str_capacity(VALUE)
Definition: string.c:360
val
#define val
Definition: tcltklib.c:1949
rb_gc_finalize_deferred
void rb_gc_finalize_deferred(void)
Definition: gc.c:1455
rb_random_real
double rb_random_real(VALUE rnd)
Definition: random.c:931
rb_check_trusted_inline
static void rb_check_trusted_inline(VALUE obj)
Definition: intern.h:260
rb_str_to_inum
VALUE rb_str_to_inum(VALUE str, int base, int badcheck)
Definition: bignum.c:777
rb_file_open
VALUE rb_file_open(const char *, const char *)
Definition: io.c:5467
str
static VALUE char * str
Definition: tcltklib.c:3547
rb_reg_new
VALUE rb_reg_new(const char *, long, int)
Definition: re.c:2524
rb_fdset_t
fd_set rb_fdset_t
Definition: ripper.y:326
rb_detach_process
VALUE rb_detach_process(rb_pid_t pid)
Definition: process.c:976
rb_locale_str_new_cstr
VALUE rb_locale_str_new_cstr(const char *)
Definition: string.c:602
rb_random_int
VALUE rb_random_int(VALUE rnd, VALUE max)
rb_ary_replace
VALUE rb_ary_replace(VALUE copy, VALUE orig)
Definition: array.c:3168
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:3006
rb_ary_new
VALUE rb_ary_new(void)
Definition: array.c:424
rb_big_cmp
VALUE rb_big_cmp(VALUE x, VALUE y)
Definition: bignum.c:1553
flags
int flags
Definition: tcltklib.c:3023
ID
unsigned long ID
Definition: ripper.y:105
rb_gc_mark
void rb_gc_mark(VALUE)
Definition: gc.c:2598
rb_hash_clear
VALUE rb_hash_clear(VALUE)
Definition: hash.c:1138
rb_define_class_variable
void rb_define_class_variable(VALUE, const char *, VALUE)
Definition: variable.c:2417
rb_ary_to_s
VALUE rb_ary_to_s(VALUE ary)
Definition: array.c:1994
rb_str_cat2
VALUE rb_str_cat2(VALUE, const char *)
Definition: string.c:1982
rb_cloexec_pipe
int rb_cloexec_pipe(int fildes[2])
Definition: io.c:271
rb_method_call
VALUE rb_method_call(int, VALUE *, VALUE)
Definition: proc.c:1520
rb_w32_fd_copy
void rb_w32_fd_copy(rb_fdset_t *dst, const fd_set *src, int max)
Definition: win32.c:2484
obj
static VALUE VALUE obj
Definition: tcltklib.c:3158
rb_str_shared_replace
void rb_str_shared_replace(VALUE, VALUE)
Definition: string.c:857
rb_check_to_integer
VALUE rb_check_to_integer(VALUE, const char *)
Definition: object.c:2417
rb_clear_cache
void rb_clear_cache(void)
Definition: vm_method.c:46
rb_ary_store
void rb_ary_store(VALUE ary, long idx, VALUE val)
Definition: array.c:719
rb_mod_class_variables
VALUE rb_mod_class_variables(int, VALUE *, VALUE)
Definition: variable.c:2508
rb_backref_set
void rb_backref_set(VALUE)
Definition: vm.c:768
rb_define_module_id
VALUE rb_define_module_id(ID id)
Definition: class.c:606
ANYARGS
#define ANYARGS
rb_last_status_set
void rb_last_status_set(int status, rb_pid_t pid)
Definition: process.c:276
rb_undef
void rb_undef(VALUE, ID)
Definition: vm_method.c:840
rb_trap_exit
void rb_trap_exit(void)
Definition: signal.c:700
rb_thread_alone
int rb_thread_alone(void)
Definition: thread.c:2904
rb_gc_set_params
void rb_gc_set_params(void)
Definition: gc.c:3295
rb_fiber_new
VALUE rb_fiber_new(VALUE(*func)(ANYARGS), VALUE obj)
Definition: cont.c:1120
rb_close_before_exec
void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds)
rb_str_to_dbl
double rb_str_to_dbl(VALUE, int)
Definition: object.c:2619
rb_sourcefile
#define rb_sourcefile()
Definition: tcltklib.c:97
rb_waitpid
rb_pid_t rb_waitpid(rb_pid_t pid, int *status, int flags)
Definition: process.c:707
rb_io_print
VALUE rb_io_print(int, VALUE *, VALUE)
Definition: io.c:6725
defines.h
rb_str_freeze
VALUE rb_str_freeze(VALUE)
Definition: string.c:1797
rb_hash_end
#define rb_hash_end(h)
rb_struct_define_without_accessor
VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t,...)
Definition: struct.c:229
range
#define range(low, item, hi)
Definition: date_strftime.c:21
rb_check_hash_type
VALUE rb_check_hash_type(VALUE)
Definition: hash.c:461
rb_check_frozen_inline
static void rb_check_frozen_inline(VALUE obj)
Definition: intern.h:254
buf
unsigned char buf[MIME_BUF_SIZE]
Definition: nkf.c:4308
rb_unblock_function_t
void rb_unblock_function_t(void *)
Definition: ripper.y:835
rb_num_coerce_cmp
VALUE rb_num_coerce_cmp(VALUE, VALUE, ID)
Definition: numeric.c:276
rb_thread_check_ints
void rb_thread_check_ints(void)
Definition: thread.c:1090
rb_big2long
SIGNED_VALUE rb_big2long(VALUE x)
Definition: bignum.c:1243
rb_str_buf_new_cstr
VALUE rb_str_buf_new_cstr(const char *)
Definition: string.c:793
rb_num_zerodiv
void rb_num_zerodiv(void)
Definition: numeric.c:115
rb_provided
int rb_provided(const char *)
Definition: load.c:517
rb_time_succ
VALUE rb_time_succ(VALUE)
Definition: time.c:3845
rb_check_funcall
VALUE rb_check_funcall(VALUE, ID, int, VALUE *)
Definition: vm_eval.c:408
rb_str_setter
void rb_str_setter(VALUE, ID, VALUE *)
Definition: string.c:7615
rb_big2str
VALUE rb_big2str(VALUE x, int base)
Definition: bignum.c:1159
rb_reg_init_str
VALUE rb_reg_init_str(VALUE re, VALUE s, int options)
Definition: re.c:2493
key
static int VALUE key
Definition: tkutil.c:265
rb_range_values
int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp)
Definition: range.c:963
rb_reg_match
VALUE rb_reg_match(VALUE, VALUE)
Definition: re.c:2746
rb_str_new_shared
VALUE rb_str_new_shared(VALUE)
Definition: string.c:677
rb_str_buf_cat
VALUE rb_str_buf_cat(VALUE, const char *, long)
Definition: string.c:1947
rb_file_absolute_path
VALUE rb_file_absolute_path(VALUE, VALUE)
Definition: file.c:3357
rb_thread_polling
void rb_thread_polling(void)
Definition: thread.c:1073
rb_str_dup
VALUE rb_str_dup(VALUE)
Definition: string.c:946
rb_tainted_str_new_cstr
VALUE rb_tainted_str_new_cstr(const char *)
Definition: string.c:479
rb_filesystem_str_new
VALUE rb_filesystem_str_new(const char *, long)
Definition: string.c:608
rb_struct_s_members
VALUE rb_struct_s_members(VALUE)
Definition: struct.c:39
rb_obj_as_string
VALUE rb_obj_as_string(VALUE)
Definition: string.c:895
rb_ary_to_ary
VALUE rb_ary_to_ary(VALUE obj)
Definition: array.c:1425
argv
VALUE * argv
Definition: tcltklib.c:1971
rb_exec_arg
Definition: ripper.y:597
rb_hash_aset
VALUE rb_hash_aset(VALUE, VALUE, VALUE)
rb_file_directory_p
VALUE rb_file_directory_p(VALUE, VALUE)
Definition: file.c:1144
rb_tainted_str_new
VALUE rb_tainted_str_new(const char *, long)
rb_thread_select
int rb_thread_select(int max, fd_set *read, fd_set *write, fd_set *except, struct timeval *timeout)
Definition: thread.c:3444
rb_big_minus
VALUE rb_big_minus(VALUE x, VALUE y)
Definition: bignum.c:2068
rb_str_resize
VALUE rb_str_resize(VALUE, long)
Definition: string.c:1853
rb_str_format
VALUE rb_str_format(int, const VALUE *, VALUE)
Definition: sprintf.c:439
rb_obj_clone
VALUE rb_obj_clone(VALUE)
Definition: object.c:296
rb_marshal_load
VALUE rb_marshal_load(VALUE)
Definition: marshal.c:2123
timeval
Definition: ossl_asn1.c:16
rb_symname_p
int rb_symname_p(const char *name)
Definition: ripper.c:16634
rb_thread_atfork
void rb_thread_atfork(void)
Definition: thread.c:3845
rb_thread_current
VALUE rb_thread_current(void)
Definition: thread.c:2350
rb_mod_const_of
void * rb_mod_const_of(VALUE, void *)
Definition: variable.c:1995
rb_reg_match2
VALUE rb_reg_match2(VALUE)
Definition: re.c:2805
rb_f_require
VALUE rb_f_require(VALUE, VALUE)
Definition: load.c:806
rb_range_new
VALUE rb_range_new(VALUE, VALUE, int)
Definition: range.c:67
rb_sprintf
VALUE rb_sprintf(const char *format,...)
Definition: sprintf.c:1270
rb_str_split
VALUE rb_str_split(VALUE, const char *)
Definition: string.c:6131
rb_big_div
VALUE rb_big_div(VALUE x, VALUE y)
Definition: bignum.c:2924
value
volatile VALUE value
Definition: tcltklib.c:9442
rb_big_idiv
VALUE rb_big_idiv(VALUE x, VALUE y)
Definition: bignum.c:2937
rb_mutex_trylock
VALUE rb_mutex_trylock(VALUE mutex)
Definition: thread.c:4208
rb_const_defined
int rb_const_defined(VALUE, ID)
Definition: variable.c:2103
rb_f_exit
VALUE rb_f_exit(int, VALUE *)
Definition: process.c:3586
rb_include_class_new
VALUE rb_include_class_new(VALUE module, VALUE super)
Definition: class.c:663
rb_fd_copy
#define rb_fd_copy(d, s, n)
Definition: intern.h:331
rb_ary_modify
void rb_ary_modify(VALUE ary)
Definition: array.c:254
s
register char * s
Definition: os2.c:56
rb_ary_delete
VALUE rb_ary_delete(VALUE ary, VALUE item)
Definition: array.c:2760
rb_io_get_io
VALUE rb_io_get_io(VALUE)
Definition: io.c:614
rb_String
VALUE rb_String(VALUE)
Definition: object.c:2738
mode
VALUE mode
Definition: tcltklib.c:1664
rb_proc_call_with_block
VALUE rb_proc_call_with_block(VALUE, int argc, VALUE *argv, VALUE)
Definition: proc.c:605
rb_class_inherited_p
VALUE rb_class_inherited_p(VALUE, VALUE)
Definition: object.c:1480
rb_is_local_id
int rb_is_local_id(ID id)
Definition: ripper.c:17076
rb_io_ungetbyte
VALUE rb_io_ungetbyte(VALUE, VALUE)
Definition: io.c:3762
rb_f_global_variables
VALUE rb_f_global_variables(void)
Definition: variable.c:847
rb_uv_to_utf8
int rb_uv_to_utf8(char[6], unsigned long)
Definition: pack.c:2165
rb_io_gets
VALUE rb_io_gets(VALUE)
Definition: io.c:3110
rb_assoc_new
VALUE rb_assoc_new(VALUE car, VALUE cdr)
Definition: array.c:545
ruby_signal_name
const char * ruby_signal_name(int)
Definition: signal.c:237
rb_get_values_at
VALUE rb_get_values_at(VALUE obj, long olen, int argc, VALUE *argv, VALUE(*func)(VALUE, long))
Definition: array.c:2580
rb_attr
void rb_attr(VALUE, ID, int, int, int)
Definition: vm_method.c:796
rb_const_set
void rb_const_set(VALUE, ID, VALUE)
Definition: variable.c:2141
rb_file_s_expand_path
VALUE rb_file_s_expand_path(int, VALUE *)
Definition: file.c:3344
rb_exc_new2
VALUE rb_exc_new2(VALUE etype, const char *s)
Definition: error.c:542
rb_genrand_int32
unsigned int rb_genrand_int32(void)
Definition: random.c:250
rb_str_inspect
VALUE rb_str_inspect(VALUE)
Definition: string.c:4508
rb_thread_run
VALUE rb_thread_run(VALUE)
Definition: thread.c:2264
rb_file_open_str
VALUE rb_file_open_str(VALUE, const char *)
Definition: io.c:5460
mode_t
#define mode_t
Definition: win32.h:100
rb_f_kill
VALUE rb_f_kill(int, VALUE *)
Definition: signal.c:364
rb_io_ascii8bit_binmode
VALUE rb_io_ascii8bit_binmode(VALUE)
Definition: io.c:4623
rb_obj_untaint
VALUE rb_obj_untaint(VALUE)
Definition: object.c:897
rb_thread_kill
VALUE rb_thread_kill(VALUE)
Definition: thread.c:2133
rb_mutex_synchronize
VALUE rb_mutex_synchronize(VALUE mutex, VALUE(*func)(VALUE arg), VALUE arg)
Definition: thread.c:4512
rb_big_mul
VALUE rb_big_mul(VALUE x, VALUE y)
Definition: bignum.c:2660
argc
int argc
Definition: tcltklib.c:1970
rb_alias
void rb_alias(VALUE, ID, ID)
Definition: vm_method.c:1182
rb_str_buf_new
VALUE rb_str_buf_new(long)
Definition: string.c:777
rb_mod_method_arity
int rb_mod_method_arity(VALUE, ID)
Definition: proc.c:1823
rb_obj_trust
VALUE rb_obj_trust(VALUE)
Definition: object.c:949
rb_const_defined_at
int rb_const_defined_at(VALUE, ID)
Definition: variable.c:2109
rb_is_junk_id
int rb_is_junk_id(ID id)
Definition: ripper.c:17082
rb_obj_frozen_p
VALUE rb_obj_frozen_p(VALUE)
Definition: object.c:1018
ruby_sourceline
#define ruby_sourceline
Definition: ripper.c:397
rb_thread_local_aref
VALUE rb_thread_local_aref(VALUE, ID)
Definition: thread.c:2663
rb_id_attrset
ID rb_id_attrset(ID id)
Definition: ripper.c:15265
rb_thread_wakeup_alive
VALUE rb_thread_wakeup_alive(VALUE)
Definition: thread.c:2229
rb_undef_alloc_func
void rb_undef_alloc_func(VALUE)
Definition: vm_method.c:482
rb_make_metaclass
VALUE rb_make_metaclass(VALUE obj, VALUE unused)
Definition: class.c:430
rb_io_getbyte
VALUE rb_io_getbyte(VALUE)
Definition: io.c:3701
rb_is_global_id
int rb_is_global_id(ID id)
Definition: ripper.c:17058
rb_exec_recursive_outer
VALUE rb_exec_recursive_outer(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE)
Definition: thread.c:4875
rb_const_defined_from
int rb_const_defined_from(VALUE, ID)
Definition: variable.c:2097
rb_attr_get
VALUE rb_attr_get(VALUE, ID)
Definition: variable.c:1122
rb_Complex
VALUE rb_Complex(VALUE x, VALUE y)
Definition: complex.c:1388
rb_check_copyable
void rb_check_copyable(VALUE obj, VALUE orig)
Definition: error.c:2001
rb_obj_method
VALUE rb_obj_method(VALUE, VALUE)
Definition: proc.c:1232
rb_time_new
VALUE rb_time_new(time_t, long)
Definition: time.c:2364
rb_sourceline
int rb_sourceline(void)
Definition: vm.c:816
rb_thread_schedule
void rb_thread_schedule(void)
Definition: thread.c:1138
rb_random_int32
unsigned int rb_random_int32(VALUE rnd)
Definition: random.c:914
rb_reserved_fd_p
int rb_reserved_fd_p(int fd)
rb_load
void rb_load(VALUE, int)
Definition: load.c:638
rb_obj_is_method
VALUE rb_obj_is_method(VALUE)
Definition: proc.c:925
rb_cloexec_fcntl_dupfd
int rb_cloexec_fcntl_dupfd(int fd, int minfd)
Definition: io.c:308
rb_str_new3
#define rb_str_new3
rb_complex_new
VALUE rb_complex_new(VALUE x, VALUE y)
Definition: complex.c:1374
rb_jump_tag
void rb_jump_tag(int tag)
Definition: eval.c:666
rb_find_file_ext
int rb_find_file_ext(VALUE *, const char *const *)
Definition: file.c:5296
rb_get_argv
VALUE rb_get_argv(void)
Definition: io.c:11452
ptr
return ptr
Definition: tcltklib.c:784
rb_mod_constants
VALUE rb_mod_constants(int, VALUE *, VALUE)
Definition: variable.c:2046
rb_class_instance_methods
VALUE rb_class_instance_methods(int argc, VALUE *argv, VALUE mod)
Definition: class.c:1071
rb_gc_mark_maybe
void rb_gc_mark_maybe(VALUE)
Definition: gc.c:2547
rb_ivar_defined
VALUE rb_ivar_defined(VALUE, ID)
Definition: variable.c:1204
rb_obj_is_proc
VALUE rb_obj_is_proc(VALUE)
Definition: proc.c:91
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_vsprintf
VALUE rb_vsprintf(const char *, va_list)
Definition: sprintf.c:1264
rb_set_end_proc
void rb_set_end_proc(void(*func)(VALUE), VALUE data)
Definition: eval_jump.c:60
rb_io_binmode
VALUE rb_io_binmode(VALUE)
Definition: io.c:4599
rb_memerror
void rb_memerror(void)
Definition: gc.c:3406
uint32_t
unsigned int uint32_t
Definition: sha2.h:101
rb_obj_taint
VALUE rb_obj_taint(VALUE)
Definition: object.c:878
rb_generic_ivar_table
struct st_table * rb_generic_ivar_table(VALUE)
Definition: variable.c:904
rb_write_error2
void rb_write_error2(const char *, long)
Definition: io.c:7050
rb_reg_nth_defined
VALUE rb_reg_nth_defined(int, VALUE)
Definition: re.c:1439
rb_thread_sleep_forever
void rb_thread_sleep_forever(void)
Definition: thread.c:1020
rb_proc_exec
int rb_proc_exec(const char *)
Definition: process.c:1308
rb_obj_method_arity
int rb_obj_method_arity(VALUE, ID)
Definition: proc.c:1831
rb_ivar_set
VALUE rb_ivar_set(VALUE, ID, VALUE)
Definition: variable.c:1128
rb_thread_wakeup
VALUE rb_thread_wakeup(VALUE)
Definition: thread.c:2220
rb_mutex_unlock
VALUE rb_mutex_unlock(VALUE mutex)
Definition: thread.c:4422
rb_obj_init_copy
VALUE rb_obj_init_copy(VALUE, VALUE)
Definition: object.c:354
arg
arg
Definition: ripper.y:1315
rb_class_protected_instance_methods
VALUE rb_class_protected_instance_methods(int argc, VALUE *argv, VALUE mod)
Definition: class.c:1086
rb_Integer
VALUE rb_Integer(VALUE)
Definition: object.c:2488
rb_ary_resize
VALUE rb_ary_resize(VALUE ary, long len)
expands or shrinks ary to len elements.
Definition: array.c:1513
rb_enum_values_pack
VALUE rb_enum_values_pack(int argc, VALUE *argv)
Definition: enum.c:33
src
VALUE src
Definition: tcltklib.c:7953
rb_str_modify
void rb_str_modify(VALUE)
Definition: string.c:1369
rb_str_buf_new2
#define rb_str_buf_new2
rb_str_cat
VALUE rb_str_cat(VALUE, const char *, long)
Definition: string.c:1963
rb_str_length
VALUE rb_str_length(VALUE)
Definition: string.c:1182
rb_time_interval
struct timeval rb_time_interval(VALUE num)
Definition: time.c:2492
rb_define_method_id
void rb_define_method_id(VALUE klass, ID mid, VALUE(*func)(ANYARGS), int argc)
Definition: class.c:1338
rb_struct_aref
VALUE rb_struct_aref(VALUE, VALUE)
Definition: struct.c:671
rb_class_public_instance_methods
VALUE rb_class_public_instance_methods(int argc, VALUE *argv, VALUE mod)
Definition: class.c:1124
rb_singleton_class_attached
void rb_singleton_class_attached(VALUE klass, VALUE obj)
Attach a object to a singleton class.
Definition: class.c:289
rb_random_ulong_limited
unsigned long rb_random_ulong_limited(VALUE rnd, unsigned long limit)
Definition: random.c:962
rb_mutex_new
VALUE rb_mutex_new(void)
Definition: thread.c:4169
rb_cv_get
VALUE rb_cv_get(VALUE, const char *)
Definition: variable.c:2407
rb_default_rs
RUBY_EXTERN VALUE rb_default_rs
Definition: ripper.y:490
rb_str2inum
VALUE rb_str2inum(VALUE str, int base)
Definition: bignum.c:871
rb_thread_wait_for
void rb_thread_wait_for(struct timeval)
Definition: thread.c:1066
rb_check_to_int
VALUE rb_check_to_int(VALUE)
Definition: object.c:2437
rb_cvar_set
void rb_cvar_set(VALUE, ID, VALUE)
Definition: variable.c:2329
rb_module_new
VALUE rb_module_new(void)
Definition: class.c:596
rb_obj_is_kind_of
VALUE rb_obj_is_kind_of(VALUE, VALUE)
Definition: object.c:582
rb_method_basic_definition_p
int rb_method_basic_definition_p(VALUE, ID)
Definition: vm_method.c:1498
rb_exc_new3
VALUE rb_exc_new3(VALUE etype, VALUE str)
Definition: error.c:548
rb_frame_callee
ID rb_frame_callee(void)
Definition: eval.c:919
rb_str_sublen
long rb_str_sublen(VALUE, long)
Definition: string.c:1657
rb_hash_dup
VALUE rb_hash_dup(VALUE)
Definition: hash.c:240
rb_ary_plus
VALUE rb_ary_plus(VALUE x, VALUE y)
Definition: array.c:3353
rb_obj_singleton_methods
VALUE rb_obj_singleton_methods(int argc, VALUE *argv, VALUE obj)
Definition: class.c:1248
rb_proc_call
VALUE rb_proc_call(VALUE, VALUE)
Definition: proc.c:592
rb_hash
VALUE rb_hash(VALUE)
Definition: hash.c:66
rb_num_coerce_bit
VALUE rb_num_coerce_bit(VALUE, VALUE, ID)
Definition: numeric.c:3206
rb_str_associate
void rb_str_associate(VALUE, VALUE)
Definition: string.c:1422
rb_thread_sleep
void rb_thread_sleep(int)
Definition: thread.c:1115
rb_memhash
st_index_t rb_memhash(const void *ptr, long len)
Definition: random.c:1422
rb_mod_remove_const
VALUE rb_mod_remove_const(VALUE, VALUE)
Definition: variable.c:1916
rb_check_array_type
VALUE rb_check_array_type(VALUE ary)
Definition: array.c:557
rb_complex_raw
VALUE rb_complex_raw(VALUE x, VALUE y)
Definition: complex.c:1368
rb_exec_arg_init
VALUE rb_exec_arg_init(int argc, VALUE *argv, int accept_shell, struct rb_exec_arg *e)
Definition: process.c:2222
rb_error_arity
void rb_error_arity(int argc, int min, int max)
Definition: vm_insnhelper.c:164
rb_obj_respond_to
int rb_obj_respond_to(VALUE, ID, int)
Definition: vm_method.c:1525
rb_exec_recursive_paired
VALUE rb_exec_recursive_paired(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE, VALUE)
Definition: thread.c:4863
rb_struct_initialize
VALUE rb_struct_initialize(VALUE, VALUE)
Definition: struct.c:387
rb_str_dup_frozen
#define rb_str_dup_frozen
rb_fd_select
#define rb_fd_select(n, rfds, wfds, efds, timeout)
Definition: intern.h:339
rb_str_hash
st_index_t rb_str_hash(VALUE)
Definition: string.c:2244
rb_str_catf
VALUE rb_str_catf(VALUE str, const char *format,...)
Definition: sprintf.c:1310
rb_reg_match_pre
VALUE rb_reg_match_pre(VALUE)
Definition: re.c:1501
rb_str_new5
#define rb_str_new5
rb_f_exec
VALUE rb_f_exec(int, VALUE *)
Definition: process.c:2387
rb_mod_const_missing
VALUE rb_mod_const_missing(VALUE, VALUE)
Definition: variable.c:1518
st_index_t
st_data_t st_index_t
Definition: ripper.y:63
rb_thread_fd_select
int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *)
Definition: thread.c:3488
rb_io_flush
VALUE rb_io_flush(VALUE)
Definition: io.c:1470
rb_big_norm
VALUE rb_big_norm(VALUE x)
Definition: bignum.c:282
rb_fd_clr
#define rb_fd_clr(n, f)
Definition: intern.h:329
rb_ary_includes
VALUE rb_ary_includes(VALUE ary, VALUE item)
Definition: array.c:3666
rb_str_new_with_class
VALUE rb_str_new_with_class(VALUE, const char *, long)
rb_output_fs
VALUE rb_output_fs
Definition: ripper.y:488
rb_struct_aset
VALUE rb_struct_aset(VALUE, VALUE, VALUE)
Definition: struct.c:738
rb_const_remove
VALUE rb_const_remove(VALUE, ID)
Definition: variable.c:1938
rb_big_lshift
VALUE rb_big_lshift(VALUE x, VALUE y)
Definition: bignum.c:3544
rb_big_or
VALUE rb_big_or(VALUE xx, VALUE yy)
Definition: bignum.c:3375
rb_cv_set
void rb_cv_set(VALUE, const char *, VALUE)
Definition: variable.c:2397
rb_str_vcatf
VALUE rb_str_vcatf(VALUE, const char *, va_list)
Definition: sprintf.c:1283
rb_big2str0
VALUE rb_big2str0(VALUE x, int base, int trim)
Definition: bignum.c:1113
rb_uint2inum
VALUE rb_uint2inum(VALUE n)
Definition: bignum.c:330
rb_proc_times
#define rb_proc_times
Definition: process.c:6554
rb_make_backtrace
VALUE rb_make_backtrace(void)
Definition: vm_backtrace.c:772
rb_check_trusted_internal
#define rb_check_trusted_internal(obj)
Definition: intern.h:243
rb_get_alloc_func
rb_alloc_func_t rb_get_alloc_func(VALUE)
Definition: vm_method.c:488
ruby_default_signal
void ruby_default_signal(int)
Definition: signal.c:323
rb_respond_to
int rb_respond_to(VALUE, ID)
Definition: vm_method.c:1564
rb_num2fix
VALUE rb_num2fix(VALUE)
Definition: numeric.c:2175
rb_rs
RUBY_EXTERN VALUE rb_rs
Definition: ripper.y:489
rb_ary_sort_bang
VALUE rb_ary_sort_bang(VALUE ary)
Definition: array.c:2290
timespec
Definition: ripper.y:46
rb_big_pow
VALUE rb_big_pow(VALUE x, VALUE y)
Definition: bignum.c:3175
rb_cloexec_dup2
int rb_cloexec_dup2(int oldfd, int newfd)
Definition: io.c:232
rb_ary_dup
VALUE rb_ary_dup(VALUE ary)
Definition: array.c:1778
rb_backref_get
VALUE rb_backref_get(void)
Definition: vm.c:762
rb_apply
VALUE rb_apply(VALUE, ID, VALUE)
Calls a method.
Definition: vm_eval.c:745
st.h
rb_thread_fd_close
void rb_thread_fd_close(int)
Definition: thread.c:2078
rb_ary_concat
VALUE rb_ary_concat(VALUE x, VALUE y)
Definition: array.c:3382
rb_int2big
VALUE rb_int2big(SIGNED_VALUE n)
Definition: bignum.c:309
rb_exec_recursive
VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int), VALUE, VALUE)
Definition: thread.c:4852
rb_ary_join
VALUE rb_ary_join(VALUE ary, VALUE sep)
Definition: array.c:1886
RUBY_EXTERN
#define RUBY_EXTERN
Definition: defines.h:188
rb_ary_new2
VALUE rb_ary_new2(long capa)
Definition: array.c:417
rb_set_class_path_string
void rb_set_class_path_string(VALUE, VALUE, VALUE)
Definition: variable.c:285
rb_str_new
VALUE rb_str_new(const char *, long)
Definition: string.c:425
rb_is_class_id
int rb_is_class_id(ID id)
Definition: ripper.c:17052
rb_write_error
void rb_write_error(const char *)
Definition: io.c:7064
rb_str_drop_bytes
VALUE rb_str_drop_bytes(VALUE, long)
Definition: string.c:3347
rb_hash_delete_if
VALUE rb_hash_delete_if(VALUE)
Definition: hash.c:959
rb_frozen_class_p
void rb_frozen_class_p(VALUE klass)
Definition: eval.c:403
rb_struct_getmember
VALUE rb_struct_getmember(VALUE, ID)
Definition: struct.c:91
rb_range_beg_len
VALUE rb_range_beg_len(VALUE, long *, long *, long, int)
Definition: range.c:987
rb_thread_stop
VALUE rb_thread_stop(void)
Definition: thread.c:2291
SIGNED_VALUE
#define SIGNED_VALUE
rb_hash_new
VALUE rb_hash_new(void)
Definition: hash.c:234
rb_const_get_from
VALUE rb_const_get_from(VALUE, ID)
Definition: variable.c:1870
rb_obj_alloc
VALUE rb_obj_alloc(VALUE)
Definition: object.c:1721
rb_str_intern
VALUE rb_str_intern(VALUE)
Definition: string.c:7211
rb_cloexec_open
int rb_cloexec_open(const char *pathname, int flags, mode_t mode)
Definition: io.c:209
rb_gc_call_finalizer_at_exit
void rb_gc_call_finalizer_at_exit(void)
Definition: gc.c:1482
rb_sym_interned_p
int rb_sym_interned_p(VALUE)
rb_ary_reverse
VALUE rb_ary_reverse(VALUE ary)
Definition: array.c:2043
rb_io_close
VALUE rb_io_close(VALUE)
Definition: io.c:4221
rb_mod_included_modules
VALUE rb_mod_included_modules(VALUE mod)
Definition: class.c:854
rb_exec_arg_addopt
int rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val)
Definition: process.c:1775
rb_error_untrusted
void rb_error_untrusted(VALUE obj)
Definition: error.c:1985
rb_class_real
VALUE rb_class_real(VALUE)
Definition: object.c:171
rb_int2inum
VALUE rb_int2inum(SIGNED_VALUE n)
Definition: bignum.c:337
rb_define_class_id
VALUE rb_define_class_id(ID id, VALUE super)
Defines a new class.
Definition: class.c:452
e
BDIGIT e
Definition: bigdecimal.c:5085
rb_mark_hash
void rb_mark_hash(struct st_table *)
Definition: gc.c:2411
rb_fd_init
#define rb_fd_init(f)
Definition: intern.h:335
rb_str_hash_cmp
int rb_str_hash_cmp(VALUE, VALUE)
Definition: string.c:2254
rb_hash_aref
VALUE rb_hash_aref(VALUE, VALUE)
Definition: hash.c:560
rb_path_check
int rb_path_check(const char *)
Definition: file.c:5229
VALUE
unsigned long VALUE
Definition: ripper.y:104
rb_ivar_count
st_index_t rb_ivar_count(VALUE)
Definition: variable.c:1299
options
options
Definition: tcltklib.c:4481
rb_fd_dup
#define rb_fd_dup(d, s)
Definition: intern.h:332
rb_fix2str
VALUE rb_fix2str(VALUE, int)
Definition: numeric.c:2546
rb_class_get_superclass
VALUE rb_class_get_superclass(VALUE)
Definition: object.c:1823
rb_big_2comp
void rb_big_2comp(VALUE x)
Definition: bignum.c:225
rb_remove_method
void rb_remove_method(VALUE, const char *)
Definition: vm_method.c:693
rb_thread_create
VALUE rb_thread_create(VALUE(*)(ANYARGS), void *)
Definition: thread.c:722
rb_to_float
VALUE rb_to_float(VALUE)
Definition: object.c:2692
rb_thread_local_aset
VALUE rb_thread_local_aset(VALUE, ID, VALUE)
Definition: thread.c:2748
rb_f_abort
VALUE rb_f_abort(int, VALUE *)
Definition: process.c:3616
rb_big_rshift
VALUE rb_big_rshift(VALUE x, VALUE y)
Definition: bignum.c:3608
rb_ary_cmp
VALUE rb_ary_cmp(VALUE ary1, VALUE ary2)
Definition: array.c:3724
rb_time_timespec
struct timespec rb_time_timespec(VALUE time)
Definition: time.c:2515
rb_run_exec_options
int rb_run_exec_options(const struct rb_exec_arg *e, struct rb_exec_arg *s)
Definition: process.c:3012
rb_cstr_to_inum
VALUE rb_cstr_to_inum(const char *str, int base, int badcheck)
Definition: bignum.c:579
rb_ary_resurrect
VALUE rb_ary_resurrect(VALUE ary)
Definition: array.c:1787
rb_name_class
void rb_name_class(VALUE, ID)
Definition: variable.c:377
rb_memcicmp
int rb_memcicmp(const void *, const void *, long)
Definition: re.c:80
rb_ivar_foreach
void rb_ivar_foreach(VALUE, int(*)(ANYARGS), st_data_t)
Definition: variable.c:1271
rb_filesystem_str_new_cstr
VALUE rb_filesystem_str_new_cstr(const char *)
Definition: string.c:614
rb_exec_arg_fixup
void rb_exec_arg_fixup(struct rb_exec_arg *e)
Definition: process.c:2328
rb_exc_fatal
void rb_exc_fatal(VALUE mesg)
Definition: eval.c:536
rb_num_coerce_bin
VALUE rb_num_coerce_bin(VALUE, VALUE, ID)
Definition: numeric.c:269
rb_load_protect
void rb_load_protect(VALUE, int, int *)
Definition: load.c:646
time
VALUE time
Definition: tcltklib.c:1866
rb_check_string_type
VALUE rb_check_string_type(VALUE)
Definition: string.c:1508
rb_free_generic_ivar
void rb_free_generic_ivar(VALUE)
Definition: variable.c:1028
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:1364
rb_obj_call_init
void rb_obj_call_init(VALUE obj, int argc, VALUE *argv)
Definition: eval.c:1227
rb_class_new
VALUE rb_class_new(VALUE super)
Creates a new class.
Definition: class.c:117
match
static int match(VALUE str, VALUE pat, VALUE hash, int(*cb)(VALUE, VALUE))
Definition: date_parse.c:273
rb_quad_pack
void rb_quad_pack(char *buf, VALUE val)
Definition: bignum.c:539
rb_thread_fd_writable
int rb_thread_fd_writable(int)
Definition: thread.c:3437
dst
char * dst
Definition: tcltklib.c:9868
rb_clear_cache_by_class
void rb_clear_cache_by_class(VALUE)
Definition: vm_method.c:64
rb_invalid_str
void rb_invalid_str(const char *str, const char *type)
Definition: error.c:1139
rb_class_boot
VALUE rb_class_boot(VALUE super)
A utility function that wraps class_alloc.
Definition: class.c:76
rb_obj_instance_variables
#define rb_obj_instance_variables(object)
Definition: generator.h:21
rb_during_gc
int rb_during_gc(void)
Definition: gc.c:3117
rb_convert_type
VALUE rb_convert_type(VALUE, int, const char *, const char *)
Definition: object.c:2368
rb_check_convert_type
VALUE rb_check_convert_type(VALUE, int, const char *, const char *)
Definition: object.c:2383
rb_cstr2inum
VALUE rb_cstr2inum(const char *str, int base)
Definition: bignum.c:865
rb_str_free
void rb_str_free(VALUE)
Definition: string.c:830
rb_reset_random_seed
void rb_reset_random_seed(void)
Definition: random.c:1443
rb_spawn_err
rb_pid_t rb_spawn_err(int, VALUE *, char *, size_t)
Definition: process.c:3714
rb_cmperr
void rb_cmperr(VALUE x, VALUE y)
Definition: compar.c:19
rb_dir_getwd
VALUE rb_dir_getwd(void)
Definition: dir.c:878
rb_usascii_str_new_cstr
VALUE rb_usascii_str_new_cstr(const char *)
rb_io_fdopen
VALUE rb_io_fdopen(int, int, const char *)
Definition: io.c:7126
rb_struct_alloc_noinit
VALUE rb_struct_alloc_noinit(VALUE)
Definition: struct.c:223
rb_mod_module_exec
VALUE rb_mod_module_exec(int, VALUE *, VALUE)
Definition: vm_eval.c:1695
rb_ary_aref
VALUE rb_ary_aref(int argc, VALUE *argv, VALUE ary)
Definition: array.c:1163
rb_class_superclass
VALUE rb_class_superclass(VALUE)
Definition: object.c:1805
rb_io_addstr
VALUE rb_io_addstr(VALUE, VALUE)
Definition: io.c:1437
rb_gc_enable
VALUE rb_gc_enable(void)
Definition: gc.c:3261
rb_str_plus
VALUE rb_str_plus(VALUE, VALUE)
Definition: string.c:1236
rb_hash_tbl
struct st_table * rb_hash_tbl(VALUE)
Definition: hash.c:266
rb_hash_uint
#define rb_hash_uint(h, i)
rb_time_timeval
struct timeval rb_time_timeval(VALUE)
Definition: time.c:2498
rb_alias_variable
void rb_alias_variable(ID, ID)
Definition: variable.c:863
rb_io_write
VALUE rb_io_write(VALUE, VALUE)
Definition: io.c:1415
rb_inspect
VALUE rb_inspect(VALUE)
Definition: object.c:402
rb_thread_interrupted
int rb_thread_interrupted(VALUE thval)
Definition: thread.c:1107
rb_Array
VALUE rb_Array(VALUE)
Definition: object.c:2766
rb_autoload
void rb_autoload(VALUE, ID, const char *)
Definition: variable.c:1604
len
size_t len
Definition: tcltklib.c:3568
rb_str_set_len
void rb_str_set_len(VALUE, long)
Definition: string.c:1837