datadog-ruby_core_source 3.3.7 → 3.4.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 (211) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.datadog.md +5 -0
  3. data/datadog-ruby_core_source.gemspec +1 -1
  4. data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/id.h +2 -0
  5. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/error.h +26 -0
  6. data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/gc.h +1 -0
  7. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/parse.h +2 -1
  8. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/proc.h +1 -0
  9. data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/sanitizers.h +24 -36
  10. data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism/ast.h +10 -0
  11. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/extension.h +1 -1
  12. data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism/version.h +2 -2
  13. data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/ractor_core.h +1 -0
  14. data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/rubyparser.h +3 -1
  15. data/lib/datadog/ruby_core_source/version.rb +1 -1
  16. metadata +106 -209
  17. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/id.h +0 -347
  18. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/basic_operators.h +0 -64
  19. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/bits.h +0 -568
  20. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/encoding.h +0 -36
  21. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/fixnum.h +0 -184
  22. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/gc.h +0 -322
  23. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/imemo.h +0 -261
  24. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/io.h +0 -143
  25. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/ractor.h +0 -6
  26. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/sanitizers.h +0 -326
  27. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/string.h +0 -186
  28. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/thread.h +0 -85
  29. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/internal/vm.h +0 -137
  30. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/method.h +0 -255
  31. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism/ast.h +0 -7524
  32. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism/defines.h +0 -242
  33. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism/diagnostic.h +0 -450
  34. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism/prism.h +0 -336
  35. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism/version.h +0 -29
  36. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/prism_compile.h +0 -99
  37. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/ractor_core.h +0 -382
  38. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/rubyparser.h +0 -1350
  39. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/thread_pthread.h +0 -168
  40. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_core.h +0 -2222
  41. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ccan/build_assert/build_assert.h +0 -40
  42. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ccan/check_type/check_type.h +0 -63
  43. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ccan/container_of/container_of.h +0 -142
  44. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ccan/list/list.h +0 -791
  45. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ccan/str/str.h +0 -17
  46. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/id_table.h +0 -39
  47. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/array.h +0 -152
  48. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/bignum.h +0 -244
  49. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/class.h +0 -283
  50. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/cmdlineopt.h +0 -65
  51. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/compar.h +0 -29
  52. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/compile.h +0 -34
  53. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/compilers.h +0 -107
  54. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/complex.h +0 -29
  55. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/cont.h +0 -35
  56. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/dir.h +0 -16
  57. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/enc.h +0 -19
  58. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/enum.h +0 -18
  59. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/enumerator.h +0 -21
  60. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/error.h +0 -218
  61. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/eval.h +0 -33
  62. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/file.h +0 -38
  63. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/hash.h +0 -192
  64. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/inits.h +0 -47
  65. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/load.h +0 -18
  66. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/loadpath.h +0 -16
  67. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/math.h +0 -23
  68. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/missing.h +0 -19
  69. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/numeric.h +0 -274
  70. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/object.h +0 -63
  71. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/parse.h +0 -129
  72. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/proc.h +0 -30
  73. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/process.h +0 -124
  74. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/random.h +0 -17
  75. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/range.h +0 -40
  76. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/rational.h +0 -71
  77. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/re.h +0 -28
  78. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/ruby_parser.h +0 -102
  79. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/serial.h +0 -23
  80. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/signal.h +0 -24
  81. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/st.h +0 -11
  82. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/static_assert.h +0 -16
  83. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/struct.h +0 -127
  84. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/symbol.h +0 -45
  85. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/time.h +0 -34
  86. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/transcode.h +0 -23
  87. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/util.h +0 -27
  88. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/variable.h +0 -72
  89. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal/warnings.h +0 -16
  90. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/internal.h +0 -108
  91. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/iseq.h +0 -340
  92. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/node.h +0 -111
  93. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/parser_st.h +0 -162
  94. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/parser_value.h +0 -106
  95. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/encoding.h +0 -283
  96. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/extension.h +0 -19
  97. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/node.h +0 -129
  98. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/options.h +0 -396
  99. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/pack.h +0 -163
  100. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/parser.h +0 -933
  101. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/prettyprint.h +0 -34
  102. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/regexp.h +0 -43
  103. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/static_literals.h +0 -121
  104. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_buffer.h +0 -218
  105. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_char.h +0 -204
  106. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_constant_pool.h +0 -218
  107. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_integer.h +0 -126
  108. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_list.h +0 -97
  109. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_memchr.h +0 -29
  110. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_newline_list.h +0 -113
  111. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_string.h +0 -190
  112. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_strncasecmp.h +0 -32
  113. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/util/pm_strpbrk.h +0 -46
  114. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ruby_assert.h +0 -14
  115. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/ruby_atomic.h +0 -23
  116. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/shape.h +0 -234
  117. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/thread_none.h +0 -21
  118. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/vm_debug.h +0 -124
  119. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/vm_opts.h +0 -67
  120. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ccan/build_assert/build_assert.h +0 -0
  121. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ccan/check_type/check_type.h +0 -0
  122. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ccan/container_of/container_of.h +0 -0
  123. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ccan/list/list.h +0 -0
  124. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ccan/str/str.h +0 -0
  125. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/id_table.h +0 -0
  126. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/array.h +0 -0
  127. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/basic_operators.h +0 -0
  128. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/bignum.h +0 -0
  129. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/bits.h +0 -0
  130. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/class.h +0 -0
  131. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/cmdlineopt.h +0 -0
  132. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/compar.h +0 -0
  133. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/compile.h +0 -0
  134. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/compilers.h +0 -0
  135. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/complex.h +0 -0
  136. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/cont.h +0 -0
  137. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/dir.h +0 -0
  138. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/enc.h +0 -0
  139. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/encoding.h +0 -0
  140. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/enum.h +0 -0
  141. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/enumerator.h +0 -0
  142. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/eval.h +0 -0
  143. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/file.h +0 -0
  144. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/fixnum.h +0 -0
  145. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/hash.h +0 -0
  146. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/imemo.h +0 -0
  147. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/inits.h +0 -0
  148. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/io.h +0 -0
  149. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/load.h +0 -0
  150. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/loadpath.h +0 -0
  151. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/math.h +0 -0
  152. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/missing.h +0 -0
  153. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/numeric.h +0 -0
  154. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/object.h +0 -0
  155. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/process.h +0 -0
  156. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/ractor.h +0 -0
  157. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/random.h +0 -0
  158. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/range.h +0 -0
  159. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/rational.h +0 -0
  160. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/re.h +0 -0
  161. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/ruby_parser.h +0 -0
  162. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/serial.h +0 -0
  163. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/signal.h +0 -0
  164. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/st.h +0 -0
  165. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/static_assert.h +0 -0
  166. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/string.h +0 -0
  167. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/struct.h +0 -0
  168. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/symbol.h +0 -0
  169. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/thread.h +0 -0
  170. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/time.h +0 -0
  171. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/transcode.h +0 -0
  172. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/util.h +0 -0
  173. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/variable.h +0 -0
  174. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/internal/vm.h +0 -0
  175. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal/warnings.h +0 -0
  176. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/internal.h +0 -0
  177. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/iseq.h +0 -0
  178. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/method.h +0 -0
  179. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/node.h +0 -0
  180. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/parser_st.h +0 -0
  181. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/parser_value.h +0 -0
  182. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism/defines.h +0 -0
  183. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism/diagnostic.h +0 -0
  184. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/encoding.h +0 -0
  185. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/node.h +0 -0
  186. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/options.h +0 -0
  187. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/pack.h +0 -0
  188. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/parser.h +0 -0
  189. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/prettyprint.h +0 -0
  190. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism/prism.h +0 -0
  191. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/regexp.h +0 -0
  192. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/static_literals.h +0 -0
  193. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_buffer.h +0 -0
  194. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_char.h +0 -0
  195. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_constant_pool.h +0 -0
  196. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_integer.h +0 -0
  197. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_list.h +0 -0
  198. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_memchr.h +0 -0
  199. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_newline_list.h +0 -0
  200. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_string.h +0 -0
  201. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_strncasecmp.h +0 -0
  202. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/prism/util/pm_strpbrk.h +0 -0
  203. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/prism_compile.h +0 -0
  204. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ruby_assert.h +0 -0
  205. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/ruby_atomic.h +0 -0
  206. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/shape.h +0 -0
  207. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/thread_none.h +0 -0
  208. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/thread_pthread.h +0 -0
  209. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-rc1 → ruby-3.4.0-p0}/vm_core.h +0 -0
  210. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/vm_debug.h +0 -0
  211. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0-p0}/vm_opts.h +0 -0
@@ -1,274 +0,0 @@
1
- #ifndef INTERNAL_NUMERIC_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_NUMERIC_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Numeric.
10
- */
11
- #include "internal/bignum.h" /* for BIGNUM_POSITIVE_P */
12
- #include "internal/bits.h" /* for RUBY_BIT_ROTL */
13
- #include "internal/fixnum.h" /* for FIXNUM_POSITIVE_P */
14
- #include "internal/vm.h" /* for rb_method_basic_definition_p */
15
- #include "ruby/intern.h" /* for rb_cmperr */
16
- #include "ruby/ruby.h" /* for USE_FLONUM */
17
-
18
- #define ROUND_TO(mode, even, up, down) \
19
- ((mode) == RUBY_NUM_ROUND_HALF_EVEN ? even : \
20
- (mode) == RUBY_NUM_ROUND_HALF_UP ? up : down)
21
- #define ROUND_FUNC(mode, name) \
22
- ROUND_TO(mode, name##_half_even, name##_half_up, name##_half_down)
23
- #define ROUND_CALL(mode, name, args) \
24
- ROUND_TO(mode, name##_half_even args, \
25
- name##_half_up args, name##_half_down args)
26
-
27
- #ifndef ROUND_DEFAULT
28
- # define ROUND_DEFAULT RUBY_NUM_ROUND_HALF_UP
29
- #endif
30
-
31
- enum ruby_num_rounding_mode {
32
- RUBY_NUM_ROUND_HALF_UP,
33
- RUBY_NUM_ROUND_HALF_EVEN,
34
- RUBY_NUM_ROUND_HALF_DOWN,
35
- RUBY_NUM_ROUND_DEFAULT = ROUND_DEFAULT,
36
- };
37
-
38
- /* same as internal.h */
39
- #define numberof(array) ((int)(sizeof(array) / sizeof((array)[0])))
40
- #define roomof(x, y) (((x) + (y) - 1) / (y))
41
- #define type_roomof(x, y) roomof(sizeof(x), sizeof(y))
42
-
43
- #if SIZEOF_DOUBLE <= SIZEOF_VALUE
44
- typedef double rb_float_value_type;
45
- #else
46
- typedef struct {
47
- VALUE values[roomof(SIZEOF_DOUBLE, SIZEOF_VALUE)];
48
- } rb_float_value_type;
49
- #endif
50
-
51
- struct RFloat {
52
- struct RBasic basic;
53
- rb_float_value_type float_value;
54
- };
55
-
56
- #define RFLOAT(obj) ((struct RFloat *)(obj))
57
-
58
- /* numeric.c */
59
- int rb_num_to_uint(VALUE val, unsigned int *ret);
60
- VALUE ruby_num_interval_step_size(VALUE from, VALUE to, VALUE step, int excl);
61
- double ruby_float_step_size(double beg, double end, double unit, int excl);
62
- int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl, int allow_endless);
63
- int rb_num_negative_p(VALUE);
64
- VALUE rb_int_succ(VALUE num);
65
- VALUE rb_float_uminus(VALUE num);
66
- VALUE rb_int_plus(VALUE x, VALUE y);
67
- VALUE rb_float_plus(VALUE x, VALUE y);
68
- VALUE rb_int_minus(VALUE x, VALUE y);
69
- VALUE rb_float_minus(VALUE x, VALUE y);
70
- VALUE rb_int_mul(VALUE x, VALUE y);
71
- VALUE rb_float_mul(VALUE x, VALUE y);
72
- VALUE rb_float_div(VALUE x, VALUE y);
73
- VALUE rb_int_idiv(VALUE x, VALUE y);
74
- VALUE rb_int_modulo(VALUE x, VALUE y);
75
- VALUE rb_int2str(VALUE num, int base);
76
- VALUE rb_fix_plus(VALUE x, VALUE y);
77
- VALUE rb_int_gt(VALUE x, VALUE y);
78
- VALUE rb_float_gt(VALUE x, VALUE y);
79
- VALUE rb_int_ge(VALUE x, VALUE y);
80
- enum ruby_num_rounding_mode rb_num_get_rounding_option(VALUE opts);
81
- double rb_int_fdiv_double(VALUE x, VALUE y);
82
- VALUE rb_int_pow(VALUE x, VALUE y);
83
- VALUE rb_float_pow(VALUE x, VALUE y);
84
- VALUE rb_int_cmp(VALUE x, VALUE y);
85
- VALUE rb_int_equal(VALUE x, VALUE y);
86
- VALUE rb_int_divmod(VALUE x, VALUE y);
87
- VALUE rb_int_and(VALUE x, VALUE y);
88
- VALUE rb_int_lshift(VALUE x, VALUE y);
89
- VALUE rb_int_rshift(VALUE x, VALUE y);
90
- VALUE rb_int_div(VALUE x, VALUE y);
91
- int rb_int_positive_p(VALUE num);
92
- int rb_int_negative_p(VALUE num);
93
- VALUE rb_check_integer_type(VALUE);
94
- VALUE rb_num_pow(VALUE x, VALUE y);
95
- VALUE rb_float_ceil(VALUE num, int ndigits);
96
- VALUE rb_float_floor(VALUE x, int ndigits);
97
- VALUE rb_float_abs(VALUE flt);
98
- static inline VALUE rb_num_compare_with_zero(VALUE num, ID mid);
99
- static inline int rb_num_positive_int_p(VALUE num);
100
- static inline int rb_num_negative_int_p(VALUE num);
101
- static inline double rb_float_flonum_value(VALUE v);
102
- static inline double rb_float_noflonum_value(VALUE v);
103
- static inline double rb_float_value_inline(VALUE v);
104
- static inline VALUE rb_float_new_inline(double d);
105
- static inline bool INT_POSITIVE_P(VALUE num);
106
- static inline bool INT_NEGATIVE_P(VALUE num);
107
- static inline bool FLOAT_ZERO_P(VALUE num);
108
- #define rb_float_value rb_float_value_inline
109
- #define rb_float_new rb_float_new_inline
110
-
111
- RUBY_SYMBOL_EXPORT_BEGIN
112
- /* numeric.c (export) */
113
- RUBY_SYMBOL_EXPORT_END
114
-
115
- VALUE rb_flo_div_flo(VALUE x, VALUE y);
116
- double ruby_float_mod(double x, double y);
117
- VALUE rb_float_equal(VALUE x, VALUE y);
118
- int rb_float_cmp(VALUE x, VALUE y);
119
- VALUE rb_float_eql(VALUE x, VALUE y);
120
- VALUE rb_fix_aref(VALUE fix, VALUE idx);
121
- VALUE rb_int_zero_p(VALUE num);
122
- VALUE rb_int_even_p(VALUE num);
123
- VALUE rb_int_odd_p(VALUE num);
124
- VALUE rb_int_abs(VALUE num);
125
- VALUE rb_int_bit_length(VALUE num);
126
- VALUE rb_int_uminus(VALUE num);
127
- VALUE rb_int_comp(VALUE num);
128
-
129
- static inline bool
130
- INT_POSITIVE_P(VALUE num)
131
- {
132
- if (FIXNUM_P(num)) {
133
- return FIXNUM_POSITIVE_P(num);
134
- }
135
- else {
136
- return BIGNUM_POSITIVE_P(num);
137
- }
138
- }
139
-
140
- static inline bool
141
- INT_NEGATIVE_P(VALUE num)
142
- {
143
- if (FIXNUM_P(num)) {
144
- return FIXNUM_NEGATIVE_P(num);
145
- }
146
- else {
147
- return BIGNUM_NEGATIVE_P(num);
148
- }
149
- }
150
-
151
- static inline bool
152
- FLOAT_ZERO_P(VALUE num)
153
- {
154
- return RFLOAT_VALUE(num) == 0.0;
155
- }
156
-
157
- static inline VALUE
158
- rb_num_compare_with_zero(VALUE num, ID mid)
159
- {
160
- VALUE zero = INT2FIX(0);
161
- VALUE r = rb_check_funcall(num, mid, 1, &zero);
162
- if (RB_UNDEF_P(r)) {
163
- rb_cmperr(num, zero);
164
- }
165
- return r;
166
- }
167
-
168
- static inline int
169
- rb_num_positive_int_p(VALUE num)
170
- {
171
- const ID mid = '>';
172
-
173
- if (FIXNUM_P(num)) {
174
- if (rb_method_basic_definition_p(rb_cInteger, mid))
175
- return FIXNUM_POSITIVE_P(num);
176
- }
177
- else if (RB_TYPE_P(num, T_BIGNUM)) {
178
- if (rb_method_basic_definition_p(rb_cInteger, mid))
179
- return BIGNUM_POSITIVE_P(num);
180
- }
181
- return RTEST(rb_num_compare_with_zero(num, mid));
182
- }
183
-
184
- static inline int
185
- rb_num_negative_int_p(VALUE num)
186
- {
187
- const ID mid = '<';
188
-
189
- if (FIXNUM_P(num)) {
190
- if (rb_method_basic_definition_p(rb_cInteger, mid))
191
- return FIXNUM_NEGATIVE_P(num);
192
- }
193
- else if (RB_TYPE_P(num, T_BIGNUM)) {
194
- if (rb_method_basic_definition_p(rb_cInteger, mid))
195
- return BIGNUM_NEGATIVE_P(num);
196
- }
197
- return RTEST(rb_num_compare_with_zero(num, mid));
198
- }
199
-
200
- static inline double
201
- rb_float_flonum_value(VALUE v)
202
- {
203
- #if USE_FLONUM
204
- if (v != (VALUE)0x8000000000000002) { /* LIKELY */
205
- union {
206
- double d;
207
- VALUE v;
208
- } t;
209
-
210
- VALUE b63 = (v >> 63);
211
- /* e: xx1... -> 011... */
212
- /* xx0... -> 100... */
213
- /* ^b63 */
214
- t.v = RUBY_BIT_ROTR((2 - b63) | (v & ~(VALUE)0x03), 3);
215
- return t.d;
216
- }
217
- #endif
218
- return 0.0;
219
- }
220
-
221
- static inline double
222
- rb_float_noflonum_value(VALUE v)
223
- {
224
- #if SIZEOF_DOUBLE <= SIZEOF_VALUE
225
- return RFLOAT(v)->float_value;
226
- #else
227
- union {
228
- rb_float_value_type v;
229
- double d;
230
- } u = {RFLOAT(v)->float_value};
231
- return u.d;
232
- #endif
233
- }
234
-
235
- static inline double
236
- rb_float_value_inline(VALUE v)
237
- {
238
- if (FLONUM_P(v)) {
239
- return rb_float_flonum_value(v);
240
- }
241
- return rb_float_noflonum_value(v);
242
- }
243
-
244
- static inline VALUE
245
- rb_float_new_inline(double d)
246
- {
247
- #if USE_FLONUM
248
- union {
249
- double d;
250
- VALUE v;
251
- } t;
252
- int bits;
253
-
254
- t.d = d;
255
- bits = (int)((VALUE)(t.v >> 60) & 0x7);
256
- /* bits contains 3 bits of b62..b60. */
257
- /* bits - 3 = */
258
- /* b011 -> b000 */
259
- /* b100 -> b001 */
260
-
261
- if (t.v != 0x3000000000000000 /* 1.72723e-77 */ &&
262
- !((bits-3) & ~0x01)) {
263
- return (RUBY_BIT_ROTL(t.v, 3) & ~(VALUE)0x01) | 0x02;
264
- }
265
- else if (t.v == (VALUE)0) {
266
- /* +0.0 */
267
- return 0x8000000000000002;
268
- }
269
- /* out of range */
270
- #endif
271
- return rb_float_new_in_heap(d);
272
- }
273
-
274
- #endif /* INTERNAL_NUMERIC_H */
@@ -1,63 +0,0 @@
1
- #ifndef INTERNAL_OBJECT_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_OBJECT_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Object.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
-
13
- /* object.c */
14
- size_t rb_obj_embedded_size(uint32_t numiv);
15
- VALUE rb_class_allocate_instance(VALUE klass);
16
- VALUE rb_class_search_ancestor(VALUE klass, VALUE super);
17
- NORETURN(void rb_undefined_alloc(VALUE klass));
18
- double rb_num_to_dbl(VALUE val);
19
- VALUE rb_obj_dig(int argc, VALUE *argv, VALUE self, VALUE notfound);
20
- VALUE rb_obj_clone_setup(VALUE obj, VALUE clone, VALUE kwfreeze);
21
- VALUE rb_obj_dup_setup(VALUE obj, VALUE dup);
22
- VALUE rb_immutable_obj_clone(int, VALUE *, VALUE);
23
- VALUE rb_check_convert_type_with_id(VALUE,int,const char*,ID);
24
- int rb_bool_expected(VALUE, const char *, int raise);
25
- static inline void RBASIC_CLEAR_CLASS(VALUE obj);
26
- static inline void RBASIC_SET_CLASS_RAW(VALUE obj, VALUE klass);
27
- static inline void RBASIC_SET_CLASS(VALUE obj, VALUE klass);
28
-
29
- RUBY_SYMBOL_EXPORT_BEGIN
30
- /* object.c (export) */
31
- int rb_opts_exception_p(VALUE opts, int default_value);
32
- RUBY_SYMBOL_EXPORT_END
33
-
34
- CONSTFUNC(VALUE rb_obj_equal(VALUE obj1, VALUE obj2));
35
- CONSTFUNC(VALUE rb_obj_not(VALUE obj));
36
- VALUE rb_obj_not_equal(VALUE obj1, VALUE obj2);
37
- void rb_obj_copy_ivar(VALUE dest, VALUE obj);
38
- VALUE rb_false(VALUE obj);
39
- VALUE rb_convert_type_with_id(VALUE v, int t, const char* nam, ID mid);
40
- VALUE rb_obj_size(VALUE self, VALUE args, VALUE obj);
41
- VALUE rb_get_freeze_opt(int argc, VALUE *argv);
42
-
43
- static inline void
44
- RBASIC_SET_CLASS_RAW(VALUE obj, VALUE klass)
45
- {
46
- const VALUE *ptr = &RBASIC(obj)->klass;
47
- *(VALUE *)ptr = klass;
48
- }
49
-
50
- static inline void
51
- RBASIC_CLEAR_CLASS(VALUE obj)
52
- {
53
- RBASIC_SET_CLASS_RAW(obj, 0);
54
- }
55
-
56
- static inline void
57
- RBASIC_SET_CLASS(VALUE obj, VALUE klass)
58
- {
59
- VALUE oldv = RBASIC_CLASS(obj);
60
- RBASIC_SET_CLASS_RAW(obj, klass);
61
- RB_OBJ_WRITTEN(obj, oldv, klass);
62
- }
63
- #endif /* INTERNAL_OBJECT_H */
@@ -1,129 +0,0 @@
1
- #ifndef INTERNAL_PARSE_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_PARSE_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for the parser.
10
- */
11
- #include <limits.h>
12
- #include "rubyparser.h"
13
- #include "internal/static_assert.h"
14
-
15
- // The default parser to use for Ruby code.
16
- typedef enum {
17
- RB_DEFAULT_PARSER_PARSE_Y,
18
- RB_DEFAULT_PARSER_PRISM,
19
- } ruby_default_parser_enum;
20
-
21
- ruby_default_parser_enum rb_ruby_default_parser(void);
22
- void rb_ruby_default_parser_set(ruby_default_parser_enum parser);
23
-
24
- #define rb_ruby_prism_p() (rb_ruby_default_parser() == RB_DEFAULT_PARSER_PRISM)
25
-
26
- #ifdef UNIVERSAL_PARSER
27
- #define rb_encoding const void
28
- #endif
29
-
30
- struct rb_iseq_struct; /* in vm_core.h */
31
-
32
- /* structs for managing terminator of string literal and heredocment */
33
- typedef struct rb_strterm_literal_struct {
34
- long nest;
35
- int func; /* STR_FUNC_* (e.g., STR_FUNC_ESCAPE and STR_FUNC_EXPAND) */
36
- int paren; /* '(' of `%q(...)` */
37
- int term; /* ')' of `%q(...)` */
38
- } rb_strterm_literal_t;
39
-
40
- typedef struct rb_strterm_heredoc_struct {
41
- rb_parser_string_t *lastline; /* the string of line that contains `<<"END"` */
42
- long offset; /* the column of END in `<<"END"` */
43
- int sourceline; /* lineno of the line that contains `<<"END"` */
44
- unsigned length; /* the length of END in `<<"END"` */
45
- uint8_t quote;
46
- uint8_t func;
47
- } rb_strterm_heredoc_t;
48
-
49
- #define HERETERM_LENGTH_MAX UINT_MAX
50
-
51
- typedef struct rb_strterm_struct {
52
- bool heredoc;
53
- union {
54
- rb_strterm_literal_t literal;
55
- rb_strterm_heredoc_t heredoc;
56
- } u;
57
- } rb_strterm_t;
58
-
59
- /* parse.y */
60
- void rb_ruby_parser_mark(void *ptr);
61
- size_t rb_ruby_parser_memsize(const void *ptr);
62
-
63
- void rb_ruby_parser_set_options(rb_parser_t *p, int print, int loop, int chomp, int split);
64
- rb_parser_t *rb_ruby_parser_set_context(rb_parser_t *p, const struct rb_iseq_struct *base, int main);
65
- void rb_ruby_parser_set_script_lines(rb_parser_t *p);
66
- void rb_ruby_parser_error_tolerant(rb_parser_t *p);
67
- void rb_ruby_parser_keep_tokens(rb_parser_t *p);
68
- typedef rb_parser_string_t*(rb_parser_lex_gets_func)(struct parser_params*, rb_parser_input_data, int);
69
- rb_ast_t *rb_parser_compile(rb_parser_t *p, rb_parser_lex_gets_func *gets, VALUE fname, rb_parser_input_data input, int line);
70
-
71
- RUBY_SYMBOL_EXPORT_BEGIN
72
-
73
- rb_encoding *rb_ruby_parser_encoding(rb_parser_t *p);
74
- int rb_ruby_parser_end_seen_p(rb_parser_t *p);
75
- int rb_ruby_parser_set_yydebug(rb_parser_t *p, int flag);
76
- rb_parser_string_t *rb_str_to_parser_string(rb_parser_t *p, VALUE str);
77
- void rb_parser_string_free(rb_parser_t *p, rb_parser_string_t *str);
78
-
79
- int rb_parser_dvar_defined_ref(struct parser_params*, ID, ID**);
80
- ID rb_parser_internal_id(struct parser_params*);
81
- int rb_parser_reg_fragment_check(struct parser_params*, rb_parser_string_t*, int);
82
- int rb_reg_named_capture_assign_iter_impl(struct parser_params *p, const char *s, long len, rb_encoding *enc, NODE **succ_block, const rb_code_location_t *loc);
83
- int rb_parser_local_defined(struct parser_params *p, ID id, const struct rb_iseq_struct *iseq);
84
-
85
- RUBY_SYMBOL_EXPORT_END
86
-
87
- #ifndef UNIVERSAL_PARSER
88
- rb_parser_t *rb_ruby_parser_allocate(void);
89
- rb_parser_t *rb_ruby_parser_new(void);
90
- #endif
91
-
92
- #ifdef RIPPER
93
- void ripper_parser_mark(void *ptr);
94
- void ripper_parser_free(void *ptr);
95
- size_t ripper_parser_memsize(const void *ptr);
96
- void ripper_error(struct parser_params *p);
97
- VALUE ripper_value(struct parser_params *p);
98
- int rb_ruby_parser_get_yydebug(rb_parser_t *p);
99
- void rb_ruby_parser_set_value(rb_parser_t *p, VALUE value);
100
- int rb_ruby_parser_error_p(rb_parser_t *p);
101
- VALUE rb_ruby_parser_debug_output(rb_parser_t *p);
102
- void rb_ruby_parser_set_debug_output(rb_parser_t *p, VALUE output);
103
- VALUE rb_ruby_parser_parsing_thread(rb_parser_t *p);
104
- void rb_ruby_parser_set_parsing_thread(rb_parser_t *p, VALUE parsing_thread);
105
- void rb_ruby_parser_ripper_initialize(rb_parser_t *p, rb_parser_lex_gets_func *gets, rb_parser_input_data input, VALUE sourcefile_string, const char *sourcefile, int sourceline);
106
- VALUE rb_ruby_parser_result(rb_parser_t *p);
107
- rb_encoding *rb_ruby_parser_enc(rb_parser_t *p);
108
- VALUE rb_ruby_parser_ruby_sourcefile_string(rb_parser_t *p);
109
- int rb_ruby_parser_ruby_sourceline(rb_parser_t *p);
110
- int rb_ruby_parser_lex_state(rb_parser_t *p);
111
- void rb_ruby_ripper_parse0(rb_parser_t *p);
112
- int rb_ruby_ripper_dedent_string(rb_parser_t *p, rb_parser_string_t *string, int width);
113
- int rb_ruby_ripper_initialized_p(rb_parser_t *p);
114
- void rb_ruby_ripper_parser_initialize(rb_parser_t *p);
115
- long rb_ruby_ripper_column(rb_parser_t *p);
116
- long rb_ruby_ripper_token_len(rb_parser_t *p);
117
- rb_parser_string_t *rb_ruby_ripper_lex_lastline(rb_parser_t *p);
118
- VALUE rb_ruby_ripper_lex_state_name(struct parser_params *p, int state);
119
- #ifdef UNIVERSAL_PARSER
120
- rb_parser_t *rb_ripper_parser_params_allocate(const rb_parser_config_t *config);
121
- #endif
122
- struct parser_params *rb_ruby_ripper_parser_allocate(void);
123
- #endif
124
-
125
- #ifdef UNIVERSAL_PARSER
126
- #undef rb_encoding
127
- #endif
128
-
129
- #endif /* INTERNAL_PARSE_H */
@@ -1,30 +0,0 @@
1
- #ifndef INTERNAL_PROC_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_PROC_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Proc.
10
- */
11
- #include "ruby/ruby.h" /* for rb_block_call_func_t */
12
- #include "ruby/st.h" /* for st_index_t */
13
- struct rb_block; /* in vm_core.h */
14
- struct rb_iseq_struct; /* in vm_core.h */
15
-
16
- /* proc.c */
17
- VALUE rb_proc_location(VALUE self);
18
- st_index_t rb_hash_proc(st_index_t hash, VALUE proc);
19
- int rb_block_pair_yield_optimizable(void);
20
- int rb_block_arity(void);
21
- int rb_block_min_max_arity(int *max);
22
- VALUE rb_block_to_s(VALUE self, const struct rb_block *block, const char *additional_info);
23
- VALUE rb_callable_receiver(VALUE);
24
-
25
- VALUE rb_func_proc_new(rb_block_call_func_t func, VALUE val);
26
- VALUE rb_func_lambda_new(rb_block_call_func_t func, VALUE val, int min_argc, int max_argc);
27
- VALUE rb_iseq_location(const struct rb_iseq_struct *iseq);
28
- VALUE rb_sym_to_proc(VALUE sym);
29
-
30
- #endif /* INTERNAL_PROC_H */
@@ -1,124 +0,0 @@
1
- #ifndef INTERNAL_PROCESS_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_PROCESS_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Process.
10
- */
11
- #include "ruby/internal/config.h" /* for rb_pid_t */
12
- #include <stddef.h> /* for size_t */
13
-
14
- #ifdef HAVE_SYS_TYPES_H
15
- # include <sys/types.h> /* for mode_t */
16
- #endif
17
-
18
- #ifdef _WIN32
19
- # include "ruby/win32.h" /* for mode_t */
20
- #endif
21
-
22
- #include "ruby/ruby.h" /* for VALUE */
23
- #include "internal/compilers.h" /* for __has_warning */
24
- #include "internal/imemo.h" /* for RB_IMEMO_TMPBUF_PTR */
25
-
26
- #define RB_MAX_GROUPS (65536)
27
-
28
- struct waitpid_state;
29
- struct rb_process_status;
30
- struct rb_execarg {
31
- union {
32
- struct {
33
- VALUE shell_script;
34
- } sh;
35
- struct {
36
- VALUE command_name;
37
- VALUE command_abspath; /* full path string or nil */
38
- VALUE argv_str;
39
- VALUE argv_buf;
40
- } cmd;
41
- } invoke;
42
- VALUE redirect_fds;
43
- VALUE envp_str;
44
- VALUE envp_buf;
45
- VALUE dup2_tmpbuf;
46
- unsigned use_shell : 1;
47
- unsigned pgroup_given : 1;
48
- unsigned umask_given : 1;
49
- unsigned unsetenv_others_given : 1;
50
- unsigned unsetenv_others_do : 1;
51
- unsigned close_others_given : 1;
52
- unsigned close_others_do : 1;
53
- unsigned chdir_given : 1;
54
- unsigned new_pgroup_given : 1;
55
- unsigned new_pgroup_flag : 1;
56
- unsigned uid_given : 1;
57
- unsigned gid_given : 1;
58
- unsigned exception : 1;
59
- unsigned exception_given : 1;
60
- struct rb_process_status *status;
61
- struct waitpid_state *waitpid_state; /* for async process management */
62
- rb_pid_t pgroup_pgid; /* asis(-1), new pgroup(0), specified pgroup (0<V). */
63
- VALUE rlimit_limits; /* Qfalse or [[rtype, softlim, hardlim], ...] */
64
- mode_t umask_mask;
65
- rb_uid_t uid;
66
- rb_gid_t gid;
67
- int close_others_maxhint;
68
- VALUE fd_dup2;
69
- VALUE fd_close;
70
- VALUE fd_open;
71
- VALUE fd_dup2_child;
72
- VALUE env_modification; /* Qfalse or [[k1,v1], ...] */
73
- VALUE path_env;
74
- VALUE chdir_dir;
75
- };
76
-
77
- /* process.c */
78
- rb_pid_t rb_call_proc__fork(void);
79
- void rb_last_status_clear(void);
80
- static inline char **ARGVSTR2ARGV(VALUE argv_str);
81
- static inline size_t ARGVSTR2ARGC(VALUE argv_str);
82
-
83
- #ifdef HAVE_PWD_H
84
- VALUE rb_getlogin(void);
85
- VALUE rb_getpwdirnam_for_login(VALUE login); /* read as: "get pwd db home dir by username for login" */
86
- VALUE rb_getpwdiruid(void); /* read as: "get pwd db home dir for getuid()" */
87
- #endif
88
-
89
- RUBY_SYMBOL_EXPORT_BEGIN
90
- /* process.c (export) */
91
- int rb_exec_async_signal_safe(const struct rb_execarg *e, char *errmsg, size_t errmsg_buflen);
92
- rb_pid_t rb_fork_async_signal_safe(int *status, int (*chfunc)(void*, char *, size_t), void *charg, VALUE fds, char *errmsg, size_t errmsg_buflen);
93
- VALUE rb_execarg_new(int argc, const VALUE *argv, int accept_shell, int allow_exc_opt);
94
- struct rb_execarg *rb_execarg_get(VALUE execarg_obj); /* dangerous. needs GC guard. */
95
- int rb_execarg_addopt(VALUE execarg_obj, VALUE key, VALUE val);
96
- void rb_execarg_parent_start(VALUE execarg_obj);
97
- void rb_execarg_parent_end(VALUE execarg_obj);
98
- int rb_execarg_run_options(const struct rb_execarg *e, struct rb_execarg *s, char* errmsg, size_t errmsg_buflen);
99
- VALUE rb_execarg_extract_options(VALUE execarg_obj, VALUE opthash);
100
- void rb_execarg_setenv(VALUE execarg_obj, VALUE env);
101
- RUBY_SYMBOL_EXPORT_END
102
-
103
- /* argv_str contains extra two elements.
104
- * The beginning one is for /bin/sh used by exec_with_sh.
105
- * The last one for terminating NULL used by execve.
106
- * See rb_exec_fillarg() in process.c. */
107
- static inline char **
108
- ARGVSTR2ARGV(VALUE argv_str)
109
- {
110
- char **buf = RB_IMEMO_TMPBUF_PTR(argv_str);
111
- return &buf[1];
112
- }
113
-
114
- static inline size_t
115
- ARGVSTR2ARGC(VALUE argv_str)
116
- {
117
- size_t i = 0;
118
- char *const *p = ARGVSTR2ARGV(argv_str);
119
- while (p[i++])
120
- ;
121
- return i - 1;
122
- }
123
-
124
- #endif /* INTERNAL_PROCESS_H */
@@ -1,17 +0,0 @@
1
- #ifndef INTERNAL_RANDOM_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_RANDOM_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Random.
10
- */
11
- #include <stddef.h> /* for size_t */
12
-
13
- /* random.c */
14
- int ruby_fill_random_bytes(void *, size_t, int);
15
- void rb_free_default_rand_key(void);
16
-
17
- #endif /* INTERNAL_RANDOM_H */
@@ -1,40 +0,0 @@
1
- #ifndef INTERNAL_RANGE_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_RANGE_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Range.
10
- */
11
- #include "internal/struct.h" /* for RSTRUCT */
12
-
13
- /* range.c */
14
- static inline VALUE RANGE_BEG(VALUE r);
15
- static inline VALUE RANGE_END(VALUE r);
16
- static inline VALUE RANGE_EXCL(VALUE r);
17
-
18
- static inline VALUE
19
- RANGE_BEG(VALUE r)
20
- {
21
- return RSTRUCT(r)->as.ary[0];
22
- }
23
-
24
- static inline VALUE
25
- RANGE_END(VALUE r)
26
- {
27
- return RSTRUCT_GET(r, 1);
28
- }
29
-
30
- static inline VALUE
31
- RANGE_EXCL(VALUE r)
32
- {
33
- return RSTRUCT_GET(r, 2);
34
- }
35
-
36
- VALUE
37
- rb_range_component_beg_len(VALUE b, VALUE e, int excl,
38
- long *begp, long *lenp, long len, int err);
39
-
40
- #endif /* INTERNAL_RANGE_H */