datadog-ruby_core_source 3.5.3 → 3.5.4

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 (243) hide show
  1. checksums.yaml +4 -4
  2. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/thread_win32.h +36 -0
  3. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/thread_win32.h +36 -0
  4. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/thread_win32.h +36 -0
  5. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/constant.h +53 -0
  6. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/debug_counter.h +423 -0
  7. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_sync.h +137 -0
  8. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/constant.h +53 -0
  9. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/debug_counter.h +423 -0
  10. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_sync.h +137 -0
  11. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/constant.h +53 -0
  12. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/debug_counter.h +423 -0
  13. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/vm_sync.h +137 -0
  14. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/constant.h +53 -0
  15. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/debug_counter.h +425 -0
  16. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/vm_sync.h +160 -0
  17. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/constant.h +53 -0
  18. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/debug_counter.h +426 -0
  19. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/vm_sync.h +160 -0
  20. data/lib/datadog/ruby_core_source/version.rb +1 -1
  21. metadata +20 -224
  22. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/bignum.h +0 -244
  23. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/bits.h +0 -568
  24. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/cmdlineopt.h +0 -65
  25. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/compar.h +0 -29
  26. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/compile.h +0 -34
  27. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/complex.h +0 -29
  28. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/cont.h +0 -35
  29. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/dir.h +0 -16
  30. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/enc.h +0 -19
  31. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/encoding.h +0 -35
  32. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/enum.h +0 -18
  33. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/enumerator.h +0 -21
  34. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/error.h +0 -216
  35. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/eval.h +0 -32
  36. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/file.h +0 -38
  37. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/fixnum.h +0 -184
  38. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/hash.h +0 -191
  39. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/inits.h +0 -50
  40. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/io.h +0 -137
  41. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/load.h +0 -18
  42. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/loadpath.h +0 -16
  43. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/math.h +0 -23
  44. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/missing.h +0 -18
  45. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/numeric.h +0 -273
  46. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/object.h +0 -60
  47. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/parse.h +0 -108
  48. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/proc.h +0 -30
  49. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/process.h +0 -124
  50. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/ractor.h +0 -6
  51. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/random.h +0 -17
  52. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/range.h +0 -40
  53. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/rational.h +0 -71
  54. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/re.h +0 -28
  55. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/ruby_parser.h +0 -69
  56. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/sanitizers.h +0 -186
  57. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/signal.h +0 -25
  58. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/string.h +0 -159
  59. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/struct.h +0 -127
  60. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/symbol.h +0 -45
  61. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/thread.h +0 -78
  62. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/time.h +0 -34
  63. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/transcode.h +0 -23
  64. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/util.h +0 -27
  65. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/prism/extension.h +0 -18
  66. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/bignum.h +0 -244
  67. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/bits.h +0 -568
  68. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/cmdlineopt.h +0 -65
  69. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/compar.h +0 -29
  70. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/compile.h +0 -34
  71. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/complex.h +0 -29
  72. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/cont.h +0 -35
  73. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/dir.h +0 -16
  74. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/enc.h +0 -19
  75. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/encoding.h +0 -35
  76. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/enum.h +0 -18
  77. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/enumerator.h +0 -21
  78. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/error.h +0 -216
  79. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/eval.h +0 -33
  80. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/file.h +0 -38
  81. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/fixnum.h +0 -184
  82. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/hash.h +0 -191
  83. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/inits.h +0 -50
  84. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/io.h +0 -137
  85. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/load.h +0 -18
  86. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/loadpath.h +0 -16
  87. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/math.h +0 -23
  88. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/missing.h +0 -18
  89. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/numeric.h +0 -273
  90. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/object.h +0 -62
  91. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/parse.h +0 -108
  92. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/proc.h +0 -30
  93. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/process.h +0 -124
  94. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/ractor.h +0 -6
  95. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/random.h +0 -17
  96. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/range.h +0 -40
  97. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/rational.h +0 -71
  98. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/re.h +0 -28
  99. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/ruby_parser.h +0 -69
  100. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/sanitizers.h +0 -186
  101. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/signal.h +0 -25
  102. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/string.h +0 -160
  103. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/struct.h +0 -127
  104. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/symbol.h +0 -45
  105. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/thread.h +0 -78
  106. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/time.h +0 -34
  107. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/transcode.h +0 -23
  108. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/util.h +0 -27
  109. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/prism/extension.h +0 -18
  110. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/bignum.h +0 -244
  111. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/bits.h +0 -650
  112. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/cmdlineopt.h +0 -65
  113. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/compar.h +0 -29
  114. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/compile.h +0 -34
  115. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/complex.h +0 -29
  116. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/cont.h +0 -35
  117. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/dir.h +0 -16
  118. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/enc.h +0 -19
  119. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/encoding.h +0 -38
  120. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/enum.h +0 -18
  121. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/enumerator.h +0 -21
  122. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/error.h +0 -244
  123. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/eval.h +0 -33
  124. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/file.h +0 -38
  125. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/fixnum.h +0 -185
  126. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/hash.h +0 -192
  127. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/inits.h +0 -47
  128. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/io.h +0 -143
  129. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/load.h +0 -18
  130. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/loadpath.h +0 -16
  131. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/math.h +0 -23
  132. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/missing.h +0 -19
  133. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/numeric.h +0 -274
  134. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/object.h +0 -63
  135. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/parse.h +0 -130
  136. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/proc.h +0 -31
  137. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/process.h +0 -124
  138. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/ractor.h +0 -10
  139. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/random.h +0 -17
  140. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/range.h +0 -40
  141. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/rational.h +0 -71
  142. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/re.h +0 -28
  143. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/ruby_parser.h +0 -102
  144. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/signal.h +0 -24
  145. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/st.h +0 -11
  146. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/string.h +0 -198
  147. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/struct.h +0 -127
  148. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/symbol.h +0 -45
  149. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/thread.h +0 -108
  150. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/time.h +0 -34
  151. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/transcode.h +0 -23
  152. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/util.h +0 -27
  153. data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/prism/extension.h +0 -19
  154. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/bignum.h +0 -256
  155. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/bits.h +0 -647
  156. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/cmdlineopt.h +0 -64
  157. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/compar.h +0 -29
  158. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/compile.h +0 -34
  159. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/complex.h +0 -29
  160. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/concurrent_set.h +0 -21
  161. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/cont.h +0 -34
  162. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/dir.h +0 -16
  163. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/enc.h +0 -19
  164. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/encoding.h +0 -39
  165. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/enum.h +0 -18
  166. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/enumerator.h +0 -21
  167. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/error.h +0 -251
  168. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/eval.h +0 -43
  169. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/file.h +0 -38
  170. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/fixnum.h +0 -185
  171. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/hash.h +0 -194
  172. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/inits.h +0 -51
  173. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/io.h +0 -163
  174. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/load.h +0 -20
  175. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/loadpath.h +0 -16
  176. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/math.h +0 -23
  177. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/missing.h +0 -19
  178. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/numeric.h +0 -323
  179. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/object.h +0 -63
  180. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/parse.h +0 -131
  181. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/proc.h +0 -30
  182. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/process.h +0 -124
  183. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/ractor.h +0 -10
  184. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/random.h +0 -17
  185. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/range.h +0 -40
  186. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/rational.h +0 -71
  187. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/re.h +0 -33
  188. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/ruby_parser.h +0 -102
  189. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/signal.h +0 -25
  190. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/st.h +0 -11
  191. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/string.h +0 -203
  192. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/struct.h +0 -160
  193. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/symbol.h +0 -46
  194. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/thread.h +0 -112
  195. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/time.h +0 -34
  196. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/transcode.h +0 -23
  197. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/util.h +0 -27
  198. data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/prism/extension.h +0 -19
  199. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/bignum.h +0 -256
  200. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/bits.h +0 -647
  201. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/cmdlineopt.h +0 -64
  202. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/compar.h +0 -29
  203. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/compile.h +0 -34
  204. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/complex.h +0 -29
  205. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/concurrent_set.h +0 -21
  206. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/cont.h +0 -34
  207. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/dir.h +0 -16
  208. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/enc.h +0 -19
  209. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/encoding.h +0 -39
  210. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/enum.h +0 -18
  211. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/enumerator.h +0 -21
  212. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/error.h +0 -251
  213. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/eval.h +0 -43
  214. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/file.h +0 -38
  215. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/fixnum.h +0 -185
  216. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/hash.h +0 -194
  217. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/inits.h +0 -51
  218. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/io.h +0 -163
  219. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/load.h +0 -20
  220. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/loadpath.h +0 -16
  221. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/math.h +0 -23
  222. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/missing.h +0 -19
  223. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/numeric.h +0 -323
  224. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/object.h +0 -63
  225. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/parse.h +0 -131
  226. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/proc.h +0 -30
  227. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/process.h +0 -124
  228. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/ractor.h +0 -10
  229. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/random.h +0 -17
  230. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/range.h +0 -40
  231. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/rational.h +0 -73
  232. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/re.h +0 -33
  233. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/ruby_parser.h +0 -102
  234. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/signal.h +0 -25
  235. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/st.h +0 -11
  236. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/string.h +0 -203
  237. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/struct.h +0 -160
  238. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/symbol.h +0 -46
  239. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/thread.h +0 -112
  240. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/time.h +0 -34
  241. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/transcode.h +0 -23
  242. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/util.h +0 -27
  243. data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/extension.h +0 -19
@@ -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 */
@@ -1,71 +0,0 @@
1
- #ifndef INTERNAL_RATIONAL_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_RATIONAL_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Rational.
10
- */
11
- #include "ruby/internal/config.h" /* for HAVE_LIBGMP */
12
- #include "ruby/ruby.h" /* for struct RBasic */
13
- #include "internal/numeric.h" /* for INT_POSITIVE_P */
14
- #include "ruby_assert.h" /* for assert */
15
-
16
- struct RRational {
17
- struct RBasic basic;
18
- VALUE num;
19
- VALUE den;
20
- };
21
-
22
- #define RRATIONAL(obj) ((struct RRational *)(obj))
23
-
24
- /* rational.c */
25
- VALUE rb_rational_canonicalize(VALUE x);
26
- VALUE rb_rational_uminus(VALUE self);
27
- VALUE rb_rational_plus(VALUE self, VALUE other);
28
- VALUE rb_rational_minus(VALUE self, VALUE other);
29
- VALUE rb_rational_mul(VALUE self, VALUE other);
30
- VALUE rb_rational_div(VALUE self, VALUE other);
31
- VALUE rb_lcm(VALUE x, VALUE y);
32
- VALUE rb_rational_reciprocal(VALUE x);
33
- VALUE rb_cstr_to_rat(const char *, int);
34
- VALUE rb_rational_hash(VALUE self);
35
- VALUE rb_rational_abs(VALUE self);
36
- VALUE rb_rational_cmp(VALUE self, VALUE other);
37
- VALUE rb_rational_pow(VALUE self, VALUE other);
38
- VALUE rb_rational_floor(VALUE self, int ndigits);
39
- VALUE rb_numeric_quo(VALUE x, VALUE y);
40
- VALUE rb_flo_round_by_rational(int argc, VALUE *argv, VALUE num);
41
- VALUE rb_float_numerator(VALUE x);
42
- VALUE rb_float_denominator(VALUE x);
43
-
44
- static inline void RATIONAL_SET_NUM(VALUE r, VALUE n);
45
- static inline void RATIONAL_SET_DEN(VALUE r, VALUE d);
46
-
47
- RUBY_SYMBOL_EXPORT_BEGIN
48
- /* rational.c (export) */
49
- VALUE rb_gcd(VALUE x, VALUE y);
50
- VALUE rb_gcd_normal(VALUE self, VALUE other);
51
- #if defined(HAVE_LIBGMP) && defined(HAVE_GMP_H)
52
- VALUE rb_gcd_gmp(VALUE x, VALUE y);
53
- #endif
54
- RUBY_SYMBOL_EXPORT_END
55
-
56
- static inline void
57
- RATIONAL_SET_NUM(VALUE r, VALUE n)
58
- {
59
- assert(RB_INTEGER_TYPE_P(n));
60
- RB_OBJ_WRITE(r, &RRATIONAL(r)->num, n);
61
- }
62
-
63
- static inline void
64
- RATIONAL_SET_DEN(VALUE r, VALUE d)
65
- {
66
- assert(RB_INTEGER_TYPE_P(d));
67
- assert(INT_POSITIVE_P(d));
68
- RB_OBJ_WRITE(r, &RRATIONAL(r)->den, d);
69
- }
70
-
71
- #endif /* INTERNAL_RATIONAL_H */
@@ -1,33 +0,0 @@
1
- #ifndef INTERNAL_RE_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_RE_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Regexp.
10
- */
11
- #include "ruby/internal/stdbool.h" /* for bool */
12
- #include "ruby/ruby.h" /* for VALUE */
13
-
14
- /* re.c */
15
- VALUE rb_reg_compile(VALUE str, int options, const char *sourcefile, int sourceline);
16
- VALUE rb_reg_check_preprocess(VALUE);
17
- long rb_reg_search0(VALUE, VALUE, long, int, int, VALUE *);
18
- VALUE rb_reg_match_p(VALUE re, VALUE str, long pos);
19
- bool rb_reg_start_with_p(VALUE re, VALUE str);
20
- VALUE rb_reg_hash(VALUE re);
21
- VALUE rb_reg_equal(VALUE re1, VALUE re2);
22
- VALUE rb_backref_set_string(VALUE string, long pos, long len);
23
- void rb_match_unbusy(VALUE);
24
- int rb_match_count(VALUE match);
25
- VALUE rb_reg_new_ary(VALUE ary, int options);
26
- VALUE rb_reg_last_defined(VALUE match);
27
-
28
- #define ARG_REG_OPTION_MASK \
29
- (ONIG_OPTION_IGNORECASE|ONIG_OPTION_MULTILINE|ONIG_OPTION_EXTEND)
30
- #define ARG_ENCODING_FIXED 16
31
- #define ARG_ENCODING_NONE 32
32
-
33
- #endif /* INTERNAL_RE_H */
@@ -1,102 +0,0 @@
1
- #ifndef INTERNAL_RUBY_PARSE_H
2
- #define INTERNAL_RUBY_PARSE_H
3
-
4
- #include "internal.h"
5
- #include "internal/bignum.h"
6
- #include "internal/compilers.h"
7
- #include "internal/complex.h"
8
- #include "internal/parse.h"
9
- #include "internal/rational.h"
10
- #include "rubyparser.h"
11
- #include "vm.h"
12
-
13
- struct lex_pointer_string {
14
- VALUE str;
15
- long ptr;
16
- };
17
-
18
- RUBY_SYMBOL_EXPORT_BEGIN
19
- #ifdef UNIVERSAL_PARSER
20
- const rb_parser_config_t *rb_ruby_parser_config(void);
21
- rb_parser_t *rb_parser_params_new(void);
22
- #endif
23
- VALUE rb_parser_set_context(VALUE, const struct rb_iseq_struct *, int);
24
- VALUE rb_parser_new(void);
25
- VALUE rb_parser_compile_string_path(VALUE vparser, VALUE fname, VALUE src, int line);
26
- VALUE rb_str_new_parser_string(rb_parser_string_t *str);
27
- VALUE rb_str_new_mutable_parser_string(rb_parser_string_t *str);
28
- rb_parser_string_t *rb_parser_lex_get_str(struct parser_params *p, struct lex_pointer_string *ptr_str);
29
-
30
- VALUE rb_node_str_string_val(const NODE *);
31
- VALUE rb_node_sym_string_val(const NODE *);
32
- VALUE rb_node_dstr_string_val(const NODE *);
33
- VALUE rb_node_regx_string_val(const NODE *);
34
- VALUE rb_node_dregx_string_val(const NODE *);
35
- VALUE rb_node_line_lineno_val(const NODE *);
36
- VALUE rb_node_file_path_val(const NODE *);
37
- VALUE rb_node_encoding_val(const NODE *);
38
-
39
- VALUE rb_node_integer_literal_val(const NODE *);
40
- VALUE rb_node_float_literal_val(const NODE *);
41
- VALUE rb_node_rational_literal_val(const NODE *);
42
- VALUE rb_node_imaginary_literal_val(const NODE *);
43
- RUBY_SYMBOL_EXPORT_END
44
-
45
- VALUE rb_parser_end_seen_p(VALUE);
46
- VALUE rb_parser_encoding(VALUE);
47
- VALUE rb_parser_set_yydebug(VALUE, VALUE);
48
- VALUE rb_parser_build_script_lines_from(rb_parser_ary_t *script_lines);
49
- void rb_parser_set_options(VALUE, int, int, int, int);
50
- VALUE rb_parser_load_file(VALUE parser, VALUE name);
51
- void rb_parser_set_script_lines(VALUE vparser);
52
- void rb_parser_error_tolerant(VALUE vparser);
53
- void rb_parser_keep_tokens(VALUE vparser);
54
-
55
- VALUE rb_parser_compile_string(VALUE, const char*, VALUE, int);
56
- VALUE rb_parser_compile_file_path(VALUE vparser, VALUE fname, VALUE input, int line);
57
- VALUE rb_parser_compile_generic(VALUE vparser, rb_parser_lex_gets_func *lex_gets, VALUE fname, VALUE input, int line);
58
- VALUE rb_parser_compile_array(VALUE vparser, VALUE fname, VALUE array, int start);
59
-
60
- enum lex_state_bits {
61
- EXPR_BEG_bit, /* ignore newline, +/- is a sign. */
62
- EXPR_END_bit, /* newline significant, +/- is an operator. */
63
- EXPR_ENDARG_bit, /* ditto, and unbound braces. */
64
- EXPR_ENDFN_bit, /* ditto, and unbound braces. */
65
- EXPR_ARG_bit, /* newline significant, +/- is an operator. */
66
- EXPR_CMDARG_bit, /* newline significant, +/- is an operator. */
67
- EXPR_MID_bit, /* newline significant, +/- is an operator. */
68
- EXPR_FNAME_bit, /* ignore newline, no reserved words. */
69
- EXPR_DOT_bit, /* right after `.', `&.' or `::', no reserved words. */
70
- EXPR_CLASS_bit, /* immediate after `class', no here document. */
71
- EXPR_LABEL_bit, /* flag bit, label is allowed. */
72
- EXPR_LABELED_bit, /* flag bit, just after a label. */
73
- EXPR_FITEM_bit, /* symbol literal as FNAME. */
74
- EXPR_MAX_STATE
75
- };
76
- /* examine combinations */
77
- enum lex_state_e {
78
- #define DEF_EXPR(n) EXPR_##n = (1 << EXPR_##n##_bit)
79
- DEF_EXPR(BEG),
80
- DEF_EXPR(END),
81
- DEF_EXPR(ENDARG),
82
- DEF_EXPR(ENDFN),
83
- DEF_EXPR(ARG),
84
- DEF_EXPR(CMDARG),
85
- DEF_EXPR(MID),
86
- DEF_EXPR(FNAME),
87
- DEF_EXPR(DOT),
88
- DEF_EXPR(CLASS),
89
- DEF_EXPR(LABEL),
90
- DEF_EXPR(LABELED),
91
- DEF_EXPR(FITEM),
92
- EXPR_VALUE = EXPR_BEG,
93
- EXPR_BEG_ANY = (EXPR_BEG | EXPR_MID | EXPR_CLASS),
94
- EXPR_ARG_ANY = (EXPR_ARG | EXPR_CMDARG),
95
- EXPR_END_ANY = (EXPR_END | EXPR_ENDARG | EXPR_ENDFN),
96
- EXPR_NONE = 0
97
- };
98
-
99
- VALUE rb_ruby_ast_new(const NODE *const root);
100
- rb_ast_t *rb_ruby_ast_data_get(VALUE ast_value);
101
-
102
- #endif /* INTERNAL_RUBY_PARSE_H */
@@ -1,25 +0,0 @@
1
- #ifndef INTERNAL_SIGNAL_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_SIGNAL_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for SignalException.
10
- */
11
-
12
- /* signal.c */
13
- extern int ruby_enable_coredump;
14
- int rb_get_next_signal(void);
15
-
16
- #ifdef POSIX_SIGNAL
17
- void (*ruby_posix_signal(int, void (*)(int)))(int);
18
- #endif
19
-
20
- RUBY_SYMBOL_EXPORT_BEGIN
21
- /* signal.c (export) */
22
- void rb_signal_atfork(void);
23
- RUBY_SYMBOL_EXPORT_END
24
-
25
- #endif /* INTERNAL_SIGNAL_H */
@@ -1,11 +0,0 @@
1
- #ifndef INTERNAL_ST_H
2
- #define INTERNAL_ST_H
3
-
4
- #include "ruby/st.h"
5
-
6
- st_table *rb_st_replace(st_table *new_tab, st_table *old_tab);
7
- #define st_replace rb_st_replace
8
- st_table *rb_st_init_existing_table_with_size(st_table *tab, const struct st_hash_type *type, st_index_t size);
9
- #define st_init_existing_table_with_size rb_st_init_existing_table_with_size
10
-
11
- #endif
@@ -1,203 +0,0 @@
1
- #ifndef INTERNAL_STRING_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_STRING_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for String.
10
- */
11
- #include "ruby/internal/config.h"
12
- #include <stddef.h> /* for size_t */
13
- #include "internal/compilers.h" /* for __has_builtin */
14
- #include "ruby/internal/stdbool.h" /* for bool */
15
- #include "ruby/encoding.h" /* for rb_encoding */
16
- #include "ruby/ruby.h" /* for VALUE */
17
-
18
- #define STR_SHARED FL_USER0 /* = ELTS_SHARED */
19
- #define STR_NOEMBED FL_USER1
20
- #define STR_CHILLED (FL_USER2 | FL_USER3)
21
- #define STR_CHILLED_LITERAL FL_USER2
22
- #define STR_CHILLED_SYMBOL_TO_S FL_USER3
23
-
24
- enum ruby_rstring_private_flags {
25
- RSTRING_CHILLED = STR_CHILLED,
26
- };
27
-
28
- #ifdef rb_fstring_cstr
29
- # undef rb_fstring_cstr
30
- #endif
31
-
32
- /* string.c */
33
- VALUE rb_str_dup_m(VALUE str);
34
- VALUE rb_fstring(VALUE);
35
- VALUE rb_fstring_cstr(const char *str);
36
- VALUE rb_fstring_enc_new(const char *ptr, long len, rb_encoding *enc);
37
- int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
38
- int rb_str_symname_p(VALUE);
39
- VALUE rb_str_quote_unprintable(VALUE);
40
- char *rb_str_fill_terminator(VALUE str, const int termlen);
41
- void rb_str_change_terminator_length(VALUE str, const int oldtermlen, const int termlen);
42
- VALUE rb_str_locktmp_ensure(VALUE str, VALUE (*func)(VALUE), VALUE arg);
43
- VALUE rb_str_chomp_string(VALUE str, VALUE chomp);
44
- VALUE rb_external_str_with_enc(VALUE str, rb_encoding *eenc);
45
- VALUE rb_str_cat_conv_enc_opts(VALUE newstr, long ofs, const char *ptr, long len,
46
- rb_encoding *from, int ecflags, VALUE ecopts);
47
- VALUE rb_enc_str_scrub(rb_encoding *enc, VALUE str, VALUE repl);
48
- VALUE rb_str_escape(VALUE str);
49
- size_t rb_str_memsize(VALUE);
50
- char *rb_str_to_cstr(VALUE str);
51
- const char *ruby_escaped_char(int c);
52
- void rb_str_make_independent(VALUE str);
53
- int rb_enc_str_coderange_scan(VALUE str, rb_encoding *enc);
54
- int rb_ascii8bit_appendable_encoding_index(rb_encoding *enc, unsigned int code);
55
- VALUE rb_str_include(VALUE str, VALUE arg);
56
- VALUE rb_str_byte_substr(VALUE str, VALUE beg, VALUE len);
57
- VALUE rb_str_substr_two_fixnums(VALUE str, VALUE beg, VALUE len, int empty);
58
- VALUE rb_str_tmp_frozen_no_embed_acquire(VALUE str);
59
- void rb_str_make_embedded(VALUE);
60
- VALUE rb_str_upto_each(VALUE, VALUE, int, int (*each)(VALUE, VALUE), VALUE);
61
- size_t rb_str_size_as_embedded(VALUE);
62
- bool rb_str_reembeddable_p(VALUE);
63
- VALUE rb_str_upto_endless_each(VALUE, int (*each)(VALUE, VALUE), VALUE);
64
- VALUE rb_str_with_debug_created_info(VALUE, VALUE, int);
65
- VALUE rb_str_frozen_bare_string(VALUE);
66
-
67
- /* error.c */
68
- void rb_warn_unchilled_literal(VALUE str);
69
- void rb_warn_unchilled_symbol_to_s(VALUE str);
70
-
71
- static inline bool STR_EMBED_P(VALUE str);
72
- static inline bool STR_SHARED_P(VALUE str);
73
- static inline VALUE QUOTE(VALUE v);
74
- static inline VALUE QUOTE_ID(ID v);
75
- static inline bool is_ascii_string(VALUE str);
76
- static inline bool is_broken_string(VALUE str);
77
- static inline VALUE rb_str_eql_internal(const VALUE str1, const VALUE str2);
78
-
79
- RUBY_SYMBOL_EXPORT_BEGIN
80
- /* string.c (export) */
81
- VALUE rb_str_tmp_frozen_acquire(VALUE str);
82
- void rb_str_tmp_frozen_release(VALUE str, VALUE tmp);
83
- VALUE rb_setup_fake_str(struct RString *fake_str, const char *name, long len, rb_encoding *enc);
84
- RUBY_SYMBOL_EXPORT_END
85
-
86
- VALUE rb_fstring_new(const char *ptr, long len);
87
- void rb_gc_free_fstring(VALUE obj);
88
- bool rb_obj_is_fstring_table(VALUE obj);
89
- void Init_fstring_table();
90
- VALUE rb_obj_as_string_result(VALUE str, VALUE obj);
91
- VALUE rb_str_opt_plus(VALUE x, VALUE y);
92
- VALUE rb_str_concat_literals(size_t num, const VALUE *strary);
93
- VALUE rb_str_eql(VALUE str1, VALUE str2);
94
- VALUE rb_id_quote_unprintable(ID);
95
- VALUE rb_sym_proc_call(ID mid, int argc, const VALUE *argv, int kw_splat, VALUE passed_proc);
96
- VALUE rb_enc_literal_str(const char *ptr, long len, rb_encoding *enc);
97
-
98
- struct rb_execution_context_struct;
99
- VALUE rb_ec_str_resurrect(struct rb_execution_context_struct *ec, VALUE str, bool chilled);
100
-
101
- #define rb_fstring_lit(str) rb_fstring_new((str), rb_strlen_lit(str))
102
- #define rb_fstring_literal(str) rb_fstring_lit(str)
103
- #define rb_fstring_enc_lit(str, enc) rb_fstring_enc_new((str), rb_strlen_lit(str), (enc))
104
- #define rb_fstring_enc_literal(str, enc) rb_fstring_enc_lit(str, enc)
105
-
106
- static inline VALUE
107
- QUOTE(VALUE v)
108
- {
109
- return rb_str_quote_unprintable(v);
110
- }
111
-
112
- static inline VALUE
113
- QUOTE_ID(ID i)
114
- {
115
- return rb_id_quote_unprintable(i);
116
- }
117
-
118
- static inline bool
119
- STR_EMBED_P(VALUE str)
120
- {
121
- return ! FL_TEST_RAW(str, STR_NOEMBED);
122
- }
123
-
124
- static inline bool
125
- STR_SHARED_P(VALUE str)
126
- {
127
- return FL_ALL_RAW(str, STR_NOEMBED | STR_SHARED);
128
- }
129
-
130
- static inline bool
131
- CHILLED_STRING_P(VALUE obj)
132
- {
133
- return RB_TYPE_P(obj, T_STRING) && FL_TEST_RAW(obj, STR_CHILLED);
134
- }
135
-
136
- static inline void
137
- CHILLED_STRING_MUTATED(VALUE str)
138
- {
139
- VALUE chilled_reason = RB_FL_TEST_RAW(str, STR_CHILLED);
140
- FL_UNSET_RAW(str, STR_CHILLED);
141
- switch (chilled_reason) {
142
- case STR_CHILLED_SYMBOL_TO_S:
143
- rb_warn_unchilled_symbol_to_s(str);
144
- break;
145
- case STR_CHILLED_LITERAL:
146
- rb_warn_unchilled_literal(str);
147
- break;
148
- default:
149
- rb_bug("RString was chilled for multiple reasons");
150
- }
151
- }
152
-
153
- static inline bool
154
- is_ascii_string(VALUE str)
155
- {
156
- return rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT;
157
- }
158
-
159
- static inline bool
160
- is_broken_string(VALUE str)
161
- {
162
- return rb_enc_str_coderange(str) == ENC_CODERANGE_BROKEN;
163
- }
164
-
165
- static inline bool
166
- at_char_boundary(const char *s, const char *p, const char *e, rb_encoding *enc)
167
- {
168
- return rb_enc_left_char_head(s, p, e, enc) == p;
169
- }
170
-
171
- static inline bool
172
- at_char_right_boundary(const char *s, const char *p, const char *e, rb_encoding *enc)
173
- {
174
- RUBY_ASSERT(s <= p);
175
- RUBY_ASSERT(p <= e);
176
-
177
- return rb_enc_right_char_head(s, p, e, enc) == p;
178
- }
179
-
180
- /* expect tail call optimization */
181
- // YJIT needs this function to never allocate and never raise
182
- static inline VALUE
183
- rb_str_eql_internal(const VALUE str1, const VALUE str2)
184
- {
185
- const long len = RSTRING_LEN(str1);
186
- const char *ptr1, *ptr2;
187
-
188
- if (len != RSTRING_LEN(str2)) return Qfalse;
189
- if (!rb_str_comparable(str1, str2)) return Qfalse;
190
- if ((ptr1 = RSTRING_PTR(str1)) == (ptr2 = RSTRING_PTR(str2)))
191
- return Qtrue;
192
- if (memcmp(ptr1, ptr2, len) == 0)
193
- return Qtrue;
194
- return Qfalse;
195
- }
196
-
197
- #if __has_builtin(__builtin_constant_p)
198
- # define rb_fstring_cstr(str) \
199
- (__builtin_constant_p(str) ? \
200
- rb_fstring_new((str), (long)strlen(str)) : \
201
- (rb_fstring_cstr)(str))
202
- #endif
203
- #endif /* INTERNAL_STRING_H */
@@ -1,160 +0,0 @@
1
- #ifndef INTERNAL_STRUCT_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_STRUCT_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Struct.
10
- */
11
- #include "ruby/internal/stdbool.h" /* for bool */
12
- #include "ruby/ruby.h" /* for struct RBasic */
13
-
14
- /* Flags of RStruct
15
- *
16
- * 1-7: RSTRUCT_EMBED_LEN
17
- * If non-zero, the struct is embedded (its contents follow the
18
- * header, rather than being on a separately allocated buffer) and
19
- * these bits are the length of the Struct.
20
- * 8: RSTRUCT_GEN_FIELDS
21
- * The struct is embedded and has no space left to store the
22
- * IMEMO/fields reference. Any ivar this struct may have will be in
23
- * the generic_fields_tbl. This flag doesn't imply the struct has
24
- * ivars.
25
- */
26
- enum {
27
- RSTRUCT_EMBED_LEN_MASK = RUBY_FL_USER7 | RUBY_FL_USER6 | RUBY_FL_USER5 | RUBY_FL_USER4 |
28
- RUBY_FL_USER3 | RUBY_FL_USER2 | RUBY_FL_USER1,
29
- RSTRUCT_EMBED_LEN_SHIFT = (RUBY_FL_USHIFT+1),
30
- RSTRUCT_GEN_FIELDS = RUBY_FL_USER8,
31
- };
32
-
33
- struct RStruct {
34
- struct RBasic basic;
35
- union {
36
- struct {
37
- long len;
38
- const VALUE *ptr;
39
- VALUE fields_obj;
40
- } heap;
41
- /* This is a length 1 array because:
42
- * 1. GCC has a bug that does not optimize C flexible array members
43
- * (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102452)
44
- * 2. Zero length arrays are not supported by all compilers
45
- */
46
- const VALUE ary[1];
47
- } as;
48
- };
49
-
50
- #define RSTRUCT(obj) ((struct RStruct *)(obj))
51
-
52
- #ifdef RSTRUCT_LEN
53
- # undef RSTRUCT_LEN
54
- #endif
55
-
56
- #ifdef RSTRUCT_PTR
57
- # undef RSTRUCT_PTR
58
- #endif
59
-
60
- #ifdef RSTRUCT_SET
61
- # undef RSTRUCT_SET
62
- #endif
63
-
64
- #ifdef RSTRUCT_GET
65
- # undef RSTRUCT_GET
66
- #endif
67
-
68
- #define RSTRUCT_LEN internal_RSTRUCT_LEN
69
- #define RSTRUCT_SET internal_RSTRUCT_SET
70
- #define RSTRUCT_GET internal_RSTRUCT_GET
71
-
72
- /* struct.c */
73
- VALUE rb_struct_init_copy(VALUE copy, VALUE s);
74
- VALUE rb_struct_lookup(VALUE s, VALUE idx);
75
- VALUE rb_struct_s_keyword_init(VALUE klass);
76
- static inline long RSTRUCT_EMBED_LEN(VALUE st);
77
- static inline long RSTRUCT_LEN(VALUE st);
78
- static inline int RSTRUCT_LENINT(VALUE st);
79
- static inline const VALUE *RSTRUCT_CONST_PTR(VALUE st);
80
- static inline void RSTRUCT_SET(VALUE st, long k, VALUE v);
81
- static inline VALUE RSTRUCT_GET(VALUE st, long k);
82
-
83
- static inline long
84
- RSTRUCT_EMBED_LEN(VALUE st)
85
- {
86
- long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
87
- ret >>= RSTRUCT_EMBED_LEN_SHIFT;
88
- return ret;
89
- }
90
-
91
- static inline long
92
- RSTRUCT_LEN(VALUE st)
93
- {
94
- if (FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK)) {
95
- return RSTRUCT_EMBED_LEN(st);
96
- }
97
- else {
98
- return RSTRUCT(st)->as.heap.len;
99
- }
100
- }
101
-
102
- static inline int
103
- RSTRUCT_LENINT(VALUE st)
104
- {
105
- return rb_long2int(RSTRUCT_LEN(st));
106
- }
107
-
108
- static inline const VALUE *
109
- RSTRUCT_CONST_PTR(VALUE st)
110
- {
111
- const struct RStruct *p = RSTRUCT(st);
112
-
113
- if (FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK)) {
114
- return p->as.ary;
115
- }
116
- else {
117
- return p->as.heap.ptr;
118
- }
119
- }
120
-
121
- static inline void
122
- RSTRUCT_SET(VALUE st, long k, VALUE v)
123
- {
124
- RB_OBJ_WRITE(st, &RSTRUCT_CONST_PTR(st)[k], v);
125
- }
126
-
127
- static inline VALUE
128
- RSTRUCT_GET(VALUE st, long k)
129
- {
130
- return RSTRUCT_CONST_PTR(st)[k];
131
- }
132
-
133
- static inline VALUE
134
- RSTRUCT_FIELDS_OBJ(VALUE st)
135
- {
136
- const long embed_len = RSTRUCT_EMBED_LEN(st);
137
- VALUE fields_obj;
138
- if (embed_len) {
139
- RUBY_ASSERT(!FL_TEST_RAW(st, RSTRUCT_GEN_FIELDS));
140
- fields_obj = RSTRUCT_GET(st, embed_len);
141
- }
142
- else {
143
- fields_obj = RSTRUCT(st)->as.heap.fields_obj;
144
- }
145
- return fields_obj;
146
- }
147
-
148
- static inline void
149
- RSTRUCT_SET_FIELDS_OBJ(VALUE st, VALUE fields_obj)
150
- {
151
- const long embed_len = RSTRUCT_EMBED_LEN(st);
152
- if (embed_len) {
153
- RUBY_ASSERT(!FL_TEST_RAW(st, RSTRUCT_GEN_FIELDS));
154
- RSTRUCT_SET(st, embed_len, fields_obj);
155
- }
156
- else {
157
- RB_OBJ_WRITE(st, &RSTRUCT(st)->as.heap.fields_obj, fields_obj);
158
- }
159
- }
160
- #endif /* INTERNAL_STRUCT_H */
@@ -1,46 +0,0 @@
1
- #ifndef INTERNAL_SYMBOL_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_SYMBOL_H
3
- /**
4
- * @author Ruby developers <ruby-core@ruby-lang.org>
5
- * @copyright This file is a part of the programming language Ruby.
6
- * Permission is hereby granted, to either redistribute and/or
7
- * modify this file, provided that the conditions mentioned in the
8
- * file COPYING are met. Consult the file for details.
9
- * @brief Internal header for Symbol.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
- #include "ruby/encoding.h" /* for rb_encoding */
13
- #include "internal/compilers.h" /* for __has_builtin */
14
-
15
- #ifdef rb_sym_intern_ascii_cstr
16
- # undef rb_sym_intern_ascii_cstr
17
- #endif
18
-
19
- /* symbol.c */
20
- void rb_sym_global_symbols_mark_and_move(void);
21
- VALUE rb_to_symbol_type(VALUE obj);
22
- VALUE rb_sym_intern(const char *ptr, long len, rb_encoding *enc);
23
- VALUE rb_sym_intern_ascii(const char *ptr, long len);
24
- VALUE rb_sym_intern_ascii_cstr(const char *ptr);
25
- int rb_is_const_name(VALUE name);
26
- int rb_is_class_name(VALUE name);
27
- int rb_is_instance_name(VALUE name);
28
- int rb_is_local_name(VALUE name);
29
- PUREFUNC(int rb_is_const_sym(VALUE sym));
30
- PUREFUNC(int rb_is_attrset_sym(VALUE sym));
31
- ID rb_make_internal_id(void);
32
- ID rb_make_temporary_id(size_t n);
33
- bool rb_obj_is_symbol_table(VALUE obj);
34
- void rb_sym_global_symbol_table_foreach_weak_reference(int (*callback)(VALUE *key, void *data), void *data);
35
- void rb_gc_free_dsymbol(VALUE);
36
- int rb_static_id_valid_p(ID id);
37
- void rb_free_global_symbol_table(void);
38
-
39
- #if __has_builtin(__builtin_constant_p)
40
- #define rb_sym_intern_ascii_cstr(ptr) \
41
- (__builtin_constant_p(ptr) ? \
42
- rb_sym_intern_ascii((ptr), (long)strlen(ptr)) : \
43
- rb_sym_intern_ascii_cstr(ptr))
44
- #endif
45
-
46
- #endif /* INTERNAL_SYMBOL_H */