datadog-ruby_core_source 3.4.3 → 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 (212) hide show
  1. checksums.yaml +4 -4
  2. data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/extension.h +1 -1
  3. data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/options.h +4 -1
  4. data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/version.h +2 -2
  5. data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/vm_core.h +9 -0
  6. data/lib/datadog/ruby_core_source/version.rb +1 -1
  7. metadata +108 -211
  8. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/id.h +0 -352
  9. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/id_table.h +0 -39
  10. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/array.h +0 -152
  11. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/basic_operators.h +0 -65
  12. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/bignum.h +0 -244
  13. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/bits.h +0 -650
  14. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/class.h +0 -283
  15. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/cmdlineopt.h +0 -61
  16. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/cont.h +0 -35
  17. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/encoding.h +0 -38
  18. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/error.h +0 -244
  19. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/eval.h +0 -33
  20. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/gc.h +0 -333
  21. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/hash.h +0 -193
  22. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/imemo.h +0 -257
  23. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/inits.h +0 -47
  24. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/io.h +0 -143
  25. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/load.h +0 -18
  26. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/numeric.h +0 -274
  27. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/object.h +0 -63
  28. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/re.h +0 -28
  29. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/sanitizers.h +0 -330
  30. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/signal.h +0 -24
  31. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/st.h +0 -11
  32. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/string.h +0 -199
  33. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/struct.h +0 -119
  34. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/symbol.h +0 -47
  35. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/thread.h +0 -108
  36. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/time.h +0 -37
  37. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/variable.h +0 -70
  38. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/vm.h +0 -137
  39. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal.h +0 -108
  40. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/iseq.h +0 -351
  41. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/method.h +0 -258
  42. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/ast.h +0 -7964
  43. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/diagnostic.h +0 -451
  44. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/options.h +0 -442
  45. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/parser.h +0 -933
  46. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/prism.h +0 -383
  47. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/regexp.h +0 -43
  48. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/util/pm_buffer.h +0 -228
  49. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/util/pm_integer.h +0 -126
  50. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/util/pm_list.h +0 -97
  51. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/util/pm_string.h +0 -190
  52. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/version.h +0 -29
  53. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism_compile.h +0 -105
  54. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/ractor_core.h +0 -382
  55. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/ruby_atomic.h +0 -23
  56. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/rubyparser.h +0 -1380
  57. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/shape.h +0 -234
  58. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/thread_pthread.h +0 -167
  59. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/vm_core.h +0 -2235
  60. data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/vm_debug.h +0 -124
  61. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ccan/build_assert/build_assert.h +0 -40
  62. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ccan/check_type/check_type.h +0 -63
  63. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ccan/container_of/container_of.h +0 -142
  64. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ccan/list/list.h +0 -791
  65. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ccan/str/str.h +0 -17
  66. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/compar.h +0 -29
  67. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/compile.h +0 -34
  68. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/compilers.h +0 -107
  69. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/complex.h +0 -29
  70. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/dir.h +0 -16
  71. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/enc.h +0 -19
  72. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/enum.h +0 -18
  73. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/enumerator.h +0 -21
  74. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/file.h +0 -38
  75. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/fixnum.h +0 -185
  76. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/loadpath.h +0 -16
  77. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/math.h +0 -23
  78. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/missing.h +0 -19
  79. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/parse.h +0 -131
  80. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/proc.h +0 -30
  81. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/process.h +0 -124
  82. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/ractor.h +0 -10
  83. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/random.h +0 -17
  84. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/range.h +0 -40
  85. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/rational.h +0 -71
  86. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/ruby_parser.h +0 -102
  87. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/serial.h +0 -23
  88. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/static_assert.h +0 -16
  89. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/transcode.h +0 -23
  90. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/util.h +0 -27
  91. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/warnings.h +0 -16
  92. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/node.h +0 -122
  93. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/parser_st.h +0 -162
  94. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/parser_value.h +0 -106
  95. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/defines.h +0 -260
  96. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/encoding.h +0 -283
  97. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/extension.h +0 -19
  98. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/node.h +0 -129
  99. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/pack.h +0 -163
  100. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/prettyprint.h +0 -34
  101. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/static_literals.h +0 -121
  102. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_char.h +0 -204
  103. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_constant_pool.h +0 -218
  104. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_memchr.h +0 -29
  105. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_newline_list.h +0 -113
  106. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_strncasecmp.h +0 -32
  107. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_strpbrk.h +0 -46
  108. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ruby_assert.h +0 -14
  109. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/thread_none.h +0 -21
  110. data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/vm_opts.h +0 -67
  111. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/build_assert/build_assert.h +0 -0
  112. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/check_type/check_type.h +0 -0
  113. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/container_of/container_of.h +0 -0
  114. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/list/list.h +0 -0
  115. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/str/str.h +0 -0
  116. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/id.h +0 -0
  117. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/id_table.h +0 -0
  118. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/array.h +0 -0
  119. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/basic_operators.h +0 -0
  120. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/bignum.h +0 -0
  121. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/bits.h +0 -0
  122. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/box.h +0 -0
  123. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/class.h +0 -0
  124. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/cmdlineopt.h +0 -0
  125. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compar.h +0 -0
  126. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compile.h +0 -0
  127. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compilers.h +0 -0
  128. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/complex.h +0 -0
  129. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/concurrent_set.h +0 -0
  130. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/cont.h +0 -0
  131. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/dir.h +0 -0
  132. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enc.h +0 -0
  133. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/encoding.h +0 -0
  134. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enum.h +0 -0
  135. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enumerator.h +0 -0
  136. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/error.h +0 -0
  137. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/eval.h +0 -0
  138. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/file.h +0 -0
  139. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/fixnum.h +0 -0
  140. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/gc.h +0 -0
  141. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/hash.h +0 -0
  142. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/imemo.h +0 -0
  143. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/inits.h +0 -0
  144. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/io.h +0 -0
  145. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/load.h +0 -0
  146. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/loadpath.h +0 -0
  147. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/math.h +0 -0
  148. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/missing.h +0 -0
  149. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/numeric.h +0 -0
  150. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/object.h +0 -0
  151. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/parse.h +0 -0
  152. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/proc.h +0 -0
  153. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/process.h +0 -0
  154. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/ractor.h +0 -0
  155. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/random.h +0 -0
  156. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/range.h +0 -0
  157. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/rational.h +0 -0
  158. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/re.h +0 -0
  159. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/ruby_parser.h +0 -0
  160. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/sanitizers.h +0 -0
  161. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/serial.h +0 -0
  162. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/set_table.h +0 -0
  163. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/signal.h +0 -0
  164. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/st.h +0 -0
  165. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/static_assert.h +0 -0
  166. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/string.h +0 -0
  167. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/struct.h +0 -0
  168. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/symbol.h +0 -0
  169. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/thread.h +0 -0
  170. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/time.h +0 -0
  171. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/transcode.h +0 -0
  172. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/util.h +0 -0
  173. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/variable.h +0 -0
  174. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/vm.h +0 -0
  175. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/warnings.h +0 -0
  176. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal.h +0 -0
  177. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/iseq.h +0 -0
  178. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/method.h +0 -0
  179. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/node.h +0 -0
  180. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/parser_st.h +0 -0
  181. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/parser_value.h +0 -0
  182. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/ast.h +0 -0
  183. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/defines.h +0 -0
  184. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/diagnostic.h +0 -0
  185. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/encoding.h +0 -0
  186. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/node.h +0 -0
  187. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/pack.h +0 -0
  188. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/parser.h +0 -0
  189. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/prettyprint.h +0 -0
  190. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/prism.h +0 -0
  191. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/regexp.h +0 -0
  192. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/static_literals.h +0 -0
  193. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/util/pm_buffer.h +0 -0
  194. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_char.h +0 -0
  195. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_constant_pool.h +0 -0
  196. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/util/pm_integer.h +0 -0
  197. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/util/pm_list.h +0 -0
  198. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_memchr.h +0 -0
  199. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_newline_list.h +0 -0
  200. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/util/pm_string.h +0 -0
  201. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_strncasecmp.h +0 -0
  202. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_strpbrk.h +0 -0
  203. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism_compile.h +0 -0
  204. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/ractor_core.h +0 -0
  205. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ruby_assert.h +0 -0
  206. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/ruby_atomic.h +0 -0
  207. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/rubyparser.h +0 -0
  208. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/shape.h +0 -0
  209. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/thread_none.h +0 -0
  210. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/thread_pthread.h +0 -0
  211. /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/vm_debug.h +0 -0
  212. /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/vm_opts.h +0 -0
@@ -1,17 +0,0 @@
1
- /* CC0 (Public domain) - see ccan/licenses/CC0 file for details */
2
- #ifndef CCAN_STR_H
3
- #define CCAN_STR_H
4
- /**
5
- * ccan_stringify - Turn expression into a string literal
6
- * @expr: any C expression
7
- *
8
- * Example:
9
- * #define PRINT_COND_IF_FALSE(cond) \
10
- * ((cond) || printf("%s is false!", ccan_stringify(cond)))
11
- */
12
- #define stringify(expr) ccan_stringify_1(expr)
13
- #define ccan_stringify(expr) ccan_stringify_1(expr)
14
- /* Double-indirection required to stringify expansions */
15
- #define ccan_stringify_1(expr) #expr
16
-
17
- #endif /* CCAN_STR_H */
@@ -1,29 +0,0 @@
1
- #ifndef INTERNAL_COMPAR_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_COMPAR_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 Comparable.
10
- */
11
- #include "internal/basic_operators.h"
12
-
13
- #define STRING_P(s) (RB_TYPE_P((s), T_STRING) && CLASS_OF(s) == rb_cString)
14
-
15
- #define CMP_OPTIMIZABLE(type) BASIC_OP_UNREDEFINED_P(BOP_CMP, type##_REDEFINED_OP_FLAG)
16
-
17
- #define OPTIMIZED_CMP(a, b) \
18
- ((FIXNUM_P(a) && FIXNUM_P(b) && CMP_OPTIMIZABLE(INTEGER)) ? \
19
- (((long)a > (long)b) ? 1 : ((long)a < (long)b) ? -1 : 0) : \
20
- (STRING_P(a) && STRING_P(b) && CMP_OPTIMIZABLE(STRING)) ? \
21
- rb_str_cmp(a, b) : \
22
- (RB_FLOAT_TYPE_P(a) && RB_FLOAT_TYPE_P(b) && CMP_OPTIMIZABLE(FLOAT)) ? \
23
- rb_float_cmp(a, b) : \
24
- rb_cmpint(rb_funcallv(a, id_cmp, 1, &b), a, b))
25
-
26
- /* compar.c */
27
- VALUE rb_invcmp(VALUE, VALUE);
28
-
29
- #endif /* INTERNAL_COMPAR_H */
@@ -1,34 +0,0 @@
1
- #ifndef INTERNAL_COMPILE_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_COMPILE_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 compiler.
10
- */
11
- #include "ruby/internal/config.h"
12
- #include <stddef.h> /* for size_t */
13
- #include "ruby/ruby.h" /* for rb_event_flag_t */
14
-
15
- struct rb_iseq_struct; /* in vm_core.h */
16
-
17
- /* compile.c */
18
- int rb_dvar_defined(ID, const struct rb_iseq_struct *);
19
- int rb_local_defined(ID, const struct rb_iseq_struct *);
20
- int rb_insn_len(VALUE insn);
21
- const char *rb_insns_name(int i);
22
- VALUE rb_insns_name_array(void);
23
- int rb_iseq_cdhash_cmp(VALUE val, VALUE lit);
24
- st_index_t rb_iseq_cdhash_hash(VALUE a);
25
-
26
- /* iseq.c */
27
- int rb_vm_insn_addr2insn(const void *);
28
- int rb_vm_insn_decode(const VALUE encoded);
29
- extern bool ruby_vm_keep_script_lines;
30
-
31
- /* iseq.c (export) */
32
- rb_event_flag_t rb_iseq_event_flags(const struct rb_iseq_struct *iseq, size_t pos);
33
-
34
- #endif /* INTERNAL_COMPILE_H */
@@ -1,107 +0,0 @@
1
- #ifndef INTERNAL_COMPILERS_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_COMPILERS_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 absorbing C compiler differences.
10
- */
11
- #include "ruby/internal/compiler_since.h"
12
- #include "ruby/internal/has/attribute.h"
13
- #include "ruby/internal/has/builtin.h"
14
- #include "ruby/internal/has/c_attribute.h"
15
- #include "ruby/internal/has/declspec_attribute.h"
16
- #include "ruby/internal/has/extension.h"
17
- #include "ruby/internal/has/feature.h"
18
- #include "ruby/internal/has/warning.h"
19
- #include "ruby/backward/2/gcc_version_since.h"
20
-
21
- #define MSC_VERSION_SINCE(_) RBIMPL_COMPILER_SINCE(MSVC, (_) / 100, (_) % 100, 0)
22
- #define MSC_VERSION_BEFORE(_) RBIMPL_COMPILER_BEFORE(MSVC, (_) / 100, (_) % 100, 0)
23
-
24
- #ifndef __has_attribute
25
- # define __has_attribute(...) RBIMPL_HAS_ATTRIBUTE(__VA_ARGS__)
26
- #endif
27
-
28
- #ifndef __has_c_attribute
29
- # /* As of writing everything that lacks __has_c_attribute also completely
30
- # * lacks C2x attributes as well. Might change in future? */
31
- # define __has_c_attribute(...) 0
32
- #endif
33
-
34
- #ifndef __has_declspec_attribute
35
- # define __has_declspec_attribute(...) RBIMPL_HAS_DECLSPEC_ATTRIBUTE(__VA_ARGS__)
36
- #endif
37
-
38
- #ifndef __has_builtin
39
- # define __has_builtin(...) RBIMPL_HAS_BUILTIN(__VA_ARGS__)
40
- #endif
41
-
42
- #ifndef __has_feature
43
- # define __has_feature(...) RBIMPL_HAS_FEATURE(__VA_ARGS__)
44
- #endif
45
-
46
- #ifndef __has_extension
47
- # define __has_extension(...) RBIMPL_HAS_EXTENSION(__VA_ARGS__)
48
- #endif
49
-
50
- #ifndef __has_warning
51
- # define __has_warning(...) RBIMPL_HAS_WARNING(__VA_ARGS__)
52
- #endif
53
-
54
- #ifndef __GNUC__
55
- # define __extension__ /* void */
56
- #endif
57
-
58
- #ifndef MAYBE_UNUSED
59
- # define MAYBE_UNUSED(x) x
60
- #endif
61
-
62
- #ifndef WARN_UNUSED_RESULT
63
- # define WARN_UNUSED_RESULT(x) x
64
- #endif
65
-
66
- #define RB_OBJ_BUILTIN_TYPE(obj) rb_obj_builtin_type(obj)
67
- #define OBJ_BUILTIN_TYPE(obj) RB_OBJ_BUILTIN_TYPE(obj)
68
- #ifdef __GNUC__
69
- #define rb_obj_builtin_type(obj) \
70
- __extension__({ \
71
- VALUE arg_obj = (obj); \
72
- RB_SPECIAL_CONST_P(arg_obj) ? -1 : \
73
- (int)RB_BUILTIN_TYPE(arg_obj); \
74
- })
75
- #else
76
- # include "ruby/ruby.h"
77
- static inline int
78
- rb_obj_builtin_type(VALUE obj)
79
- {
80
- return RB_SPECIAL_CONST_P(obj) ? -1 :
81
- (int)RB_BUILTIN_TYPE(obj);
82
- }
83
- #endif
84
-
85
- /* A macro for defining a flexible array, like: VALUE ary[FLEX_ARY_LEN]; */
86
- #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
87
- # define FLEX_ARY_LEN /* VALUE ary[]; */
88
- #elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
89
- # define FLEX_ARY_LEN 0 /* VALUE ary[0]; */
90
- #else
91
- # define FLEX_ARY_LEN 1 /* VALUE ary[1]; */
92
- #endif
93
-
94
- /*
95
- * For declaring bitfields out of non-unsigned int types:
96
- * struct date {
97
- * BITFIELD(enum months, month, 4);
98
- * ...
99
- * };
100
- */
101
- #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
102
- # define BITFIELD(type, name, size) type name : size
103
- #else
104
- # define BITFIELD(type, name, size) unsigned int name : size
105
- #endif
106
-
107
- #endif /* INTERNAL_COMPILERS_H */
@@ -1,29 +0,0 @@
1
- #ifndef INTERNAL_COMPLEX_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_COMPLEX_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 Complex.
10
- */
11
- #include "ruby/internal/value.h" /* for struct RBasic */
12
-
13
- struct RComplex {
14
- struct RBasic basic;
15
- VALUE real;
16
- VALUE imag;
17
- };
18
-
19
- #define RCOMPLEX(obj) ((struct RComplex *)(obj))
20
-
21
- /* shortcut macro for internal only */
22
- #define RCOMPLEX_SET_REAL(cmp, r) RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->real, (r))
23
- #define RCOMPLEX_SET_IMAG(cmp, i) RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->imag, (i))
24
-
25
- /* complex.c */
26
- VALUE rb_dbl_complex_new_polar_pi(double abs, double ang);
27
- st_index_t rb_complex_hash(VALUE comp);
28
-
29
- #endif /* INTERNAL_COMPLEX_H */
@@ -1,16 +0,0 @@
1
- #ifndef INTERNAL_DIR_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_DIR_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 Dir.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
-
13
- /* dir.c */
14
- VALUE rb_dir_getwd_ospath(void);
15
-
16
- #endif /* INTERNAL_DIR_H */
@@ -1,19 +0,0 @@
1
- #ifndef INTERNAL_ENC_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_ENC_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Encoding.
10
- */
11
- #include "ruby/encoding.h" /* for rb_encoding */
12
-
13
- /* us_ascii.c */
14
- extern rb_encoding OnigEncodingUS_ASCII;
15
-
16
- /* utf_8.c */
17
- extern rb_encoding OnigEncodingUTF_8;
18
-
19
- #endif /* INTERNAL_ENC_H */
@@ -1,18 +0,0 @@
1
- #ifndef INTERNAL_ENUM_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_ENUM_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 Enumerable.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
-
13
- /* enum.c */
14
- extern VALUE rb_cArithSeq;
15
- VALUE rb_f_send(int argc, VALUE *argv, VALUE recv);
16
- VALUE rb_nmin_run(VALUE obj, VALUE num, int by, int rev, int ary);
17
-
18
- #endif /* INTERNAL_ENUM_H */
@@ -1,21 +0,0 @@
1
- #ifndef INTERNAL_ENUMERATOR_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_ENUMERATOR_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 Enumerator.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
- #include "ruby/intern.h" /* for rb_enumerator_size_func */
13
-
14
- RUBY_SYMBOL_EXPORT_BEGIN
15
- /* enumerator.c (export) */
16
- VALUE rb_arith_seq_new(VALUE obj, VALUE meth, int argc, VALUE const *argv,
17
- rb_enumerator_size_func *size_fn,
18
- VALUE beg, VALUE end, VALUE step, int excl);
19
- RUBY_SYMBOL_EXPORT_END
20
-
21
- #endif /* INTERNAL_ENUMERATOR_H */
@@ -1,38 +0,0 @@
1
- #ifndef INTERNAL_FILE_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_FILE_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 File.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
- #include "ruby/encoding.h" /* for rb_encodinng */
13
-
14
- /* file.c */
15
- extern const char ruby_null_device[];
16
- VALUE rb_home_dir_of(VALUE user, VALUE result);
17
- VALUE rb_default_home_dir(VALUE result);
18
- VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
19
- VALUE rb_check_realpath(VALUE basedir, VALUE path, rb_encoding *origenc);
20
- void rb_file_const(const char*, VALUE);
21
- int rb_file_load_ok(const char *);
22
- VALUE rb_file_expand_path_fast(VALUE, VALUE);
23
- VALUE rb_file_expand_path_internal(VALUE, VALUE, int, int, VALUE);
24
- VALUE rb_get_path_check_to_string(VALUE);
25
- VALUE rb_get_path_check_convert(VALUE);
26
- int ruby_is_fd_loadable(int fd);
27
-
28
- RUBY_SYMBOL_EXPORT_BEGIN
29
- /* file.c (export) */
30
- #ifdef HAVE_READLINK
31
- VALUE rb_readlink(VALUE path, rb_encoding *enc);
32
- #endif
33
- #ifdef __APPLE__
34
- VALUE rb_str_normalize_ospath(const char *ptr, long len);
35
- #endif
36
- RUBY_SYMBOL_EXPORT_END
37
-
38
- #endif /* INTERNAL_FILE_H */
@@ -1,185 +0,0 @@
1
- #ifndef INTERNAL_FIXNUM_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_FIXNUM_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 Fixnums.
10
- */
11
- #include "ruby/internal/config.h" /* for HAVE_LONG_LONG */
12
- #include <limits.h> /* for CHAR_BIT */
13
- #include "internal/bits.h" /* for MUL_OVERFLOW_FIXNUM_P */
14
- #include "internal/compilers.h" /* for __has_builtin */
15
- #include "ruby/internal/stdbool.h" /* for bool */
16
- #include "ruby/intern.h" /* for rb_big_mul */
17
- #include "ruby/ruby.h" /* for RB_FIXABLE */
18
-
19
- #if HAVE_LONG_LONG && SIZEOF_LONG * 2 <= SIZEOF_LONG_LONG
20
- # define DLONG LONG_LONG
21
- # define DL2NUM(x) LL2NUM(x)
22
- #elif defined(HAVE_INT128_T) && !(defined(__OpenBSD__) && defined(__mips64__))
23
- # define DLONG int128_t
24
- # define DL2NUM(x) (RB_FIXABLE(x) ? LONG2FIX(x) : rb_int128t2big(x))
25
- VALUE rb_int128t2big(int128_t n); /* in bignum.c */
26
- #endif
27
-
28
- static inline long rb_overflowed_fix_to_int(long x);
29
- static inline VALUE rb_fix_plus_fix(VALUE x, VALUE y);
30
- static inline VALUE rb_fix_minus_fix(VALUE x, VALUE y);
31
- static inline VALUE rb_fix_mul_fix(VALUE x, VALUE y);
32
- static inline void rb_fix_divmod_fix(VALUE x, VALUE y, VALUE *divp, VALUE *modp);
33
- static inline VALUE rb_fix_div_fix(VALUE x, VALUE y);
34
- static inline VALUE rb_fix_mod_fix(VALUE x, VALUE y);
35
- static inline bool FIXNUM_POSITIVE_P(VALUE num);
36
- static inline bool FIXNUM_NEGATIVE_P(VALUE num);
37
- static inline bool FIXNUM_ZERO_P(VALUE num);
38
-
39
- static inline long
40
- rb_overflowed_fix_to_int(long x)
41
- {
42
- return (long)((unsigned long)(x >> 1) ^ (1LU << (SIZEOF_LONG * CHAR_BIT - 1)));
43
- }
44
-
45
- static inline VALUE
46
- rb_fix_plus_fix(VALUE x, VALUE y)
47
- {
48
- #if !__has_builtin(__builtin_add_overflow)
49
- long lz = FIX2LONG(x) + FIX2LONG(y);
50
- return LONG2NUM(lz);
51
- #else
52
- long lz;
53
- /* NOTE
54
- * (1) `LONG2FIX(FIX2LONG(x)+FIX2LONG(y))`
55
- + = `((lx*2+1)/2 + (ly*2+1)/2)*2+1`
56
- + = `lx*2 + ly*2 + 1`
57
- + = `(lx*2+1) + (ly*2+1) - 1`
58
- + = `x + y - 1`
59
- * (2) Fixnum's LSB is always 1.
60
- * It means you can always run `x - 1` without overflow.
61
- * (3) Of course `z = x + (y-1)` may overflow.
62
- * At that time true value is
63
- * * positive: 0b0 1xxx...1, and z = 0b1xxx...1
64
- * * negative: 0b1 0xxx...1, and z = 0b0xxx...1
65
- * To convert this true value to long,
66
- * (a) Use arithmetic shift
67
- * * positive: 0b11xxx...
68
- * * negative: 0b00xxx...
69
- * (b) invert MSB
70
- * * positive: 0b01xxx...
71
- * * negative: 0b10xxx...
72
- */
73
- if (__builtin_add_overflow((long)x, (long)y-1, &lz)) {
74
- return rb_int2big(rb_overflowed_fix_to_int(lz));
75
- }
76
- else {
77
- return (VALUE)lz;
78
- }
79
- #endif
80
- }
81
-
82
- static inline VALUE
83
- rb_fix_minus_fix(VALUE x, VALUE y)
84
- {
85
- #if !__has_builtin(__builtin_sub_overflow)
86
- long lz = FIX2LONG(x) - FIX2LONG(y);
87
- return LONG2NUM(lz);
88
- #else
89
- long lz;
90
- if (__builtin_sub_overflow((long)x, (long)y-1, &lz)) {
91
- return rb_int2big(rb_overflowed_fix_to_int(lz));
92
- }
93
- else {
94
- return (VALUE)lz;
95
- }
96
- #endif
97
- }
98
-
99
- /* arguments must be Fixnum */
100
- static inline VALUE
101
- rb_fix_mul_fix(VALUE x, VALUE y)
102
- {
103
- long lx = FIX2LONG(x);
104
- long ly = FIX2LONG(y);
105
- #ifdef DLONG
106
- return DL2NUM((DLONG)lx * (DLONG)ly);
107
- #else
108
- if (MUL_OVERFLOW_FIXNUM_P(lx, ly)) {
109
- return rb_big_mul(rb_int2big(lx), rb_int2big(ly));
110
- }
111
- else {
112
- return LONG2FIX(lx * ly);
113
- }
114
- #endif
115
- }
116
-
117
- /*
118
- * This behaves different from C99 for negative arguments.
119
- * Note that div may overflow fixnum.
120
- */
121
- static inline void
122
- rb_fix_divmod_fix(VALUE a, VALUE b, VALUE *divp, VALUE *modp)
123
- {
124
- /* assume / and % comply C99.
125
- * ldiv(3) won't be inlined by GCC and clang.
126
- * I expect / and % are compiled as single idiv.
127
- */
128
- long x = FIX2LONG(a);
129
- long y = FIX2LONG(b);
130
- long div, mod;
131
- if (x == FIXNUM_MIN && y == -1) {
132
- if (divp) *divp = LONG2NUM(-FIXNUM_MIN);
133
- if (modp) *modp = LONG2FIX(0);
134
- return;
135
- }
136
- div = x / y;
137
- mod = x % y;
138
- if (y > 0 ? mod < 0 : mod > 0) {
139
- mod += y;
140
- div -= 1;
141
- }
142
- if (divp) *divp = LONG2FIX(div);
143
- if (modp) *modp = LONG2FIX(mod);
144
- }
145
-
146
- /* div() for Ruby
147
- * This behaves different from C99 for negative arguments.
148
- */
149
- static inline VALUE
150
- rb_fix_div_fix(VALUE x, VALUE y)
151
- {
152
- VALUE div;
153
- rb_fix_divmod_fix(x, y, &div, NULL);
154
- return div;
155
- }
156
-
157
- /* mod() for Ruby
158
- * This behaves different from C99 for negative arguments.
159
- */
160
- static inline VALUE
161
- rb_fix_mod_fix(VALUE x, VALUE y)
162
- {
163
- VALUE mod;
164
- rb_fix_divmod_fix(x, y, NULL, &mod);
165
- return mod;
166
- }
167
-
168
- static inline bool
169
- FIXNUM_POSITIVE_P(VALUE num)
170
- {
171
- return (SIGNED_VALUE)num > (SIGNED_VALUE)INT2FIX(0);
172
- }
173
-
174
- static inline bool
175
- FIXNUM_NEGATIVE_P(VALUE num)
176
- {
177
- return (SIGNED_VALUE)num < 0;
178
- }
179
-
180
- static inline bool
181
- FIXNUM_ZERO_P(VALUE num)
182
- {
183
- return num == INT2FIX(0);
184
- }
185
- #endif /* INTERNAL_FIXNUM_H */
@@ -1,16 +0,0 @@
1
- #ifndef INTERNAL_LOADPATH_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_LOADPATH_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 $LOAD_PATH.
10
- */
11
-
12
- /* loadpath.c */
13
- extern const char ruby_exec_prefix[];
14
- extern const char ruby_initial_load_paths[];
15
-
16
- #endif /* INTERNAL_LOADPATH_H */
@@ -1,23 +0,0 @@
1
- #ifndef INTERNAL_MATH_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_MATH_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 Math.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
-
13
- /* math.c */
14
- VALUE rb_math_atan2(VALUE, VALUE);
15
- VALUE rb_math_cos(VALUE);
16
- VALUE rb_math_cosh(VALUE);
17
- VALUE rb_math_exp(VALUE);
18
- VALUE rb_math_hypot(VALUE, VALUE);
19
- VALUE rb_math_log(int argc, const VALUE *argv);
20
- VALUE rb_math_sin(VALUE);
21
- VALUE rb_math_sinh(VALUE);
22
-
23
- #endif /* INTERNAL_MATH_H */
@@ -1,19 +0,0 @@
1
- #ifndef INTERNAL_MISSING_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_MISSING_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header corresponding missing.
10
- */
11
- #include "ruby/internal/config.h" /* for HAVE_SETPROCTITLE */
12
-
13
- /* missing/setproctitle.c */
14
- #ifndef HAVE_SETPROCTITLE
15
- extern void ruby_init_setproctitle(int argc, char *argv[]);
16
- extern void ruby_free_proctitle(void);
17
- #endif
18
-
19
- #endif /* INTERNAL_MISSING_H */