Ruby 2.0.0p353(2013-11-22revision43784)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

internal.h
Go to the documentation of this file.
1 /**********************************************************************
2
3 internal.h -
4
5 $Author$
6 created at: Tue May 17 11:42:20 JST 2011
7
8 Copyright (C) 2011 Yukihiro Matsumoto
9
10 **********************************************************************/
11
12 #ifndef RUBY_INTERNAL_H
13 #define RUBY_INTERNAL_H 1
14
15 #if defined(__cplusplus)
16 extern "C" {
17 #if 0
18 } /* satisfy cc-mode */
19 #endif
20 #endif
21
22 #define MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, min, max) ( \
23 (a) == 0 ? 0 : \
24 (a) == -1 ? (b) < -(max) : \
25 (a) > 0 ? \
26 ((b) > 0 ? (max) / (a) < (b) : (min) / (a) > (b)) : \
27 ((b) > 0 ? (min) / (a) < (b) : (max) / (a) > (b)))
28 #define MUL_OVERFLOW_FIXNUM_P(a, b) MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, FIXNUM_MIN, FIXNUM_MAX)
29 #define MUL_OVERFLOW_LONG_P(a, b) MUL_OVERFLOW_SIGNED_INTEGER_P(a, b, LONG_MIN, LONG_MAX)
30
31 struct rb_deprecated_classext_struct {
32 char conflict[sizeof(VALUE) * 3];
33 };
34
35 struct rb_classext_struct {
36 VALUE super;
37 struct st_table *iv_tbl;
38 struct st_table *const_tbl;
39 VALUE origin;
40 VALUE refined_class;
41 rb_alloc_func_t allocator;
42 };
43
44 #undef RCLASS_SUPER
45 #define RCLASS_EXT(c) (RCLASS(c)->ptr)
46 #define RCLASS_SUPER(c) (RCLASS_EXT(c)->super)
47 #define RCLASS_IV_TBL(c) (RCLASS_EXT(c)->iv_tbl)
48 #define RCLASS_CONST_TBL(c) (RCLASS_EXT(c)->const_tbl)
49 #define RCLASS_M_TBL(c) (RCLASS(c)->m_tbl)
50 #define RCLASS_IV_INDEX_TBL(c) (RCLASS(c)->iv_index_tbl)
51 #define RCLASS_ORIGIN(c) (RCLASS_EXT(c)->origin)
52 #define RCLASS_REFINED_CLASS(c) (RCLASS_EXT(c)->refined_class)
53
54 struct vtm; /* defined by timev.h */
55
56 /* array.c */
57 VALUE rb_ary_last(int, VALUE *, VALUE);
58 void rb_ary_set_len(VALUE, long);
59 VALUE rb_ary_cat(VALUE, const VALUE *, long);
60 void rb_ary_delete_same(VALUE, VALUE);
61
62 /* bignum.c */
63 VALUE rb_big_fdiv(VALUE x, VALUE y);
64 VALUE rb_big_uminus(VALUE x);
65 VALUE rb_integer_float_cmp(VALUE x, VALUE y);
66 VALUE rb_integer_float_eq(VALUE x, VALUE y);
67
68 /* class.c */
69 VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj);
70 VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj);
71 VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj);
72 VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj);
73 int rb_obj_basic_to_s_p(VALUE);
74 VALUE rb_special_singleton_class(VALUE);
75 VALUE rb_singleton_class_clone_and_attach(VALUE obj, VALUE attach);
76 void Init_class_hierarchy(void);
77
78 /* compar.c */
79 VALUE rb_invcmp(VALUE, VALUE);
80
81 /* compile.c */
82 int rb_dvar_defined(ID);
83 int rb_local_defined(ID);
84 int rb_parse_in_eval(void);
85 int rb_parse_in_main(void);
86 const char * rb_insns_name(int i);
87 VALUE rb_insns_name_array(void);
88
89 /* cont.c */
90 VALUE rb_obj_is_fiber(VALUE);
91 void rb_fiber_reset_root_local_storage(VALUE);
92
93 /* debug.c */
94 PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
95
96 /* dmyext.c */
97 void Init_ext(void);
98
99 /* encoding.c */
100 ID rb_id_encoding(void);
101
102 /* encoding.c */
103 void rb_gc_mark_encodings(void);
104
105 /* error.c */
106 NORETURN(PRINTF_ARGS(void rb_compile_bug(const char*, int, const char*, ...), 3, 4));
107 VALUE rb_check_backtrace(VALUE);
108 NORETURN(void rb_async_bug_errno(const char *,int));
109 const char *rb_builtin_type_name(int t);
110 const char *rb_builtin_class_name(VALUE x);
111
112 /* eval.c */
113 VALUE rb_refinement_module_get_refined_class(VALUE module);
114
115 /* eval_error.c */
116 void ruby_error_print(void);
117 VALUE rb_get_backtrace(VALUE info);
118
119 /* eval_jump.c */
120 void rb_call_end_proc(VALUE data);
121 void rb_mark_end_proc(void);
122
123 /* file.c */
124 VALUE rb_home_dir(const char *user, VALUE result);
125 VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
126 void rb_file_const(const char*, VALUE);
127 int rb_file_load_ok(const char *);
128 VALUE rb_file_expand_path_fast(VALUE, VALUE);
129 VALUE rb_file_expand_path_internal(VALUE, VALUE, int, int, VALUE);
130 VALUE rb_get_path_check_to_string(VALUE, int);
131 VALUE rb_get_path_check_convert(VALUE, VALUE, int);
132 void Init_File(void);
133
134 #ifdef _WIN32
135 /* file.c, win32/file.c */
136 void rb_w32_init_file(void);
137 #endif
138
139 /* gc.c */
140 void Init_heap(void);
141 void *ruby_mimmalloc(size_t size);
142
143 /* inits.c */
144 void rb_call_inits(void);
145
146 /* io.c */
147 const char *ruby_get_inplace_mode(void);
148 void ruby_set_inplace_mode(const char *);
149 ssize_t rb_io_bufread(VALUE io, void *buf, size_t size);
150 void rb_stdio_set_default_encoding(void);
151 void rb_write_error_str(VALUE mesg);
152
153 /* iseq.c */
154 VALUE rb_iseq_clone(VALUE iseqval, VALUE newcbase);
155
156 /* load.c */
157 VALUE rb_get_load_path(void);
158 VALUE rb_get_expanded_load_path(void);
159 NORETURN(void rb_load_fail(VALUE, const char*));
160
161 /* math.c */
162 VALUE rb_math_atan2(VALUE, VALUE);
163 VALUE rb_math_cos(VALUE);
164 VALUE rb_math_cosh(VALUE);
165 VALUE rb_math_exp(VALUE);
166 VALUE rb_math_hypot(VALUE, VALUE);
167 VALUE rb_math_log(int argc, VALUE *argv);
168 VALUE rb_math_sin(VALUE);
169 VALUE rb_math_sinh(VALUE);
170 VALUE rb_math_sqrt(VALUE);
171
172 /* newline.c */
173 void Init_newline(void);
174
175 /* numeric.c */
176 int rb_num_to_uint(VALUE val, unsigned int *ret);
177 VALUE num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl);
178 int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl);
179 double ruby_float_mod(double x, double y);
180 int rb_num_negative_p(VALUE);
181
182 /* object.c */
183 VALUE rb_obj_equal(VALUE obj1, VALUE obj2);
184
185 /* parse.y */
186 VALUE rb_parser_get_yydebug(VALUE);
187 VALUE rb_parser_set_yydebug(VALUE, VALUE);
188 int rb_is_const_name(VALUE name);
189 int rb_is_class_name(VALUE name);
190 int rb_is_global_name(VALUE name);
191 int rb_is_instance_name(VALUE name);
192 int rb_is_attrset_name(VALUE name);
193 int rb_is_local_name(VALUE name);
194 int rb_is_method_name(VALUE name);
195 int rb_is_junk_name(VALUE name);
196 void rb_gc_mark_parser(void);
197 void rb_gc_mark_symbols(void);
198
199 /* proc.c */
200 VALUE rb_proc_location(VALUE self);
201 st_index_t rb_hash_proc(st_index_t hash, VALUE proc);
202
203 /* process.c */
204 #define RB_MAX_GROUPS (65536)
205
206 struct rb_execarg {
207 int use_shell;
208 union {
209 struct {
210 VALUE shell_script;
211 } sh;
212 struct {
213 VALUE command_name;
214 VALUE command_abspath; /* full path string or nil */
215 VALUE argv_str;
216 VALUE argv_buf;
217 } cmd;
218 } invoke;
219 VALUE redirect_fds;
220 VALUE envp_str;
221 VALUE envp_buf;
222 VALUE dup2_tmpbuf;
223 unsigned pgroup_given : 1;
224 unsigned umask_given : 1;
225 unsigned unsetenv_others_given : 1;
226 unsigned unsetenv_others_do : 1;
227 unsigned close_others_given : 1;
228 unsigned close_others_do : 1;
229 unsigned chdir_given : 1;
230 unsigned new_pgroup_given : 1;
231 unsigned new_pgroup_flag : 1;
232 unsigned uid_given : 1;
233 unsigned gid_given : 1;
234 rb_pid_t pgroup_pgid; /* asis(-1), new pgroup(0), specified pgroup (0<V). */
235 VALUE rlimit_limits; /* Qfalse or [[rtype, softlim, hardlim], ...] */
236 mode_t umask_mask;
237 rb_uid_t uid;
238 rb_gid_t gid;
239 VALUE fd_dup2;
240 VALUE fd_close;
241 VALUE fd_open;
242 VALUE fd_dup2_child;
243 int close_others_maxhint;
244 VALUE env_modification; /* Qfalse or [[k1,v1], ...] */
245 VALUE chdir_dir;
246 };
247
248 /* argv_str contains extra two elements.
249 * The beginning one is for /bin/sh used by exec_with_sh.
250 * The last one for terminating NULL used by execve.
251 * See rb_exec_fillarg() in process.c. */
252 #define ARGVSTR2ARGC(argv_str) (RSTRING_LEN(argv_str) / sizeof(char *) - 2)
253 #define ARGVSTR2ARGV(argv_str) ((char **)RSTRING_PTR(argv_str) + 1)
254
255 rb_pid_t rb_fork_ruby(int *status);
256 void rb_last_status_clear(void);
257
258 /* rational.c */
259 VALUE rb_lcm(VALUE x, VALUE y);
260 VALUE rb_rational_reciprocal(VALUE x);
261
262 /* re.c */
263 VALUE rb_reg_compile(VALUE str, int options, const char *sourcefile, int sourceline);
264 VALUE rb_reg_check_preprocess(VALUE);
265
266 /* signal.c */
267 int rb_get_next_signal(void);
268 int rb_sigaltstack_size(void);
269
270 /* strftime.c */
271 #ifdef RUBY_ENCODING_H
272 size_t rb_strftime_timespec(char *s, size_t maxsize, const char *format, rb_encoding *enc,
273 const struct vtm *vtm, struct timespec *ts, int gmt);
274 size_t rb_strftime(char *s, size_t maxsize, const char *format, rb_encoding *enc,
275 const struct vtm *vtm, VALUE timev, int gmt);
276 #endif
277
278 /* string.c */
279 int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
280 int rb_str_symname_p(VALUE);
281 VALUE rb_str_quote_unprintable(VALUE);
282 VALUE rb_id_quote_unprintable(ID);
283 #define QUOTE(str) rb_str_quote_unprintable(str)
284 #define QUOTE_ID(id) rb_id_quote_unprintable(id)
285 VALUE rb_str_locktmp_ensure(VALUE str, VALUE (*func)(VALUE), VALUE arg);
286
287 /* struct.c */
288 VALUE rb_struct_init_copy(VALUE copy, VALUE s);
289
290 /* time.c */
291 struct timeval rb_time_timeval(VALUE);
292
293 /* thread.c */
294 VALUE rb_obj_is_mutex(VALUE obj);
295 VALUE rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg);
296 void rb_thread_execute_interrupts(VALUE th);
297 void rb_clear_trace_func(void);
298 VALUE rb_get_coverages(void);
299 VALUE rb_thread_shield_new(void);
300 VALUE rb_thread_shield_wait(VALUE self);
301 VALUE rb_thread_shield_release(VALUE self);
302 VALUE rb_thread_shield_destroy(VALUE self);
303 void rb_mutex_allow_trap(VALUE self, int val);
304 VALUE rb_uninterruptible(VALUE (*b_proc)(ANYARGS), VALUE data);
305 VALUE rb_mutex_owned_p(VALUE self);
306
307 /* thread_pthread.c, thread_win32.c */
308 void Init_native_thread(void);
309
310 /* vm.c */
311 VALUE rb_obj_is_thread(VALUE obj);
312 void rb_vm_mark(void *ptr);
313 void Init_BareVM(void);
314 VALUE rb_vm_top_self(void);
315 void rb_thread_recycle_stack_release(VALUE *);
316 void rb_vm_change_state(void);
317 void rb_vm_inc_const_missing_count(void);
318 void rb_thread_mark(void *th);
319 const void **rb_vm_get_insns_address_table(void);
320 VALUE rb_sourcefilename(void);
321
322 /* vm_dump.c */
323 void rb_vm_bugreport(void);
324
325 /* vm_eval.c */
326 void Init_vm_eval(void);
327 VALUE rb_current_realfilepath(void);
328 VALUE rb_check_block_call(VALUE, ID, int, VALUE *, VALUE (*)(ANYARGS), VALUE);
329 typedef void rb_check_funcall_hook(int, VALUE, ID, int, VALUE *, VALUE);
330 VALUE rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, VALUE *argv,
331 rb_check_funcall_hook *hook, VALUE arg);
332
333 /* vm_method.c */
334 void Init_eval_method(void);
335 int rb_method_defined_by(VALUE obj, ID mid, VALUE (*cfunc)(ANYARGS));
336
337 /* miniprelude.c, prelude.c */
338 void Init_prelude(void);
339
340 /* vm_backtrace.c */
341 void Init_vm_backtrace(void);
342 VALUE vm_thread_backtrace(int argc, VALUE *argv, VALUE thval);
343 VALUE vm_thread_backtrace_locations(int argc, VALUE *argv, VALUE thval);
344
345 VALUE rb_make_backtrace(void);
346 void rb_backtrace_print_as_bugreport(void);
347 int rb_backtrace_p(VALUE obj);
348 VALUE rb_backtrace_to_str_ary(VALUE obj);
349 VALUE rb_vm_backtrace_object();
350
351 #if defined __GNUC__ && __GNUC__ >= 4
352 #pragma GCC visibility push(default)
353 #endif
354 const char *rb_objspace_data_type_name(VALUE obj);
355
356 /* Temporary. This API will be removed (renamed). */
357 VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd);
358
359 /* io.c */
360 void rb_maygvl_fd_fix_cloexec(int fd);
361
362 /* process.c */
363 int rb_exec_async_signal_safe(const struct rb_execarg *e, char *errmsg, size_t errmsg_buflen);
364 rb_pid_t rb_fork_async_signal_safe(int *status, int (*chfunc)(void*, char *, size_t), void *charg, VALUE fds, char *errmsg, size_t errmsg_buflen);
365 VALUE rb_execarg_new(int argc, VALUE *argv, int accept_shell);
366 struct rb_execarg *rb_execarg_get(VALUE execarg_obj); /* dangerous. needs GC guard. */
367 VALUE rb_execarg_init(int argc, VALUE *argv, int accept_shell, VALUE execarg_obj);
368 int rb_execarg_addopt(VALUE execarg_obj, VALUE key, VALUE val);
369 void rb_execarg_fixup(VALUE execarg_obj);
370 int rb_execarg_run_options(const struct rb_execarg *e, struct rb_execarg *s, char* errmsg, size_t errmsg_buflen);
371 VALUE rb_execarg_extract_options(VALUE execarg_obj, VALUE opthash);
372 void rb_execarg_setenv(VALUE execarg_obj, VALUE env);
373
374 /* variable.c */
375 void rb_gc_mark_global_tbl(void);
376 void rb_mark_generic_ivar(VALUE);
377 void rb_mark_generic_ivar_tbl(void);
378
379 #if defined __GNUC__ && __GNUC__ >= 4
380 #pragma GCC visibility pop
381 #endif
382
383 #if defined(__cplusplus)
384 #if 0
385 { /* satisfy cc-mode */
386 #endif
387 } /* extern "C" { */
388 #endif
389
390 #endif /* RUBY_INTERNAL_H */
rb_execarg::fd_dup2
VALUE fd_dup2
Definition: ripper.y:240
data
VALUE data
Definition: tcltklib.c:3368
rb_builtin_class_name
const char * rb_builtin_class_name(VALUE x)
Definition: error.c:414
rb_w32_init_file
void rb_w32_init_file(void)
Definition: file.c:711
rb_str_locktmp_ensure
VALUE rb_str_locktmp_ensure(VALUE str, VALUE(*func)(VALUE), VALUE arg)
Definition: string.c:1830
rb_home_dir
VALUE rb_home_dir(const char *user, VALUE result)
Definition: file.c:2888
rb_get_coverages
VALUE rb_get_coverages(void)
Definition: thread.c:5162
rb_file_const
void rb_file_const(const char *, VALUE)
Definition: file.c:5144
rb_backtrace_print_as_bugreport
void rb_backtrace_print_as_bugreport(void)
Definition: vm_backtrace.c:750
rb_alloc_func_t
VALUE(* rb_alloc_func_t)(VALUE)
Definition: ripper.y:352
rb_is_class_name
int rb_is_class_name(VALUE name)
Definition: ripper.c:17180
th
static VALUE VALUE th
Definition: tcltklib.c:2948
rb_fork_async_signal_safe
rb_pid_t rb_fork_async_signal_safe(int *status, int(*chfunc)(void *, char *, size_t), void *charg, VALUE fds, char *errmsg, size_t errmsg_buflen)
st_table
Definition: ripper.y:77
rb_proc_location
VALUE rb_proc_location(VALUE self)
Definition: proc.c:758
rb_obj_private_methods
VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj)
Definition: class.c:1194
rb_get_expanded_load_path
VALUE rb_get_expanded_load_path(void)
Definition: load.c:111
rb_mark_generic_ivar
void rb_mark_generic_ivar(VALUE)
Definition: variable.c:990
Init_vm_backtrace
void Init_vm_backtrace(void)
Definition: vm_backtrace.c:946
rb_execarg_run_options
int rb_execarg_run_options(const struct rb_execarg *e, struct rb_execarg *s, char *errmsg, size_t errmsg_buflen)
Definition: process.c:2872
rb_blocking_function_t
VALUE rb_blocking_function_t(void *)
Definition: ripper.y:836
rb_execarg::umask_given
unsigned umask_given
Definition: ripper.y:225
rb_math_hypot
VALUE rb_math_hypot(VALUE, VALUE)
rb_file_load_ok
int rb_file_load_ok(const char *)
Definition: file.c:5260
rb_str_quote_unprintable
VALUE rb_str_quote_unprintable(VALUE)
Definition: string.c:7828
proc
VALUE proc
Definition: tcltklib.c:2959
func
SSL_METHOD *(* func)(void)
Definition: ossl_ssl.c:108
rb_execarg::rlimit_limits
VALUE rlimit_limits
Definition: ripper.y:236
ruby_mimmalloc
void * ruby_mimmalloc(size_t size)
Definition: gc.c:3662
i
ssize_t i
Definition: bigdecimal.c:5655
rb_execarg::uid_given
unsigned uid_given
Definition: ripper.y:233
rb_classext_struct::origin
VALUE origin
Definition: ripper.y:40
rb_fiber_reset_root_local_storage
void rb_fiber_reset_root_local_storage(VALUE thval)
Definition: cont.c:1400
rb_check_funcall_hook
void rb_check_funcall_hook(int, VALUE, ID, int, VALUE *, VALUE)
Definition: ripper.y:330
info
Tcl_CmdInfo * info
Definition: tcltklib.c:1463
rb_insns_name_array
VALUE rb_insns_name_array(void)
Definition: compile.c:5481
rb_builtin_type_name
const char * rb_builtin_type_name(int t)
Definition: error.c:403
rb_vm_get_insns_address_table
const void ** rb_vm_get_insns_address_table(void)
Definition: vm_exec.c:107
rb_refinement_module_get_refined_class
VALUE rb_refinement_module_get_refined_class(VALUE module)
Definition: eval.c:1129
rb_execarg::unsetenv_others_given
unsigned unsetenv_others_given
Definition: ripper.y:226
rb_gc_mark_global_tbl
void rb_gc_mark_global_tbl(void)
Definition: variable.c:552
ret
int ret
Definition: tcltklib.c:280
ruby_debug_printf
void ruby_debug_printf(const char *format,...)
Definition: debug.c:86
status
int status
Definition: tcltklib.c:2197
rb_ary_last
VALUE rb_ary_last(int argc, VALUE *argv, VALUE ary)
Definition: array.c:1258
rb_num_to_uint
int rb_num_to_uint(VALUE val, unsigned int *ret)
Definition: numeric.c:122
rb_execarg::close_others_maxhint
int close_others_maxhint
Definition: ripper.y:244
rb_vm_inc_const_missing_count
void rb_vm_inc_const_missing_count(void)
Definition: vm.c:128
rb_execarg_extract_options
VALUE rb_execarg_extract_options(VALUE execarg_obj, VALUE opthash)
Definition: process.c:1897
rb_thread_mark
void rb_thread_mark(void *th)
Definition: vm.c:1788
enc
VALUE enc
Definition: tcltklib.c:10311
rb_file_expand_path_fast
VALUE rb_file_expand_path_fast(VALUE, VALUE)
Definition: file.c:3321
PRINTF_ARGS
#define PRINTF_ARGS(decl, string_index, first_to_check)
path
gz path
Definition: zlib.c:2279
Init_BareVM
void Init_BareVM(void)
Definition: vm.c:2394
Init_prelude
void Init_prelude(void)
rb_call_inits
void rb_call_inits(void)
Definition: inits.c:18
rb_reg_compile
VALUE rb_reg_compile(VALUE str, int options, const char *sourcefile, int sourceline)
Definition: re.c:2530
rb_async_bug_errno
void rb_async_bug_errno(const char *mesg, int errno_arg)
Definition: error.c:334
rb_get_load_path
VALUE rb_get_load_path(void)
Definition: load.c:34
rb_mark_generic_ivar_tbl
void rb_mark_generic_ivar_tbl(void)
Definition: variable.c:1020
Init_class_hierarchy
void Init_class_hierarchy(void)
Definition: class.c:401
rb_big_fdiv
VALUE rb_big_fdiv(VALUE x, VALUE y)
Definition: bignum.c:3123
rb_math_cosh
VALUE rb_math_cosh(VALUE)
rb_integer_float_cmp
VALUE rb_integer_float_cmp(VALUE x, VALUE y)
Definition: bignum.c:1459
rb_execarg_new
VALUE rb_execarg_new(int argc, VALUE *argv, int accept_shell)
Definition: process.c:2190
rb_num_negative_p
int rb_num_negative_p(VALUE)
Definition: numeric.c:189
rb_backtrace_to_str_ary
VALUE rb_backtrace_to_str_ary(VALUE obj)
Definition: vm_backtrace.c:586
Init_ext
void Init_ext(void)
Definition: dmyext.c:2
rb_execarg::env_modification
VALUE env_modification
Definition: ripper.y:245
rb_last_status_clear
void rb_last_status_clear(void)
Definition: process.c:285
rb_math_sqrt
VALUE rb_math_sqrt(VALUE)
rb_id_encoding
ID rb_id_encoding(void)
Definition: encoding.c:683
rb_vm_change_state
void rb_vm_change_state(void)
Definition: vm.c:103
rb_load_fail
void rb_load_fail(VALUE path, const char *err)
Definition: error.c:1963
rb_lcm
VALUE rb_lcm(VALUE x, VALUE y)
Definition: rational.c:1715
rb_execarg_init
VALUE rb_execarg_init(int argc, VALUE *argv, int accept_shell, VALUE execarg_obj)
Definition: process.c:2209
rb_execarg::envp_str
VALUE envp_str
Definition: ripper.y:221
rb_obj_is_thread
VALUE rb_obj_is_thread(VALUE obj)
Definition: vm.c:1928
rb_objspace_data_type_name
const char * rb_objspace_data_type_name(VALUE obj)
Definition: gc.c:749
ruby_float_mod
double ruby_float_mod(double x, double y)
Definition: numeric.c:903
rb_parser_set_yydebug
VALUE rb_parser_set_yydebug(VALUE self, VALUE flag)
Definition: ripper.c:17440
rb_deprecated_classext_struct::conflict
char conflict[sizeof(VALUE)*3]
Definition: ripper.y:33
vm_thread_backtrace
VALUE vm_thread_backtrace(int argc, VALUE *argv, VALUE thval)
Definition: vm_backtrace.c:861
NORETURN
#define NORETURN(x)
Definition: ruby.h:31
rb_execarg::unsetenv_others_do
unsigned unsetenv_others_do
Definition: ripper.y:227
hash
VALUE hash
Definition: tkutil.c:267
rb_is_method_name
int rb_is_method_name(VALUE name)
Definition: ripper.c:17210
rb_mark_end_proc
void rb_mark_end_proc(void)
Definition: eval_jump.c:80
rb_check_funcall_with_hook
VALUE rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, VALUE *argv, rb_check_funcall_hook *hook, VALUE arg)
Definition: vm_eval.c:427
rb_execarg::gid
rb_gid_t gid
Definition: ripper.y:239
rb_str_buf_cat_escaped_char
int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p)
Definition: string.c:4463
rb_classext_struct::refined_class
VALUE refined_class
Definition: ripper.y:41
rb_compile_bug
void rb_compile_bug(const char *file, int line, const char *fmt,...)
Definition: error.c:358
rb_insns_name
const char * rb_insns_name(int i)
Definition: compile.c:5475
Init_heap
void Init_heap(void)
Definition: gc.c:1039
rb_ary_cat
VALUE rb_ary_cat(VALUE ary, const VALUE *ptr, long len)
Definition: array.c:846
val
#define val
Definition: tcltklib.c:1949
rb_special_singleton_class
VALUE rb_special_singleton_class(VALUE obj)
Definition: class.c:1391
rb_str_symname_p
int rb_str_symname_p(VALUE)
Definition: string.c:7809
ruby_set_inplace_mode
void ruby_set_inplace_mode(const char *)
Definition: io.c:11418
str
static VALUE char * str
Definition: tcltklib.c:3547
vtm
Definition: timev.h:4
rb_get_path_check_convert
VALUE rb_get_path_check_convert(VALUE, VALUE, int)
Definition: file.c:197
rb_execarg_get
struct rb_execarg * rb_execarg_get(VALUE execarg_obj)
Definition: process.c:2201
rb_thread_io_blocking_region
VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd)
Definition: thread.c:1331
ID
unsigned long ID
Definition: ripper.y:105
ruby_float_step
int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl)
Definition: numeric.c:1788
rb_execarg::uid
rb_uid_t uid
Definition: ripper.y:238
obj
static VALUE VALUE obj
Definition: tcltklib.c:3158
rb_get_backtrace
VALUE rb_get_backtrace(VALUE info)
Definition: eval_error.c:53
rb_math_exp
VALUE rb_math_exp(VALUE)
rb_vm_mark
void rb_vm_mark(void *ptr)
Definition: vm.c:1549
rb_execarg::command_name
VALUE command_name
Definition: ripper.y:214
rb_execarg::pgroup_pgid
rb_pid_t pgroup_pgid
Definition: ripper.y:235
rb_execarg::command_abspath
VALUE command_abspath
Definition: ripper.y:215
Init_newline
void Init_newline(void)
Definition: newline.c:183
ANYARGS
#define ANYARGS
rb_thread_recycle_stack_release
void rb_thread_recycle_stack_release(VALUE *)
Definition: vm.c:1766
rb_thread_shield_wait
VALUE rb_thread_shield_wait(VALUE self)
Definition: thread.c:4606
rb_vm_bugreport
void rb_vm_bugreport(void)
Definition: vm_dump.c:609
rb_math_sin
VALUE rb_math_sin(VALUE)
rb_mutex_owned_p
VALUE rb_mutex_owned_p(VALUE self)
Definition: thread.c:4367
rb_thread_shield_release
VALUE rb_thread_shield_release(VALUE self)
Definition: thread.c:4626
buf
unsigned char buf[MIME_BUF_SIZE]
Definition: nkf.c:4308
rb_io_bufread
ssize_t rb_io_bufread(VALUE io, void *buf, size_t size)
Definition: io.c:2055
rb_suppress_tracing
VALUE rb_suppress_tracing(VALUE(*func)(VALUE), VALUE arg)
Definition: vm_trace.c:344
rb_maygvl_fd_fix_cloexec
void rb_maygvl_fd_fix_cloexec(int fd)
Definition: io.c:179
rb_obj_protected_methods
VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj)
Definition: class.c:1179
rb_parse_in_main
int rb_parse_in_main(void)
Definition: compile.c:5882
Init_File
void Init_File(void)
Definition: file.c:5488
rb_gc_mark_symbols
void rb_gc_mark_symbols(void)
Definition: ripper.c:16590
key
static int VALUE key
Definition: tkutil.c:265
rb_vm_top_self
VALUE rb_vm_top_self()
Definition: vm.c:2427
rb_obj_basic_to_s_p
int rb_obj_basic_to_s_p(VALUE obj)
Definition: class.c:1558
rb_call_end_proc
void rb_call_end_proc(VALUE data)
Definition: eval_jump.c:11
rb_rational_reciprocal
VALUE rb_rational_reciprocal(VALUE x)
Definition: rational.c:1679
argv
VALUE * argv
Definition: tcltklib.c:1971
rb_strftime_timespec
size_t rb_strftime_timespec(char *s, size_t maxsize, const char *format, rb_encoding *enc, const struct vtm *vtm, struct timespec *ts, int gmt)
Definition: strftime.c:836
rb_dvar_defined
int rb_dvar_defined(ID id)
Definition: compile.c:5832
rb_thread_shield_destroy
VALUE rb_thread_shield_destroy(VALUE self)
Definition: thread.c:4637
rb_execarg::close_others_given
unsigned close_others_given
Definition: ripper.y:228
timeval
Definition: ossl_asn1.c:16
rb_math_log
VALUE rb_math_log(int argc, VALUE *argv)
Definition: math.c:741
result
q result
Definition: tcltklib.c:7070
chfunc
static int chfunc(void *data, char *errbuf, size_t errbuf_len)
Definition: pty.c:86
rb_is_attrset_name
int rb_is_attrset_name(VALUE name)
Definition: ripper.c:17198
s
register char * s
Definition: os2.c:56
rb_execarg::argv_str
VALUE argv_str
Definition: ripper.y:216
rb_obj_is_mutex
VALUE rb_obj_is_mutex(VALUE obj)
Definition: thread.c:4134
rb_execarg::redirect_fds
VALUE redirect_fds
Definition: ripper.y:220
rb_execarg::close_others_do
unsigned close_others_do
Definition: ripper.y:229
rb_execarg
Definition: ripper.y:207
rb_execarg::cmd
struct rb_execarg::@77::@79 cmd
rb_execarg::invoke
union rb_execarg::@77 invoke
rb_execarg::new_pgroup_given
unsigned new_pgroup_given
Definition: ripper.y:231
rb_math_cos
VALUE rb_math_cos(VALUE)
rb_exec_async_signal_safe
int rb_exec_async_signal_safe(const struct rb_execarg *e, char *errmsg, size_t errmsg_buflen)
Definition: process.c:3019
mode_t
#define mode_t
Definition: win32.h:100
rb_mutex_allow_trap
void rb_mutex_allow_trap(VALUE self, int val)
Definition: thread.c:4535
rb_obj_public_methods
VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj)
Definition: class.c:1209
vm_thread_backtrace_locations
VALUE vm_thread_backtrace_locations(int argc, VALUE *argv, VALUE thval)
Definition: vm_backtrace.c:867
argc
int argc
Definition: tcltklib.c:1970
rb_classext_struct::super
VALUE super
Definition: ripper.y:37
rb_execarg::argv_buf
VALUE argv_buf
Definition: ripper.y:217
rb_check_block_call
VALUE rb_check_block_call(VALUE, ID, int, VALUE *, VALUE(*)(ANYARGS), VALUE)
Definition: vm_eval.c:1153
rb_execarg::umask_mask
mode_t umask_mask
Definition: ripper.y:237
rb_execarg::pgroup_given
unsigned pgroup_given
Definition: ripper.y:224
rb_reg_check_preprocess
VALUE rb_reg_check_preprocess(VALUE)
Definition: re.c:2304
rb_execarg::fd_dup2_child
VALUE fd_dup2_child
Definition: ripper.y:243
rb_execarg::sh
struct rb_execarg::@77::@78 sh
rb_id_quote_unprintable
VALUE rb_id_quote_unprintable(ID)
Definition: string.c:7849
ptr
return ptr
Definition: tcltklib.c:784
ruby_error_print
void ruby_error_print(void)
Definition: eval_error.c:200
c
VpDivd * c
Definition: bigdecimal.c:1205
rb_deprecated_classext_struct
Definition: ripper.y:32
rb_execarg::fd_open
VALUE fd_open
Definition: ripper.y:242
rb_obj_equal
VALUE rb_obj_equal(VALUE obj1, VALUE obj2)
Definition: object.c:109
rb_is_const_name
int rb_is_const_name(VALUE name)
Definition: ripper.c:17174
rb_is_local_name
int rb_is_local_name(VALUE name)
Definition: ripper.c:17204
arg
arg
Definition: ripper.y:1315
rb_big_uminus
VALUE rb_big_uminus(VALUE x)
Definition: bignum.c:1754
rb_realpath_internal
VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict)
Definition: file.c:3502
rb_gc_mark_parser
void rb_gc_mark_parser(void)
Definition: ripper.c:16419
size
int size
Definition: encoding.c:52
rb_execarg::dup2_tmpbuf
VALUE dup2_tmpbuf
Definition: ripper.y:223
rb_execarg::fd_close
VALUE fd_close
Definition: ripper.y:241
rb_execarg::gid_given
unsigned gid_given
Definition: ripper.y:234
num_interval_step_size
VALUE num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl)
Definition: numeric.c:1814
t
int t
Definition: ripper.c:14699
rb_execarg::envp_buf
VALUE envp_buf
Definition: ripper.y:222
rb_math_atan2
VALUE rb_math_atan2(VALUE, VALUE)
rb_thread_shield_new
VALUE rb_thread_shield_new(void)
Definition: thread.c:4590
rb_thread_execute_interrupts
void rb_thread_execute_interrupts(VALUE th)
Definition: thread.c:1973
rb_execarg::chdir_given
unsigned chdir_given
Definition: ripper.y:230
rb_fork_ruby
rb_pid_t rb_fork_ruby(int *status)
st_index_t
st_data_t st_index_t
Definition: ripper.y:63
rb_obj_is_fiber
VALUE rb_obj_is_fiber(VALUE obj)
Definition: cont.c:363
rb_execarg::use_shell
int use_shell
Definition: ripper.y:208
rb_execarg::chdir_dir
VALUE chdir_dir
Definition: ripper.y:246
rb_obj_methods
VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj)
Definition: class.c:1151
rb_make_backtrace
VALUE rb_make_backtrace(void)
Definition: vm_backtrace.c:772
timespec
Definition: ripper.y:46
rb_check_backtrace
VALUE rb_check_backtrace(VALUE bt)
Definition: error.c:710
rb_execarg_addopt
int rb_execarg_addopt(VALUE execarg_obj, VALUE key, VALUE val)
Definition: process.c:1606
io
gz io
Definition: zlib.c:2263
rb_integer_float_eq
VALUE rb_integer_float_eq(VALUE x, VALUE y)
Definition: bignum.c:1509
rb_execarg_setenv
void rb_execarg_setenv(VALUE execarg_obj, VALUE env)
Definition: process.c:2228
rb_backtrace_p
int rb_backtrace_p(VALUE obj)
Definition: vm_backtrace.c:413
rb_classext_struct::iv_tbl
struct st_table * iv_tbl
Definition: ripper.y:38
rb_file_expand_path_internal
VALUE rb_file_expand_path_internal(VALUE, VALUE, int, int, VALUE)
Definition: file.c:2960
rb_is_instance_name
int rb_is_instance_name(VALUE name)
Definition: ripper.c:17192
rb_method_defined_by
int rb_method_defined_by(VALUE obj, ID mid, VALUE(*cfunc)(ANYARGS))
e
BDIGIT e
Definition: bigdecimal.c:5085
rb_classext_struct
Definition: ripper.y:36
rb_classext_struct::const_tbl
struct st_table * const_tbl
Definition: ripper.y:39
VALUE
unsigned long VALUE
Definition: ripper.y:104
options
options
Definition: tcltklib.c:4481
rb_is_junk_name
int rb_is_junk_name(VALUE name)
Definition: ripper.c:17220
rb_math_sinh
VALUE rb_math_sinh(VALUE)
rb_current_realfilepath
VALUE rb_current_realfilepath(void)
Definition: vm_eval.c:1937
rb_uninterruptible
VALUE rb_uninterruptible(VALUE(*b_proc)(ANYARGS), VALUE data)
Definition: thread.c:5182
ruby_get_inplace_mode
const char * ruby_get_inplace_mode(void)
Definition: io.c:11412
rb_stdio_set_default_encoding
void rb_stdio_set_default_encoding(void)
Definition: io.c:10375
rb_classext_struct::allocator
rb_alloc_func_t allocator
Definition: ripper.y:42
rb_sigaltstack_size
int rb_sigaltstack_size(void)
Init_vm_eval
void Init_vm_eval(void)
Definition: vm_eval.c:1947
rb_get_path_check_to_string
VALUE rb_get_path_check_to_string(VALUE, int)
Definition: file.c:175
Init_native_thread
void Init_native_thread(void)
rb_clear_trace_func
void rb_clear_trace_func(void)
Definition: vm_trace.c:215
rb_parse_in_eval
int rb_parse_in_eval(void)
Definition: compile.c:5876
rb_execarg::new_pgroup_flag
unsigned new_pgroup_flag
Definition: ripper.y:232
rb_gc_mark_encodings
void rb_gc_mark_encodings(void)
Definition: encoding.c:211
env
#define env
rb_vm_backtrace_object
VALUE rb_vm_backtrace_object()
Definition: vm_backtrace.c:532
rb_parser_get_yydebug
VALUE rb_parser_get_yydebug(VALUE self)
Definition: ripper.c:17425
rb_struct_init_copy
VALUE rb_struct_init_copy(VALUE copy, VALUE s)
Definition: struct.c:620
rb_execarg::shell_script
VALUE shell_script
Definition: ripper.y:211
rb_get_next_signal
int rb_get_next_signal(void)
Definition: signal.c:590
name
const char * name
Definition: nkf.c:208
rb_invcmp
VALUE rb_invcmp(VALUE x, VALUE y)
Definition: compar.c:42
rb_iseq_clone
VALUE rb_iseq_clone(VALUE iseqval, VALUE newcbase)
Definition: iseq.c:1896
rb_write_error_str
void rb_write_error_str(VALUE mesg)
Definition: io.c:7070
rb_local_defined
int rb_local_defined(ID id)
Definition: compile.c:5857
rb_hash_proc
st_index_t rb_hash_proc(st_index_t hash, VALUE proc)
Definition: proc.c:804
rb_ary_delete_same
void rb_ary_delete_same(VALUE ary, VALUE item)
Definition: array.c:2790
Init_eval_method
void Init_eval_method(void)
Definition: vm_method.c:1625
rb_singleton_class_clone_and_attach
VALUE rb_singleton_class_clone_and_attach(VALUE obj, VALUE attach)
Definition: class.c:247
rb_time_timeval
struct timeval rb_time_timeval(VALUE)
Definition: time.c:2498
OnigEncodingTypeST
Definition: ripper.y:161
rb_ary_set_len
void rb_ary_set_len(VALUE ary, long len)
Definition: array.c:1490
rb_sourcefilename
VALUE rb_sourcefilename(void)
Definition: vm.c:788
rb_strftime
size_t rb_strftime(char *s, size_t maxsize, const char *format, rb_encoding *enc, const struct vtm *vtm, VALUE timev, int gmt)
Definition: strftime.c:830
rb_execarg_fixup
void rb_execarg_fixup(VALUE execarg_obj)
Definition: process.c:2254
rb_is_global_name
int rb_is_global_name(VALUE name)
Definition: ripper.c:17186