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,124 +0,0 @@
1
- #ifndef INTERNAL_PROCESS_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_PROCESS_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 Process.
10
- */
11
- #include "ruby/internal/config.h" /* for rb_pid_t */
12
- #include <stddef.h> /* for size_t */
13
-
14
- #ifdef HAVE_SYS_TYPES_H
15
- # include <sys/types.h> /* for mode_t */
16
- #endif
17
-
18
- #ifdef _WIN32
19
- # include "ruby/win32.h" /* for mode_t */
20
- #endif
21
-
22
- #include "ruby/ruby.h" /* for VALUE */
23
- #include "internal/compilers.h" /* for __has_warning */
24
- #include "internal/imemo.h" /* for RB_IMEMO_TMPBUF_PTR */
25
-
26
- #define RB_MAX_GROUPS (65536)
27
-
28
- struct waitpid_state;
29
- struct rb_process_status;
30
- struct rb_execarg {
31
- union {
32
- struct {
33
- VALUE shell_script;
34
- } sh;
35
- struct {
36
- VALUE command_name;
37
- VALUE command_abspath; /* full path string or nil */
38
- VALUE argv_str;
39
- VALUE argv_buf;
40
- } cmd;
41
- } invoke;
42
- VALUE redirect_fds;
43
- VALUE envp_str;
44
- VALUE envp_buf;
45
- VALUE dup2_tmpbuf;
46
- unsigned use_shell : 1;
47
- unsigned pgroup_given : 1;
48
- unsigned umask_given : 1;
49
- unsigned unsetenv_others_given : 1;
50
- unsigned unsetenv_others_do : 1;
51
- unsigned close_others_given : 1;
52
- unsigned close_others_do : 1;
53
- unsigned chdir_given : 1;
54
- unsigned new_pgroup_given : 1;
55
- unsigned new_pgroup_flag : 1;
56
- unsigned uid_given : 1;
57
- unsigned gid_given : 1;
58
- unsigned exception : 1;
59
- unsigned exception_given : 1;
60
- struct rb_process_status *status;
61
- struct waitpid_state *waitpid_state; /* for async process management */
62
- rb_pid_t pgroup_pgid; /* asis(-1), new pgroup(0), specified pgroup (0<V). */
63
- VALUE rlimit_limits; /* Qfalse or [[rtype, softlim, hardlim], ...] */
64
- mode_t umask_mask;
65
- rb_uid_t uid;
66
- rb_gid_t gid;
67
- int close_others_maxhint;
68
- VALUE fd_dup2;
69
- VALUE fd_close;
70
- VALUE fd_open;
71
- VALUE fd_dup2_child;
72
- VALUE env_modification; /* Qfalse or [[k1,v1], ...] */
73
- VALUE path_env;
74
- VALUE chdir_dir;
75
- };
76
-
77
- /* process.c */
78
- rb_pid_t rb_call_proc__fork(void);
79
- void rb_last_status_clear(void);
80
- static inline char **ARGVSTR2ARGV(VALUE argv_str);
81
- static inline size_t ARGVSTR2ARGC(VALUE argv_str);
82
-
83
- #ifdef HAVE_PWD_H
84
- VALUE rb_getlogin(void);
85
- VALUE rb_getpwdirnam_for_login(VALUE login); /* read as: "get pwd db home dir by username for login" */
86
- VALUE rb_getpwdiruid(void); /* read as: "get pwd db home dir for getuid()" */
87
- #endif
88
-
89
- RUBY_SYMBOL_EXPORT_BEGIN
90
- /* process.c (export) */
91
- int rb_exec_async_signal_safe(const struct rb_execarg *e, char *errmsg, size_t errmsg_buflen);
92
- 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);
93
- VALUE rb_execarg_new(int argc, const VALUE *argv, int accept_shell, int allow_exc_opt);
94
- struct rb_execarg *rb_execarg_get(VALUE execarg_obj); /* dangerous. needs GC guard. */
95
- int rb_execarg_addopt(VALUE execarg_obj, VALUE key, VALUE val);
96
- void rb_execarg_parent_start(VALUE execarg_obj);
97
- void rb_execarg_parent_end(VALUE execarg_obj);
98
- int rb_execarg_run_options(const struct rb_execarg *e, struct rb_execarg *s, char* errmsg, size_t errmsg_buflen);
99
- VALUE rb_execarg_extract_options(VALUE execarg_obj, VALUE opthash);
100
- void rb_execarg_setenv(VALUE execarg_obj, VALUE env);
101
- RUBY_SYMBOL_EXPORT_END
102
-
103
- /* argv_str contains extra two elements.
104
- * The beginning one is for /bin/sh used by exec_with_sh.
105
- * The last one for terminating NULL used by execve.
106
- * See rb_exec_fillarg() in process.c. */
107
- static inline char **
108
- ARGVSTR2ARGV(VALUE argv_str)
109
- {
110
- char **buf = RB_IMEMO_TMPBUF_PTR(argv_str);
111
- return &buf[1];
112
- }
113
-
114
- static inline size_t
115
- ARGVSTR2ARGC(VALUE argv_str)
116
- {
117
- size_t i = 0;
118
- char *const *p = ARGVSTR2ARGV(argv_str);
119
- while (p[i++])
120
- ;
121
- return i - 1;
122
- }
123
-
124
- #endif /* INTERNAL_PROCESS_H */
@@ -1,17 +0,0 @@
1
- #ifndef INTERNAL_RANDOM_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_RANDOM_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 Random.
10
- */
11
- #include <stddef.h> /* for size_t */
12
-
13
- /* random.c */
14
- int ruby_fill_random_bytes(void *, size_t, int);
15
- void rb_free_default_rand_key(void);
16
-
17
- #endif /* INTERNAL_RANDOM_H */
@@ -1,40 +0,0 @@
1
- #ifndef INTERNAL_RANGE_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_RANGE_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 Range.
10
- */
11
- #include "internal/struct.h" /* for RSTRUCT */
12
-
13
- /* range.c */
14
- static inline VALUE RANGE_BEG(VALUE r);
15
- static inline VALUE RANGE_END(VALUE r);
16
- static inline VALUE RANGE_EXCL(VALUE r);
17
-
18
- static inline VALUE
19
- RANGE_BEG(VALUE r)
20
- {
21
- return RSTRUCT(r)->as.ary[0];
22
- }
23
-
24
- static inline VALUE
25
- RANGE_END(VALUE r)
26
- {
27
- return RSTRUCT_GET(r, 1);
28
- }
29
-
30
- static inline VALUE
31
- RANGE_EXCL(VALUE r)
32
- {
33
- return RSTRUCT_GET(r, 2);
34
- }
35
-
36
- VALUE
37
- rb_range_component_beg_len(VALUE b, VALUE e, int excl,
38
- long *begp, long *lenp, long len, int err);
39
-
40
- #endif /* INTERNAL_RANGE_H */
@@ -1,71 +0,0 @@
1
- #ifndef INTERNAL_RATIONAL_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_RATIONAL_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 Rational.
10
- */
11
- #include "ruby/internal/config.h" /* for HAVE_LIBGMP */
12
- #include "ruby/ruby.h" /* for struct RBasic */
13
- #include "internal/numeric.h" /* for INT_POSITIVE_P */
14
- #include "ruby_assert.h" /* for assert */
15
-
16
- struct RRational {
17
- struct RBasic basic;
18
- VALUE num;
19
- VALUE den;
20
- };
21
-
22
- #define RRATIONAL(obj) ((struct RRational *)(obj))
23
-
24
- /* rational.c */
25
- VALUE rb_rational_canonicalize(VALUE x);
26
- VALUE rb_rational_uminus(VALUE self);
27
- VALUE rb_rational_plus(VALUE self, VALUE other);
28
- VALUE rb_rational_minus(VALUE self, VALUE other);
29
- VALUE rb_rational_mul(VALUE self, VALUE other);
30
- VALUE rb_rational_div(VALUE self, VALUE other);
31
- VALUE rb_lcm(VALUE x, VALUE y);
32
- VALUE rb_rational_reciprocal(VALUE x);
33
- VALUE rb_cstr_to_rat(const char *, int);
34
- VALUE rb_rational_hash(VALUE self);
35
- VALUE rb_rational_abs(VALUE self);
36
- VALUE rb_rational_cmp(VALUE self, VALUE other);
37
- VALUE rb_rational_pow(VALUE self, VALUE other);
38
- VALUE rb_rational_floor(VALUE self, int ndigits);
39
- VALUE rb_numeric_quo(VALUE x, VALUE y);
40
- VALUE rb_flo_round_by_rational(int argc, VALUE *argv, VALUE num);
41
- VALUE rb_float_numerator(VALUE x);
42
- VALUE rb_float_denominator(VALUE x);
43
-
44
- static inline void RATIONAL_SET_NUM(VALUE r, VALUE n);
45
- static inline void RATIONAL_SET_DEN(VALUE r, VALUE d);
46
-
47
- RUBY_SYMBOL_EXPORT_BEGIN
48
- /* rational.c (export) */
49
- VALUE rb_gcd(VALUE x, VALUE y);
50
- VALUE rb_gcd_normal(VALUE self, VALUE other);
51
- #if defined(HAVE_LIBGMP) && defined(HAVE_GMP_H)
52
- VALUE rb_gcd_gmp(VALUE x, VALUE y);
53
- #endif
54
- RUBY_SYMBOL_EXPORT_END
55
-
56
- static inline void
57
- RATIONAL_SET_NUM(VALUE r, VALUE n)
58
- {
59
- assert(RB_INTEGER_TYPE_P(n));
60
- RB_OBJ_WRITE(r, &RRATIONAL(r)->num, n);
61
- }
62
-
63
- static inline void
64
- RATIONAL_SET_DEN(VALUE r, VALUE d)
65
- {
66
- assert(RB_INTEGER_TYPE_P(d));
67
- assert(INT_POSITIVE_P(d));
68
- RB_OBJ_WRITE(r, &RRATIONAL(r)->den, d);
69
- }
70
-
71
- #endif /* INTERNAL_RATIONAL_H */
@@ -1,28 +0,0 @@
1
- #ifndef INTERNAL_RE_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_RE_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 Regexp.
10
- */
11
- #include "ruby/internal/stdbool.h" /* for bool */
12
- #include "ruby/ruby.h" /* for VALUE */
13
-
14
- /* re.c */
15
- VALUE rb_reg_compile(VALUE str, int options, const char *sourcefile, int sourceline);
16
- VALUE rb_reg_check_preprocess(VALUE);
17
- long rb_reg_search0(VALUE, VALUE, long, int, int);
18
- VALUE rb_reg_match_p(VALUE re, VALUE str, long pos);
19
- bool rb_reg_start_with_p(VALUE re, VALUE str);
20
- VALUE rb_reg_hash(VALUE re);
21
- VALUE rb_reg_equal(VALUE re1, VALUE re2);
22
- void rb_backref_set_string(VALUE string, long pos, long len);
23
- void rb_match_unbusy(VALUE);
24
- int rb_match_count(VALUE match);
25
- VALUE rb_reg_new_ary(VALUE ary, int options);
26
- VALUE rb_reg_last_defined(VALUE match);
27
-
28
- #endif /* INTERNAL_RE_H */
@@ -1,102 +0,0 @@
1
- #ifndef INTERNAL_RUBY_PARSE_H
2
- #define INTERNAL_RUBY_PARSE_H
3
-
4
- #include "internal.h"
5
- #include "internal/bignum.h"
6
- #include "internal/compilers.h"
7
- #include "internal/complex.h"
8
- #include "internal/parse.h"
9
- #include "internal/rational.h"
10
- #include "rubyparser.h"
11
- #include "vm.h"
12
-
13
- struct lex_pointer_string {
14
- VALUE str;
15
- long ptr;
16
- };
17
-
18
- RUBY_SYMBOL_EXPORT_BEGIN
19
- #ifdef UNIVERSAL_PARSER
20
- const rb_parser_config_t *rb_ruby_parser_config(void);
21
- rb_parser_t *rb_parser_params_new(void);
22
- #endif
23
- VALUE rb_parser_set_context(VALUE, const struct rb_iseq_struct *, int);
24
- VALUE rb_parser_new(void);
25
- VALUE rb_parser_compile_string_path(VALUE vparser, VALUE fname, VALUE src, int line);
26
- VALUE rb_str_new_parser_string(rb_parser_string_t *str);
27
- VALUE rb_str_new_mutable_parser_string(rb_parser_string_t *str);
28
- rb_parser_string_t *rb_parser_lex_get_str(struct parser_params *p, struct lex_pointer_string *ptr_str);
29
-
30
- VALUE rb_node_str_string_val(const NODE *);
31
- VALUE rb_node_sym_string_val(const NODE *);
32
- VALUE rb_node_dstr_string_val(const NODE *);
33
- VALUE rb_node_regx_string_val(const NODE *);
34
- VALUE rb_node_dregx_string_val(const NODE *);
35
- VALUE rb_node_line_lineno_val(const NODE *);
36
- VALUE rb_node_file_path_val(const NODE *);
37
- VALUE rb_node_encoding_val(const NODE *);
38
-
39
- VALUE rb_node_integer_literal_val(const NODE *);
40
- VALUE rb_node_float_literal_val(const NODE *);
41
- VALUE rb_node_rational_literal_val(const NODE *);
42
- VALUE rb_node_imaginary_literal_val(const NODE *);
43
- RUBY_SYMBOL_EXPORT_END
44
-
45
- VALUE rb_parser_end_seen_p(VALUE);
46
- VALUE rb_parser_encoding(VALUE);
47
- VALUE rb_parser_set_yydebug(VALUE, VALUE);
48
- VALUE rb_parser_build_script_lines_from(rb_parser_ary_t *script_lines);
49
- void rb_parser_set_options(VALUE, int, int, int, int);
50
- VALUE rb_parser_load_file(VALUE parser, VALUE name);
51
- void rb_parser_set_script_lines(VALUE vparser);
52
- void rb_parser_error_tolerant(VALUE vparser);
53
- void rb_parser_keep_tokens(VALUE vparser);
54
-
55
- VALUE rb_parser_compile_string(VALUE, const char*, VALUE, int);
56
- VALUE rb_parser_compile_file_path(VALUE vparser, VALUE fname, VALUE input, int line);
57
- VALUE rb_parser_compile_generic(VALUE vparser, rb_parser_lex_gets_func *lex_gets, VALUE fname, VALUE input, int line);
58
- VALUE rb_parser_compile_array(VALUE vparser, VALUE fname, VALUE array, int start);
59
-
60
- enum lex_state_bits {
61
- EXPR_BEG_bit, /* ignore newline, +/- is a sign. */
62
- EXPR_END_bit, /* newline significant, +/- is an operator. */
63
- EXPR_ENDARG_bit, /* ditto, and unbound braces. */
64
- EXPR_ENDFN_bit, /* ditto, and unbound braces. */
65
- EXPR_ARG_bit, /* newline significant, +/- is an operator. */
66
- EXPR_CMDARG_bit, /* newline significant, +/- is an operator. */
67
- EXPR_MID_bit, /* newline significant, +/- is an operator. */
68
- EXPR_FNAME_bit, /* ignore newline, no reserved words. */
69
- EXPR_DOT_bit, /* right after `.', `&.' or `::', no reserved words. */
70
- EXPR_CLASS_bit, /* immediate after `class', no here document. */
71
- EXPR_LABEL_bit, /* flag bit, label is allowed. */
72
- EXPR_LABELED_bit, /* flag bit, just after a label. */
73
- EXPR_FITEM_bit, /* symbol literal as FNAME. */
74
- EXPR_MAX_STATE
75
- };
76
- /* examine combinations */
77
- enum lex_state_e {
78
- #define DEF_EXPR(n) EXPR_##n = (1 << EXPR_##n##_bit)
79
- DEF_EXPR(BEG),
80
- DEF_EXPR(END),
81
- DEF_EXPR(ENDARG),
82
- DEF_EXPR(ENDFN),
83
- DEF_EXPR(ARG),
84
- DEF_EXPR(CMDARG),
85
- DEF_EXPR(MID),
86
- DEF_EXPR(FNAME),
87
- DEF_EXPR(DOT),
88
- DEF_EXPR(CLASS),
89
- DEF_EXPR(LABEL),
90
- DEF_EXPR(LABELED),
91
- DEF_EXPR(FITEM),
92
- EXPR_VALUE = EXPR_BEG,
93
- EXPR_BEG_ANY = (EXPR_BEG | EXPR_MID | EXPR_CLASS),
94
- EXPR_ARG_ANY = (EXPR_ARG | EXPR_CMDARG),
95
- EXPR_END_ANY = (EXPR_END | EXPR_ENDARG | EXPR_ENDFN),
96
- EXPR_NONE = 0
97
- };
98
-
99
- VALUE rb_ruby_ast_new(const NODE *const root);
100
- rb_ast_t *rb_ruby_ast_data_get(VALUE ast_value);
101
-
102
- #endif /* INTERNAL_RUBY_PARSE_H */
@@ -1,23 +0,0 @@
1
- #ifndef INTERNAL_SERIAL_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_SERIAL_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 rb_serial_t.
10
- */
11
- #include "ruby/internal/config.h" /* for HAVE_LONG_LONG */
12
- #include "ruby/defines.h" /* for LONG_LONG */
13
-
14
- #ifndef HAVE_LONG_LONG
15
- # error need C99+
16
- #endif
17
-
18
- typedef unsigned LONG_LONG rb_serial_t;
19
- #define SERIALT2NUM ULL2NUM
20
- #define PRI_SERIALT_PREFIX PRI_LL_PREFIX
21
- #define SIZEOF_SERIAL_T SIZEOF_LONG_LONG
22
-
23
- #endif /* INTERNAL_SERIAL_H */
@@ -1,24 +0,0 @@
1
- #ifndef INTERNAL_SIGNAL_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_SIGNAL_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 SignalException.
10
- */
11
-
12
- /* signal.c */
13
- extern int ruby_enable_coredump;
14
- int rb_get_next_signal(void);
15
-
16
- #ifdef POSIX_SIGNAL
17
- void (*ruby_posix_signal(int, void (*)(int)))(int);
18
- #endif
19
-
20
- RUBY_SYMBOL_EXPORT_BEGIN
21
- /* signal.c (export) */
22
- RUBY_SYMBOL_EXPORT_END
23
-
24
- #endif /* INTERNAL_SIGNAL_H */
@@ -1,11 +0,0 @@
1
- #ifndef INTERNAL_ST_H
2
- #define INTERNAL_ST_H
3
-
4
- #include "include/ruby/st.h"
5
-
6
- st_table *rb_st_replace(st_table *new_tab, st_table *old_tab);
7
- #define st_replace rb_st_replace
8
- st_table *rb_st_init_existing_table_with_size(st_table *tab, const struct st_hash_type *type, st_index_t size);
9
- #define st_init_existing_table_with_size rb_st_init_existing_table_with_size
10
-
11
- #endif
@@ -1,16 +0,0 @@
1
- #ifndef INTERNAL_STATIC_ASSERT_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_STATIC_ASSERT_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 C11 shim for _Static_assert.
10
- */
11
- #include "ruby/internal/static_assert.h"
12
- #ifndef STATIC_ASSERT
13
- # define STATIC_ASSERT RBIMPL_STATIC_ASSERT
14
- #endif
15
-
16
- #endif /* INTERNAL_STATIC_ASSERT_H */
@@ -1,127 +0,0 @@
1
- #ifndef INTERNAL_STRUCT_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_STRUCT_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 Struct.
10
- */
11
- #include "ruby/internal/stdbool.h" /* for bool */
12
- #include "ruby/ruby.h" /* for struct RBasic */
13
-
14
- enum {
15
- RSTRUCT_EMBED_LEN_MASK = RUBY_FL_USER7 | RUBY_FL_USER6 | RUBY_FL_USER5 | RUBY_FL_USER4 |
16
- RUBY_FL_USER3 | RUBY_FL_USER2 | RUBY_FL_USER1,
17
- RSTRUCT_EMBED_LEN_SHIFT = (RUBY_FL_USHIFT+1),
18
- };
19
-
20
- struct RStruct {
21
- struct RBasic basic;
22
- union {
23
- struct {
24
- long len;
25
- const VALUE *ptr;
26
- } heap;
27
- /* This is a length 1 array because:
28
- * 1. GCC has a bug that does not optimize C flexible array members
29
- * (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102452)
30
- * 2. Zero length arrays are not supported by all compilers
31
- */
32
- const VALUE ary[1];
33
- } as;
34
- };
35
-
36
- #define RSTRUCT(obj) ((struct RStruct *)(obj))
37
-
38
- #ifdef RSTRUCT_LEN
39
- # undef RSTRUCT_LEN
40
- #endif
41
-
42
- #ifdef RSTRUCT_PTR
43
- # undef RSTRUCT_PTR
44
- #endif
45
-
46
- #ifdef RSTRUCT_SET
47
- # undef RSTRUCT_SET
48
- #endif
49
-
50
- #ifdef RSTRUCT_GET
51
- # undef RSTRUCT_GET
52
- #endif
53
-
54
- #define RSTRUCT_LEN internal_RSTRUCT_LEN
55
- #define RSTRUCT_SET internal_RSTRUCT_SET
56
- #define RSTRUCT_GET internal_RSTRUCT_GET
57
-
58
- /* struct.c */
59
- VALUE rb_struct_init_copy(VALUE copy, VALUE s);
60
- VALUE rb_struct_lookup(VALUE s, VALUE idx);
61
- VALUE rb_struct_s_keyword_init(VALUE klass);
62
- static inline const VALUE *rb_struct_const_heap_ptr(VALUE st);
63
- static inline long RSTRUCT_EMBED_LEN(VALUE st);
64
- static inline long RSTRUCT_LEN(VALUE st);
65
- static inline int RSTRUCT_LENINT(VALUE st);
66
- static inline const VALUE *RSTRUCT_CONST_PTR(VALUE st);
67
- static inline void RSTRUCT_SET(VALUE st, long k, VALUE v);
68
- static inline VALUE RSTRUCT_GET(VALUE st, long k);
69
-
70
- static inline long
71
- RSTRUCT_EMBED_LEN(VALUE st)
72
- {
73
- long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
74
- ret >>= RSTRUCT_EMBED_LEN_SHIFT;
75
- return ret;
76
- }
77
-
78
- static inline long
79
- RSTRUCT_LEN(VALUE st)
80
- {
81
- if (FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK)) {
82
- return RSTRUCT_EMBED_LEN(st);
83
- }
84
- else {
85
- return RSTRUCT(st)->as.heap.len;
86
- }
87
- }
88
-
89
- static inline int
90
- RSTRUCT_LENINT(VALUE st)
91
- {
92
- return rb_long2int(RSTRUCT_LEN(st));
93
- }
94
-
95
- static inline const VALUE *
96
- RSTRUCT_CONST_PTR(VALUE st)
97
- {
98
- const struct RStruct *p = RSTRUCT(st);
99
-
100
- if (FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK)) {
101
- return p->as.ary;
102
- }
103
- else {
104
- return p->as.heap.ptr;
105
- }
106
- }
107
-
108
- static inline void
109
- RSTRUCT_SET(VALUE st, long k, VALUE v)
110
- {
111
- RB_OBJ_WRITE(st, &RSTRUCT_CONST_PTR(st)[k], v);
112
- }
113
-
114
- static inline VALUE
115
- RSTRUCT_GET(VALUE st, long k)
116
- {
117
- return RSTRUCT_CONST_PTR(st)[k];
118
- }
119
-
120
- static inline const VALUE *
121
- rb_struct_const_heap_ptr(VALUE st)
122
- {
123
- assert(!FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK));
124
- return RSTRUCT(st)->as.heap.ptr;
125
- }
126
-
127
- #endif /* INTERNAL_STRUCT_H */
@@ -1,45 +0,0 @@
1
- #ifndef INTERNAL_SYMBOL_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_SYMBOL_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 Symbol.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
- #include "ruby/encoding.h" /* for rb_encoding */
13
- #include "internal/compilers.h" /* for __has_builtin */
14
-
15
- #ifdef rb_sym_intern_ascii_cstr
16
- # undef rb_sym_intern_ascii_cstr
17
- #endif
18
-
19
- /* symbol.c */
20
- VALUE rb_to_symbol_type(VALUE obj);
21
- VALUE rb_sym_intern(const char *ptr, long len, rb_encoding *enc);
22
- VALUE rb_sym_intern_ascii(const char *ptr, long len);
23
- VALUE rb_sym_intern_ascii_cstr(const char *ptr);
24
- int rb_is_const_name(VALUE name);
25
- int rb_is_class_name(VALUE name);
26
- int rb_is_instance_name(VALUE name);
27
- int rb_is_local_name(VALUE name);
28
- PUREFUNC(int rb_is_const_sym(VALUE sym));
29
- PUREFUNC(int rb_is_attrset_sym(VALUE sym));
30
- ID rb_make_internal_id(void);
31
- ID rb_make_temporary_id(size_t n);
32
- void rb_gc_free_dsymbol(VALUE);
33
- int rb_static_id_valid_p(ID id);
34
-
35
- /* vm.c */
36
- void rb_free_static_symid_str(void);
37
-
38
- #if __has_builtin(__builtin_constant_p)
39
- #define rb_sym_intern_ascii_cstr(ptr) \
40
- (__builtin_constant_p(ptr) ? \
41
- rb_sym_intern_ascii((ptr), (long)strlen(ptr)) : \
42
- rb_sym_intern_ascii_cstr(ptr))
43
- #endif
44
-
45
- #endif /* INTERNAL_SYMBOL_H */
@@ -1,34 +0,0 @@
1
- #ifndef INTERNAL_TIME_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_TIME_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 Time.
10
- */
11
- #include "ruby/internal/config.h" /* for SIGNEDNESS_OF_TIME_T */
12
- #include "internal/bits.h" /* for SIGNED_INTEGER_MAX */
13
- #include "ruby/ruby.h" /* for VALUE */
14
-
15
- #if SIGNEDNESS_OF_TIME_T < 0 /* signed */
16
- # define TIMET_MAX SIGNED_INTEGER_MAX(time_t)
17
- # define TIMET_MIN SIGNED_INTEGER_MIN(time_t)
18
- #elif SIGNEDNESS_OF_TIME_T > 0 /* unsigned */
19
- # define TIMET_MAX UNSIGNED_INTEGER_MAX(time_t)
20
- # define TIMET_MIN ((time_t)0)
21
- #endif
22
-
23
- struct timeval; /* <- in <sys/time.h> or <winsock2.h> */
24
-
25
- /* time.c */
26
- struct timeval rb_time_timeval(VALUE);
27
-
28
- RUBY_SYMBOL_EXPORT_BEGIN
29
- /* time.c (export) */
30
- void ruby_reset_leap_second_info(void);
31
- void ruby_reset_timezone(void);
32
- RUBY_SYMBOL_EXPORT_END
33
-
34
- #endif /* INTERNAL_TIME_H */