debase-ruby_core_source 3.3.0 → 3.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Rakefile +2 -1
  4. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/ast.h +4612 -0
  5. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/defines.h +94 -0
  6. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/diagnostic.h +297 -0
  7. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/encoding.h +248 -0
  8. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/extension.h +18 -0
  9. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/node.h +57 -0
  10. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/options.h +204 -0
  11. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/pack.h +152 -0
  12. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/parser.h +716 -0
  13. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/prettyprint.h +26 -0
  14. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/prism.h +272 -0
  15. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/regexp.h +33 -0
  16. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/util/pm_buffer.h +146 -0
  17. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/util/pm_char.h +205 -0
  18. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/util/pm_constant_pool.h +191 -0
  19. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/util/pm_list.h +97 -0
  20. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/util/pm_memchr.h +29 -0
  21. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/util/pm_newline_list.h +104 -0
  22. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/util/pm_state_stack.h +42 -0
  23. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/util/pm_string.h +150 -0
  24. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/util/pm_string_list.h +44 -0
  25. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/util/pm_strncasecmp.h +32 -0
  26. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/util/pm_strpbrk.h +43 -0
  27. data/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/version.h +29 -0
  28. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/addr2line.h +22 -0
  29. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/builtin.h +117 -0
  30. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/build_assert/build_assert.h +40 -0
  31. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/check_type/check_type.h +63 -0
  32. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/container_of/container_of.h +142 -0
  33. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/list/list.h +791 -0
  34. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/str/str.h +17 -0
  35. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/constant.h +53 -0
  36. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/darray.h +246 -0
  37. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/debug_counter.h +423 -0
  38. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/dln.h +32 -0
  39. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/encindex.h +70 -0
  40. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/eval_intern.h +343 -0
  41. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/hrtime.h +227 -0
  42. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/id.h +343 -0
  43. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/id_table.h +39 -0
  44. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/insns.inc +251 -0
  45. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/insns_info.inc +9215 -0
  46. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/array.h +151 -0
  47. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/basic_operators.h +63 -0
  48. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/bignum.h +244 -0
  49. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/bits.h +568 -0
  50. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/class.h +277 -0
  51. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/cmdlineopt.h +65 -0
  52. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compar.h +29 -0
  53. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compile.h +34 -0
  54. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compilers.h +107 -0
  55. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/complex.h +29 -0
  56. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/cont.h +35 -0
  57. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/dir.h +16 -0
  58. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enc.h +19 -0
  59. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/encoding.h +35 -0
  60. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enum.h +18 -0
  61. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enumerator.h +21 -0
  62. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/error.h +216 -0
  63. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/eval.h +33 -0
  64. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/file.h +38 -0
  65. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/fixnum.h +184 -0
  66. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/gc.h +364 -0
  67. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/hash.h +191 -0
  68. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/imemo.h +240 -0
  69. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/inits.h +50 -0
  70. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/io.h +137 -0
  71. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/load.h +18 -0
  72. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/loadpath.h +16 -0
  73. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/math.h +23 -0
  74. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/missing.h +18 -0
  75. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/numeric.h +273 -0
  76. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/object.h +62 -0
  77. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/parse.h +108 -0
  78. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/proc.h +30 -0
  79. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/process.h +124 -0
  80. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/ractor.h +6 -0
  81. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/random.h +17 -0
  82. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/range.h +40 -0
  83. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/rational.h +71 -0
  84. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/re.h +28 -0
  85. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/ruby_parser.h +69 -0
  86. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/sanitizers.h +186 -0
  87. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/serial.h +23 -0
  88. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/signal.h +25 -0
  89. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/static_assert.h +16 -0
  90. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/string.h +160 -0
  91. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/struct.h +127 -0
  92. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/symbol.h +45 -0
  93. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/thread.h +78 -0
  94. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/time.h +34 -0
  95. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/transcode.h +23 -0
  96. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/util.h +27 -0
  97. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/variable.h +72 -0
  98. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/vm.h +136 -0
  99. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/warnings.h +16 -0
  100. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal.h +112 -0
  101. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/iseq.h +338 -0
  102. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/known_errors.inc +791 -0
  103. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/method.h +254 -0
  104. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/node.h +128 -0
  105. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/node_name.inc +212 -0
  106. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/optinsn.inc +128 -0
  107. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/optunifs.inc +43 -0
  108. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parse.h +243 -0
  109. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_bits.h +564 -0
  110. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_node.h +32 -0
  111. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_st.h +162 -0
  112. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_value.h +106 -0
  113. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/ast.h +4612 -0
  114. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/defines.h +94 -0
  115. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/diagnostic.h +297 -0
  116. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/encoding.h +248 -0
  117. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/extension.h +18 -0
  118. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/node.h +57 -0
  119. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/options.h +204 -0
  120. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/pack.h +152 -0
  121. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/parser.h +716 -0
  122. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/prettyprint.h +26 -0
  123. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/prism.h +272 -0
  124. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h +33 -0
  125. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_buffer.h +146 -0
  126. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_char.h +205 -0
  127. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_constant_pool.h +191 -0
  128. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_list.h +97 -0
  129. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_memchr.h +29 -0
  130. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_newline_list.h +104 -0
  131. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_state_stack.h +42 -0
  132. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_string.h +150 -0
  133. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_string_list.h +44 -0
  134. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_strncasecmp.h +32 -0
  135. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_strpbrk.h +43 -0
  136. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/version.h +29 -0
  137. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism_compile.h +29 -0
  138. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/probes_helper.h +42 -0
  139. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ractor_core.h +393 -0
  140. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regenc.h +254 -0
  141. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regint.h +1006 -0
  142. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regparse.h +371 -0
  143. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/revision.h +5 -0
  144. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rjit.h +101 -0
  145. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rjit_c.h +164 -0
  146. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ruby_assert.h +14 -0
  147. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ruby_atomic.h +23 -0
  148. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rubyparser.h +1405 -0
  149. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/shape.h +233 -0
  150. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/siphash.h +48 -0
  151. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/symbol.h +118 -0
  152. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_none.h +21 -0
  153. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_pthread.h +166 -0
  154. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_win32.h +58 -0
  155. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/timev.h +58 -0
  156. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/transcode_data.h +138 -0
  157. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/variable.h +39 -0
  158. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/version.h +69 -0
  159. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm.inc +5436 -0
  160. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_call_iseq_optimized.inc +244 -0
  161. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_callinfo.h +614 -0
  162. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_core.h +2202 -0
  163. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_debug.h +122 -0
  164. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_exec.h +199 -0
  165. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_insnhelper.h +261 -0
  166. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_opts.h +67 -0
  167. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_sync.h +137 -0
  168. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vmtc.inc +245 -0
  169. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/yjit.h +72 -0
  170. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/addr2line.h +22 -0
  171. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/builtin.h +119 -0
  172. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/build_assert/build_assert.h +40 -0
  173. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/check_type/check_type.h +63 -0
  174. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/container_of/container_of.h +142 -0
  175. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/list/list.h +791 -0
  176. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/str/str.h +17 -0
  177. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/constant.h +53 -0
  178. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/darray.h +191 -0
  179. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/debug_counter.h +423 -0
  180. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/dln.h +34 -0
  181. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/encindex.h +70 -0
  182. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/eval_intern.h +324 -0
  183. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/hrtime.h +237 -0
  184. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id.h +343 -0
  185. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id_table.h +39 -0
  186. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns.inc +259 -0
  187. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns_info.inc +9530 -0
  188. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/array.h +151 -0
  189. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/basic_operators.h +63 -0
  190. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bignum.h +244 -0
  191. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bits.h +568 -0
  192. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/class.h +283 -0
  193. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/cmdlineopt.h +65 -0
  194. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compar.h +29 -0
  195. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compile.h +34 -0
  196. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compilers.h +107 -0
  197. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/complex.h +29 -0
  198. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/cont.h +35 -0
  199. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/dir.h +16 -0
  200. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enc.h +19 -0
  201. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/encoding.h +36 -0
  202. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enum.h +18 -0
  203. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enumerator.h +21 -0
  204. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/error.h +216 -0
  205. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/eval.h +33 -0
  206. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/file.h +38 -0
  207. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/fixnum.h +184 -0
  208. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/gc.h +334 -0
  209. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/hash.h +191 -0
  210. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/imemo.h +260 -0
  211. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/inits.h +47 -0
  212. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/io.h +140 -0
  213. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/load.h +18 -0
  214. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/loadpath.h +16 -0
  215. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/math.h +23 -0
  216. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/missing.h +19 -0
  217. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/numeric.h +274 -0
  218. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/object.h +63 -0
  219. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/parse.h +117 -0
  220. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/proc.h +30 -0
  221. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/process.h +124 -0
  222. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ractor.h +6 -0
  223. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/random.h +17 -0
  224. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/range.h +40 -0
  225. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/rational.h +71 -0
  226. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/re.h +28 -0
  227. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ruby_parser.h +102 -0
  228. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/sanitizers.h +297 -0
  229. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/serial.h +23 -0
  230. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/signal.h +24 -0
  231. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/st.h +11 -0
  232. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/static_assert.h +16 -0
  233. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/string.h +182 -0
  234. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/struct.h +127 -0
  235. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/symbol.h +45 -0
  236. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/thread.h +79 -0
  237. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/time.h +34 -0
  238. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/transcode.h +23 -0
  239. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/util.h +27 -0
  240. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/variable.h +72 -0
  241. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/vm.h +137 -0
  242. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/warnings.h +16 -0
  243. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal.h +108 -0
  244. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/iseq.h +340 -0
  245. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/known_errors.inc +1419 -0
  246. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/method.h +255 -0
  247. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/node.h +111 -0
  248. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/node_name.inc +224 -0
  249. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optinsn.inc +128 -0
  250. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optunifs.inc +43 -0
  251. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parse.h +243 -0
  252. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_bits.h +564 -0
  253. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_node.h +32 -0
  254. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_st.h +162 -0
  255. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_value.h +106 -0
  256. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/ast.h +6245 -0
  257. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/defines.h +206 -0
  258. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/diagnostic.h +433 -0
  259. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/encoding.h +283 -0
  260. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/extension.h +19 -0
  261. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/node.h +150 -0
  262. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/options.h +305 -0
  263. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/pack.h +163 -0
  264. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/parser.h +891 -0
  265. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/prettyprint.h +34 -0
  266. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/prism.h +347 -0
  267. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h +33 -0
  268. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/static_literals.h +120 -0
  269. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_buffer.h +218 -0
  270. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_char.h +205 -0
  271. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_constant_pool.h +226 -0
  272. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_integer.h +119 -0
  273. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_list.h +97 -0
  274. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_memchr.h +29 -0
  275. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_newline_list.h +102 -0
  276. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string.h +174 -0
  277. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string_list.h +44 -0
  278. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_strncasecmp.h +32 -0
  279. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_strpbrk.h +46 -0
  280. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/version.h +29 -0
  281. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism_compile.h +88 -0
  282. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/probes_helper.h +42 -0
  283. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ractor_core.h +393 -0
  284. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regenc.h +254 -0
  285. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regint.h +1010 -0
  286. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regparse.h +371 -0
  287. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/revision.h +5 -0
  288. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rjit.h +101 -0
  289. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rjit_c.h +165 -0
  290. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ruby_assert.h +14 -0
  291. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ruby_atomic.h +23 -0
  292. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rubyparser.h +1430 -0
  293. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/shape.h +233 -0
  294. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/siphash.h +48 -0
  295. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/symbol.h +118 -0
  296. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_none.h +21 -0
  297. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_pthread.h +166 -0
  298. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_win32.h +58 -0
  299. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/timev.h +58 -0
  300. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/transcode_data.h +138 -0
  301. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/variable.h +39 -0
  302. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/version.h +69 -0
  303. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm.inc +5643 -0
  304. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_call_iseq_optimized.inc +244 -0
  305. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_callinfo.h +605 -0
  306. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_core.h +2236 -0
  307. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_debug.h +124 -0
  308. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_exec.h +199 -0
  309. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_insnhelper.h +272 -0
  310. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_opts.h +67 -0
  311. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_sync.h +137 -0
  312. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vmtc.inc +253 -0
  313. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/yjit.h +79 -0
  314. data/lib/debase/ruby_core_source/version.rb +1 -1
  315. metadata +316 -6
@@ -0,0 +1,182 @@
1
+ #ifndef INTERNAL_STRING_H /*-*-C-*-vi:se ft=c:*/
2
+ #define INTERNAL_STRING_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 String.
10
+ */
11
+ #include "ruby/internal/config.h"
12
+ #include <stddef.h> /* for size_t */
13
+ #include "internal/compilers.h" /* for __has_builtin */
14
+ #include "ruby/internal/stdbool.h" /* for bool */
15
+ #include "ruby/encoding.h" /* for rb_encoding */
16
+ #include "ruby/ruby.h" /* for VALUE */
17
+
18
+ #define STR_NOEMBED FL_USER1
19
+ #define STR_SHARED FL_USER2 /* = ELTS_SHARED */
20
+ #define STR_CHILLED FL_USER3
21
+
22
+ #ifdef rb_fstring_cstr
23
+ # undef rb_fstring_cstr
24
+ #endif
25
+
26
+ /* string.c */
27
+ VALUE rb_fstring(VALUE);
28
+ VALUE rb_fstring_cstr(const char *str);
29
+ VALUE rb_fstring_enc_new(const char *ptr, long len, rb_encoding *enc);
30
+ int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
31
+ int rb_str_symname_p(VALUE);
32
+ VALUE rb_str_quote_unprintable(VALUE);
33
+ char *rb_str_fill_terminator(VALUE str, const int termlen);
34
+ void rb_str_change_terminator_length(VALUE str, const int oldtermlen, const int termlen);
35
+ VALUE rb_str_locktmp_ensure(VALUE str, VALUE (*func)(VALUE), VALUE arg);
36
+ VALUE rb_str_chomp_string(VALUE str, VALUE chomp);
37
+ VALUE rb_external_str_with_enc(VALUE str, rb_encoding *eenc);
38
+ VALUE rb_str_cat_conv_enc_opts(VALUE newstr, long ofs, const char *ptr, long len,
39
+ rb_encoding *from, int ecflags, VALUE ecopts);
40
+ VALUE rb_enc_str_scrub(rb_encoding *enc, VALUE str, VALUE repl);
41
+ VALUE rb_str_escape(VALUE str);
42
+ size_t rb_str_memsize(VALUE);
43
+ char *rb_str_to_cstr(VALUE str);
44
+ const char *ruby_escaped_char(int c);
45
+ void rb_str_make_independent(VALUE str);
46
+ int rb_enc_str_coderange_scan(VALUE str, rb_encoding *enc);
47
+ int rb_ascii8bit_appendable_encoding_index(rb_encoding *enc, unsigned int code);
48
+ VALUE rb_str_include(VALUE str, VALUE arg);
49
+ VALUE rb_str_byte_substr(VALUE str, VALUE beg, VALUE len);
50
+
51
+ static inline bool STR_EMBED_P(VALUE str);
52
+ static inline bool STR_SHARED_P(VALUE str);
53
+ static inline VALUE QUOTE(VALUE v);
54
+ static inline VALUE QUOTE_ID(ID v);
55
+ static inline bool is_ascii_string(VALUE str);
56
+ static inline bool is_broken_string(VALUE str);
57
+ static inline VALUE rb_str_eql_internal(const VALUE str1, const VALUE str2);
58
+
59
+ RUBY_SYMBOL_EXPORT_BEGIN
60
+ /* string.c (export) */
61
+ VALUE rb_str_tmp_frozen_acquire(VALUE str);
62
+ VALUE rb_str_tmp_frozen_no_embed_acquire(VALUE str);
63
+ void rb_str_tmp_frozen_release(VALUE str, VALUE tmp);
64
+ VALUE rb_setup_fake_str(struct RString *fake_str, const char *name, long len, rb_encoding *enc);
65
+ VALUE rb_str_upto_each(VALUE, VALUE, int, int (*each)(VALUE, VALUE), VALUE);
66
+ VALUE rb_str_upto_endless_each(VALUE, int (*each)(VALUE, VALUE), VALUE);
67
+ void rb_str_make_embedded(VALUE);
68
+ size_t rb_str_size_as_embedded(VALUE);
69
+ bool rb_str_reembeddable_p(VALUE);
70
+ RUBY_SYMBOL_EXPORT_END
71
+
72
+ VALUE rb_fstring_new(const char *ptr, long len);
73
+ VALUE rb_obj_as_string_result(VALUE str, VALUE obj);
74
+ VALUE rb_str_opt_plus(VALUE x, VALUE y);
75
+ VALUE rb_str_concat_literals(size_t num, const VALUE *strary);
76
+ VALUE rb_str_eql(VALUE str1, VALUE str2);
77
+ VALUE rb_id_quote_unprintable(ID);
78
+ VALUE rb_sym_proc_call(ID mid, int argc, const VALUE *argv, int kw_splat, VALUE passed_proc);
79
+
80
+ struct rb_execution_context_struct;
81
+ VALUE rb_ec_str_resurrect(struct rb_execution_context_struct *ec, VALUE str, bool chilled);
82
+
83
+ #define rb_fstring_lit(str) rb_fstring_new((str), rb_strlen_lit(str))
84
+ #define rb_fstring_literal(str) rb_fstring_lit(str)
85
+ #define rb_fstring_enc_lit(str, enc) rb_fstring_enc_new((str), rb_strlen_lit(str), (enc))
86
+ #define rb_fstring_enc_literal(str, enc) rb_fstring_enc_lit(str, enc)
87
+
88
+ static inline VALUE
89
+ QUOTE(VALUE v)
90
+ {
91
+ return rb_str_quote_unprintable(v);
92
+ }
93
+
94
+ static inline VALUE
95
+ QUOTE_ID(ID i)
96
+ {
97
+ return rb_id_quote_unprintable(i);
98
+ }
99
+
100
+ static inline bool
101
+ STR_EMBED_P(VALUE str)
102
+ {
103
+ return ! FL_TEST_RAW(str, STR_NOEMBED);
104
+ }
105
+
106
+ static inline bool
107
+ STR_SHARED_P(VALUE str)
108
+ {
109
+ return FL_ALL_RAW(str, STR_NOEMBED | STR_SHARED);
110
+ }
111
+
112
+ static inline bool
113
+ CHILLED_STRING_P(VALUE obj)
114
+ {
115
+ return RB_TYPE_P(obj, T_STRING) && FL_TEST_RAW(obj, STR_CHILLED);
116
+ }
117
+
118
+ static inline void
119
+ CHILLED_STRING_MUTATED(VALUE str)
120
+ {
121
+ rb_category_warn(RB_WARN_CATEGORY_DEPRECATED, "literal string will be frozen in the future");
122
+ FL_UNSET_RAW(str, STR_CHILLED | FL_FREEZE);
123
+ }
124
+
125
+ static inline void
126
+ STR_CHILL_RAW(VALUE str)
127
+ {
128
+ // Chilled strings are always also frozen
129
+ FL_SET_RAW(str, STR_CHILLED | RUBY_FL_FREEZE);
130
+ }
131
+
132
+ static inline bool
133
+ is_ascii_string(VALUE str)
134
+ {
135
+ return rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT;
136
+ }
137
+
138
+ static inline bool
139
+ is_broken_string(VALUE str)
140
+ {
141
+ return rb_enc_str_coderange(str) == ENC_CODERANGE_BROKEN;
142
+ }
143
+
144
+ static inline bool
145
+ at_char_boundary(const char *s, const char *p, const char *e, rb_encoding *enc)
146
+ {
147
+ return rb_enc_left_char_head(s, p, e, enc) == p;
148
+ }
149
+
150
+ static inline bool
151
+ at_char_right_boundary(const char *s, const char *p, const char *e, rb_encoding *enc)
152
+ {
153
+ RUBY_ASSERT(s <= p);
154
+ RUBY_ASSERT(p <= e);
155
+
156
+ return rb_enc_right_char_head(s, p, e, enc) == p;
157
+ }
158
+
159
+ /* expect tail call optimization */
160
+ // YJIT needs this function to never allocate and never raise
161
+ static inline VALUE
162
+ rb_str_eql_internal(const VALUE str1, const VALUE str2)
163
+ {
164
+ const long len = RSTRING_LEN(str1);
165
+ const char *ptr1, *ptr2;
166
+
167
+ if (len != RSTRING_LEN(str2)) return Qfalse;
168
+ if (!rb_str_comparable(str1, str2)) return Qfalse;
169
+ if ((ptr1 = RSTRING_PTR(str1)) == (ptr2 = RSTRING_PTR(str2)))
170
+ return Qtrue;
171
+ if (memcmp(ptr1, ptr2, len) == 0)
172
+ return Qtrue;
173
+ return Qfalse;
174
+ }
175
+
176
+ #if __has_builtin(__builtin_constant_p)
177
+ # define rb_fstring_cstr(str) \
178
+ (__builtin_constant_p(str) ? \
179
+ rb_fstring_new((str), (long)strlen(str)) : \
180
+ (rb_fstring_cstr)(str))
181
+ #endif
182
+ #endif /* INTERNAL_STRING_H */
@@ -0,0 +1,127 @@
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 */
@@ -0,0 +1,45 @@
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 */
@@ -0,0 +1,79 @@
1
+ #ifndef INTERNAL_THREAD_H /*-*-C-*-vi:se ft=c:*/
2
+ #define INTERNAL_THREAD_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 Thread.
10
+ */
11
+ #include "ruby/ruby.h" /* for VALUE */
12
+ #include "ruby/intern.h" /* for rb_blocking_function_t */
13
+ #include "ccan/list/list.h" /* for list in rb_io_close_wait_list */
14
+
15
+ struct rb_thread_struct; /* in vm_core.h */
16
+
17
+ #define RB_VM_SAVE_MACHINE_CONTEXT(th) \
18
+ do { \
19
+ FLUSH_REGISTER_WINDOWS; \
20
+ setjmp((th)->ec->machine.regs); \
21
+ SET_MACHINE_STACK_END(&(th)->ec->machine.stack_end); \
22
+ } while (0)
23
+
24
+ /* thread.c */
25
+ #define COVERAGE_INDEX_LINES 0
26
+ #define COVERAGE_INDEX_BRANCHES 1
27
+ #define COVERAGE_TARGET_LINES 1
28
+ #define COVERAGE_TARGET_BRANCHES 2
29
+ #define COVERAGE_TARGET_METHODS 4
30
+ #define COVERAGE_TARGET_ONESHOT_LINES 8
31
+ #define COVERAGE_TARGET_EVAL 16
32
+
33
+ #define RUBY_FATAL_THREAD_KILLED INT2FIX(0)
34
+ #define RUBY_FATAL_THREAD_TERMINATED INT2FIX(1)
35
+ #define RUBY_FATAL_FIBER_KILLED RB_INT2FIX(2)
36
+
37
+ VALUE rb_obj_is_mutex(VALUE obj);
38
+ VALUE rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg);
39
+ void rb_thread_execute_interrupts(VALUE th);
40
+ VALUE rb_get_coverages(void);
41
+ int rb_get_coverage_mode(void);
42
+ VALUE rb_default_coverage(int);
43
+ VALUE rb_thread_shield_new(void);
44
+ bool rb_thread_shield_owned(VALUE self);
45
+ VALUE rb_thread_shield_wait(VALUE self);
46
+ VALUE rb_thread_shield_release(VALUE self);
47
+ VALUE rb_thread_shield_destroy(VALUE self);
48
+ int rb_thread_to_be_killed(VALUE thread);
49
+ void rb_mutex_allow_trap(VALUE self, int val);
50
+ VALUE rb_uninterruptible(VALUE (*b_proc)(VALUE), VALUE data);
51
+ VALUE rb_mutex_owned_p(VALUE self);
52
+ VALUE rb_exec_recursive_outer_mid(VALUE (*f)(VALUE g, VALUE h, int r), VALUE g, VALUE h, ID mid);
53
+ void ruby_mn_threads_params(void);
54
+
55
+ int rb_thread_wait_for_single_fd(int fd, int events, struct timeval * timeout);
56
+
57
+ struct rb_io_close_wait_list {
58
+ struct ccan_list_head pending_fd_users;
59
+ VALUE closing_thread;
60
+ VALUE wakeup_mutex;
61
+ };
62
+ int rb_notify_fd_close(int fd, struct rb_io_close_wait_list *busy);
63
+ void rb_notify_fd_close_wait(struct rb_io_close_wait_list *busy);
64
+
65
+ RUBY_SYMBOL_EXPORT_BEGIN
66
+
67
+ /* Temporary. This API will be removed (renamed). */
68
+ VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd);
69
+ VALUE rb_thread_io_blocking_call(rb_blocking_function_t *func, void *data1, int fd, int events);
70
+
71
+ /* thread.c (export) */
72
+ int ruby_thread_has_gvl_p(void); /* for ext/fiddle/closure.c */
73
+
74
+ RUBY_SYMBOL_EXPORT_END
75
+
76
+ int rb_threadptr_execute_interrupts(struct rb_thread_struct *th, int blocking_timing);
77
+ bool rb_thread_mn_schedulable(VALUE thread);
78
+
79
+ #endif /* INTERNAL_THREAD_H */
@@ -0,0 +1,34 @@
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 */
@@ -0,0 +1,23 @@
1
+ #ifndef INTERNAL_TRANSCODE_H /*-*-C-*-vi:se ft=c:*/
2
+ #define INTERNAL_TRANSCODE_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 Encoding::Converter.
10
+ */
11
+ #include "ruby/internal/config.h"
12
+ #include <stddef.h> /* for size_t */
13
+ #include "ruby/ruby.h" /* for VALUE */
14
+ #include "ruby/encoding.h" /* for rb_econv_t */
15
+
16
+ /* transcode.c */
17
+ extern VALUE rb_cEncodingConverter;
18
+ size_t rb_econv_memsize(rb_econv_t *);
19
+
20
+ /* vm.c */
21
+ void rb_free_transcoder_table(void);
22
+
23
+ #endif /* INTERNAL_TRANSCODE_H */
@@ -0,0 +1,27 @@
1
+ #ifndef INTERNAL_UTIL_H /*-*-C-*-vi:se ft=c:*/
2
+ #define INTERNAL_UTIL_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 util.c.
10
+ * @warning DO NOT ADD RANDOM GARBAGE HERE THIS FILE IS FOR util.c
11
+ */
12
+ #include "ruby/internal/config.h"
13
+ #include <stddef.h> /* for size_t */
14
+
15
+ #ifdef HAVE_SYS_TYPES_H
16
+ # include <sys/types.h> /* for ssize_t (note: on Windows ssize_t is */
17
+ #endif /* `#define`d in ruby/config.h) */
18
+
19
+ /* util.c */
20
+ char *ruby_dtoa(double d_, int mode, int ndigits, int *decpt, int *sign, char **rve);
21
+ char *ruby_hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign, char **rve);
22
+
23
+ RUBY_SYMBOL_EXPORT_BEGIN
24
+ /* util.c (export) */
25
+ RUBY_SYMBOL_EXPORT_END
26
+
27
+ #endif /* INTERNAL_UTIL_H */
@@ -0,0 +1,72 @@
1
+ #ifndef INTERNAL_VARIABLE_H /*-*-C-*-vi:se ft=c:*/
2
+ #define INTERNAL_VARIABLE_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 variables.
10
+ */
11
+ #include "ruby/internal/config.h"
12
+ #include <stddef.h> /* for size_t */
13
+ #include "constant.h" /* for rb_const_entry_t */
14
+ #include "ruby/internal/stdbool.h" /* for bool */
15
+ #include "ruby/ruby.h" /* for VALUE */
16
+ #include "shape.h" /* for rb_shape_t */
17
+
18
+ /* variable.c */
19
+ void rb_gc_mark_global_tbl(void);
20
+ void rb_gc_update_global_tbl(void);
21
+ size_t rb_generic_ivar_memsize(VALUE);
22
+ VALUE rb_search_class_path(VALUE);
23
+ VALUE rb_attr_delete(VALUE, ID);
24
+ void rb_autoload_str(VALUE mod, ID id, VALUE file);
25
+ VALUE rb_autoload_at_p(VALUE, ID, int);
26
+ NORETURN(VALUE rb_mod_const_missing(VALUE,VALUE));
27
+ rb_gvar_getter_t *rb_gvar_getter_function_of(ID);
28
+ rb_gvar_setter_t *rb_gvar_setter_function_of(ID);
29
+ void rb_gvar_readonly_setter(VALUE v, ID id, VALUE *_);
30
+ void rb_gvar_ractor_local(const char *name);
31
+
32
+ /**
33
+ * Sets the name of a module.
34
+ *
35
+ * Non-permanently named classes can have a temporary name assigned (or
36
+ * cleared). In that case the name will be used for `#inspect` and `#to_s`, and
37
+ * nested classes/modules will be named with the temporary name as a prefix.
38
+ *
39
+ * After the module is assigned to a constant, the temporary name will be
40
+ * discarded, and the name will be computed based on the nesting.
41
+ *
42
+ * @param[in] mod An instance of ::rb_cModule.
43
+ * @param[in] name An instance of ::rb_cString.
44
+ * @retval mod
45
+ */
46
+ VALUE rb_mod_set_temporary_name(VALUE, VALUE);
47
+
48
+ struct gen_ivtbl;
49
+ int rb_gen_ivtbl_get(VALUE obj, ID id, struct gen_ivtbl **ivtbl);
50
+ void rb_obj_copy_ivs_to_hash_table(VALUE obj, st_table *table);
51
+ void rb_obj_convert_to_too_complex(VALUE obj, st_table *table);
52
+ void rb_evict_ivars_to_hash(VALUE obj);
53
+
54
+ RUBY_SYMBOL_EXPORT_BEGIN
55
+ /* variable.c (export) */
56
+ void rb_mark_generic_ivar(VALUE obj);
57
+ void rb_ref_update_generic_ivar(VALUE);
58
+ void rb_mv_generic_ivar(VALUE src, VALUE dst);
59
+ VALUE rb_const_missing(VALUE klass, VALUE name);
60
+ int rb_class_ivar_set(VALUE klass, ID vid, VALUE value);
61
+ void rb_iv_tbl_copy(VALUE dst, VALUE src);
62
+ RUBY_SYMBOL_EXPORT_END
63
+
64
+ VALUE rb_ivar_lookup(VALUE obj, ID id, VALUE undef);
65
+ VALUE rb_gvar_get(ID);
66
+ VALUE rb_gvar_set(ID, VALUE);
67
+ VALUE rb_gvar_defined(ID);
68
+ void rb_const_warn_if_deprecated(const rb_const_entry_t *, VALUE, ID);
69
+ void rb_ensure_iv_list_size(VALUE obj, uint32_t len, uint32_t newsize);
70
+ attr_index_t rb_obj_ivar_set(VALUE obj, ID id, VALUE val);
71
+
72
+ #endif /* INTERNAL_VARIABLE_H */