looksee 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG +7 -0
- data/README.markdown +5 -4
- data/Rakefile +4 -0
- data/ext/extconf.rb +3 -1
- data/ext/mri/1.9.3/internal_falcon.h +248 -0
- data/ext/mri/2.0.0/internal.h +378 -0
- data/ext/mri/2.0.0/method.h +138 -0
- data/ext/mri/mri.c +36 -5
- data/lib/looksee.rbc +92 -0
- data/lib/looksee/JRuby.jar +0 -0
- data/lib/looksee/adapter.rbc +303 -0
- data/lib/looksee/adapter/base.rbc +1878 -0
- data/lib/looksee/adapter/rubinius.rb +10 -5
- data/lib/looksee/adapter/rubinius.rbc +1650 -0
- data/lib/looksee/clean.rbc +1197 -0
- data/lib/looksee/columnizer.rbc +1960 -0
- data/lib/looksee/core_ext.rbc +1385 -0
- data/lib/looksee/editor.rbc +1158 -0
- data/lib/looksee/inspector.rbc +1634 -0
- data/lib/looksee/lookup_path.rbc +1654 -0
- data/lib/looksee/rbx.bundle +0 -0
- data/lib/looksee/version.rb +1 -1
- data/lib/looksee/version.rbc +307 -0
- data/lib/looksee/wirble_compatibility.rbc +1700 -0
- data/spec/adapter_spec.rb +7 -1
- data/spec/spec_helper.rb +1 -1
- metadata +47 -22
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 89abb83fc7bfb2ca723fe3a4f9a35018836c0e81
|
4
|
+
data.tar.gz: ddb31cc1363b5be2652329a2180f872e6beb5558
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9843ab0b2bc0965c470670176132bd1310faf453771a29f0100c81702f78b24dfdd67da1151a873091d82a8476465964e813fd505b4ae01ca2b68d2a072603d6
|
7
|
+
data.tar.gz: ba731cc14f1e6b67382983942c0eb56eed157558cc3082cca7b00002bee9150a32c09d57bc9c2d14c3f08e348fbcb296be95fcf564d4c7b13eb659140d5a8117
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
== 1.1.0 2013-03-22
|
2
|
+
|
3
|
+
* Support for MRI 2.0.0.
|
4
|
+
* Support for MRI 1.9.3 with funnyfalcon's patches.
|
5
|
+
* Fix listing methods of a class with an undefined allocator (e.g. Struct).
|
6
|
+
* Updated supported rubies in README.
|
7
|
+
|
1
8
|
== 1.0.3 2011-09-05
|
2
9
|
|
3
10
|
* MRI 1.9.3 support.
|
data/README.markdown
CHANGED
@@ -142,11 +142,12 @@ Enjoy!
|
|
142
142
|
|
143
143
|
## Support
|
144
144
|
|
145
|
-
Looksee
|
145
|
+
Looksee supports:
|
146
146
|
|
147
|
-
*
|
148
|
-
*
|
149
|
-
*
|
147
|
+
* MRI 1.8.7, 1.9.2, 1.9.3, 2.0.0
|
148
|
+
* REE 1.8.7
|
149
|
+
* JRuby 1.6.7
|
150
|
+
* Rubinius 1.2.3, 1.2.4
|
150
151
|
|
151
152
|
## Contributing
|
152
153
|
|
data/Rakefile
CHANGED
data/ext/extconf.rb
CHANGED
@@ -4,7 +4,9 @@ extension = ruby_engine == 'ruby' ? 'mri' : ruby_engine
|
|
4
4
|
require 'mkmf'
|
5
5
|
$CPPFLAGS << " -DRUBY_VERSION=#{RUBY_VERSION.tr('.', '')}"
|
6
6
|
if extension == 'mri'
|
7
|
-
if RUBY_VERSION >= '
|
7
|
+
if RUBY_VERSION >= '2.0.0'
|
8
|
+
$CPPFLAGS << " -Imri/2.0.0"
|
9
|
+
elsif RUBY_VERSION >= '1.9.3'
|
8
10
|
$CPPFLAGS << " -Imri/1.9.3"
|
9
11
|
elsif RUBY_VERSION >= '1.9.2'
|
10
12
|
$CPPFLAGS << " -Imri/1.9.2"
|
@@ -0,0 +1,248 @@
|
|
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
|
+
sa_table m_tbl;
|
28
|
+
sa_table iv_tbl;
|
29
|
+
sa_table const_tbl;
|
30
|
+
sa_table iv_index_tbl;
|
31
|
+
};
|
32
|
+
|
33
|
+
struct rb_class_cache_struct {
|
34
|
+
VALUE method_cache_version;
|
35
|
+
sa_table m_cache_tbl;
|
36
|
+
};
|
37
|
+
|
38
|
+
#undef RCLASS_SUPER
|
39
|
+
#define RCLASS_EXT(c) (RCLASS(c)->ptr)
|
40
|
+
#define RCLASS_SUPER(c) (RCLASS(c)->super)
|
41
|
+
#define RCLASS_IV_TBL(c) (&RCLASS_EXT(c)->iv_tbl)
|
42
|
+
#define RCLASS_CONST_TBL(c) (&RCLASS_EXT(c)->const_tbl)
|
43
|
+
#define RCLASS_M_TBL(c) (&RCLASS_EXT(c)->m_tbl)
|
44
|
+
#define RCLASS_IV_INDEX_TBL(c) (&RCLASS_EXT(c)->iv_index_tbl)
|
45
|
+
|
46
|
+
struct vtm; /* defined by timev.h */
|
47
|
+
|
48
|
+
/* array.c */
|
49
|
+
VALUE rb_ary_last(int, VALUE *, VALUE);
|
50
|
+
|
51
|
+
/* bignum.c */
|
52
|
+
VALUE rb_big_fdiv(VALUE x, VALUE y);
|
53
|
+
VALUE rb_big_uminus(VALUE x);
|
54
|
+
|
55
|
+
/* class.c */
|
56
|
+
VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj);
|
57
|
+
VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj);
|
58
|
+
VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj);
|
59
|
+
VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj);
|
60
|
+
int rb_obj_basic_to_s_p(VALUE);
|
61
|
+
void Init_class_hierarchy(void);
|
62
|
+
|
63
|
+
/* compile.c */
|
64
|
+
int rb_dvar_defined(ID);
|
65
|
+
int rb_local_defined(ID);
|
66
|
+
int rb_parse_in_eval(void);
|
67
|
+
int rb_parse_in_main(void);
|
68
|
+
VALUE rb_insns_name_array(void);
|
69
|
+
|
70
|
+
/* cont.c */
|
71
|
+
VALUE rb_obj_is_fiber(VALUE);
|
72
|
+
void rb_fiber_reset_root_local_storage(VALUE);
|
73
|
+
|
74
|
+
/* debug.c */
|
75
|
+
PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
|
76
|
+
|
77
|
+
/* dmyext.c */
|
78
|
+
void Init_ext(void);
|
79
|
+
|
80
|
+
/* encoding.c */
|
81
|
+
ID rb_id_encoding(void);
|
82
|
+
|
83
|
+
/* encoding.c */
|
84
|
+
void rb_gc_mark_encodings(void);
|
85
|
+
|
86
|
+
/* error.c */
|
87
|
+
NORETURN(PRINTF_ARGS(void rb_compile_bug(const char*, int, const char*, ...), 3, 4));
|
88
|
+
VALUE rb_check_backtrace(VALUE);
|
89
|
+
NORETURN(void rb_async_bug_errno(const char *,int));
|
90
|
+
|
91
|
+
/* eval_error.c */
|
92
|
+
void ruby_error_print(void);
|
93
|
+
VALUE rb_get_backtrace(VALUE info);
|
94
|
+
|
95
|
+
/* eval_jump.c */
|
96
|
+
void rb_call_end_proc(VALUE data);
|
97
|
+
|
98
|
+
/* file.c */
|
99
|
+
VALUE rb_home_dir(const char *user, VALUE result);
|
100
|
+
VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
|
101
|
+
VALUE rb_file_expand_path_fast(VALUE, VALUE);
|
102
|
+
VALUE rb_file_expand_path_internal(VALUE, VALUE, int, int, VALUE);
|
103
|
+
VALUE rb_get_path_check_to_string(VALUE, int);
|
104
|
+
VALUE rb_get_path_check_convert(VALUE, VALUE, int);
|
105
|
+
void Init_File(void);
|
106
|
+
|
107
|
+
#ifdef _WIN32
|
108
|
+
/* file.c, win32/file.c */
|
109
|
+
void rb_w32_init_file(void);
|
110
|
+
#endif
|
111
|
+
|
112
|
+
/* gc.c */
|
113
|
+
void Init_heap(void);
|
114
|
+
|
115
|
+
/* inits.c */
|
116
|
+
void rb_call_inits(void);
|
117
|
+
|
118
|
+
/* io.c */
|
119
|
+
const char *ruby_get_inplace_mode(void);
|
120
|
+
void ruby_set_inplace_mode(const char *);
|
121
|
+
ssize_t rb_io_bufread(VALUE io, void *buf, size_t size);
|
122
|
+
void rb_stdio_set_default_encoding(void);
|
123
|
+
|
124
|
+
/* iseq.c */
|
125
|
+
VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt);
|
126
|
+
VALUE rb_iseq_clone(VALUE iseqval, VALUE newcbase);
|
127
|
+
|
128
|
+
/* load.c */
|
129
|
+
VALUE rb_get_load_path(void);
|
130
|
+
VALUE rb_get_expanded_load_path(void);
|
131
|
+
|
132
|
+
/* math.c */
|
133
|
+
VALUE rb_math_atan2(VALUE, VALUE);
|
134
|
+
VALUE rb_math_cos(VALUE);
|
135
|
+
VALUE rb_math_cosh(VALUE);
|
136
|
+
VALUE rb_math_exp(VALUE);
|
137
|
+
VALUE rb_math_hypot(VALUE, VALUE);
|
138
|
+
VALUE rb_math_log(int argc, VALUE *argv);
|
139
|
+
VALUE rb_math_sin(VALUE);
|
140
|
+
VALUE rb_math_sinh(VALUE);
|
141
|
+
VALUE rb_math_sqrt(VALUE);
|
142
|
+
|
143
|
+
/* newline.c */
|
144
|
+
void Init_newline(void);
|
145
|
+
|
146
|
+
/* numeric.c */
|
147
|
+
int rb_num_to_uint(VALUE val, unsigned int *ret);
|
148
|
+
int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl);
|
149
|
+
double ruby_float_mod(double x, double y);
|
150
|
+
|
151
|
+
/* object.c */
|
152
|
+
VALUE rb_obj_equal(VALUE obj1, VALUE obj2);
|
153
|
+
|
154
|
+
/* parse.y */
|
155
|
+
VALUE rb_parser_get_yydebug(VALUE);
|
156
|
+
VALUE rb_parser_set_yydebug(VALUE, VALUE);
|
157
|
+
|
158
|
+
/* proc.c */
|
159
|
+
VALUE rb_proc_location(VALUE self);
|
160
|
+
|
161
|
+
/* rational.c */
|
162
|
+
VALUE rb_lcm(VALUE x, VALUE y);
|
163
|
+
VALUE rb_rational_reciprocal(VALUE x);
|
164
|
+
|
165
|
+
/* re.c */
|
166
|
+
VALUE rb_reg_compile(VALUE str, int options, const char *sourcefile, int sourceline);
|
167
|
+
VALUE rb_reg_check_preprocess(VALUE);
|
168
|
+
|
169
|
+
/* signal.c */
|
170
|
+
int rb_get_next_signal(void);
|
171
|
+
|
172
|
+
/* strftime.c */
|
173
|
+
size_t rb_strftime_timespec(char *s, size_t maxsize, const char *format, const struct vtm *vtm, struct timespec *ts, int gmt);
|
174
|
+
|
175
|
+
/* string.c */
|
176
|
+
int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
|
177
|
+
|
178
|
+
/* struct.c */
|
179
|
+
VALUE rb_struct_init_copy(VALUE copy, VALUE s);
|
180
|
+
|
181
|
+
/* time.c */
|
182
|
+
struct timeval rb_time_timeval(VALUE);
|
183
|
+
|
184
|
+
/* thread.c */
|
185
|
+
VALUE rb_obj_is_mutex(VALUE obj);
|
186
|
+
VALUE ruby_suppress_tracing(VALUE (*func)(VALUE, int), VALUE arg, int always);
|
187
|
+
void rb_thread_execute_interrupts(VALUE th);
|
188
|
+
void rb_clear_trace_func(void);
|
189
|
+
VALUE rb_thread_backtrace(VALUE thval);
|
190
|
+
VALUE rb_get_coverages(void);
|
191
|
+
|
192
|
+
/* thread_pthread.c, thread_win32.c */
|
193
|
+
void Init_native_thread(void);
|
194
|
+
|
195
|
+
/* vm.c */
|
196
|
+
VALUE rb_obj_is_thread(VALUE obj);
|
197
|
+
void rb_vm_mark(void *ptr);
|
198
|
+
void Init_BareVM(void);
|
199
|
+
VALUE rb_vm_top_self(void);
|
200
|
+
void rb_thread_recycle_stack_release(VALUE *);
|
201
|
+
void rb_vm_change_state(void);
|
202
|
+
void rb_vm_inc_const_missing_count(void);
|
203
|
+
void rb_thread_mark(void *th);
|
204
|
+
const void **rb_vm_get_insns_address_table(void);
|
205
|
+
|
206
|
+
/* vm_dump.c */
|
207
|
+
void rb_vm_bugreport(void);
|
208
|
+
|
209
|
+
/* vm_eval.c */
|
210
|
+
void Init_vm_eval(void);
|
211
|
+
VALUE rb_current_realfilepath(void);
|
212
|
+
|
213
|
+
/* vm_method.c */
|
214
|
+
void Init_eval_method(void);
|
215
|
+
|
216
|
+
/* miniprelude.c, prelude.c */
|
217
|
+
void Init_prelude(void);
|
218
|
+
|
219
|
+
#if defined __GNUC__ && __GNUC__ >= 4
|
220
|
+
#pragma GCC visibility push(default)
|
221
|
+
#endif
|
222
|
+
const char *rb_objspace_data_type_name(VALUE obj);
|
223
|
+
|
224
|
+
/* Temporary. This API will be removed (renamed). */
|
225
|
+
VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd);
|
226
|
+
|
227
|
+
/* experimental.
|
228
|
+
* These APIs can be changed on Ruby 1.9.4 or later.
|
229
|
+
* We will change these APIs (spac, name and so on) if there are something wrong.
|
230
|
+
* If you use these APIs, catch up future changes.
|
231
|
+
*/
|
232
|
+
void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1);
|
233
|
+
VALUE rb_thread_call_without_gvl(
|
234
|
+
rb_blocking_function_t *func, void *data1,
|
235
|
+
rb_unblock_function_t *ubf, void *data2);
|
236
|
+
|
237
|
+
#if defined __GNUC__ && __GNUC__ >= 4
|
238
|
+
#pragma GCC visibility pop
|
239
|
+
#endif
|
240
|
+
|
241
|
+
#if defined(__cplusplus)
|
242
|
+
#if 0
|
243
|
+
{ /* satisfy cc-mode */
|
244
|
+
#endif
|
245
|
+
} /* extern "C" { */
|
246
|
+
#endif
|
247
|
+
|
248
|
+
#endif /* RUBY_INTERNAL_H */
|
@@ -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 */
|