datadog-ruby_core_source 3.4.1 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. checksums.yaml +4 -4
  2. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/id.h +357 -0
  3. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/id_table.h +15 -0
  4. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/array.h +2 -0
  5. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/basic_operators.h +66 -0
  6. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/bignum.h +256 -0
  7. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/bits.h +647 -0
  8. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/box.h +83 -0
  9. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/class.h +806 -0
  10. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/cmdlineopt.h +3 -0
  11. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/concurrent_set.h +21 -0
  12. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/cont.h +34 -0
  13. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/encoding.h +2 -1
  14. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/error.h +7 -0
  15. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/eval.h +43 -0
  16. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/gc.h +360 -0
  17. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/hash.h +1 -0
  18. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/imemo.h +87 -22
  19. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/inits.h +4 -0
  20. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/io.h +25 -5
  21. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/load.h +2 -0
  22. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/numeric.h +323 -0
  23. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/object.h +1 -1
  24. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/re.h +5 -0
  25. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/sanitizers.h +16 -0
  26. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/set_table.h +70 -0
  27. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/signal.h +1 -0
  28. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/st.h +1 -1
  29. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/string.h +4 -0
  30. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/struct.h +41 -0
  31. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/symbol.h +4 -5
  32. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/thread.h +112 -0
  33. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/time.h +34 -0
  34. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/variable.h +13 -9
  35. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/vm.h +138 -0
  36. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal.h +0 -3
  37. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/iseq.h +359 -0
  38. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/method.h +276 -0
  39. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/prism/ast.h +8254 -0
  40. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/diagnostic.h +7 -0
  41. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/extension.h +1 -1
  42. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/prism/options.h +488 -0
  43. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/parser.h +3 -0
  44. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/prism/prism.h +408 -0
  45. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/regexp.h +2 -2
  46. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_buffer.h +8 -0
  47. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_integer.h +4 -0
  48. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_list.h +6 -0
  49. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_string.h +12 -2
  50. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/version.h +2 -2
  51. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism_compile.h +1 -0
  52. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ractor_core.h +63 -114
  53. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/ruby_atomic.h +73 -0
  54. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/rubyparser.h +1393 -0
  55. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/shape.h +464 -0
  56. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/thread_pthread.h +177 -0
  57. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/vm_core.h +2406 -0
  58. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/vm_debug.h +124 -0
  59. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ccan/build_assert/build_assert.h +40 -0
  60. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ccan/check_type/check_type.h +63 -0
  61. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ccan/container_of/container_of.h +142 -0
  62. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ccan/list/list.h +791 -0
  63. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ccan/str/str.h +17 -0
  64. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/id.h +7 -5
  65. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/id_table.h +54 -0
  66. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/array.h +154 -0
  67. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/bignum.h +1 -0
  68. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/box.h +81 -0
  69. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/class.h +805 -0
  70. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/cmdlineopt.h +64 -0
  71. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/compar.h +29 -0
  72. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/compile.h +34 -0
  73. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/compilers.h +107 -0
  74. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/complex.h +29 -0
  75. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/concurrent_set.h +21 -0
  76. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/dir.h +16 -0
  77. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/enc.h +19 -0
  78. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/encoding.h +39 -0
  79. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/enum.h +18 -0
  80. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/enumerator.h +21 -0
  81. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/error.h +251 -0
  82. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/eval.h +8 -0
  83. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/file.h +38 -0
  84. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/fixnum.h +185 -0
  85. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/gc.h +25 -0
  86. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/hash.h +194 -0
  87. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/imemo.h +322 -0
  88. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/inits.h +51 -0
  89. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/io.h +163 -0
  90. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/load.h +20 -0
  91. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/loadpath.h +16 -0
  92. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/math.h +23 -0
  93. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/missing.h +19 -0
  94. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/numeric.h +1 -0
  95. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/object.h +63 -0
  96. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/parse.h +131 -0
  97. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/proc.h +30 -0
  98. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/process.h +124 -0
  99. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/ractor.h +10 -0
  100. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/random.h +17 -0
  101. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/range.h +40 -0
  102. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/rational.h +71 -0
  103. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/re.h +33 -0
  104. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/ruby_parser.h +102 -0
  105. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/sanitizers.h +346 -0
  106. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/serial.h +23 -0
  107. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/set_table.h +70 -0
  108. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/signal.h +25 -0
  109. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/st.h +11 -0
  110. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/static_assert.h +16 -0
  111. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/string.h +203 -0
  112. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/struct.h +160 -0
  113. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/symbol.h +46 -0
  114. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/thread.h +14 -10
  115. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/transcode.h +23 -0
  116. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/util.h +27 -0
  117. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/variable.h +74 -0
  118. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/vm.h +3 -4
  119. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/warnings.h +16 -0
  120. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal.h +105 -0
  121. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/iseq.h +7 -1
  122. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/method.h +14 -1
  123. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/node.h +122 -0
  124. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/parser_st.h +162 -0
  125. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/parser_value.h +106 -0
  126. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/prism/ast.h +322 -53
  127. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/defines.h +260 -0
  128. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/diagnostic.h +458 -0
  129. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/encoding.h +283 -0
  130. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/extension.h +19 -0
  131. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/node.h +129 -0
  132. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/prism/options.h +46 -3
  133. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/pack.h +163 -0
  134. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/parser.h +936 -0
  135. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/prettyprint.h +34 -0
  136. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/prism/prism.h +39 -14
  137. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/regexp.h +43 -0
  138. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/static_literals.h +121 -0
  139. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_buffer.h +236 -0
  140. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_char.h +204 -0
  141. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_constant_pool.h +218 -0
  142. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_integer.h +130 -0
  143. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_list.h +103 -0
  144. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_memchr.h +29 -0
  145. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_newline_list.h +113 -0
  146. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_string.h +200 -0
  147. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_strncasecmp.h +32 -0
  148. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_strpbrk.h +46 -0
  149. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/version.h +29 -0
  150. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism_compile.h +106 -0
  151. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ractor_core.h +306 -0
  152. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ruby_assert.h +14 -0
  153. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ruby_atomic.h +66 -0
  154. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/rubyparser.h +15 -1
  155. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/shape.h +444 -0
  156. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/thread_none.h +21 -0
  157. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/thread_pthread.h +10 -2
  158. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/vm_core.h +160 -45
  159. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/vm_opts.h +67 -0
  160. data/lib/datadog/ruby_core_source/version.rb +1 -1
  161. data/lib/datadog/ruby_core_source.rb +1 -1
  162. metadata +214 -106
  163. data/CHANGELOG.datadog.md +0 -19
  164. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/class.h +0 -283
  165. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/ruby_atomic.h +0 -23
  166. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/shape.h +0 -234
  167. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/build_assert/build_assert.h +0 -0
  168. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/check_type/check_type.h +0 -0
  169. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/container_of/container_of.h +0 -0
  170. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/list/list.h +0 -0
  171. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/str/str.h +0 -0
  172. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compar.h +0 -0
  173. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compile.h +0 -0
  174. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compilers.h +0 -0
  175. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/complex.h +0 -0
  176. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/dir.h +0 -0
  177. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enc.h +0 -0
  178. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enum.h +0 -0
  179. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enumerator.h +0 -0
  180. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/file.h +0 -0
  181. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/fixnum.h +0 -0
  182. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/loadpath.h +0 -0
  183. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/math.h +0 -0
  184. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/missing.h +0 -0
  185. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/parse.h +0 -0
  186. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/proc.h +0 -0
  187. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/process.h +0 -0
  188. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/ractor.h +0 -0
  189. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/random.h +0 -0
  190. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/range.h +0 -0
  191. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/rational.h +0 -0
  192. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/ruby_parser.h +0 -0
  193. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/serial.h +0 -0
  194. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/static_assert.h +0 -0
  195. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/transcode.h +0 -0
  196. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/util.h +0 -0
  197. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/warnings.h +0 -0
  198. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/node.h +0 -0
  199. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/parser_st.h +0 -0
  200. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/parser_value.h +0 -0
  201. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/defines.h +0 -0
  202. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/encoding.h +0 -0
  203. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/node.h +0 -0
  204. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/pack.h +0 -0
  205. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/prettyprint.h +0 -0
  206. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/static_literals.h +0 -0
  207. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_char.h +0 -0
  208. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_constant_pool.h +0 -0
  209. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_memchr.h +0 -0
  210. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_newline_list.h +0 -0
  211. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_strncasecmp.h +0 -0
  212. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_strpbrk.h +0 -0
  213. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ruby_assert.h +0 -0
  214. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/thread_none.h +0 -0
  215. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/vm_opts.h +0 -0
  216. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/basic_operators.h +0 -0
  217. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/bits.h +0 -0
  218. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/cont.h +0 -0
  219. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/time.h +0 -0
  220. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/vm_debug.h +0 -0
@@ -0,0 +1,113 @@
1
+ /**
2
+ * @file pm_newline_list.h
3
+ *
4
+ * A list of byte offsets of newlines in a string.
5
+ *
6
+ * When compiling the syntax tree, it's necessary to know the line and column
7
+ * of many nodes. This is necessary to support things like error messages,
8
+ * tracepoints, etc.
9
+ *
10
+ * It's possible that we could store the start line, start column, end line, and
11
+ * end column on every node in addition to the offsets that we already store,
12
+ * but that would be quite a lot of memory overhead.
13
+ */
14
+ #ifndef PRISM_NEWLINE_LIST_H
15
+ #define PRISM_NEWLINE_LIST_H
16
+
17
+ #include "prism/defines.h"
18
+
19
+ #include <assert.h>
20
+ #include <stdbool.h>
21
+ #include <stddef.h>
22
+ #include <stdlib.h>
23
+
24
+ /**
25
+ * A list of offsets of newlines in a string. The offsets are assumed to be
26
+ * sorted/inserted in ascending order.
27
+ */
28
+ typedef struct {
29
+ /** A pointer to the start of the source string. */
30
+ const uint8_t *start;
31
+
32
+ /** The number of offsets in the list. */
33
+ size_t size;
34
+
35
+ /** The capacity of the list that has been allocated. */
36
+ size_t capacity;
37
+
38
+ /** The list of offsets. */
39
+ size_t *offsets;
40
+ } pm_newline_list_t;
41
+
42
+ /**
43
+ * A line and column in a string.
44
+ */
45
+ typedef struct {
46
+ /** The line number. */
47
+ int32_t line;
48
+
49
+ /** The column number. */
50
+ uint32_t column;
51
+ } pm_line_column_t;
52
+
53
+ /**
54
+ * Initialize a new newline list with the given capacity. Returns true if the
55
+ * allocation of the offsets succeeds, otherwise returns false.
56
+ *
57
+ * @param list The list to initialize.
58
+ * @param start A pointer to the start of the source string.
59
+ * @param capacity The initial capacity of the list.
60
+ * @return True if the allocation of the offsets succeeds, otherwise false.
61
+ */
62
+ bool pm_newline_list_init(pm_newline_list_t *list, const uint8_t *start, size_t capacity);
63
+
64
+ /**
65
+ * Clear out the newlines that have been appended to the list.
66
+ *
67
+ * @param list The list to clear.
68
+ */
69
+ void
70
+ pm_newline_list_clear(pm_newline_list_t *list);
71
+
72
+ /**
73
+ * Append a new offset to the newline list. Returns true if the reallocation of
74
+ * the offsets succeeds (if one was necessary), otherwise returns false.
75
+ *
76
+ * @param list The list to append to.
77
+ * @param cursor A pointer to the offset to append.
78
+ * @return True if the reallocation of the offsets succeeds (if one was
79
+ * necessary), otherwise false.
80
+ */
81
+ bool pm_newline_list_append(pm_newline_list_t *list, const uint8_t *cursor);
82
+
83
+ /**
84
+ * Returns the line of the given offset. If the offset is not in the list, the
85
+ * line of the closest offset less than the given offset is returned.
86
+ *
87
+ * @param list The list to search.
88
+ * @param cursor A pointer to the offset to search for.
89
+ * @param start_line The line to start counting from.
90
+ * @return The line of the given offset.
91
+ */
92
+ int32_t pm_newline_list_line(const pm_newline_list_t *list, const uint8_t *cursor, int32_t start_line);
93
+
94
+ /**
95
+ * Returns the line and column of the given offset. If the offset is not in the
96
+ * list, the line and column of the closest offset less than the given offset
97
+ * are returned.
98
+ *
99
+ * @param list The list to search.
100
+ * @param cursor A pointer to the offset to search for.
101
+ * @param start_line The line to start counting from.
102
+ * @return The line and column of the given offset.
103
+ */
104
+ pm_line_column_t pm_newline_list_line_column(const pm_newline_list_t *list, const uint8_t *cursor, int32_t start_line);
105
+
106
+ /**
107
+ * Free the internal memory allocated for the newline list.
108
+ *
109
+ * @param list The list to free.
110
+ */
111
+ void pm_newline_list_free(pm_newline_list_t *list);
112
+
113
+ #endif
@@ -0,0 +1,200 @@
1
+ /**
2
+ * @file pm_string.h
3
+ *
4
+ * A generic string type that can have various ownership semantics.
5
+ */
6
+ #ifndef PRISM_STRING_H
7
+ #define PRISM_STRING_H
8
+
9
+ #include "prism/defines.h"
10
+
11
+ #include <assert.h>
12
+ #include <errno.h>
13
+ #include <stdbool.h>
14
+ #include <stddef.h>
15
+ #include <stdlib.h>
16
+ #include <string.h>
17
+
18
+ // The following headers are necessary to read files using demand paging.
19
+ #ifdef _WIN32
20
+ #include <windows.h>
21
+ #elif defined(_POSIX_MAPPED_FILES)
22
+ #include <fcntl.h>
23
+ #include <sys/mman.h>
24
+ #include <sys/stat.h>
25
+ #elif defined(PRISM_HAS_FILESYSTEM)
26
+ #include <fcntl.h>
27
+ #include <sys/stat.h>
28
+ #endif
29
+
30
+ /**
31
+ * A generic string type that can have various ownership semantics.
32
+ */
33
+ typedef struct {
34
+ /** A pointer to the start of the string. */
35
+ const uint8_t *source;
36
+
37
+ /** The length of the string in bytes of memory. */
38
+ size_t length;
39
+
40
+ /** The type of the string. This field determines how the string should be freed. */
41
+ enum {
42
+ /** This string is a constant string, and should not be freed. */
43
+ PM_STRING_CONSTANT,
44
+
45
+ /** This is a slice of another string, and should not be freed. */
46
+ PM_STRING_SHARED,
47
+
48
+ /** This string owns its memory, and should be freed using `pm_string_free()`. */
49
+ PM_STRING_OWNED,
50
+
51
+ #ifdef PRISM_HAS_MMAP
52
+ /** This string is a memory-mapped file, and should be freed using `pm_string_free()`. */
53
+ PM_STRING_MAPPED
54
+ #endif
55
+ } type;
56
+ } pm_string_t;
57
+
58
+ /**
59
+ * Returns the size of the pm_string_t struct. This is necessary to allocate the
60
+ * correct amount of memory in the FFI backend.
61
+ *
62
+ * @return The size of the pm_string_t struct.
63
+ */
64
+ PRISM_EXPORTED_FUNCTION size_t pm_string_sizeof(void);
65
+
66
+ /**
67
+ * Defines an empty string. This is useful for initializing a string that will
68
+ * be filled in later.
69
+ */
70
+ #define PM_STRING_EMPTY ((pm_string_t) { .type = PM_STRING_CONSTANT, .source = NULL, .length = 0 })
71
+
72
+ /**
73
+ * Initialize a shared string that is based on initial input.
74
+ *
75
+ * @param string The string to initialize.
76
+ * @param start The start of the string.
77
+ * @param end The end of the string.
78
+ */
79
+ void pm_string_shared_init(pm_string_t *string, const uint8_t *start, const uint8_t *end);
80
+
81
+ /**
82
+ * Initialize an owned string that is responsible for freeing allocated memory.
83
+ *
84
+ * @param string The string to initialize.
85
+ * @param source The source of the string.
86
+ * @param length The length of the string.
87
+ */
88
+ void pm_string_owned_init(pm_string_t *string, uint8_t *source, size_t length);
89
+
90
+ /**
91
+ * Initialize a constant string that doesn't own its memory source.
92
+ *
93
+ * @param string The string to initialize.
94
+ * @param source The source of the string.
95
+ * @param length The length of the string.
96
+ */
97
+ void pm_string_constant_init(pm_string_t *string, const char *source, size_t length);
98
+
99
+ /**
100
+ * Represents the result of calling pm_string_mapped_init or
101
+ * pm_string_file_init. We need this additional information because there is
102
+ * not a platform-agnostic way to indicate that the file that was attempted to
103
+ * be opened was a directory.
104
+ */
105
+ typedef enum {
106
+ /** Indicates that the string was successfully initialized. */
107
+ PM_STRING_INIT_SUCCESS = 0,
108
+ /**
109
+ * Indicates a generic error from a string_*_init function, where the type
110
+ * of error should be read from `errno` or `GetLastError()`.
111
+ */
112
+ PM_STRING_INIT_ERROR_GENERIC = 1,
113
+ /**
114
+ * Indicates that the file that was attempted to be opened was a directory.
115
+ */
116
+ PM_STRING_INIT_ERROR_DIRECTORY = 2
117
+ } pm_string_init_result_t;
118
+
119
+ /**
120
+ * Read the file indicated by the filepath parameter into source and load its
121
+ * contents and size into the given `pm_string_t`. The given `pm_string_t`
122
+ * should be freed using `pm_string_free` when it is no longer used.
123
+ *
124
+ * We want to use demand paging as much as possible in order to avoid having to
125
+ * read the entire file into memory (which could be detrimental to performance
126
+ * for large files). This means that if we're on windows we'll use
127
+ * `MapViewOfFile`, on POSIX systems that have access to `mmap` we'll use
128
+ * `mmap`, and on other POSIX systems we'll use `read`.
129
+ *
130
+ * @param string The string to initialize.
131
+ * @param filepath The filepath to read.
132
+ * @return The success of the read, indicated by the value of the enum.
133
+ *
134
+ * \public \memberof pm_string_t
135
+ */
136
+ PRISM_EXPORTED_FUNCTION pm_string_init_result_t pm_string_mapped_init(pm_string_t *string, const char *filepath);
137
+
138
+ /**
139
+ * Read the file indicated by the filepath parameter into source and load its
140
+ * contents and size into the given `pm_string_t`. The given `pm_string_t`
141
+ * should be freed using `pm_string_free` when it is no longer used.
142
+ *
143
+ * @param string The string to initialize.
144
+ * @param filepath The filepath to read.
145
+ * @return The success of the read, indicated by the value of the enum.
146
+ *
147
+ * \public \memberof pm_string_t
148
+ */
149
+ PRISM_EXPORTED_FUNCTION pm_string_init_result_t pm_string_file_init(pm_string_t *string, const char *filepath);
150
+
151
+ /**
152
+ * Ensure the string is owned. If it is not, then reinitialize it as owned and
153
+ * copy over the previous source.
154
+ *
155
+ * @param string The string to ensure is owned.
156
+ */
157
+ void pm_string_ensure_owned(pm_string_t *string);
158
+
159
+ /**
160
+ * Compare the underlying lengths and bytes of two strings. Returns 0 if the
161
+ * strings are equal, a negative number if the left string is less than the
162
+ * right string, and a positive number if the left string is greater than the
163
+ * right string.
164
+ *
165
+ * @param left The left string to compare.
166
+ * @param right The right string to compare.
167
+ * @return The comparison result.
168
+ */
169
+ int pm_string_compare(const pm_string_t *left, const pm_string_t *right);
170
+
171
+ /**
172
+ * Returns the length associated with the string.
173
+ *
174
+ * @param string The string to get the length of.
175
+ * @return The length of the string.
176
+ *
177
+ * \public \memberof pm_string_t
178
+ */
179
+ PRISM_EXPORTED_FUNCTION size_t pm_string_length(const pm_string_t *string);
180
+
181
+ /**
182
+ * Returns the start pointer associated with the string.
183
+ *
184
+ * @param string The string to get the start pointer of.
185
+ * @return The start pointer of the string.
186
+ *
187
+ * \public \memberof pm_string_t
188
+ */
189
+ PRISM_EXPORTED_FUNCTION const uint8_t * pm_string_source(const pm_string_t *string);
190
+
191
+ /**
192
+ * Free the associated memory of the given string.
193
+ *
194
+ * @param string The string to free.
195
+ *
196
+ * \public \memberof pm_string_t
197
+ */
198
+ PRISM_EXPORTED_FUNCTION void pm_string_free(pm_string_t *string);
199
+
200
+ #endif
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @file pm_strncasecmp.h
3
+ *
4
+ * A custom strncasecmp implementation.
5
+ */
6
+ #ifndef PRISM_STRNCASECMP_H
7
+ #define PRISM_STRNCASECMP_H
8
+
9
+ #include "prism/defines.h"
10
+
11
+ #include <ctype.h>
12
+ #include <stddef.h>
13
+ #include <stdint.h>
14
+
15
+ /**
16
+ * Compare two strings, ignoring case, up to the given length. Returns 0 if the
17
+ * strings are equal, a negative number if string1 is less than string2, or a
18
+ * positive number if string1 is greater than string2.
19
+ *
20
+ * Note that this is effectively our own implementation of strncasecmp, but it's
21
+ * not available on all of the platforms we want to support so we're rolling it
22
+ * here.
23
+ *
24
+ * @param string1 The first string to compare.
25
+ * @param string2 The second string to compare
26
+ * @param length The maximum number of characters to compare.
27
+ * @return 0 if the strings are equal, a negative number if string1 is less than
28
+ * string2, or a positive number if string1 is greater than string2.
29
+ */
30
+ int pm_strncasecmp(const uint8_t *string1, const uint8_t *string2, size_t length);
31
+
32
+ #endif
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @file pm_strpbrk.h
3
+ *
4
+ * A custom strpbrk implementation.
5
+ */
6
+ #ifndef PRISM_STRPBRK_H
7
+ #define PRISM_STRPBRK_H
8
+
9
+ #include "prism/defines.h"
10
+ #include "prism/diagnostic.h"
11
+ #include "prism/parser.h"
12
+
13
+ #include <stddef.h>
14
+ #include <string.h>
15
+
16
+ /**
17
+ * Here we have rolled our own version of strpbrk. The standard library strpbrk
18
+ * has undefined behavior when the source string is not null-terminated. We want
19
+ * to support strings that are not null-terminated because pm_parse does not
20
+ * have the contract that the string is null-terminated. (This is desirable
21
+ * because it means the extension can call pm_parse with the result of a call to
22
+ * mmap).
23
+ *
24
+ * The standard library strpbrk also does not support passing a maximum length
25
+ * to search. We want to support this for the reason mentioned above, but we
26
+ * also don't want it to stop on null bytes. Ruby actually allows null bytes
27
+ * within strings, comments, regular expressions, etc. So we need to be able to
28
+ * skip past them.
29
+ *
30
+ * Finally, we want to support encodings wherein the charset could contain
31
+ * characters that are trailing bytes of multi-byte characters. For example, in
32
+ * Shift-JIS, the backslash character can be a trailing byte. In that case we
33
+ * need to take a slower path and iterate one multi-byte character at a time.
34
+ *
35
+ * @param parser The parser.
36
+ * @param source The source to search.
37
+ * @param charset The charset to search for.
38
+ * @param length The maximum number of bytes to search.
39
+ * @param validate Whether to validate that the source string is valid in the
40
+ * current encoding of the parser.
41
+ * @return A pointer to the first character in the source string that is in the
42
+ * charset, or NULL if no such character exists.
43
+ */
44
+ const uint8_t * pm_strpbrk(pm_parser_t *parser, const uint8_t *source, const uint8_t *charset, ptrdiff_t length, bool validate);
45
+
46
+ #endif
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @file version.h
3
+ *
4
+ * The version of the Prism library.
5
+ */
6
+ #ifndef PRISM_VERSION_H
7
+ #define PRISM_VERSION_H
8
+
9
+ /**
10
+ * The major version of the Prism library as an int.
11
+ */
12
+ #define PRISM_VERSION_MAJOR 1
13
+
14
+ /**
15
+ * The minor version of the Prism library as an int.
16
+ */
17
+ #define PRISM_VERSION_MINOR 6
18
+
19
+ /**
20
+ * The patch version of the Prism library as an int.
21
+ */
22
+ #define PRISM_VERSION_PATCH 0
23
+
24
+ /**
25
+ * The version of the Prism library as a constant string.
26
+ */
27
+ #define PRISM_VERSION "1.6.0"
28
+
29
+ #endif
@@ -0,0 +1,106 @@
1
+ #include "prism/prism.h"
2
+ #include "ruby/encoding.h"
3
+
4
+ /**
5
+ * the getlocal and setlocal instructions require two parameters. level is how
6
+ * many hops up the iseq stack one needs to go before finding the correct local
7
+ * table. The index is the index in that table where our variable is.
8
+ *
9
+ * Because these are always calculated and used together, we'll bind them
10
+ * together as a tuple.
11
+ */
12
+ typedef struct pm_local_index_struct {
13
+ int index, level;
14
+ } pm_local_index_t;
15
+
16
+ // A declaration for the struct that lives in compile.c.
17
+ struct iseq_link_anchor;
18
+
19
+ // ScopeNodes are helper nodes, and will never be part of the AST. We manually
20
+ // declare them here to avoid generating them.
21
+ typedef struct pm_scope_node {
22
+ pm_node_t base;
23
+ struct pm_scope_node *previous;
24
+ pm_node_t *ast_node;
25
+ pm_node_t *parameters;
26
+ pm_node_t *body;
27
+ pm_constant_id_list_t locals;
28
+
29
+ const pm_parser_t *parser;
30
+ rb_encoding *encoding;
31
+
32
+ /**
33
+ * This is a pointer to the list of script lines for the ISEQs that will be
34
+ * associated with this scope node. It is only set if
35
+ * RubyVM.keep_script_lines is true. If it is set, it will be set to a
36
+ * pointer to an array that is always stack allocated (so no GC marking is
37
+ * needed by this struct). If it is not set, it will be NULL. It is
38
+ * inherited by all child scopes.
39
+ */
40
+ VALUE *script_lines;
41
+
42
+ /**
43
+ * This is the encoding of the actual filepath object that will be used when
44
+ * a __FILE__ node is compiled or when the path has to be set on a syntax
45
+ * error.
46
+ */
47
+ rb_encoding *filepath_encoding;
48
+
49
+ // The size of the local table on the iseq which includes locals and hidden
50
+ // variables.
51
+ int local_table_for_iseq_size;
52
+
53
+ ID *constants;
54
+ st_table *index_lookup_table;
55
+
56
+ // The current coverage setting, passed down through the various scopes.
57
+ int coverage_enabled;
58
+
59
+ /**
60
+ * This will only be set on the top-level scope node. It will contain all of
61
+ * the instructions pertaining to BEGIN{} nodes.
62
+ */
63
+ struct iseq_link_anchor *pre_execution_anchor;
64
+ } pm_scope_node_t;
65
+
66
+ void pm_scope_node_init(const pm_node_t *node, pm_scope_node_t *scope, pm_scope_node_t *previous);
67
+ void pm_scope_node_destroy(pm_scope_node_t *scope_node);
68
+
69
+ typedef struct {
70
+ /** The parser that will do the actual parsing. */
71
+ pm_parser_t parser;
72
+
73
+ /** The options that will be passed to the parser. */
74
+ pm_options_t options;
75
+
76
+ /** The input that represents the source to be parsed. */
77
+ pm_string_t input;
78
+
79
+ /** The resulting scope node that will hold the generated AST. */
80
+ pm_scope_node_t node;
81
+
82
+ /** Whether or not this parse result has performed its parsing yet. */
83
+ bool parsed;
84
+ } pm_parse_result_t;
85
+
86
+ #define PM_SPECIAL_CONSTANT_FLAG ((pm_constant_id_t)(1 << 31))
87
+ #define PM_CONSTANT_AND ((pm_constant_id_t)(idAnd | PM_SPECIAL_CONSTANT_FLAG))
88
+ #define PM_CONSTANT_DOT3 ((pm_constant_id_t)(idDot3 | PM_SPECIAL_CONSTANT_FLAG))
89
+ #define PM_CONSTANT_MULT ((pm_constant_id_t)(idMULT | PM_SPECIAL_CONSTANT_FLAG))
90
+ #define PM_CONSTANT_POW ((pm_constant_id_t)(idPow | PM_SPECIAL_CONSTANT_FLAG))
91
+
92
+ VALUE pm_load_file(pm_parse_result_t *result, VALUE filepath, bool load_error);
93
+ VALUE pm_parse_file(pm_parse_result_t *result, VALUE filepath, VALUE *script_lines);
94
+ VALUE pm_load_parse_file(pm_parse_result_t *result, VALUE filepath, VALUE *script_lines);
95
+ VALUE pm_parse_string(pm_parse_result_t *result, VALUE source, VALUE filepath, VALUE *script_lines);
96
+ VALUE pm_parse_stdin(pm_parse_result_t *result);
97
+ void pm_options_version_for_current_ruby_set(pm_options_t *options);
98
+ void pm_parse_result_free(pm_parse_result_t *result);
99
+
100
+ rb_iseq_t *pm_iseq_new(pm_scope_node_t *node, VALUE name, VALUE path, VALUE realpath, const rb_iseq_t *parent, enum rb_iseq_type, int *error_state);
101
+ rb_iseq_t *pm_iseq_new_top(pm_scope_node_t *node, VALUE name, VALUE path, VALUE realpath, const rb_iseq_t *parent, int *error_state);
102
+ rb_iseq_t *pm_iseq_new_main(pm_scope_node_t *node, VALUE path, VALUE realpath, const rb_iseq_t *parent, int opt, int *error_state);
103
+ rb_iseq_t *pm_iseq_new_eval(pm_scope_node_t *node, VALUE name, VALUE path, VALUE realpath, int first_lineno, const rb_iseq_t *parent, int isolated_depth, int *error_state);
104
+ rb_iseq_t *pm_iseq_new_with_opt(pm_scope_node_t *node, VALUE name, VALUE path, VALUE realpath, int first_lineno, const rb_iseq_t *parent, int isolated_depth, enum rb_iseq_type, const rb_compile_option_t *option, int *error_state);
105
+
106
+ VALUE pm_iseq_compile_node(rb_iseq_t *iseq, pm_scope_node_t *node);