debase-ruby_core_source 3.3.6 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/CHANGELOG.md +6 -0
  4. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/builtin.h +7 -1
  5. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/darray.h +1 -3
  6. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/id.h +5 -0
  7. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/insns.inc +2 -0
  8. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/insns_info.inc +310 -175
  9. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/basic_operators.h +1 -0
  10. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/bits.h +82 -0
  11. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/encoding.h +2 -0
  12. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/error.h +26 -0
  13. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/fixnum.h +1 -0
  14. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/gc.h +14 -6
  15. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/imemo.h +6 -1
  16. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/io.h +1 -1
  17. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/parse.h +2 -1
  18. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/proc.h +1 -0
  19. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/ractor.h +4 -0
  20. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/sanitizers.h +31 -39
  21. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/string.h +22 -10
  22. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/thread.h +23 -0
  23. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/vm.h +1 -1
  24. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/method.h +1 -0
  25. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/optunifs.inc +1 -1
  26. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/parse.h +2 -2
  27. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/ast.h +427 -3
  28. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/defines.h +8 -7
  29. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/diagnostic.h +1 -0
  30. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/extension.h +1 -1
  31. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/prism.h +47 -11
  32. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/version.h +2 -2
  33. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism_compile.h +5 -5
  34. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/ractor_core.h +6 -6
  35. data/lib/debase/ruby_core_source/ruby-3.4.0/revision.h +5 -0
  36. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/rubyparser.h +3 -2
  37. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/thread_pthread.h +0 -1
  38. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/version.h +1 -1
  39. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm.inc +151 -88
  40. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_core.h +40 -12
  41. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_sync.h +3 -3
  42. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vmtc.inc +2 -0
  43. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/yjit.h +1 -0
  44. data/lib/debase/ruby_core_source/version.rb +1 -1
  45. metadata +147 -293
  46. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/darray.h +0 -191
  47. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/debug_counter.h +0 -423
  48. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/dln.h +0 -34
  49. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id.h +0 -343
  50. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns.inc +0 -259
  51. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns_info.inc +0 -9530
  52. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/array.h +0 -151
  53. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/basic_operators.h +0 -63
  54. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bits.h +0 -568
  55. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/class.h +0 -283
  56. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/error.h +0 -216
  57. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/fixnum.h +0 -184
  58. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/gc.h +0 -334
  59. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/hash.h +0 -191
  60. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/imemo.h +0 -260
  61. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/io.h +0 -140
  62. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/parse.h +0 -117
  63. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ractor.h +0 -6
  64. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/sanitizers.h +0 -297
  65. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/string.h +0 -182
  66. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/thread.h +0 -79
  67. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/vm.h +0 -137
  68. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/known_errors.inc +0 -1419
  69. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/method.h +0 -255
  70. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optunifs.inc +0 -43
  71. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parse.h +0 -243
  72. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/ast.h +0 -6245
  73. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/defines.h +0 -206
  74. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/diagnostic.h +0 -433
  75. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/extension.h +0 -19
  76. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/node.h +0 -150
  77. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/options.h +0 -305
  78. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/parser.h +0 -891
  79. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h +0 -33
  80. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/static_literals.h +0 -120
  81. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_char.h +0 -205
  82. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_constant_pool.h +0 -226
  83. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_integer.h +0 -119
  84. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_newline_list.h +0 -102
  85. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string.h +0 -174
  86. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string_list.h +0 -44
  87. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/version.h +0 -29
  88. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism_compile.h +0 -88
  89. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ractor_core.h +0 -393
  90. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regint.h +0 -1010
  91. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/revision.h +0 -5
  92. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rubyparser.h +0 -1430
  93. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/shape.h +0 -233
  94. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/symbol.h +0 -118
  95. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_pthread.h +0 -166
  96. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/version.h +0 -69
  97. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm.inc +0 -5643
  98. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_callinfo.h +0 -605
  99. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_core.h +0 -2236
  100. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_insnhelper.h +0 -272
  101. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_sync.h +0 -137
  102. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vmtc.inc +0 -253
  103. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/addr2line.h +0 -22
  104. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/builtin.h +0 -119
  105. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/build_assert/build_assert.h +0 -40
  106. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/check_type/check_type.h +0 -63
  107. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/container_of/container_of.h +0 -142
  108. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/list/list.h +0 -791
  109. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/str/str.h +0 -17
  110. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/constant.h +0 -53
  111. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/encindex.h +0 -70
  112. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/eval_intern.h +0 -324
  113. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/hrtime.h +0 -237
  114. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/id_table.h +0 -39
  115. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/bignum.h +0 -244
  116. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cmdlineopt.h +0 -65
  117. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compar.h +0 -29
  118. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compile.h +0 -34
  119. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compilers.h +0 -107
  120. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/complex.h +0 -29
  121. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cont.h +0 -35
  122. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/dir.h +0 -16
  123. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enc.h +0 -19
  124. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/encoding.h +0 -36
  125. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enum.h +0 -18
  126. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enumerator.h +0 -21
  127. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/eval.h +0 -33
  128. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/file.h +0 -38
  129. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/inits.h +0 -47
  130. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/load.h +0 -18
  131. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/loadpath.h +0 -16
  132. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/math.h +0 -23
  133. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/missing.h +0 -19
  134. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/numeric.h +0 -274
  135. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/object.h +0 -63
  136. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/proc.h +0 -30
  137. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/process.h +0 -124
  138. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/random.h +0 -17
  139. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/range.h +0 -40
  140. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/rational.h +0 -71
  141. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/re.h +0 -28
  142. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/ruby_parser.h +0 -102
  143. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/serial.h +0 -23
  144. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/signal.h +0 -24
  145. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/st.h +0 -11
  146. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/static_assert.h +0 -16
  147. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/struct.h +0 -127
  148. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/symbol.h +0 -45
  149. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/time.h +0 -34
  150. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/transcode.h +0 -23
  151. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/util.h +0 -27
  152. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/variable.h +0 -72
  153. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/warnings.h +0 -16
  154. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal.h +0 -108
  155. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/iseq.h +0 -340
  156. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node.h +0 -111
  157. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node_name.inc +0 -224
  158. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/optinsn.inc +0 -128
  159. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_bits.h +0 -564
  160. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_node.h +0 -32
  161. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_st.h +0 -162
  162. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_value.h +0 -106
  163. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/encoding.h +0 -283
  164. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/pack.h +0 -163
  165. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prettyprint.h +0 -34
  166. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prism.h +0 -336
  167. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_buffer.h +0 -218
  168. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_list.h +0 -97
  169. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_memchr.h +0 -29
  170. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strncasecmp.h +0 -32
  171. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strpbrk.h +0 -46
  172. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/probes_helper.h +0 -42
  173. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regenc.h +0 -254
  174. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regparse.h +0 -371
  175. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/revision.h +0 -5
  176. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit.h +0 -101
  177. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit_c.h +0 -165
  178. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_assert.h +0 -14
  179. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_atomic.h +0 -23
  180. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/siphash.h +0 -48
  181. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_none.h +0 -21
  182. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_win32.h +0 -58
  183. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/timev.h +0 -58
  184. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/transcode_data.h +0 -138
  185. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/variable.h +0 -39
  186. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_call_iseq_optimized.inc +0 -244
  187. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_debug.h +0 -124
  188. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_exec.h +0 -199
  189. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_opts.h +0 -67
  190. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/yjit.h +0 -79
  191. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/addr2line.h +0 -0
  192. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/build_assert/build_assert.h +0 -0
  193. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/check_type/check_type.h +0 -0
  194. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/container_of/container_of.h +0 -0
  195. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/list/list.h +0 -0
  196. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/str/str.h +0 -0
  197. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/constant.h +0 -0
  198. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/debug_counter.h +0 -0
  199. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/dln.h +0 -0
  200. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/encindex.h +0 -0
  201. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/eval_intern.h +0 -0
  202. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/hrtime.h +0 -0
  203. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/id_table.h +0 -0
  204. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/array.h +0 -0
  205. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/bignum.h +0 -0
  206. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/class.h +0 -0
  207. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/cmdlineopt.h +0 -0
  208. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compar.h +0 -0
  209. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compile.h +0 -0
  210. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compilers.h +0 -0
  211. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/complex.h +0 -0
  212. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/cont.h +0 -0
  213. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/dir.h +0 -0
  214. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enc.h +0 -0
  215. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enum.h +0 -0
  216. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enumerator.h +0 -0
  217. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/eval.h +0 -0
  218. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/file.h +0 -0
  219. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/hash.h +0 -0
  220. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/inits.h +0 -0
  221. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/load.h +0 -0
  222. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/loadpath.h +0 -0
  223. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/math.h +0 -0
  224. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/missing.h +0 -0
  225. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/numeric.h +0 -0
  226. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/object.h +0 -0
  227. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/process.h +0 -0
  228. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/random.h +0 -0
  229. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/range.h +0 -0
  230. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/rational.h +0 -0
  231. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/re.h +0 -0
  232. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/ruby_parser.h +0 -0
  233. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/serial.h +0 -0
  234. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/signal.h +0 -0
  235. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/st.h +0 -0
  236. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/static_assert.h +0 -0
  237. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/struct.h +0 -0
  238. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/symbol.h +0 -0
  239. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/time.h +0 -0
  240. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/transcode.h +0 -0
  241. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/util.h +0 -0
  242. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/variable.h +0 -0
  243. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/warnings.h +0 -0
  244. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal.h +0 -0
  245. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/iseq.h +0 -0
  246. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/known_errors.inc +0 -0
  247. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/node.h +0 -0
  248. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/node_name.inc +0 -0
  249. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/optinsn.inc +0 -0
  250. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_bits.h +0 -0
  251. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_node.h +0 -0
  252. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_st.h +0 -0
  253. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_value.h +0 -0
  254. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/encoding.h +0 -0
  255. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/node.h +0 -0
  256. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/options.h +0 -0
  257. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/pack.h +0 -0
  258. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/parser.h +0 -0
  259. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/prettyprint.h +0 -0
  260. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/regexp.h +0 -0
  261. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/static_literals.h +0 -0
  262. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_buffer.h +0 -0
  263. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_char.h +0 -0
  264. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_constant_pool.h +0 -0
  265. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_integer.h +0 -0
  266. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_list.h +0 -0
  267. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_memchr.h +0 -0
  268. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_newline_list.h +0 -0
  269. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_string.h +0 -0
  270. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_strncasecmp.h +0 -0
  271. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_strpbrk.h +0 -0
  272. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/probes_helper.h +0 -0
  273. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/regenc.h +0 -0
  274. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/regint.h +0 -0
  275. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/regparse.h +0 -0
  276. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/rjit.h +0 -0
  277. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/rjit_c.h +0 -0
  278. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ruby_assert.h +0 -0
  279. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ruby_atomic.h +0 -0
  280. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/shape.h +0 -0
  281. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/siphash.h +0 -0
  282. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/symbol.h +0 -0
  283. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/thread_none.h +0 -0
  284. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/thread_win32.h +0 -0
  285. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/timev.h +0 -0
  286. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/transcode_data.h +0 -0
  287. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/variable.h +0 -0
  288. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_call_iseq_optimized.inc +0 -0
  289. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_callinfo.h +0 -0
  290. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_debug.h +0 -0
  291. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_exec.h +0 -0
  292. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_insnhelper.h +0 -0
  293. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_opts.h +0 -0
@@ -1,21 +0,0 @@
1
- #ifndef INTERNAL_ENUMERATOR_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_ENUMERATOR_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Enumerator.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
- #include "ruby/intern.h" /* for rb_enumerator_size_func */
13
-
14
- RUBY_SYMBOL_EXPORT_BEGIN
15
- /* enumerator.c (export) */
16
- VALUE rb_arith_seq_new(VALUE obj, VALUE meth, int argc, VALUE const *argv,
17
- rb_enumerator_size_func *size_fn,
18
- VALUE beg, VALUE end, VALUE step, int excl);
19
- RUBY_SYMBOL_EXPORT_END
20
-
21
- #endif /* INTERNAL_ENUMERATOR_H */
@@ -1,33 +0,0 @@
1
- #ifndef INTERNAL_EVAL_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_EVAL_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for the evaluator.
10
- * @note There also is eval_intern.h, which is evaluator's internal
11
- * header (related to this file, but not the same role).
12
- */
13
- #include "ruby/ruby.h" /* for ID */
14
-
15
- #define id_signo ruby_static_id_signo
16
- #define id_status ruby_static_id_status
17
-
18
- /* eval.c */
19
- extern ID ruby_static_id_signo;
20
- extern ID ruby_static_id_status;
21
- VALUE rb_refinement_module_get_refined_class(VALUE module);
22
- void rb_class_modify_check(VALUE);
23
- NORETURN(VALUE rb_f_raise(int argc, VALUE *argv));
24
- VALUE rb_top_main_class(const char *method);
25
-
26
- /* eval_error.c */
27
- VALUE rb_get_backtrace(VALUE info);
28
-
29
- /* eval_jump.c */
30
- void rb_call_end_proc(VALUE data);
31
- void rb_mark_end_proc(void);
32
-
33
- #endif /* INTERNAL_EVAL_H */
@@ -1,38 +0,0 @@
1
- #ifndef INTERNAL_FILE_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_FILE_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for File.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
- #include "ruby/encoding.h" /* for rb_encodinng */
13
-
14
- /* file.c */
15
- extern const char ruby_null_device[];
16
- VALUE rb_home_dir_of(VALUE user, VALUE result);
17
- VALUE rb_default_home_dir(VALUE result);
18
- VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
19
- VALUE rb_check_realpath(VALUE basedir, VALUE path, rb_encoding *origenc);
20
- void rb_file_const(const char*, VALUE);
21
- int rb_file_load_ok(const char *);
22
- VALUE rb_file_expand_path_fast(VALUE, VALUE);
23
- VALUE rb_file_expand_path_internal(VALUE, VALUE, int, int, VALUE);
24
- VALUE rb_get_path_check_to_string(VALUE);
25
- VALUE rb_get_path_check_convert(VALUE);
26
- int ruby_is_fd_loadable(int fd);
27
-
28
- RUBY_SYMBOL_EXPORT_BEGIN
29
- /* file.c (export) */
30
- #ifdef HAVE_READLINK
31
- VALUE rb_readlink(VALUE path, rb_encoding *enc);
32
- #endif
33
- #ifdef __APPLE__
34
- VALUE rb_str_normalize_ospath(const char *ptr, long len);
35
- #endif
36
- RUBY_SYMBOL_EXPORT_END
37
-
38
- #endif /* INTERNAL_FILE_H */
@@ -1,47 +0,0 @@
1
- #ifndef INTERNAL_INITS_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_INITS_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header aggregating init functions.
10
- */
11
-
12
- /* class.c */
13
- void Init_class_hierarchy(void);
14
-
15
- /* dmyext.c */
16
- void Init_enc(void);
17
- void Init_ext(void);
18
-
19
- /* file.c */
20
- void Init_File(void);
21
-
22
- /* localeinit.c */
23
- int Init_enc_set_filesystem_encoding(void);
24
-
25
- /* newline.c */
26
- void Init_newline(void);
27
-
28
- /* vm.c */
29
- void Init_BareVM(void);
30
- void Init_vm_objects(void);
31
-
32
- /* vm_backtrace.c */
33
- void Init_vm_backtrace(void);
34
-
35
- /* vm_eval.c */
36
- void Init_vm_eval(void);
37
-
38
- /* vm_insnhelper.c */
39
- void Init_vm_stack_canary(void);
40
-
41
- /* vm_method.c */
42
- void Init_eval_method(void);
43
-
44
- /* inits.c */
45
- void rb_call_inits(void);
46
-
47
- #endif /* INTERNAL_INITS_H */
@@ -1,18 +0,0 @@
1
- #ifndef INTERNAL_LOAD_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_LOAD_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for require.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
-
13
- /* load.c */
14
- VALUE rb_get_expanded_load_path(void);
15
- int rb_require_internal(VALUE fname);
16
- NORETURN(void rb_load_fail(VALUE, const char*));
17
-
18
- #endif /* INTERNAL_LOAD_H */
@@ -1,16 +0,0 @@
1
- #ifndef INTERNAL_LOADPATH_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_LOADPATH_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for $LOAD_PATH.
10
- */
11
-
12
- /* loadpath.c */
13
- extern const char ruby_exec_prefix[];
14
- extern const char ruby_initial_load_paths[];
15
-
16
- #endif /* INTERNAL_LOADPATH_H */
@@ -1,23 +0,0 @@
1
- #ifndef INTERNAL_MATH_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_MATH_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Math.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
-
13
- /* math.c */
14
- VALUE rb_math_atan2(VALUE, VALUE);
15
- VALUE rb_math_cos(VALUE);
16
- VALUE rb_math_cosh(VALUE);
17
- VALUE rb_math_exp(VALUE);
18
- VALUE rb_math_hypot(VALUE, VALUE);
19
- VALUE rb_math_log(int argc, const VALUE *argv);
20
- VALUE rb_math_sin(VALUE);
21
- VALUE rb_math_sinh(VALUE);
22
-
23
- #endif /* INTERNAL_MATH_H */
@@ -1,19 +0,0 @@
1
- #ifndef INTERNAL_MISSING_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_MISSING_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header corresponding missing.
10
- */
11
- #include "ruby/internal/config.h" /* for HAVE_SETPROCTITLE */
12
-
13
- /* missing/setproctitle.c */
14
- #ifndef HAVE_SETPROCTITLE
15
- extern void ruby_init_setproctitle(int argc, char *argv[]);
16
- extern void ruby_free_proctitle(void);
17
- #endif
18
-
19
- #endif /* INTERNAL_MISSING_H */
@@ -1,274 +0,0 @@
1
- #ifndef INTERNAL_NUMERIC_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_NUMERIC_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Numeric.
10
- */
11
- #include "internal/bignum.h" /* for BIGNUM_POSITIVE_P */
12
- #include "internal/bits.h" /* for RUBY_BIT_ROTL */
13
- #include "internal/fixnum.h" /* for FIXNUM_POSITIVE_P */
14
- #include "internal/vm.h" /* for rb_method_basic_definition_p */
15
- #include "ruby/intern.h" /* for rb_cmperr */
16
- #include "ruby/ruby.h" /* for USE_FLONUM */
17
-
18
- #define ROUND_TO(mode, even, up, down) \
19
- ((mode) == RUBY_NUM_ROUND_HALF_EVEN ? even : \
20
- (mode) == RUBY_NUM_ROUND_HALF_UP ? up : down)
21
- #define ROUND_FUNC(mode, name) \
22
- ROUND_TO(mode, name##_half_even, name##_half_up, name##_half_down)
23
- #define ROUND_CALL(mode, name, args) \
24
- ROUND_TO(mode, name##_half_even args, \
25
- name##_half_up args, name##_half_down args)
26
-
27
- #ifndef ROUND_DEFAULT
28
- # define ROUND_DEFAULT RUBY_NUM_ROUND_HALF_UP
29
- #endif
30
-
31
- enum ruby_num_rounding_mode {
32
- RUBY_NUM_ROUND_HALF_UP,
33
- RUBY_NUM_ROUND_HALF_EVEN,
34
- RUBY_NUM_ROUND_HALF_DOWN,
35
- RUBY_NUM_ROUND_DEFAULT = ROUND_DEFAULT,
36
- };
37
-
38
- /* same as internal.h */
39
- #define numberof(array) ((int)(sizeof(array) / sizeof((array)[0])))
40
- #define roomof(x, y) (((x) + (y) - 1) / (y))
41
- #define type_roomof(x, y) roomof(sizeof(x), sizeof(y))
42
-
43
- #if SIZEOF_DOUBLE <= SIZEOF_VALUE
44
- typedef double rb_float_value_type;
45
- #else
46
- typedef struct {
47
- VALUE values[roomof(SIZEOF_DOUBLE, SIZEOF_VALUE)];
48
- } rb_float_value_type;
49
- #endif
50
-
51
- struct RFloat {
52
- struct RBasic basic;
53
- rb_float_value_type float_value;
54
- };
55
-
56
- #define RFLOAT(obj) ((struct RFloat *)(obj))
57
-
58
- /* numeric.c */
59
- int rb_num_to_uint(VALUE val, unsigned int *ret);
60
- VALUE ruby_num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl);
61
- double ruby_float_step_size(double beg, double end, double unit, int excl);
62
- int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl, int allow_endless);
63
- int rb_num_negative_p(VALUE);
64
- VALUE rb_int_succ(VALUE num);
65
- VALUE rb_float_uminus(VALUE num);
66
- VALUE rb_int_plus(VALUE x, VALUE y);
67
- VALUE rb_float_plus(VALUE x, VALUE y);
68
- VALUE rb_int_minus(VALUE x, VALUE y);
69
- VALUE rb_float_minus(VALUE x, VALUE y);
70
- VALUE rb_int_mul(VALUE x, VALUE y);
71
- VALUE rb_float_mul(VALUE x, VALUE y);
72
- VALUE rb_float_div(VALUE x, VALUE y);
73
- VALUE rb_int_idiv(VALUE x, VALUE y);
74
- VALUE rb_int_modulo(VALUE x, VALUE y);
75
- VALUE rb_int2str(VALUE num, int base);
76
- VALUE rb_fix_plus(VALUE x, VALUE y);
77
- VALUE rb_int_gt(VALUE x, VALUE y);
78
- VALUE rb_float_gt(VALUE x, VALUE y);
79
- VALUE rb_int_ge(VALUE x, VALUE y);
80
- enum ruby_num_rounding_mode rb_num_get_rounding_option(VALUE opts);
81
- double rb_int_fdiv_double(VALUE x, VALUE y);
82
- VALUE rb_int_pow(VALUE x, VALUE y);
83
- VALUE rb_float_pow(VALUE x, VALUE y);
84
- VALUE rb_int_cmp(VALUE x, VALUE y);
85
- VALUE rb_int_equal(VALUE x, VALUE y);
86
- VALUE rb_int_divmod(VALUE x, VALUE y);
87
- VALUE rb_int_and(VALUE x, VALUE y);
88
- VALUE rb_int_lshift(VALUE x, VALUE y);
89
- VALUE rb_int_rshift(VALUE x, VALUE y);
90
- VALUE rb_int_div(VALUE x, VALUE y);
91
- int rb_int_positive_p(VALUE num);
92
- int rb_int_negative_p(VALUE num);
93
- VALUE rb_check_integer_type(VALUE);
94
- VALUE rb_num_pow(VALUE x, VALUE y);
95
- VALUE rb_float_ceil(VALUE num, int ndigits);
96
- VALUE rb_float_floor(VALUE x, int ndigits);
97
- VALUE rb_float_abs(VALUE flt);
98
- static inline VALUE rb_num_compare_with_zero(VALUE num, ID mid);
99
- static inline int rb_num_positive_int_p(VALUE num);
100
- static inline int rb_num_negative_int_p(VALUE num);
101
- static inline double rb_float_flonum_value(VALUE v);
102
- static inline double rb_float_noflonum_value(VALUE v);
103
- static inline double rb_float_value_inline(VALUE v);
104
- static inline VALUE rb_float_new_inline(double d);
105
- static inline bool INT_POSITIVE_P(VALUE num);
106
- static inline bool INT_NEGATIVE_P(VALUE num);
107
- static inline bool FLOAT_ZERO_P(VALUE num);
108
- #define rb_float_value rb_float_value_inline
109
- #define rb_float_new rb_float_new_inline
110
-
111
- RUBY_SYMBOL_EXPORT_BEGIN
112
- /* numeric.c (export) */
113
- RUBY_SYMBOL_EXPORT_END
114
-
115
- VALUE rb_flo_div_flo(VALUE x, VALUE y);
116
- double ruby_float_mod(double x, double y);
117
- VALUE rb_float_equal(VALUE x, VALUE y);
118
- int rb_float_cmp(VALUE x, VALUE y);
119
- VALUE rb_float_eql(VALUE x, VALUE y);
120
- VALUE rb_fix_aref(VALUE fix, VALUE idx);
121
- VALUE rb_int_zero_p(VALUE num);
122
- VALUE rb_int_even_p(VALUE num);
123
- VALUE rb_int_odd_p(VALUE num);
124
- VALUE rb_int_abs(VALUE num);
125
- VALUE rb_int_bit_length(VALUE num);
126
- VALUE rb_int_uminus(VALUE num);
127
- VALUE rb_int_comp(VALUE num);
128
-
129
- static inline bool
130
- INT_POSITIVE_P(VALUE num)
131
- {
132
- if (FIXNUM_P(num)) {
133
- return FIXNUM_POSITIVE_P(num);
134
- }
135
- else {
136
- return BIGNUM_POSITIVE_P(num);
137
- }
138
- }
139
-
140
- static inline bool
141
- INT_NEGATIVE_P(VALUE num)
142
- {
143
- if (FIXNUM_P(num)) {
144
- return FIXNUM_NEGATIVE_P(num);
145
- }
146
- else {
147
- return BIGNUM_NEGATIVE_P(num);
148
- }
149
- }
150
-
151
- static inline bool
152
- FLOAT_ZERO_P(VALUE num)
153
- {
154
- return RFLOAT_VALUE(num) == 0.0;
155
- }
156
-
157
- static inline VALUE
158
- rb_num_compare_with_zero(VALUE num, ID mid)
159
- {
160
- VALUE zero = INT2FIX(0);
161
- VALUE r = rb_check_funcall(num, mid, 1, &zero);
162
- if (RB_UNDEF_P(r)) {
163
- rb_cmperr(num, zero);
164
- }
165
- return r;
166
- }
167
-
168
- static inline int
169
- rb_num_positive_int_p(VALUE num)
170
- {
171
- const ID mid = '>';
172
-
173
- if (FIXNUM_P(num)) {
174
- if (rb_method_basic_definition_p(rb_cInteger, mid))
175
- return FIXNUM_POSITIVE_P(num);
176
- }
177
- else if (RB_TYPE_P(num, T_BIGNUM)) {
178
- if (rb_method_basic_definition_p(rb_cInteger, mid))
179
- return BIGNUM_POSITIVE_P(num);
180
- }
181
- return RTEST(rb_num_compare_with_zero(num, mid));
182
- }
183
-
184
- static inline int
185
- rb_num_negative_int_p(VALUE num)
186
- {
187
- const ID mid = '<';
188
-
189
- if (FIXNUM_P(num)) {
190
- if (rb_method_basic_definition_p(rb_cInteger, mid))
191
- return FIXNUM_NEGATIVE_P(num);
192
- }
193
- else if (RB_TYPE_P(num, T_BIGNUM)) {
194
- if (rb_method_basic_definition_p(rb_cInteger, mid))
195
- return BIGNUM_NEGATIVE_P(num);
196
- }
197
- return RTEST(rb_num_compare_with_zero(num, mid));
198
- }
199
-
200
- static inline double
201
- rb_float_flonum_value(VALUE v)
202
- {
203
- #if USE_FLONUM
204
- if (v != (VALUE)0x8000000000000002) { /* LIKELY */
205
- union {
206
- double d;
207
- VALUE v;
208
- } t;
209
-
210
- VALUE b63 = (v >> 63);
211
- /* e: xx1... -> 011... */
212
- /* xx0... -> 100... */
213
- /* ^b63 */
214
- t.v = RUBY_BIT_ROTR((2 - b63) | (v & ~(VALUE)0x03), 3);
215
- return t.d;
216
- }
217
- #endif
218
- return 0.0;
219
- }
220
-
221
- static inline double
222
- rb_float_noflonum_value(VALUE v)
223
- {
224
- #if SIZEOF_DOUBLE <= SIZEOF_VALUE
225
- return RFLOAT(v)->float_value;
226
- #else
227
- union {
228
- rb_float_value_type v;
229
- double d;
230
- } u = {RFLOAT(v)->float_value};
231
- return u.d;
232
- #endif
233
- }
234
-
235
- static inline double
236
- rb_float_value_inline(VALUE v)
237
- {
238
- if (FLONUM_P(v)) {
239
- return rb_float_flonum_value(v);
240
- }
241
- return rb_float_noflonum_value(v);
242
- }
243
-
244
- static inline VALUE
245
- rb_float_new_inline(double d)
246
- {
247
- #if USE_FLONUM
248
- union {
249
- double d;
250
- VALUE v;
251
- } t;
252
- int bits;
253
-
254
- t.d = d;
255
- bits = (int)((VALUE)(t.v >> 60) & 0x7);
256
- /* bits contains 3 bits of b62..b60. */
257
- /* bits - 3 = */
258
- /* b011 -> b000 */
259
- /* b100 -> b001 */
260
-
261
- if (t.v != 0x3000000000000000 /* 1.72723e-77 */ &&
262
- !((bits-3) & ~0x01)) {
263
- return (RUBY_BIT_ROTL(t.v, 3) & ~(VALUE)0x01) | 0x02;
264
- }
265
- else if (t.v == (VALUE)0) {
266
- /* +0.0 */
267
- return 0x8000000000000002;
268
- }
269
- /* out of range */
270
- #endif
271
- return rb_float_new_in_heap(d);
272
- }
273
-
274
- #endif /* INTERNAL_NUMERIC_H */
@@ -1,63 +0,0 @@
1
- #ifndef INTERNAL_OBJECT_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_OBJECT_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Object.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
-
13
- /* object.c */
14
- size_t rb_obj_embedded_size(uint32_t numiv);
15
- VALUE rb_class_allocate_instance(VALUE klass);
16
- VALUE rb_class_search_ancestor(VALUE klass, VALUE super);
17
- NORETURN(void rb_undefined_alloc(VALUE klass));
18
- double rb_num_to_dbl(VALUE val);
19
- VALUE rb_obj_dig(int argc, VALUE *argv, VALUE self, VALUE notfound);
20
- VALUE rb_obj_clone_setup(VALUE obj, VALUE clone, VALUE kwfreeze);
21
- VALUE rb_obj_dup_setup(VALUE obj, VALUE dup);
22
- VALUE rb_immutable_obj_clone(int, VALUE *, VALUE);
23
- VALUE rb_check_convert_type_with_id(VALUE,int,const char*,ID);
24
- int rb_bool_expected(VALUE, const char *, int raise);
25
- static inline void RBASIC_CLEAR_CLASS(VALUE obj);
26
- static inline void RBASIC_SET_CLASS_RAW(VALUE obj, VALUE klass);
27
- static inline void RBASIC_SET_CLASS(VALUE obj, VALUE klass);
28
-
29
- RUBY_SYMBOL_EXPORT_BEGIN
30
- /* object.c (export) */
31
- int rb_opts_exception_p(VALUE opts, int default_value);
32
- RUBY_SYMBOL_EXPORT_END
33
-
34
- CONSTFUNC(VALUE rb_obj_equal(VALUE obj1, VALUE obj2));
35
- CONSTFUNC(VALUE rb_obj_not(VALUE obj));
36
- VALUE rb_obj_not_equal(VALUE obj1, VALUE obj2);
37
- void rb_obj_copy_ivar(VALUE dest, VALUE obj);
38
- VALUE rb_false(VALUE obj);
39
- VALUE rb_convert_type_with_id(VALUE v, int t, const char* nam, ID mid);
40
- VALUE rb_obj_size(VALUE self, VALUE args, VALUE obj);
41
- VALUE rb_get_freeze_opt(int argc, VALUE *argv);
42
-
43
- static inline void
44
- RBASIC_SET_CLASS_RAW(VALUE obj, VALUE klass)
45
- {
46
- const VALUE *ptr = &RBASIC(obj)->klass;
47
- *(VALUE *)ptr = klass;
48
- }
49
-
50
- static inline void
51
- RBASIC_CLEAR_CLASS(VALUE obj)
52
- {
53
- RBASIC_SET_CLASS_RAW(obj, 0);
54
- }
55
-
56
- static inline void
57
- RBASIC_SET_CLASS(VALUE obj, VALUE klass)
58
- {
59
- VALUE oldv = RBASIC_CLASS(obj);
60
- RBASIC_SET_CLASS_RAW(obj, klass);
61
- RB_OBJ_WRITTEN(obj, oldv, klass);
62
- }
63
- #endif /* INTERNAL_OBJECT_H */
@@ -1,30 +0,0 @@
1
- #ifndef INTERNAL_PROC_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_PROC_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Proc.
10
- */
11
- #include "ruby/ruby.h" /* for rb_block_call_func_t */
12
- #include "ruby/st.h" /* for st_index_t */
13
- struct rb_block; /* in vm_core.h */
14
- struct rb_iseq_struct; /* in vm_core.h */
15
-
16
- /* proc.c */
17
- VALUE rb_proc_location(VALUE self);
18
- st_index_t rb_hash_proc(st_index_t hash, VALUE proc);
19
- int rb_block_pair_yield_optimizable(void);
20
- int rb_block_arity(void);
21
- int rb_block_min_max_arity(int *max);
22
- VALUE rb_block_to_s(VALUE self, const struct rb_block *block, const char *additional_info);
23
- VALUE rb_callable_receiver(VALUE);
24
-
25
- VALUE rb_func_proc_new(rb_block_call_func_t func, VALUE val);
26
- VALUE rb_func_lambda_new(rb_block_call_func_t func, VALUE val, int min_argc, int max_argc);
27
- VALUE rb_iseq_location(const struct rb_iseq_struct *iseq);
28
- VALUE rb_sym_to_proc(VALUE sym);
29
-
30
- #endif /* INTERNAL_PROC_H */