debase-ruby_core_source 3.3.1 → 3.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (435) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/.idea/vcs.xml +28 -0
  4. data/CHANGELOG.md +8 -0
  5. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/addr2line.h +22 -0
  6. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/builtin.h +117 -0
  7. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/build_assert/build_assert.h +40 -0
  8. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/check_type/check_type.h +63 -0
  9. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/container_of/container_of.h +142 -0
  10. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/list/list.h +791 -0
  11. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/str/str.h +17 -0
  12. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/constant.h +53 -0
  13. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/darray.h +246 -0
  14. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/debug_counter.h +423 -0
  15. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/dln.h +32 -0
  16. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/encindex.h +70 -0
  17. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/eval_intern.h +343 -0
  18. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/hrtime.h +227 -0
  19. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/id.h +343 -0
  20. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/id_table.h +39 -0
  21. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/insns.inc +251 -0
  22. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/insns_info.inc +9215 -0
  23. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/array.h +151 -0
  24. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/basic_operators.h +63 -0
  25. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/bignum.h +244 -0
  26. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/bits.h +568 -0
  27. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/class.h +277 -0
  28. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/cmdlineopt.h +65 -0
  29. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compar.h +29 -0
  30. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compile.h +34 -0
  31. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compilers.h +107 -0
  32. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/complex.h +29 -0
  33. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/cont.h +35 -0
  34. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/dir.h +16 -0
  35. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enc.h +19 -0
  36. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/encoding.h +35 -0
  37. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enum.h +18 -0
  38. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enumerator.h +21 -0
  39. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/error.h +216 -0
  40. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/eval.h +33 -0
  41. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/file.h +38 -0
  42. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/fixnum.h +184 -0
  43. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/gc.h +364 -0
  44. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/hash.h +191 -0
  45. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/imemo.h +240 -0
  46. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/inits.h +50 -0
  47. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/io.h +137 -0
  48. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/load.h +18 -0
  49. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/loadpath.h +16 -0
  50. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/math.h +23 -0
  51. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/missing.h +18 -0
  52. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/numeric.h +273 -0
  53. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/object.h +62 -0
  54. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/parse.h +108 -0
  55. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/proc.h +30 -0
  56. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/process.h +124 -0
  57. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/ractor.h +6 -0
  58. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/random.h +17 -0
  59. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/range.h +40 -0
  60. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/rational.h +71 -0
  61. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/re.h +28 -0
  62. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/ruby_parser.h +69 -0
  63. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/sanitizers.h +186 -0
  64. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/serial.h +23 -0
  65. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/signal.h +25 -0
  66. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/static_assert.h +16 -0
  67. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/string.h +160 -0
  68. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/struct.h +127 -0
  69. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/symbol.h +45 -0
  70. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/thread.h +78 -0
  71. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/time.h +34 -0
  72. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/transcode.h +23 -0
  73. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/util.h +27 -0
  74. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/variable.h +72 -0
  75. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/vm.h +136 -0
  76. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/warnings.h +16 -0
  77. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal.h +112 -0
  78. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/iseq.h +338 -0
  79. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/known_errors.inc +791 -0
  80. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/method.h +254 -0
  81. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/node.h +128 -0
  82. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/node_name.inc +212 -0
  83. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/optinsn.inc +128 -0
  84. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/optunifs.inc +43 -0
  85. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parse.h +243 -0
  86. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_bits.h +564 -0
  87. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_node.h +32 -0
  88. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_st.h +162 -0
  89. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_value.h +106 -0
  90. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/ast.h +4612 -0
  91. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/defines.h +94 -0
  92. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/diagnostic.h +297 -0
  93. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/encoding.h +248 -0
  94. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/extension.h +18 -0
  95. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/node.h +57 -0
  96. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/options.h +204 -0
  97. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/pack.h +152 -0
  98. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/parser.h +716 -0
  99. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/prettyprint.h +26 -0
  100. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/prism.h +272 -0
  101. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h +33 -0
  102. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_buffer.h +146 -0
  103. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_char.h +205 -0
  104. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_constant_pool.h +191 -0
  105. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_list.h +97 -0
  106. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_memchr.h +29 -0
  107. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_newline_list.h +104 -0
  108. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_state_stack.h +42 -0
  109. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_string.h +150 -0
  110. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_string_list.h +44 -0
  111. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_strncasecmp.h +32 -0
  112. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_strpbrk.h +43 -0
  113. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/version.h +29 -0
  114. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism_compile.h +29 -0
  115. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/probes_helper.h +42 -0
  116. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ractor_core.h +393 -0
  117. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regenc.h +254 -0
  118. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regint.h +1006 -0
  119. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regparse.h +371 -0
  120. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/revision.h +5 -0
  121. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rjit.h +101 -0
  122. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rjit_c.h +164 -0
  123. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ruby_assert.h +14 -0
  124. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ruby_atomic.h +23 -0
  125. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rubyparser.h +1405 -0
  126. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/shape.h +233 -0
  127. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/siphash.h +48 -0
  128. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/symbol.h +118 -0
  129. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_none.h +21 -0
  130. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_pthread.h +166 -0
  131. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_win32.h +58 -0
  132. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/timev.h +58 -0
  133. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/transcode_data.h +138 -0
  134. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/variable.h +39 -0
  135. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/version.h +69 -0
  136. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm.inc +5436 -0
  137. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_call_iseq_optimized.inc +244 -0
  138. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_callinfo.h +614 -0
  139. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_core.h +2202 -0
  140. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_debug.h +122 -0
  141. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_exec.h +199 -0
  142. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_insnhelper.h +261 -0
  143. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_opts.h +67 -0
  144. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_sync.h +137 -0
  145. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vmtc.inc +245 -0
  146. data/lib/debase/ruby_core_source/ruby-3.3.5-p100/yjit.h +72 -0
  147. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/addr2line.h +22 -0
  148. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/builtin.h +119 -0
  149. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/build_assert/build_assert.h +40 -0
  150. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/check_type/check_type.h +63 -0
  151. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/container_of/container_of.h +142 -0
  152. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/list/list.h +791 -0
  153. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/str/str.h +17 -0
  154. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/constant.h +53 -0
  155. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/darray.h +191 -0
  156. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/debug_counter.h +423 -0
  157. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/dln.h +34 -0
  158. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/encindex.h +70 -0
  159. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/eval_intern.h +324 -0
  160. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/hrtime.h +237 -0
  161. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id.h +343 -0
  162. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id_table.h +39 -0
  163. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns.inc +259 -0
  164. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns_info.inc +9530 -0
  165. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/array.h +151 -0
  166. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/basic_operators.h +63 -0
  167. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bignum.h +244 -0
  168. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bits.h +568 -0
  169. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/class.h +283 -0
  170. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/cmdlineopt.h +65 -0
  171. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compar.h +29 -0
  172. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compile.h +34 -0
  173. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compilers.h +107 -0
  174. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/complex.h +29 -0
  175. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/cont.h +35 -0
  176. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/dir.h +16 -0
  177. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enc.h +19 -0
  178. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/encoding.h +36 -0
  179. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enum.h +18 -0
  180. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enumerator.h +21 -0
  181. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/error.h +216 -0
  182. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/eval.h +33 -0
  183. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/file.h +38 -0
  184. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/fixnum.h +184 -0
  185. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/gc.h +334 -0
  186. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/hash.h +191 -0
  187. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/imemo.h +260 -0
  188. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/inits.h +47 -0
  189. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/io.h +140 -0
  190. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/load.h +18 -0
  191. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/loadpath.h +16 -0
  192. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/math.h +23 -0
  193. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/missing.h +19 -0
  194. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/numeric.h +274 -0
  195. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/object.h +63 -0
  196. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/parse.h +117 -0
  197. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/proc.h +30 -0
  198. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/process.h +124 -0
  199. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ractor.h +6 -0
  200. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/random.h +17 -0
  201. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/range.h +40 -0
  202. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/rational.h +71 -0
  203. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/re.h +28 -0
  204. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ruby_parser.h +102 -0
  205. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/sanitizers.h +297 -0
  206. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/serial.h +23 -0
  207. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/signal.h +24 -0
  208. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/st.h +11 -0
  209. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/static_assert.h +16 -0
  210. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/string.h +182 -0
  211. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/struct.h +127 -0
  212. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/symbol.h +45 -0
  213. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/thread.h +79 -0
  214. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/time.h +34 -0
  215. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/transcode.h +23 -0
  216. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/util.h +27 -0
  217. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/variable.h +72 -0
  218. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/vm.h +137 -0
  219. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/warnings.h +16 -0
  220. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal.h +108 -0
  221. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/iseq.h +340 -0
  222. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/known_errors.inc +1419 -0
  223. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/method.h +255 -0
  224. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/node.h +111 -0
  225. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/node_name.inc +224 -0
  226. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optinsn.inc +128 -0
  227. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optunifs.inc +43 -0
  228. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parse.h +243 -0
  229. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_bits.h +564 -0
  230. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_node.h +32 -0
  231. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_st.h +162 -0
  232. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_value.h +106 -0
  233. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/ast.h +6245 -0
  234. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/defines.h +206 -0
  235. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/diagnostic.h +433 -0
  236. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/encoding.h +283 -0
  237. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/extension.h +19 -0
  238. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/node.h +150 -0
  239. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/options.h +305 -0
  240. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/pack.h +163 -0
  241. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/parser.h +891 -0
  242. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/prettyprint.h +34 -0
  243. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/prism.h +347 -0
  244. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h +33 -0
  245. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/static_literals.h +120 -0
  246. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_buffer.h +218 -0
  247. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_char.h +205 -0
  248. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_constant_pool.h +226 -0
  249. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_integer.h +119 -0
  250. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_list.h +97 -0
  251. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_memchr.h +29 -0
  252. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_newline_list.h +102 -0
  253. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string.h +174 -0
  254. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string_list.h +44 -0
  255. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_strncasecmp.h +32 -0
  256. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_strpbrk.h +46 -0
  257. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/version.h +29 -0
  258. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism_compile.h +88 -0
  259. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/probes_helper.h +42 -0
  260. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ractor_core.h +393 -0
  261. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regenc.h +254 -0
  262. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regint.h +1010 -0
  263. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regparse.h +371 -0
  264. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/revision.h +5 -0
  265. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rjit.h +101 -0
  266. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rjit_c.h +165 -0
  267. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ruby_assert.h +14 -0
  268. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ruby_atomic.h +23 -0
  269. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rubyparser.h +1430 -0
  270. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/shape.h +233 -0
  271. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/siphash.h +48 -0
  272. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/symbol.h +118 -0
  273. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_none.h +21 -0
  274. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_pthread.h +166 -0
  275. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_win32.h +58 -0
  276. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/timev.h +58 -0
  277. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/transcode_data.h +138 -0
  278. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/variable.h +39 -0
  279. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/version.h +69 -0
  280. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm.inc +5643 -0
  281. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_call_iseq_optimized.inc +244 -0
  282. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_callinfo.h +605 -0
  283. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_core.h +2236 -0
  284. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_debug.h +124 -0
  285. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_exec.h +199 -0
  286. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_insnhelper.h +272 -0
  287. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_opts.h +67 -0
  288. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_sync.h +137 -0
  289. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vmtc.inc +253 -0
  290. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/yjit.h +79 -0
  291. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/addr2line.h +22 -0
  292. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/builtin.h +119 -0
  293. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/build_assert/build_assert.h +40 -0
  294. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/check_type/check_type.h +63 -0
  295. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/container_of/container_of.h +142 -0
  296. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/list/list.h +791 -0
  297. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/str/str.h +17 -0
  298. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/constant.h +53 -0
  299. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/darray.h +209 -0
  300. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/debug_counter.h +423 -0
  301. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/dln.h +32 -0
  302. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/encindex.h +70 -0
  303. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/eval_intern.h +324 -0
  304. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/hrtime.h +237 -0
  305. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/id.h +347 -0
  306. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/id_table.h +39 -0
  307. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/insns.inc +265 -0
  308. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/insns_info.inc +9902 -0
  309. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/array.h +152 -0
  310. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/basic_operators.h +64 -0
  311. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/bignum.h +244 -0
  312. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/bits.h +568 -0
  313. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/class.h +283 -0
  314. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cmdlineopt.h +65 -0
  315. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compar.h +29 -0
  316. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compile.h +34 -0
  317. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compilers.h +107 -0
  318. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/complex.h +29 -0
  319. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cont.h +35 -0
  320. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/dir.h +16 -0
  321. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enc.h +19 -0
  322. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/encoding.h +36 -0
  323. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enum.h +18 -0
  324. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enumerator.h +21 -0
  325. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/error.h +218 -0
  326. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/eval.h +33 -0
  327. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/file.h +38 -0
  328. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/fixnum.h +184 -0
  329. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/gc.h +322 -0
  330. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/hash.h +192 -0
  331. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/imemo.h +261 -0
  332. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/inits.h +47 -0
  333. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/io.h +143 -0
  334. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/load.h +18 -0
  335. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/loadpath.h +16 -0
  336. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/math.h +23 -0
  337. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/missing.h +19 -0
  338. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/numeric.h +274 -0
  339. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/object.h +63 -0
  340. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/parse.h +129 -0
  341. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/proc.h +30 -0
  342. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/process.h +124 -0
  343. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/ractor.h +6 -0
  344. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/random.h +17 -0
  345. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/range.h +40 -0
  346. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/rational.h +71 -0
  347. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/re.h +28 -0
  348. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/ruby_parser.h +102 -0
  349. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/sanitizers.h +326 -0
  350. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/serial.h +23 -0
  351. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/signal.h +24 -0
  352. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/st.h +11 -0
  353. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/static_assert.h +16 -0
  354. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/string.h +186 -0
  355. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/struct.h +127 -0
  356. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/symbol.h +45 -0
  357. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/thread.h +85 -0
  358. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/time.h +34 -0
  359. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/transcode.h +23 -0
  360. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/util.h +27 -0
  361. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/variable.h +72 -0
  362. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/vm.h +137 -0
  363. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/warnings.h +16 -0
  364. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal.h +108 -0
  365. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/iseq.h +340 -0
  366. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/known_errors.inc +1419 -0
  367. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/method.h +255 -0
  368. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node.h +111 -0
  369. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node_name.inc +224 -0
  370. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/optinsn.inc +128 -0
  371. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/optunifs.inc +43 -0
  372. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parse.h +244 -0
  373. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_bits.h +564 -0
  374. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_node.h +32 -0
  375. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_st.h +162 -0
  376. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_value.h +106 -0
  377. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/ast.h +7524 -0
  378. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/defines.h +242 -0
  379. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/diagnostic.h +450 -0
  380. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/encoding.h +283 -0
  381. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/extension.h +19 -0
  382. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/node.h +129 -0
  383. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/options.h +396 -0
  384. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/pack.h +163 -0
  385. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/parser.h +933 -0
  386. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prettyprint.h +34 -0
  387. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prism.h +336 -0
  388. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/regexp.h +43 -0
  389. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/static_literals.h +121 -0
  390. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_buffer.h +218 -0
  391. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_char.h +204 -0
  392. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_constant_pool.h +218 -0
  393. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_integer.h +126 -0
  394. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_list.h +97 -0
  395. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_memchr.h +29 -0
  396. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_newline_list.h +113 -0
  397. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_string.h +190 -0
  398. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strncasecmp.h +32 -0
  399. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strpbrk.h +46 -0
  400. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/version.h +29 -0
  401. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism_compile.h +99 -0
  402. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/probes_helper.h +42 -0
  403. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ractor_core.h +382 -0
  404. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regenc.h +254 -0
  405. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regint.h +1006 -0
  406. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regparse.h +371 -0
  407. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/revision.h +5 -0
  408. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit.h +101 -0
  409. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit_c.h +165 -0
  410. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_assert.h +14 -0
  411. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_atomic.h +23 -0
  412. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rubyparser.h +1350 -0
  413. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/shape.h +234 -0
  414. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/siphash.h +48 -0
  415. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/symbol.h +123 -0
  416. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_none.h +21 -0
  417. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_pthread.h +168 -0
  418. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_win32.h +58 -0
  419. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/timev.h +58 -0
  420. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/transcode_data.h +138 -0
  421. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/variable.h +39 -0
  422. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/version.h +69 -0
  423. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm.inc +5840 -0
  424. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_call_iseq_optimized.inc +244 -0
  425. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_callinfo.h +627 -0
  426. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_core.h +2222 -0
  427. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_debug.h +124 -0
  428. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_exec.h +199 -0
  429. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_insnhelper.h +277 -0
  430. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_opts.h +67 -0
  431. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_sync.h +137 -0
  432. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vmtc.inc +259 -0
  433. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/yjit.h +79 -0
  434. data/lib/debase/ruby_core_source/version.rb +1 -1
  435. metadata +436 -6
@@ -0,0 +1,71 @@
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 */
@@ -0,0 +1,28 @@
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 */
@@ -0,0 +1,102 @@
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 */
@@ -0,0 +1,297 @@
1
+ #ifndef INTERNAL_SANITIZERS_H /*-*-C-*-vi:se ft=c:*/
2
+ #define INTERNAL_SANITIZERS_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 ASAN / MSAN / etc.
10
+ */
11
+ #include "ruby/internal/config.h"
12
+ #include "internal/compilers.h" /* for __has_feature */
13
+
14
+ #ifdef HAVE_VALGRIND_MEMCHECK_H
15
+ # include <valgrind/memcheck.h>
16
+ #endif
17
+
18
+ #ifdef HAVE_SANITIZER_ASAN_INTERFACE_H
19
+ # if __has_feature(address_sanitizer)
20
+ # define RUBY_ASAN_ENABLED
21
+ # include <sanitizer/asan_interface.h>
22
+ # endif
23
+ #endif
24
+
25
+ #ifdef HAVE_SANITIZER_MSAN_INTERFACE_H
26
+ # if __has_feature(memory_sanitizer)
27
+ # define RUBY_MSAN_ENABLED
28
+ # include <sanitizer/msan_interface.h>
29
+ # endif
30
+ #endif
31
+
32
+ #include "ruby/internal/stdbool.h" /* for bool */
33
+ #include "ruby/ruby.h" /* for VALUE */
34
+
35
+ #if 0
36
+ #elif defined(RUBY_ASAN_ENABLED) && defined(RUBY_MSAN_ENABLED)
37
+ # define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS(x) \
38
+ __attribute__((__no_sanitize__("memory, address"), __noinline__)) x
39
+ #elif defined(RUBY_ASAN_ENABLED)
40
+ # define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS(x) \
41
+ __attribute__((__no_sanitize__("address"), __noinline__)) x
42
+ #elif defined(NO_SANITIZE_ADDRESS)
43
+ # define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS(x) \
44
+ NO_SANITIZE_ADDRESS(NOINLINE(x))
45
+ #elif defined(NO_ADDRESS_SAFETY_ANALYSIS)
46
+ # define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS(x) \
47
+ NO_ADDRESS_SAFETY_ANALYSIS(NOINLINE(x))
48
+ #else
49
+ # define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS(x) x
50
+ #endif
51
+
52
+ #if defined(NO_SANITIZE) && RBIMPL_COMPILER_IS(GCC)
53
+ /* GCC warns about unknown sanitizer, which is annoying. */
54
+ # include "internal/warnings.h"
55
+ # undef NO_SANITIZE
56
+ # define NO_SANITIZE(x, y) \
57
+ COMPILER_WARNING_PUSH; \
58
+ COMPILER_WARNING_IGNORED(-Wattributes); \
59
+ __attribute__((__no_sanitize__(x))) y; \
60
+ COMPILER_WARNING_POP
61
+ #endif
62
+
63
+ #ifndef NO_SANITIZE
64
+ # define NO_SANITIZE(x, y) y
65
+ #endif
66
+
67
+ #ifndef RUBY_ASAN_ENABLED
68
+ # define __asan_poison_memory_region(x, y)
69
+ # define __asan_unpoison_memory_region(x, y)
70
+ # define __asan_region_is_poisoned(x, y) 0
71
+ # define __asan_get_current_fake_stack() NULL
72
+ # define __asan_addr_is_in_fake_stack(fake_stack, slot, start, end) NULL
73
+ #endif
74
+
75
+ #ifndef RUBY_MSAN_ENABLED
76
+ # define __msan_allocated_memory(x, y) ((void)(x), (void)(y))
77
+ # define __msan_poison(x, y) ((void)(x), (void)(y))
78
+ # define __msan_unpoison(x, y) ((void)(x), (void)(y))
79
+ # define __msan_unpoison_string(x) ((void)(x))
80
+ #endif
81
+
82
+ #ifdef VALGRIND_MAKE_READABLE
83
+ # define VALGRIND_MAKE_MEM_DEFINED(p, n) VALGRIND_MAKE_READABLE((p), (n))
84
+ #endif
85
+
86
+ #ifdef VALGRIND_MAKE_WRITABLE
87
+ # define VALGRIND_MAKE_MEM_UNDEFINED(p, n) VALGRIND_MAKE_WRITABLE((p), (n))
88
+ #endif
89
+
90
+ #ifndef VALGRIND_MAKE_MEM_DEFINED
91
+ # define VALGRIND_MAKE_MEM_DEFINED(p, n) 0
92
+ #endif
93
+
94
+ #ifndef VALGRIND_MAKE_MEM_UNDEFINED
95
+ # define VALGRIND_MAKE_MEM_UNDEFINED(p, n) 0
96
+ #endif
97
+
98
+ /**
99
+ * This function asserts that a (continuous) memory region from ptr to size
100
+ * being "poisoned". Both read / write access to such memory region are
101
+ * prohibited until properly unpoisoned. The region must be previously
102
+ * allocated (do not pass a freed pointer here), but not necessarily be an
103
+ * entire object that the malloc returns. You can punch hole a part of a
104
+ * gigantic heap arena. This is handy when you do not free an allocated memory
105
+ * region to reuse later: poison when you keep it unused, and unpoison when you
106
+ * reuse.
107
+ *
108
+ * @param[in] ptr pointer to the beginning of the memory region to poison.
109
+ * @param[in] size the length of the memory region to poison.
110
+ */
111
+ static inline void
112
+ asan_poison_memory_region(const volatile void *ptr, size_t size)
113
+ {
114
+ __msan_poison(ptr, size);
115
+ __asan_poison_memory_region(ptr, size);
116
+ }
117
+
118
+ /**
119
+ * This is a variant of asan_poison_memory_region that takes a VALUE.
120
+ *
121
+ * @param[in] obj target object.
122
+ */
123
+ static inline void
124
+ asan_poison_object(VALUE obj)
125
+ {
126
+ MAYBE_UNUSED(struct RVALUE *) ptr = (void *)obj;
127
+ asan_poison_memory_region(ptr, SIZEOF_VALUE);
128
+ }
129
+
130
+ #ifdef RUBY_ASAN_ENABLED
131
+ #define asan_poison_object_if(ptr, obj) do { \
132
+ if (ptr) asan_poison_object(obj); \
133
+ } while (0)
134
+ #else
135
+ #define asan_poison_object_if(ptr, obj) ((void)(ptr), (void)(obj))
136
+ #endif
137
+
138
+ /**
139
+ * This function predicates if the given object is fully addressable or not.
140
+ *
141
+ * @param[in] obj target object.
142
+ * @retval 0 the given object is fully addressable.
143
+ * @retval otherwise pointer to first such byte who is poisoned.
144
+ */
145
+ static inline void *
146
+ asan_poisoned_object_p(VALUE obj)
147
+ {
148
+ MAYBE_UNUSED(struct RVALUE *) ptr = (void *)obj;
149
+ return __asan_region_is_poisoned(ptr, SIZEOF_VALUE);
150
+ }
151
+
152
+ /**
153
+ * This function asserts that a (formally poisoned) memory region from ptr to
154
+ * size is now addressable. Write access to such memory region gets allowed.
155
+ * However read access might or might not be possible depending on situations,
156
+ * because the region can have contents of previous usages. That information
157
+ * should be passed by the malloc_p flag. If that is true, the contents of the
158
+ * region is _not_ fully defined (like the return value of malloc behaves).
159
+ * Reading from there is NG; write something first. If malloc_p is false on
160
+ * the other hand, that memory region is fully defined and can be read
161
+ * immediately.
162
+ *
163
+ * @param[in] ptr pointer to the beginning of the memory region to unpoison.
164
+ * @param[in] size the length of the memory region.
165
+ * @param[in] malloc_p if the memory region is like a malloc's return value or not.
166
+ */
167
+ static inline void
168
+ asan_unpoison_memory_region(const volatile void *ptr, size_t size, bool malloc_p)
169
+ {
170
+ __asan_unpoison_memory_region(ptr, size);
171
+ if (malloc_p) {
172
+ __msan_allocated_memory(ptr, size);
173
+ }
174
+ else {
175
+ __msan_unpoison(ptr, size);
176
+ }
177
+ }
178
+
179
+ /**
180
+ * This is a variant of asan_unpoison_memory_region that takes a VALUE.
181
+ *
182
+ * @param[in] obj target object.
183
+ * @param[in] malloc_p if the memory region is like a malloc's return value or not.
184
+ */
185
+ static inline void
186
+ asan_unpoison_object(VALUE obj, bool newobj_p)
187
+ {
188
+ MAYBE_UNUSED(struct RVALUE *) ptr = (void *)obj;
189
+ asan_unpoison_memory_region(ptr, SIZEOF_VALUE, newobj_p);
190
+ }
191
+
192
+ static inline void *
193
+ asan_unpoison_object_temporary(VALUE obj)
194
+ {
195
+ void *ptr = asan_poisoned_object_p(obj);
196
+ asan_unpoison_object(obj, false);
197
+ return ptr;
198
+ }
199
+
200
+ static inline void *
201
+ asan_poison_object_restore(VALUE obj, void *ptr)
202
+ {
203
+ if (ptr) {
204
+ asan_poison_object(obj);
205
+ }
206
+ return NULL;
207
+ }
208
+
209
+
210
+ /**
211
+ * Checks if the given pointer is on an ASAN fake stack. If so, it returns the
212
+ * address this variable has on the real frame; if not, it returns the origin
213
+ * address unmodified.
214
+ *
215
+ * n.b. - _dereferencing_ the returned address is meaningless and should not
216
+ * be done; even though ASAN reserves space for the variable in both the real and
217
+ * fake stacks, the _value_ of that variable is only in the fake stack.
218
+ *
219
+ * n.b. - this only works for addresses passed in from local variables on the same
220
+ * thread, because the ASAN fake stacks are threadlocal.
221
+ *
222
+ * @param[in] slot the address of some local variable
223
+ * @retval a pointer to something from that frame on the _real_ machine stack
224
+ */
225
+ static inline void *
226
+ asan_get_real_stack_addr(void* slot)
227
+ {
228
+ VALUE *addr;
229
+ addr = __asan_addr_is_in_fake_stack(__asan_get_current_fake_stack(), slot, NULL, NULL);
230
+ return addr ? addr : slot;
231
+ }
232
+
233
+ /**
234
+ * Gets the current thread's fake stack handle, which can be passed into get_fake_stack_extents
235
+ *
236
+ * @retval An opaque value which can be passed to asan_get_fake_stack_extents
237
+ */
238
+ static inline void *
239
+ asan_get_thread_fake_stack_handle(void)
240
+ {
241
+ return __asan_get_current_fake_stack();
242
+ }
243
+
244
+ /**
245
+ * Checks if the given VALUE _actually_ represents a pointer to an ASAN fake stack.
246
+ *
247
+ * If the given slot _is_ actually a reference to an ASAN fake stack, and that fake stack
248
+ * contains the real values for the passed-in range of machine stack addresses, returns true
249
+ * and the range of the fake stack through the outparams.
250
+ *
251
+ * Otherwise, returns false, and sets the outparams to NULL.
252
+ *
253
+ * Note that this function expects "start" to be > "end" on downward-growing stack architectures;
254
+ *
255
+ * @param[in] thread_fake_stack_handle The asan fake stack reference for the thread we're scanning
256
+ * @param[in] slot The value on the machine stack we want to inspect
257
+ * @param[in] machine_stack_start The extents of the real machine stack on which slot lives
258
+ * @param[in] machine_stack_end The extents of the real machine stack on which slot lives
259
+ * @param[out] fake_stack_start_out The extents of the fake stack which contains real VALUEs
260
+ * @param[out] fake_stack_end_out The extents of the fake stack which contains real VALUEs
261
+ * @return Whether slot is a pointer to a fake stack for the given machine stack range
262
+ */
263
+
264
+ static inline bool
265
+ asan_get_fake_stack_extents(void *thread_fake_stack_handle, VALUE slot,
266
+ void *machine_stack_start, void *machine_stack_end,
267
+ void **fake_stack_start_out, void **fake_stack_end_out)
268
+ {
269
+ /* the ifdef is needed here to suppress a warning about fake_frame_{start/end} being
270
+ uninitialized if __asan_addr_is_in_fake_stack is an empty macro */
271
+ #ifdef RUBY_ASAN_ENABLED
272
+ void *fake_frame_start;
273
+ void *fake_frame_end;
274
+ void *real_stack_frame = __asan_addr_is_in_fake_stack(
275
+ thread_fake_stack_handle, (void *)slot, &fake_frame_start, &fake_frame_end
276
+ );
277
+ if (real_stack_frame) {
278
+ bool in_range;
279
+ #if STACK_GROW_DIRECTION < 0
280
+ in_range = machine_stack_start >= real_stack_frame && real_stack_frame >= machine_stack_end;
281
+ #else
282
+ in_range = machine_stack_start <= real_stack_frame && real_stack_frame <= machine_stack_end;
283
+ #endif
284
+ if (in_range) {
285
+ *fake_stack_start_out = fake_frame_start;
286
+ *fake_stack_end_out = fake_frame_end;
287
+ return true;
288
+ }
289
+ }
290
+ #endif
291
+ *fake_stack_start_out = 0;
292
+ *fake_stack_end_out = 0;
293
+ return false;
294
+ }
295
+
296
+
297
+ #endif /* INTERNAL_SANITIZERS_H */
@@ -0,0 +1,23 @@
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 */
@@ -0,0 +1,24 @@
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 */
@@ -0,0 +1,11 @@
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
@@ -0,0 +1,16 @@
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 */