looksee 1.0.3-universal-java-1.6 → 2.0.0-universal-java-1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,378 @@
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
+ struct rb_deprecated_classext_struct {
23
+ char conflict[sizeof(VALUE) * 3];
24
+ };
25
+
26
+ struct rb_classext_struct {
27
+ VALUE super;
28
+ struct st_table *iv_tbl;
29
+ struct st_table *const_tbl;
30
+ VALUE origin;
31
+ VALUE refined_class;
32
+ rb_alloc_func_t allocator;
33
+ };
34
+
35
+ #undef RCLASS_SUPER
36
+ #define RCLASS_EXT(c) (RCLASS(c)->ptr)
37
+ #define RCLASS_SUPER(c) (RCLASS_EXT(c)->super)
38
+ #define RCLASS_IV_TBL(c) (RCLASS_EXT(c)->iv_tbl)
39
+ #define RCLASS_CONST_TBL(c) (RCLASS_EXT(c)->const_tbl)
40
+ #define RCLASS_M_TBL(c) (RCLASS(c)->m_tbl)
41
+ #define RCLASS_IV_INDEX_TBL(c) (RCLASS(c)->iv_index_tbl)
42
+ #define RCLASS_ORIGIN(c) (RCLASS_EXT(c)->origin)
43
+ #define RCLASS_REFINED_CLASS(c) (RCLASS_EXT(c)->refined_class)
44
+
45
+ struct vtm; /* defined by timev.h */
46
+
47
+ /* array.c */
48
+ VALUE rb_ary_last(int, VALUE *, VALUE);
49
+ void rb_ary_set_len(VALUE, long);
50
+ VALUE rb_ary_cat(VALUE, const VALUE *, long);
51
+ void rb_ary_delete_same(VALUE, VALUE);
52
+
53
+ /* bignum.c */
54
+ VALUE rb_big_fdiv(VALUE x, VALUE y);
55
+ VALUE rb_big_uminus(VALUE x);
56
+ VALUE rb_integer_float_cmp(VALUE x, VALUE y);
57
+ VALUE rb_integer_float_eq(VALUE x, VALUE y);
58
+
59
+ /* class.c */
60
+ VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj);
61
+ VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj);
62
+ VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj);
63
+ VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj);
64
+ int rb_obj_basic_to_s_p(VALUE);
65
+ VALUE rb_special_singleton_class(VALUE);
66
+ VALUE rb_singleton_class_clone_and_attach(VALUE obj, VALUE attach);
67
+ void Init_class_hierarchy(void);
68
+
69
+ /* compar.c */
70
+ VALUE rb_invcmp(VALUE, VALUE);
71
+
72
+ /* compile.c */
73
+ int rb_dvar_defined(ID);
74
+ int rb_local_defined(ID);
75
+ int rb_parse_in_eval(void);
76
+ int rb_parse_in_main(void);
77
+ const char * rb_insns_name(int i);
78
+ VALUE rb_insns_name_array(void);
79
+
80
+ /* cont.c */
81
+ VALUE rb_obj_is_fiber(VALUE);
82
+ void rb_fiber_reset_root_local_storage(VALUE);
83
+
84
+ /* debug.c */
85
+ PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
86
+
87
+ /* dmyext.c */
88
+ void Init_ext(void);
89
+
90
+ /* encoding.c */
91
+ ID rb_id_encoding(void);
92
+
93
+ /* encoding.c */
94
+ void rb_gc_mark_encodings(void);
95
+
96
+ /* error.c */
97
+ NORETURN(PRINTF_ARGS(void rb_compile_bug(const char*, int, const char*, ...), 3, 4));
98
+ VALUE rb_check_backtrace(VALUE);
99
+ NORETURN(void rb_async_bug_errno(const char *,int));
100
+ const char *rb_builtin_type_name(int t);
101
+ const char *rb_builtin_class_name(VALUE x);
102
+
103
+ /* eval.c */
104
+ VALUE rb_refinement_module_get_refined_class(VALUE module);
105
+
106
+ /* eval_error.c */
107
+ void ruby_error_print(void);
108
+ VALUE rb_get_backtrace(VALUE info);
109
+
110
+ /* eval_jump.c */
111
+ void rb_call_end_proc(VALUE data);
112
+ void rb_mark_end_proc(void);
113
+
114
+ /* file.c */
115
+ VALUE rb_home_dir(const char *user, VALUE result);
116
+ VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
117
+ void rb_file_const(const char*, VALUE);
118
+ int rb_file_load_ok(const char *);
119
+ VALUE rb_file_expand_path_fast(VALUE, VALUE);
120
+ VALUE rb_file_expand_path_internal(VALUE, VALUE, int, int, VALUE);
121
+ VALUE rb_get_path_check_to_string(VALUE, int);
122
+ VALUE rb_get_path_check_convert(VALUE, VALUE, int);
123
+ void Init_File(void);
124
+
125
+ #ifdef _WIN32
126
+ /* file.c, win32/file.c */
127
+ void rb_w32_init_file(void);
128
+ #endif
129
+
130
+ /* gc.c */
131
+ void Init_heap(void);
132
+ void *ruby_mimmalloc(size_t size);
133
+
134
+ /* inits.c */
135
+ void rb_call_inits(void);
136
+
137
+ /* io.c */
138
+ const char *ruby_get_inplace_mode(void);
139
+ void ruby_set_inplace_mode(const char *);
140
+ ssize_t rb_io_bufread(VALUE io, void *buf, size_t size);
141
+ void rb_stdio_set_default_encoding(void);
142
+ void rb_write_error_str(VALUE mesg);
143
+
144
+ /* iseq.c */
145
+ VALUE rb_iseq_clone(VALUE iseqval, VALUE newcbase);
146
+
147
+ /* load.c */
148
+ VALUE rb_get_load_path(void);
149
+ VALUE rb_get_expanded_load_path(void);
150
+ NORETURN(void rb_load_fail(VALUE, const char*));
151
+
152
+ /* math.c */
153
+ VALUE rb_math_atan2(VALUE, VALUE);
154
+ VALUE rb_math_cos(VALUE);
155
+ VALUE rb_math_cosh(VALUE);
156
+ VALUE rb_math_exp(VALUE);
157
+ VALUE rb_math_hypot(VALUE, VALUE);
158
+ VALUE rb_math_log(int argc, VALUE *argv);
159
+ VALUE rb_math_sin(VALUE);
160
+ VALUE rb_math_sinh(VALUE);
161
+ VALUE rb_math_sqrt(VALUE);
162
+
163
+ /* newline.c */
164
+ void Init_newline(void);
165
+
166
+ /* numeric.c */
167
+ int rb_num_to_uint(VALUE val, unsigned int *ret);
168
+ VALUE num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl);
169
+ int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl);
170
+ double ruby_float_mod(double x, double y);
171
+
172
+ /* object.c */
173
+ VALUE rb_obj_equal(VALUE obj1, VALUE obj2);
174
+
175
+ /* parse.y */
176
+ VALUE rb_parser_get_yydebug(VALUE);
177
+ VALUE rb_parser_set_yydebug(VALUE, VALUE);
178
+ int rb_is_const_name(VALUE name);
179
+ int rb_is_class_name(VALUE name);
180
+ int rb_is_global_name(VALUE name);
181
+ int rb_is_instance_name(VALUE name);
182
+ int rb_is_attrset_name(VALUE name);
183
+ int rb_is_local_name(VALUE name);
184
+ int rb_is_method_name(VALUE name);
185
+ int rb_is_junk_name(VALUE name);
186
+ void rb_gc_mark_parser(void);
187
+ void rb_gc_mark_symbols(void);
188
+
189
+ /* proc.c */
190
+ VALUE rb_proc_location(VALUE self);
191
+ st_index_t rb_hash_proc(st_index_t hash, VALUE proc);
192
+
193
+ /* process.c */
194
+
195
+ struct rb_execarg {
196
+ int use_shell;
197
+ union {
198
+ struct {
199
+ VALUE shell_script;
200
+ } sh;
201
+ struct {
202
+ VALUE command_name;
203
+ VALUE command_abspath; /* full path string or nil */
204
+ VALUE argv_str;
205
+ VALUE argv_buf;
206
+ } cmd;
207
+ } invoke;
208
+ VALUE redirect_fds;
209
+ VALUE envp_str;
210
+ VALUE envp_buf;
211
+ VALUE dup2_tmpbuf;
212
+ unsigned pgroup_given : 1;
213
+ unsigned umask_given : 1;
214
+ unsigned unsetenv_others_given : 1;
215
+ unsigned unsetenv_others_do : 1;
216
+ unsigned close_others_given : 1;
217
+ unsigned close_others_do : 1;
218
+ unsigned chdir_given : 1;
219
+ unsigned new_pgroup_given : 1;
220
+ unsigned new_pgroup_flag : 1;
221
+ unsigned uid_given : 1;
222
+ unsigned gid_given : 1;
223
+ rb_pid_t pgroup_pgid; /* asis(-1), new pgroup(0), specified pgroup (0<V). */
224
+ VALUE rlimit_limits; /* Qfalse or [[rtype, softlim, hardlim], ...] */
225
+ mode_t umask_mask;
226
+ rb_uid_t uid;
227
+ rb_gid_t gid;
228
+ VALUE fd_dup2;
229
+ VALUE fd_close;
230
+ VALUE fd_open;
231
+ VALUE fd_dup2_child;
232
+ int close_others_maxhint;
233
+ VALUE env_modification; /* Qfalse or [[k1,v1], ...] */
234
+ VALUE chdir_dir;
235
+ };
236
+
237
+ /* argv_str contains extra two elements.
238
+ * The beginning one is for /bin/sh used by exec_with_sh.
239
+ * The last one for terminating NULL used by execve.
240
+ * See rb_exec_fillarg() in process.c. */
241
+ #define ARGVSTR2ARGC(argv_str) (RSTRING_LEN(argv_str) / sizeof(char *) - 2)
242
+ #define ARGVSTR2ARGV(argv_str) ((char **)RSTRING_PTR(argv_str) + 1)
243
+
244
+ rb_pid_t rb_fork_ruby(int *status);
245
+ void rb_last_status_clear(void);
246
+
247
+ /* rational.c */
248
+ VALUE rb_lcm(VALUE x, VALUE y);
249
+ VALUE rb_rational_reciprocal(VALUE x);
250
+
251
+ /* re.c */
252
+ VALUE rb_reg_compile(VALUE str, int options, const char *sourcefile, int sourceline);
253
+ VALUE rb_reg_check_preprocess(VALUE);
254
+
255
+ /* signal.c */
256
+ int rb_get_next_signal(void);
257
+ int rb_sigaltstack_size(void);
258
+
259
+ /* strftime.c */
260
+ #ifdef RUBY_ENCODING_H
261
+ size_t rb_strftime_timespec(char *s, size_t maxsize, const char *format, rb_encoding *enc,
262
+ const struct vtm *vtm, struct timespec *ts, int gmt);
263
+ size_t rb_strftime(char *s, size_t maxsize, const char *format, rb_encoding *enc,
264
+ const struct vtm *vtm, VALUE timev, int gmt);
265
+ #endif
266
+
267
+ /* string.c */
268
+ int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
269
+ int rb_str_symname_p(VALUE);
270
+ VALUE rb_str_quote_unprintable(VALUE);
271
+ VALUE rb_id_quote_unprintable(ID);
272
+ #define QUOTE(str) rb_str_quote_unprintable(str)
273
+ #define QUOTE_ID(id) rb_id_quote_unprintable(id)
274
+
275
+ /* struct.c */
276
+ VALUE rb_struct_init_copy(VALUE copy, VALUE s);
277
+
278
+ /* time.c */
279
+ struct timeval rb_time_timeval(VALUE);
280
+
281
+ /* thread.c */
282
+ VALUE rb_obj_is_mutex(VALUE obj);
283
+ VALUE rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg);
284
+ void rb_thread_execute_interrupts(VALUE th);
285
+ void rb_clear_trace_func(void);
286
+ VALUE rb_get_coverages(void);
287
+ VALUE rb_thread_shield_new(void);
288
+ VALUE rb_thread_shield_wait(VALUE self);
289
+ VALUE rb_thread_shield_release(VALUE self);
290
+ VALUE rb_thread_shield_destroy(VALUE self);
291
+ void rb_mutex_allow_trap(VALUE self, int val);
292
+ VALUE rb_uninterruptible(VALUE (*b_proc)(ANYARGS), VALUE data);
293
+ VALUE rb_mutex_owned_p(VALUE self);
294
+
295
+ /* thread_pthread.c, thread_win32.c */
296
+ void Init_native_thread(void);
297
+
298
+ /* vm.c */
299
+ VALUE rb_obj_is_thread(VALUE obj);
300
+ void rb_vm_mark(void *ptr);
301
+ void Init_BareVM(void);
302
+ VALUE rb_vm_top_self(void);
303
+ void rb_thread_recycle_stack_release(VALUE *);
304
+ void rb_vm_change_state(void);
305
+ void rb_vm_inc_const_missing_count(void);
306
+ void rb_thread_mark(void *th);
307
+ const void **rb_vm_get_insns_address_table(void);
308
+ VALUE rb_sourcefilename(void);
309
+
310
+ /* vm_dump.c */
311
+ void rb_vm_bugreport(void);
312
+
313
+ /* vm_eval.c */
314
+ void Init_vm_eval(void);
315
+ VALUE rb_current_realfilepath(void);
316
+ VALUE rb_check_block_call(VALUE, ID, int, VALUE *, VALUE (*)(ANYARGS), VALUE);
317
+ typedef void rb_check_funcall_hook(int, VALUE, ID, int, VALUE *, VALUE);
318
+ VALUE rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, VALUE *argv,
319
+ rb_check_funcall_hook *hook, VALUE arg);
320
+
321
+ /* vm_method.c */
322
+ void Init_eval_method(void);
323
+ int rb_method_defined_by(VALUE obj, ID mid, VALUE (*cfunc)(ANYARGS));
324
+
325
+ /* miniprelude.c, prelude.c */
326
+ void Init_prelude(void);
327
+
328
+ /* vm_backtrace.c */
329
+ void Init_vm_backtrace(void);
330
+ VALUE vm_thread_backtrace(int argc, VALUE *argv, VALUE thval);
331
+ VALUE vm_thread_backtrace_locations(int argc, VALUE *argv, VALUE thval);
332
+
333
+ VALUE rb_make_backtrace(void);
334
+ void rb_backtrace_print_as_bugreport(void);
335
+ int rb_backtrace_p(VALUE obj);
336
+ VALUE rb_backtrace_to_str_ary(VALUE obj);
337
+ VALUE rb_vm_backtrace_object();
338
+
339
+ #if defined __GNUC__ && __GNUC__ >= 4
340
+ #pragma GCC visibility push(default)
341
+ #endif
342
+ const char *rb_objspace_data_type_name(VALUE obj);
343
+
344
+ /* Temporary. This API will be removed (renamed). */
345
+ VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd);
346
+
347
+ /* io.c */
348
+ void rb_maygvl_fd_fix_cloexec(int fd);
349
+
350
+ /* process.c */
351
+ int rb_exec_async_signal_safe(const struct rb_execarg *e, char *errmsg, size_t errmsg_buflen);
352
+ 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);
353
+ VALUE rb_execarg_new(int argc, VALUE *argv, int accept_shell);
354
+ struct rb_execarg *rb_execarg_get(VALUE execarg_obj); /* dangerous. needs GC guard. */
355
+ VALUE rb_execarg_init(int argc, VALUE *argv, int accept_shell, VALUE execarg_obj);
356
+ int rb_execarg_addopt(VALUE execarg_obj, VALUE key, VALUE val);
357
+ void rb_execarg_fixup(VALUE execarg_obj);
358
+ int rb_execarg_run_options(const struct rb_execarg *e, struct rb_execarg *s, char* errmsg, size_t errmsg_buflen);
359
+ VALUE rb_execarg_extract_options(VALUE execarg_obj, VALUE opthash);
360
+ void rb_execarg_setenv(VALUE execarg_obj, VALUE env);
361
+
362
+ /* variable.c */
363
+ void rb_gc_mark_global_tbl(void);
364
+ void rb_mark_generic_ivar(VALUE);
365
+ void rb_mark_generic_ivar_tbl(void);
366
+
367
+ #if defined __GNUC__ && __GNUC__ >= 4
368
+ #pragma GCC visibility pop
369
+ #endif
370
+
371
+ #if defined(__cplusplus)
372
+ #if 0
373
+ { /* satisfy cc-mode */
374
+ #endif
375
+ } /* extern "C" { */
376
+ #endif
377
+
378
+ #endif /* RUBY_INTERNAL_H */
@@ -0,0 +1,138 @@
1
+ /**********************************************************************
2
+
3
+ method.h -
4
+
5
+ $Author: nobu $
6
+ created at: Wed Jul 15 20:02:33 2009
7
+
8
+ Copyright (C) 2009 Koichi Sasada
9
+
10
+ **********************************************************************/
11
+ #ifndef METHOD_H
12
+ #define METHOD_H
13
+
14
+ #ifndef END_OF_ENUMERATION
15
+ # ifdef __GNUC__
16
+ # define END_OF_ENUMERATION(key)
17
+ # else
18
+ # define END_OF_ENUMERATION(key) END_OF_##key##_PLACEHOLDER = 0
19
+ # endif
20
+ #endif
21
+
22
+ typedef enum {
23
+ NOEX_PUBLIC = 0x00,
24
+ NOEX_NOSUPER = 0x01,
25
+ NOEX_PRIVATE = 0x02,
26
+ NOEX_PROTECTED = 0x04,
27
+ NOEX_MASK = 0x06,
28
+ NOEX_BASIC = 0x08,
29
+ NOEX_UNDEF = NOEX_NOSUPER,
30
+ NOEX_MODFUNC = 0x12,
31
+ NOEX_SUPER = 0x20,
32
+ NOEX_VCALL = 0x40,
33
+ NOEX_RESPONDS = 0x80,
34
+
35
+ NOEX_BIT_WIDTH = 8,
36
+ NOEX_SAFE_SHIFT_OFFSET = ((NOEX_BIT_WIDTH+3)/4)*4 /* round up to nibble */
37
+ } rb_method_flag_t;
38
+
39
+ #define NOEX_SAFE(n) ((int)((n) >> NOEX_SAFE_SHIFT_OFFSET) & 0x0F)
40
+ #define NOEX_WITH(n, s) (((s) << NOEX_SAFE_SHIFT_OFFSET) | (n) | (ruby_running ? 0 : NOEX_BASIC))
41
+ #define NOEX_WITH_SAFE(n) NOEX_WITH((n), rb_safe_level())
42
+
43
+ /* method data type */
44
+
45
+ typedef enum {
46
+ VM_METHOD_TYPE_ISEQ,
47
+ VM_METHOD_TYPE_CFUNC,
48
+ VM_METHOD_TYPE_ATTRSET,
49
+ VM_METHOD_TYPE_IVAR,
50
+ VM_METHOD_TYPE_BMETHOD,
51
+ VM_METHOD_TYPE_ZSUPER,
52
+ VM_METHOD_TYPE_UNDEF,
53
+ VM_METHOD_TYPE_NOTIMPLEMENTED,
54
+ VM_METHOD_TYPE_OPTIMIZED, /* Kernel#send, Proc#call, etc */
55
+ VM_METHOD_TYPE_MISSING, /* wrapper for method_missing(id) */
56
+ VM_METHOD_TYPE_REFINED,
57
+
58
+ END_OF_ENUMERATION(VM_METHOD_TYPE)
59
+ } rb_method_type_t;
60
+
61
+ struct rb_call_info_struct;
62
+
63
+ typedef struct rb_method_cfunc_struct {
64
+ VALUE (*func)(ANYARGS);
65
+ VALUE (*invoker)(VALUE (*func)(ANYARGS), VALUE recv, int argc, const VALUE *argv);
66
+ int argc;
67
+ } rb_method_cfunc_t;
68
+
69
+ typedef struct rb_method_attr_struct {
70
+ ID id;
71
+ VALUE location;
72
+ } rb_method_attr_t;
73
+
74
+ typedef struct rb_iseq_struct rb_iseq_t;
75
+
76
+ typedef struct rb_method_definition_struct {
77
+ rb_method_type_t type; /* method type */
78
+ ID original_id;
79
+ union {
80
+ rb_iseq_t *iseq; /* should be mark */
81
+ rb_method_cfunc_t cfunc;
82
+ rb_method_attr_t attr;
83
+ VALUE proc; /* should be mark */
84
+ enum method_optimized_type {
85
+ OPTIMIZED_METHOD_TYPE_SEND,
86
+ OPTIMIZED_METHOD_TYPE_CALL,
87
+
88
+ OPTIMIZED_METHOD_TYPE__MAX
89
+ } optimize_type;
90
+ struct rb_method_entry_struct *orig_me;
91
+ } body;
92
+ int alias_count;
93
+ } rb_method_definition_t;
94
+
95
+ typedef struct rb_method_entry_struct {
96
+ rb_method_flag_t flag;
97
+ char mark;
98
+ rb_method_definition_t *def;
99
+ ID called_id;
100
+ VALUE klass; /* should be mark */
101
+ } rb_method_entry_t;
102
+
103
+ struct unlinked_method_entry_list_entry {
104
+ struct unlinked_method_entry_list_entry *next;
105
+ rb_method_entry_t *me;
106
+ };
107
+
108
+ #define UNDEFINED_METHOD_ENTRY_P(me) (!(me) || !(me)->def || (me)->def->type == VM_METHOD_TYPE_UNDEF)
109
+
110
+ void rb_add_method_cfunc(VALUE klass, ID mid, VALUE (*func)(ANYARGS), int argc, rb_method_flag_t noex);
111
+ rb_method_entry_t *rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *option, rb_method_flag_t noex);
112
+ rb_method_entry_t *rb_method_entry(VALUE klass, ID id, VALUE *define_class_ptr);
113
+ void rb_add_refined_method_entry(VALUE refined_class, ID mid);
114
+ rb_method_entry_t *rb_resolve_refined_method(VALUE refinements,
115
+ rb_method_entry_t *me,
116
+ VALUE *defined_class_ptr);
117
+ rb_method_entry_t *rb_method_entry_with_refinements(VALUE klass, ID id,
118
+ VALUE *defined_class_ptr);
119
+ rb_method_entry_t *rb_method_entry_without_refinements(VALUE klass, ID id,
120
+ VALUE *defined_class_ptr);
121
+
122
+ rb_method_entry_t *rb_method_entry_get_without_cache(VALUE klass, ID id, VALUE *define_class_ptr);
123
+ rb_method_entry_t *rb_method_entry_set(VALUE klass, ID mid, const rb_method_entry_t *, rb_method_flag_t noex);
124
+
125
+ int rb_method_entry_arity(const rb_method_entry_t *me);
126
+ int rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2);
127
+ st_index_t rb_hash_method_entry(st_index_t hash, const rb_method_entry_t *me);
128
+
129
+ VALUE rb_method_entry_location(rb_method_entry_t *me);
130
+ VALUE rb_mod_method_location(VALUE mod, ID id);
131
+ VALUE rb_obj_method_location(VALUE obj, ID id);
132
+
133
+ void rb_mark_method_entry(const rb_method_entry_t *me);
134
+ void rb_free_method_entry(rb_method_entry_t *me);
135
+ void rb_sweep_method_entry(void *vm);
136
+ void rb_free_m_table(st_table *tbl);
137
+
138
+ #endif /* METHOD_H */