looksee 3.1.0-universal-java-1.8 → 4.0.0-universal-java-1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +13 -0
  3. data/README.markdown +61 -81
  4. data/ext/extconf.rb +3 -7
  5. data/ext/mri/2.3.0/internal.h +1404 -0
  6. data/ext/mri/2.3.0/method.h +213 -0
  7. data/ext/mri/mri.c +21 -264
  8. data/ext/rbx/rbx.c +0 -9
  9. data/lib/looksee/JRuby.jar +0 -0
  10. data/lib/looksee/adapter/base.rb +19 -54
  11. data/lib/looksee/adapter/rubinius.rb +3 -62
  12. data/lib/looksee/clean.rb +5 -1
  13. data/lib/looksee/editor.rb +1 -1
  14. data/lib/looksee/help.rb +3 -2
  15. data/lib/looksee/lookup_path.rb +7 -3
  16. data/lib/looksee/version.rb +1 -1
  17. data/spec/looksee/adapter_spec.rb +72 -365
  18. data/spec/looksee/editor_spec.rb +1 -1
  19. data/spec/looksee/inspector_spec.rb +21 -21
  20. data/spec/looksee/lookup_path_spec.rb +34 -21
  21. data/spec/spec_helper.rb +2 -0
  22. data/spec/support/temporary_classes.rb +10 -14
  23. data/spec/support/test_adapter.rb +2 -53
  24. metadata +8 -29
  25. data/ext/mri/1.9.2/debug.h +0 -36
  26. data/ext/mri/1.9.2/id.h +0 -170
  27. data/ext/mri/1.9.2/method.h +0 -103
  28. data/ext/mri/1.9.2/node.h +0 -483
  29. data/ext/mri/1.9.2/thread_pthread.h +0 -27
  30. data/ext/mri/1.9.2/vm_core.h +0 -707
  31. data/ext/mri/1.9.2/vm_opts.h +0 -51
  32. data/ext/mri/1.9.3/atomic.h +0 -56
  33. data/ext/mri/1.9.3/debug.h +0 -41
  34. data/ext/mri/1.9.3/id.h +0 -175
  35. data/ext/mri/1.9.3/internal.h +0 -227
  36. data/ext/mri/1.9.3/internal_falcon.h +0 -248
  37. data/ext/mri/1.9.3/method.h +0 -105
  38. data/ext/mri/1.9.3/node.h +0 -503
  39. data/ext/mri/1.9.3/thread_pthread.h +0 -51
  40. data/ext/mri/1.9.3/vm_core.h +0 -755
  41. data/ext/mri/1.9.3/vm_opts.h +0 -51
  42. data/ext/mri/2.0.0/internal.h +0 -378
  43. data/ext/mri/2.0.0/method.h +0 -138
  44. data/ext/mri/env-1.8.h +0 -27
  45. data/ext/mri/eval_c-1.8.h +0 -27
  46. data/ext/mri/node-1.9.h +0 -35
  47. data/lib/looksee/rbx.bundle +0 -0
@@ -1,248 +0,0 @@
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 */
@@ -1,105 +0,0 @@
1
- /**********************************************************************
2
-
3
- method.h -
4
-
5
- $Author: yugui $
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
- typedef enum {
15
- NOEX_PUBLIC = 0x00,
16
- NOEX_NOSUPER = 0x01,
17
- NOEX_PRIVATE = 0x02,
18
- NOEX_PROTECTED = 0x04,
19
- NOEX_MASK = 0x06,
20
- NOEX_BASIC = 0x08,
21
- NOEX_UNDEF = NOEX_NOSUPER,
22
- NOEX_MODFUNC = 0x12,
23
- NOEX_SUPER = 0x20,
24
- NOEX_VCALL = 0x40,
25
- NOEX_RESPONDS = 0x80
26
- } rb_method_flag_t;
27
-
28
- #define NOEX_SAFE(n) ((int)((n) >> 8) & 0x0F)
29
- #define NOEX_WITH(n, s) (((s) << 8) | (n) | (ruby_running ? 0 : NOEX_BASIC))
30
- #define NOEX_WITH_SAFE(n) NOEX_WITH((n), rb_safe_level())
31
-
32
- /* method data type */
33
-
34
- typedef enum {
35
- VM_METHOD_TYPE_ISEQ,
36
- VM_METHOD_TYPE_CFUNC,
37
- VM_METHOD_TYPE_ATTRSET,
38
- VM_METHOD_TYPE_IVAR,
39
- VM_METHOD_TYPE_BMETHOD,
40
- VM_METHOD_TYPE_ZSUPER,
41
- VM_METHOD_TYPE_UNDEF,
42
- VM_METHOD_TYPE_NOTIMPLEMENTED,
43
- VM_METHOD_TYPE_OPTIMIZED, /* Kernel#send, Proc#call, etc */
44
- VM_METHOD_TYPE_MISSING /* wrapper for method_missing(id) */
45
- } rb_method_type_t;
46
-
47
- typedef struct rb_method_cfunc_struct {
48
- VALUE (*func)(ANYARGS);
49
- int argc;
50
- } rb_method_cfunc_t;
51
-
52
- typedef struct rb_method_attr_struct {
53
- ID id;
54
- VALUE location;
55
- } rb_method_attr_t;
56
-
57
- typedef struct rb_iseq_struct rb_iseq_t;
58
-
59
- typedef struct rb_method_definition_struct {
60
- rb_method_type_t type; /* method type */
61
- ID original_id;
62
- union {
63
- rb_iseq_t *iseq; /* should be mark */
64
- rb_method_cfunc_t cfunc;
65
- rb_method_attr_t attr;
66
- VALUE proc; /* should be mark */
67
- enum method_optimized_type {
68
- OPTIMIZED_METHOD_TYPE_SEND,
69
- OPTIMIZED_METHOD_TYPE_CALL
70
- } optimize_type;
71
- } body;
72
- int alias_count;
73
- } rb_method_definition_t;
74
-
75
- typedef struct rb_method_entry_struct {
76
- rb_method_flag_t flag;
77
- char mark;
78
- rb_method_definition_t *def;
79
- ID called_id;
80
- VALUE klass; /* should be mark */
81
- } rb_method_entry_t;
82
-
83
- struct unlinked_method_entry_list_entry {
84
- struct unlinked_method_entry_list_entry *next;
85
- rb_method_entry_t *me;
86
- };
87
-
88
- #define UNDEFINED_METHOD_ENTRY_P(me) (!(me) || !(me)->def || (me)->def->type == VM_METHOD_TYPE_UNDEF)
89
-
90
- void rb_add_method_cfunc(VALUE klass, ID mid, VALUE (*func)(ANYARGS), int argc, rb_method_flag_t noex);
91
- rb_method_entry_t *rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *option, rb_method_flag_t noex);
92
- rb_method_entry_t *rb_method_entry(VALUE klass, ID id);
93
-
94
- rb_method_entry_t *rb_method_entry_get_without_cache(VALUE klass, ID id);
95
- rb_method_entry_t *rb_method_entry_set(VALUE klass, ID mid, const rb_method_entry_t *, rb_method_flag_t noex);
96
-
97
- int rb_method_entry_arity(const rb_method_entry_t *me);
98
- int rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2);
99
-
100
- void rb_mark_method_entry(const rb_method_entry_t *me);
101
- void rb_free_method_entry(rb_method_entry_t *me);
102
- void rb_sweep_method_entry(void *vm);
103
- void rb_free_m_table(st_table *tbl);
104
-
105
- #endif /* METHOD_H */