bindex 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +13 -33
  3. data/bindex.gemspec +1 -1
  4. data/ext/bindex/com/gsamokovarov/bindex/JRubyIntegration.java +2 -2
  5. data/ext/bindex/com/gsamokovarov/bindex/SetExceptionBindingsEventHook.java +4 -1
  6. data/ext/bindex/cruby.c +49 -15
  7. data/ext/bindex/extconf.rb +0 -15
  8. data/lib/bindex/jruby.rb +0 -1
  9. data/lib/bindex/jruby_internals.jar +0 -0
  10. data/lib/bindex/jruby_internals_9k.jar +0 -0
  11. data/lib/bindex/version.rb +1 -1
  12. metadata +4 -139
  13. data/ext/bindex/bindex.h +0 -11
  14. data/ext/bindex/bindings.c +0 -106
  15. data/ext/bindex/ruby_193.h +0 -101
  16. data/ext/bindex/ruby_193/addr2line.h +0 -21
  17. data/ext/bindex/ruby_193/constant.h +0 -34
  18. data/ext/bindex/ruby_193/debug.h +0 -41
  19. data/ext/bindex/ruby_193/dln.h +0 -50
  20. data/ext/bindex/ruby_193/encdb.h +0 -167
  21. data/ext/bindex/ruby_193/eval_intern.h +0 -234
  22. data/ext/bindex/ruby_193/gc.h +0 -99
  23. data/ext/bindex/ruby_193/id.h +0 -177
  24. data/ext/bindex/ruby_193/internal.h +0 -242
  25. data/ext/bindex/ruby_193/iseq.h +0 -126
  26. data/ext/bindex/ruby_193/method.h +0 -105
  27. data/ext/bindex/ruby_193/node.h +0 -504
  28. data/ext/bindex/ruby_193/parse.h +0 -302
  29. data/ext/bindex/ruby_193/probes.h +0 -369
  30. data/ext/bindex/ruby_193/regenc.h +0 -219
  31. data/ext/bindex/ruby_193/regint.h +0 -850
  32. data/ext/bindex/ruby_193/regparse.h +0 -362
  33. data/ext/bindex/ruby_193/revision.h +0 -1
  34. data/ext/bindex/ruby_193/ruby_atomic.h +0 -175
  35. data/ext/bindex/ruby_193/siphash.h +0 -48
  36. data/ext/bindex/ruby_193/thread_pthread.h +0 -51
  37. data/ext/bindex/ruby_193/thread_win32.h +0 -40
  38. data/ext/bindex/ruby_193/timev.h +0 -21
  39. data/ext/bindex/ruby_193/transcode_data.h +0 -117
  40. data/ext/bindex/ruby_193/transdb.h +0 -186
  41. data/ext/bindex/ruby_193/verconf.h +0 -12
  42. data/ext/bindex/ruby_193/version.h +0 -52
  43. data/ext/bindex/ruby_193/vm_core.h +0 -763
  44. data/ext/bindex/ruby_193/vm_exec.h +0 -184
  45. data/ext/bindex/ruby_193/vm_insnhelper.h +0 -220
  46. data/ext/bindex/ruby_193/vm_opts.h +0 -51
  47. data/ext/bindex/ruby_20.h +0 -142
  48. data/ext/bindex/ruby_20/addr2line.h +0 -21
  49. data/ext/bindex/ruby_20/constant.h +0 -36
  50. data/ext/bindex/ruby_20/dln.h +0 -50
  51. data/ext/bindex/ruby_20/encdb.h +0 -169
  52. data/ext/bindex/ruby_20/eval_intern.h +0 -241
  53. data/ext/bindex/ruby_20/gc.h +0 -104
  54. data/ext/bindex/ruby_20/id.h +0 -135
  55. data/ext/bindex/ruby_20/internal.h +0 -395
  56. data/ext/bindex/ruby_20/iseq.h +0 -140
  57. data/ext/bindex/ruby_20/method.h +0 -138
  58. data/ext/bindex/ruby_20/node.h +0 -541
  59. data/ext/bindex/ruby_20/parse.h +0 -292
  60. data/ext/bindex/ruby_20/probes.h +0 -369
  61. data/ext/bindex/ruby_20/probes_helper.h +0 -67
  62. data/ext/bindex/ruby_20/regenc.h +0 -227
  63. data/ext/bindex/ruby_20/regint.h +0 -915
  64. data/ext/bindex/ruby_20/regparse.h +0 -367
  65. data/ext/bindex/ruby_20/revision.h +0 -1
  66. data/ext/bindex/ruby_20/ruby_atomic.h +0 -170
  67. data/ext/bindex/ruby_20/siphash.h +0 -48
  68. data/ext/bindex/ruby_20/thread_pthread.h +0 -56
  69. data/ext/bindex/ruby_20/thread_win32.h +0 -45
  70. data/ext/bindex/ruby_20/timev.h +0 -21
  71. data/ext/bindex/ruby_20/transcode_data.h +0 -127
  72. data/ext/bindex/ruby_20/transdb.h +0 -190
  73. data/ext/bindex/ruby_20/verconf.h +0 -12
  74. data/ext/bindex/ruby_20/version.h +0 -52
  75. data/ext/bindex/ruby_20/vm_core.h +0 -1018
  76. data/ext/bindex/ruby_20/vm_debug.h +0 -41
  77. data/ext/bindex/ruby_20/vm_exec.h +0 -173
  78. data/ext/bindex/ruby_20/vm_insnhelper.h +0 -274
  79. data/ext/bindex/ruby_20/vm_opts.h +0 -56
  80. data/ext/bindex/ruby_21.h +0 -142
  81. data/ext/bindex/ruby_21/addr2line.h +0 -21
  82. data/ext/bindex/ruby_21/constant.h +0 -36
  83. data/ext/bindex/ruby_21/dln.h +0 -51
  84. data/ext/bindex/ruby_21/encdb.h +0 -170
  85. data/ext/bindex/ruby_21/eval_intern.h +0 -260
  86. data/ext/bindex/ruby_21/gc.h +0 -101
  87. data/ext/bindex/ruby_21/id.h +0 -210
  88. data/ext/bindex/ruby_21/internal.h +0 -889
  89. data/ext/bindex/ruby_21/iseq.h +0 -136
  90. data/ext/bindex/ruby_21/method.h +0 -142
  91. data/ext/bindex/ruby_21/node.h +0 -543
  92. data/ext/bindex/ruby_21/parse.h +0 -298
  93. data/ext/bindex/ruby_21/probes.h +0 -401
  94. data/ext/bindex/ruby_21/probes_helper.h +0 -67
  95. data/ext/bindex/ruby_21/regenc.h +0 -223
  96. data/ext/bindex/ruby_21/regint.h +0 -911
  97. data/ext/bindex/ruby_21/regparse.h +0 -363
  98. data/ext/bindex/ruby_21/revision.h +0 -1
  99. data/ext/bindex/ruby_21/ruby_atomic.h +0 -170
  100. data/ext/bindex/ruby_21/siphash.h +0 -48
  101. data/ext/bindex/ruby_21/thread_native.h +0 -23
  102. data/ext/bindex/ruby_21/thread_pthread.h +0 -56
  103. data/ext/bindex/ruby_21/thread_win32.h +0 -45
  104. data/ext/bindex/ruby_21/timev.h +0 -42
  105. data/ext/bindex/ruby_21/transcode_data.h +0 -123
  106. data/ext/bindex/ruby_21/transdb.h +0 -190
  107. data/ext/bindex/ruby_21/verconf.h +0 -13
  108. data/ext/bindex/ruby_21/version.h +0 -52
  109. data/ext/bindex/ruby_21/vm_core.h +0 -1043
  110. data/ext/bindex/ruby_21/vm_debug.h +0 -37
  111. data/ext/bindex/ruby_21/vm_exec.h +0 -182
  112. data/ext/bindex/ruby_21/vm_insnhelper.h +0 -273
  113. data/ext/bindex/ruby_21/vm_opts.h +0 -56
  114. data/ext/bindex/ruby_21preview.h +0 -146
  115. data/ext/bindex/ruby_21preview/addr2line.h +0 -21
  116. data/ext/bindex/ruby_21preview/constant.h +0 -36
  117. data/ext/bindex/ruby_21preview/dln.h +0 -51
  118. data/ext/bindex/ruby_21preview/encdb.h +0 -270
  119. data/ext/bindex/ruby_21preview/eval_intern.h +0 -217
  120. data/ext/bindex/ruby_21preview/gc.h +0 -100
  121. data/ext/bindex/ruby_21preview/id.h +0 -169
  122. data/ext/bindex/ruby_21preview/internal.h +0 -765
  123. data/ext/bindex/ruby_21preview/iseq.h +0 -136
  124. data/ext/bindex/ruby_21preview/method.h +0 -141
  125. data/ext/bindex/ruby_21preview/node.h +0 -543
  126. data/ext/bindex/ruby_21preview/parse.h +0 -298
  127. data/ext/bindex/ruby_21preview/probes.h +0 -385
  128. data/ext/bindex/ruby_21preview/probes_helper.h +0 -67
  129. data/ext/bindex/ruby_21preview/regenc.h +0 -223
  130. data/ext/bindex/ruby_21preview/regint.h +0 -911
  131. data/ext/bindex/ruby_21preview/regparse.h +0 -363
  132. data/ext/bindex/ruby_21preview/revision.h +0 -1
  133. data/ext/bindex/ruby_21preview/ruby_atomic.h +0 -130
  134. data/ext/bindex/ruby_21preview/siphash.h +0 -48
  135. data/ext/bindex/ruby_21preview/thread_native.h +0 -23
  136. data/ext/bindex/ruby_21preview/thread_pthread.h +0 -56
  137. data/ext/bindex/ruby_21preview/thread_win32.h +0 -45
  138. data/ext/bindex/ruby_21preview/timev.h +0 -42
  139. data/ext/bindex/ruby_21preview/transcode_data.h +0 -123
  140. data/ext/bindex/ruby_21preview/transdb.h +0 -190
  141. data/ext/bindex/ruby_21preview/verconf.h +0 -13
  142. data/ext/bindex/ruby_21preview/version.h +0 -53
  143. data/ext/bindex/ruby_21preview/vm_core.h +0 -1017
  144. data/ext/bindex/ruby_21preview/vm_debug.h +0 -37
  145. data/ext/bindex/ruby_21preview/vm_exec.h +0 -180
  146. data/ext/bindex/ruby_21preview/vm_insnhelper.h +0 -272
  147. data/ext/bindex/ruby_21preview/vm_opts.h +0 -56
@@ -1,99 +0,0 @@
1
-
2
- #ifndef RUBY_GC_H
3
- #define RUBY_GC_H 1
4
-
5
- #if defined(__x86_64__) && defined(__GNUC__)
6
- #define SET_MACHINE_STACK_END(p) __asm__ volatile ("movq\t%%rsp, %0" : "=r" (*(p)))
7
- #elif defined(__i386) && defined(__GNUC__)
8
- #define SET_MACHINE_STACK_END(p) __asm__ volatile ("movl\t%%esp, %0" : "=r" (*(p)))
9
- #else
10
- NOINLINE(void rb_gc_set_stack_end(VALUE **stack_end_p));
11
- #define SET_MACHINE_STACK_END(p) rb_gc_set_stack_end(p)
12
- #define USE_CONSERVATIVE_STACK_END
13
- #endif
14
-
15
- /* for GC debug */
16
-
17
- #ifndef RUBY_MARK_FREE_DEBUG
18
- #define RUBY_MARK_FREE_DEBUG 0
19
- #endif
20
-
21
- #if RUBY_MARK_FREE_DEBUG
22
- extern int ruby_gc_debug_indent;
23
-
24
- static inline void
25
- rb_gc_debug_indent(void)
26
- {
27
- printf("%*s", ruby_gc_debug_indent, "");
28
- }
29
-
30
- static inline void
31
- rb_gc_debug_body(const char *mode, const char *msg, int st, void *ptr)
32
- {
33
- if (st == 0) {
34
- ruby_gc_debug_indent--;
35
- }
36
- rb_gc_debug_indent();
37
- printf("%s: %s %s (%p)\n", mode, st ? "->" : "<-", msg, ptr);
38
-
39
- if (st) {
40
- ruby_gc_debug_indent++;
41
- }
42
-
43
- fflush(stdout);
44
- }
45
-
46
- #define RUBY_MARK_ENTER(msg) rb_gc_debug_body("mark", (msg), 1, ptr)
47
- #define RUBY_MARK_LEAVE(msg) rb_gc_debug_body("mark", (msg), 0, ptr)
48
- #define RUBY_FREE_ENTER(msg) rb_gc_debug_body("free", (msg), 1, ptr)
49
- #define RUBY_FREE_LEAVE(msg) rb_gc_debug_body("free", (msg), 0, ptr)
50
- #define RUBY_GC_INFO rb_gc_debug_indent(); printf
51
-
52
- #else
53
- #define RUBY_MARK_ENTER(msg)
54
- #define RUBY_MARK_LEAVE(msg)
55
- #define RUBY_FREE_ENTER(msg)
56
- #define RUBY_FREE_LEAVE(msg)
57
- #define RUBY_GC_INFO if(0)printf
58
- #endif
59
-
60
- #define RUBY_MARK_UNLESS_NULL(ptr) if(RTEST(ptr)){rb_gc_mark(ptr);}
61
- #define RUBY_FREE_UNLESS_NULL(ptr) if(ptr){ruby_xfree(ptr);(ptr)=NULL;}
62
-
63
- #if STACK_GROW_DIRECTION > 0
64
- # define STACK_UPPER(x, a, b) (a)
65
- #elif STACK_GROW_DIRECTION < 0
66
- # define STACK_UPPER(x, a, b) (b)
67
- #else
68
- RUBY_EXTERN int ruby_stack_grow_direction;
69
- int ruby_get_stack_grow_direction(volatile VALUE *addr);
70
- # define stack_growup_p(x) ( \
71
- (ruby_stack_grow_direction ? \
72
- ruby_stack_grow_direction : \
73
- ruby_get_stack_grow_direction(x)) > 0)
74
- # define STACK_UPPER(x, a, b) (stack_growup_p(x) ? (a) : (b))
75
- #endif
76
-
77
- #if STACK_GROW_DIRECTION
78
- #define STACK_GROW_DIR_DETECTION
79
- #define STACK_DIR_UPPER(a,b) STACK_UPPER(0, (a), (b))
80
- #else
81
- #define STACK_GROW_DIR_DETECTION VALUE stack_grow_dir_detection
82
- #define STACK_DIR_UPPER(a,b) STACK_UPPER(&stack_grow_dir_detection, (a), (b))
83
- #endif
84
- #define IS_STACK_DIR_UPPER() STACK_DIR_UPPER(1,0)
85
-
86
- #if defined __GNUC__ && __GNUC__ >= 4
87
- #pragma GCC visibility push(default)
88
- #endif
89
-
90
- size_t rb_objspace_data_type_memsize(VALUE obj);
91
- void rb_objspace_each_objects(
92
- int (*callback)(void *start, void *end, size_t stride, void *data),
93
- void *data);
94
-
95
- #if defined __GNUC__ && __GNUC__ >= 4
96
- #pragma GCC visibility pop
97
- #endif
98
-
99
- #endif /* RUBY_GC_H */
@@ -1,177 +0,0 @@
1
- /* DO NOT EDIT THIS FILE DIRECTLY */
2
- /**********************************************************************
3
-
4
- id.h -
5
-
6
- $Author$
7
- created at: Sun Oct 19 21:12:51 2008
8
-
9
- Copyright (C) 2007 Koichi Sasada
10
-
11
- **********************************************************************/
12
-
13
- #ifndef RUBY_ID_H
14
- #define RUBY_ID_H
15
-
16
- #define ID_SCOPE_SHIFT 3
17
- #define ID_SCOPE_MASK 0x07
18
- #define ID_LOCAL 0x00
19
- #define ID_INSTANCE 0x01
20
- #define ID_GLOBAL 0x03
21
- #define ID_ATTRSET 0x04
22
- #define ID_CONST 0x05
23
- #define ID_CLASS 0x06
24
- #define ID_JUNK 0x07
25
- #define ID_INTERNAL ID_JUNK
26
-
27
- #ifdef USE_PARSE_H
28
- #include "parse.h"
29
- #endif
30
-
31
- #include "vm_opts.h" /* for SUPPORT_JOKE */
32
-
33
- #define symIFUNC ID2SYM(idIFUNC)
34
- #define symCFUNC ID2SYM(idCFUNC)
35
-
36
- #if !defined tLAST_TOKEN && defined YYTOKENTYPE
37
- #define tLAST_TOKEN tLAST_TOKEN
38
- #endif
39
-
40
- enum ruby_method_ids {
41
- #ifndef tLAST_TOKEN
42
- tUPLUS = 321,
43
- tUMINUS = 322,
44
- tPOW = 323,
45
- tCMP = 324,
46
- tEQ = 325,
47
- tEQQ = 326,
48
- tNEQ = 327,
49
- tGEQ = 328,
50
- tLEQ = 329,
51
- tANDOP = 330,
52
- tOROP = 331,
53
- tMATCH = 332,
54
- tNMATCH = 333,
55
- tDOT2 = 334,
56
- tDOT3 = 335,
57
- tAREF = 336,
58
- tASET = 337,
59
- tLSHFT = 338,
60
- tRSHFT = 339,
61
- tLAMBDA = 352,
62
- idNULL = 365,
63
- idRespond_to = 366,
64
- idIFUNC = 367,
65
- idCFUNC = 368,
66
- id_core_set_method_alias = 369,
67
- id_core_set_variable_alias = 370,
68
- id_core_undef_method = 371,
69
- id_core_define_method = 372,
70
- id_core_define_singleton_method = 373,
71
- id_core_set_postexe = 374,
72
- tLAST_TOKEN = 375,
73
- #endif
74
- idDot2 = tDOT2,
75
- idDot3 = tDOT3,
76
- idUPlus = tUPLUS,
77
- idUMinus = tUMINUS,
78
- idPow = tPOW,
79
- idCmp = tCMP,
80
- idPLUS = '+',
81
- idMINUS = '-',
82
- idMULT = '*',
83
- idDIV = '/',
84
- idMOD = '%',
85
- idLT = '<',
86
- idLTLT = tLSHFT,
87
- idLE = tLEQ,
88
- idGT = '>',
89
- idGE = tGEQ,
90
- idEq = tEQ,
91
- idEqq = tEQQ,
92
- idNeq = tNEQ,
93
- idNot = '!',
94
- idBackquote = '`',
95
- idEqTilde = tMATCH,
96
- idNeqTilde = tNMATCH,
97
- idAREF = tAREF,
98
- idASET = tASET,
99
- idLAST_TOKEN = tLAST_TOKEN >> ID_SCOPE_SHIFT,
100
- tIntern,
101
- tMethodMissing,
102
- tLength,
103
- tSize,
104
- tGets,
105
- tSucc,
106
- tEach,
107
- tProc,
108
- tLambda,
109
- tSend,
110
- t__send__,
111
- tInitialize,
112
- tUScore,
113
- #if SUPPORT_JOKE
114
- tBitblt,
115
- tAnswer,
116
- #endif
117
- tLAST_ID,
118
- #define TOKEN2ID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
119
- #if SUPPORT_JOKE
120
- TOKEN2ID(Bitblt),
121
- TOKEN2ID(Answer),
122
- #endif
123
- TOKEN2ID(Intern),
124
- TOKEN2ID(MethodMissing),
125
- TOKEN2ID(Length),
126
- TOKEN2ID(Size),
127
- TOKEN2ID(Gets),
128
- TOKEN2ID(Succ),
129
- TOKEN2ID(Each),
130
- TOKEN2ID(Proc),
131
- TOKEN2ID(Lambda),
132
- TOKEN2ID(Send),
133
- TOKEN2ID(__send__),
134
- TOKEN2ID(Initialize),
135
- TOKEN2ID(UScore),
136
- TOKEN2ID(LAST_ID)
137
- };
138
-
139
- #ifdef tLAST_TOKEN
140
- struct ruby_method_ids_check {
141
- #define ruby_method_id_check_for(name, value) \
142
- int checking_for_##name[name == (value) ? 1 : -1]
143
- ruby_method_id_check_for(tUPLUS, 321);
144
- ruby_method_id_check_for(tUMINUS, 322);
145
- ruby_method_id_check_for(tPOW, 323);
146
- ruby_method_id_check_for(tCMP, 324);
147
- ruby_method_id_check_for(tEQ, 325);
148
- ruby_method_id_check_for(tEQQ, 326);
149
- ruby_method_id_check_for(tNEQ, 327);
150
- ruby_method_id_check_for(tGEQ, 328);
151
- ruby_method_id_check_for(tLEQ, 329);
152
- ruby_method_id_check_for(tANDOP, 330);
153
- ruby_method_id_check_for(tOROP, 331);
154
- ruby_method_id_check_for(tMATCH, 332);
155
- ruby_method_id_check_for(tNMATCH, 333);
156
- ruby_method_id_check_for(tDOT2, 334);
157
- ruby_method_id_check_for(tDOT3, 335);
158
- ruby_method_id_check_for(tAREF, 336);
159
- ruby_method_id_check_for(tASET, 337);
160
- ruby_method_id_check_for(tLSHFT, 338);
161
- ruby_method_id_check_for(tRSHFT, 339);
162
- ruby_method_id_check_for(tLAMBDA, 352);
163
- ruby_method_id_check_for(idNULL, 365);
164
- ruby_method_id_check_for(idRespond_to, 366);
165
- ruby_method_id_check_for(idIFUNC, 367);
166
- ruby_method_id_check_for(idCFUNC, 368);
167
- ruby_method_id_check_for(id_core_set_method_alias, 369);
168
- ruby_method_id_check_for(id_core_set_variable_alias, 370);
169
- ruby_method_id_check_for(id_core_undef_method, 371);
170
- ruby_method_id_check_for(id_core_define_method, 372);
171
- ruby_method_id_check_for(id_core_define_singleton_method, 373);
172
- ruby_method_id_check_for(id_core_set_postexe, 374);
173
- ruby_method_id_check_for(tLAST_TOKEN, 375);
174
- };
175
- #endif
176
-
177
- #endif /* RUBY_ID_H */
@@ -1,242 +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
- VALUE super;
28
- struct st_table *iv_tbl;
29
- struct st_table *const_tbl;
30
- };
31
-
32
- #undef RCLASS_SUPER
33
- #define RCLASS_EXT(c) (RCLASS(c)->ptr)
34
- #define RCLASS_SUPER(c) (RCLASS_EXT(c)->super)
35
- #define RCLASS_IV_TBL(c) (RCLASS_EXT(c)->iv_tbl)
36
- #define RCLASS_CONST_TBL(c) (RCLASS_EXT(c)->const_tbl)
37
- #define RCLASS_M_TBL(c) (RCLASS(c)->m_tbl)
38
- #define RCLASS_IV_INDEX_TBL(c) (RCLASS(c)->iv_index_tbl)
39
-
40
- struct vtm; /* defined by timev.h */
41
-
42
- /* array.c */
43
- VALUE rb_ary_last(int, VALUE *, VALUE);
44
-
45
- /* bignum.c */
46
- VALUE rb_big_fdiv(VALUE x, VALUE y);
47
- VALUE rb_big_uminus(VALUE x);
48
-
49
- /* class.c */
50
- VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj);
51
- VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj);
52
- VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj);
53
- VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj);
54
- int rb_obj_basic_to_s_p(VALUE);
55
- void Init_class_hierarchy(void);
56
-
57
- /* compile.c */
58
- int rb_dvar_defined(ID);
59
- int rb_local_defined(ID);
60
- int rb_parse_in_eval(void);
61
- int rb_parse_in_main(void);
62
- VALUE rb_insns_name_array(void);
63
-
64
- /* cont.c */
65
- VALUE rb_obj_is_fiber(VALUE);
66
- void rb_fiber_reset_root_local_storage(VALUE);
67
-
68
- /* debug.c */
69
- PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
70
-
71
- /* dmyext.c */
72
- void Init_ext(void);
73
-
74
- /* encoding.c */
75
- ID rb_id_encoding(void);
76
-
77
- /* encoding.c */
78
- void rb_gc_mark_encodings(void);
79
-
80
- /* error.c */
81
- NORETURN(PRINTF_ARGS(void rb_compile_bug(const char*, int, const char*, ...), 3, 4));
82
- VALUE rb_check_backtrace(VALUE);
83
- NORETURN(void rb_async_bug_errno(const char *,int));
84
-
85
- /* eval_error.c */
86
- void ruby_error_print(void);
87
- VALUE rb_get_backtrace(VALUE info);
88
-
89
- /* eval_jump.c */
90
- void rb_call_end_proc(VALUE data);
91
-
92
- /* file.c */
93
- VALUE rb_home_dir(const char *user, VALUE result);
94
- VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
95
- VALUE rb_file_expand_path_fast(VALUE, VALUE);
96
- VALUE rb_file_expand_path_internal(VALUE, VALUE, int, int, VALUE);
97
- void Init_File(void);
98
-
99
- #ifdef _WIN32
100
- /* file.c, win32/file.c */
101
- void rb_w32_init_file(void);
102
- #endif
103
-
104
- /* gc.c */
105
- void Init_heap(void);
106
-
107
- /* inits.c */
108
- void rb_call_inits(void);
109
-
110
- /* io.c */
111
- const char *ruby_get_inplace_mode(void);
112
- void ruby_set_inplace_mode(const char *);
113
- ssize_t rb_io_bufread(VALUE io, void *buf, size_t size);
114
- void rb_stdio_set_default_encoding(void);
115
-
116
- /* iseq.c */
117
- VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt);
118
- VALUE rb_iseq_clone(VALUE iseqval, VALUE newcbase);
119
-
120
- /* load.c */
121
- VALUE rb_get_load_path(void);
122
-
123
- /* math.c */
124
- VALUE rb_math_atan2(VALUE, VALUE);
125
- VALUE rb_math_cos(VALUE);
126
- VALUE rb_math_cosh(VALUE);
127
- VALUE rb_math_exp(VALUE);
128
- VALUE rb_math_hypot(VALUE, VALUE);
129
- VALUE rb_math_log(int argc, VALUE *argv);
130
- VALUE rb_math_sin(VALUE);
131
- VALUE rb_math_sinh(VALUE);
132
- VALUE rb_math_sqrt(VALUE);
133
-
134
- /* newline.c */
135
- void Init_newline(void);
136
-
137
- /* numeric.c */
138
- int rb_num_to_uint(VALUE val, unsigned int *ret);
139
- int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl);
140
- double ruby_float_mod(double x, double y);
141
- VALUE rb_int_succ(VALUE num);
142
- VALUE rb_int_pred(VALUE num);
143
-
144
- /* object.c */
145
- VALUE rb_obj_equal(VALUE obj1, VALUE obj2);
146
-
147
- /* parse.y */
148
- VALUE rb_parser_get_yydebug(VALUE);
149
- VALUE rb_parser_set_yydebug(VALUE, VALUE);
150
-
151
- /* proc.c */
152
- VALUE rb_proc_location(VALUE self);
153
-
154
- /* rational.c */
155
- VALUE rb_lcm(VALUE x, VALUE y);
156
- VALUE rb_rational_reciprocal(VALUE x);
157
-
158
- /* re.c */
159
- VALUE rb_reg_compile(VALUE str, int options, const char *sourcefile, int sourceline);
160
- VALUE rb_reg_check_preprocess(VALUE);
161
-
162
- /* signal.c */
163
- int rb_get_next_signal(void);
164
-
165
- /* strftime.c */
166
- size_t rb_strftime_timespec(char *s, size_t maxsize, const char *format, const struct vtm *vtm, struct timespec *ts, int gmt);
167
-
168
- /* string.c */
169
- int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
170
- VALUE rb_str_locktmp_ensure(VALUE str, VALUE (*func)(VALUE), VALUE arg);
171
-
172
- /* struct.c */
173
- VALUE rb_struct_init_copy(VALUE copy, VALUE s);
174
-
175
- /* time.c */
176
- struct timeval rb_time_timeval(VALUE);
177
-
178
- /* thread.c */
179
- VALUE rb_obj_is_mutex(VALUE obj);
180
- VALUE ruby_suppress_tracing(VALUE (*func)(VALUE, int), VALUE arg, int always);
181
- void rb_thread_execute_interrupts(VALUE th);
182
- void rb_clear_trace_func(void);
183
- VALUE rb_thread_backtrace(VALUE thval);
184
- VALUE rb_get_coverages(void);
185
-
186
- /* thread_pthread.c, thread_win32.c */
187
- void Init_native_thread(void);
188
-
189
- /* vm.c */
190
- VALUE rb_obj_is_thread(VALUE obj);
191
- void rb_vm_mark(void *ptr);
192
- void Init_BareVM(void);
193
- VALUE rb_vm_top_self(void);
194
- void rb_thread_recycle_stack_release(VALUE *);
195
- void rb_vm_change_state(void);
196
- void rb_vm_inc_const_missing_count(void);
197
- void rb_thread_mark(void *th);
198
- const void **rb_vm_get_insns_address_table(void);
199
-
200
- /* vm_dump.c */
201
- void rb_vm_bugreport(void);
202
-
203
- /* vm_eval.c */
204
- void Init_vm_eval(void);
205
- VALUE rb_current_realfilepath(void);
206
-
207
- /* vm_method.c */
208
- void Init_eval_method(void);
209
-
210
- /* miniprelude.c, prelude.c */
211
- void Init_prelude(void);
212
-
213
- #if defined __GNUC__ && __GNUC__ >= 4
214
- #pragma GCC visibility push(default)
215
- #endif
216
- const char *rb_objspace_data_type_name(VALUE obj);
217
-
218
- /* Temporary. This API will be removed (renamed). */
219
- VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd);
220
-
221
- /* experimental.
222
- * These APIs can be changed on Ruby 1.9.4 or later.
223
- * We will change these APIs (spac, name and so on) if there are something wrong.
224
- * If you use these APIs, catch up future changes.
225
- */
226
- void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1);
227
- VALUE rb_thread_call_without_gvl(
228
- rb_blocking_function_t *func, void *data1,
229
- rb_unblock_function_t *ubf, void *data2);
230
-
231
- #if defined __GNUC__ && __GNUC__ >= 4
232
- #pragma GCC visibility pop
233
- #endif
234
-
235
- #if defined(__cplusplus)
236
- #if 0
237
- { /* satisfy cc-mode */
238
- #endif
239
- } /* extern "C" { */
240
- #endif
241
-
242
- #endif /* RUBY_INTERNAL_H */