debase-ruby_core_source 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/darray.h +246 -0
  4. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/debug_counter.h +7 -10
  5. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/eval_intern.h +3 -1
  6. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/id.h +44 -0
  7. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/insns_info.inc +68 -94
  8. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/array.h +2 -20
  9. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/bits.h +6 -2
  10. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/class.h +7 -2
  11. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/cmdlineopt.h +3 -1
  12. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/compile.h +0 -1
  13. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/error.h +24 -2
  14. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/gc.h +28 -0
  15. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/hash.h +18 -44
  16. data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/io.h +137 -0
  17. data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/parse.h +133 -0
  18. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/process.h +0 -14
  19. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/range.h +2 -2
  20. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/re.h +1 -1
  21. data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/ruby_parser.h +69 -0
  22. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/signal.h +4 -0
  23. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/string.h +15 -0
  24. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/struct.h +9 -34
  25. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/thread.h +13 -0
  26. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/variable.h +16 -33
  27. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/vm.h +5 -0
  28. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/iseq.h +4 -4
  29. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/method.h +1 -1
  30. data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/node.h +125 -0
  31. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/parse.h +6 -4
  32. data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_bits.h +564 -0
  33. data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_node.h +133 -0
  34. data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_st.h +162 -0
  35. data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_value.h +106 -0
  36. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ractor_core.h +3 -3
  37. data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/revision.h +5 -0
  38. data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/rubyparser.h +628 -0
  39. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/symbol.h +1 -1
  40. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/thread_pthread.h +11 -13
  41. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/thread_win32.h +0 -5
  42. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/version.h +1 -1
  43. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm.inc +303 -404
  44. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_callinfo.h +50 -16
  45. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_core.h +29 -47
  46. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_exec.h +11 -10
  47. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_insnhelper.h +20 -23
  48. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_opts.h +0 -5
  49. data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/yjit.h +4 -6
  50. data/lib/debase/ruby_core_source/version.rb +1 -1
  51. metadata +119 -115
  52. data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/darray.h +0 -179
  53. data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/io.h +0 -38
  54. data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/parse.h +0 -25
  55. data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/node.h +0 -514
  56. data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/opt_sc.inc +0 -109
  57. data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/revision.h +0 -5
  58. data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/transient_heap.h +0 -65
  59. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/addr2line.h +0 -0
  60. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/builtin.h +0 -0
  61. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ccan/build_assert/build_assert.h +0 -0
  62. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ccan/check_type/check_type.h +0 -0
  63. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ccan/container_of/container_of.h +0 -0
  64. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ccan/list/list.h +0 -0
  65. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ccan/str/str.h +0 -0
  66. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/constant.h +0 -0
  67. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/dln.h +0 -0
  68. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/encindex.h +0 -0
  69. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/hrtime.h +0 -0
  70. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/id_table.h +0 -0
  71. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/insns.inc +0 -0
  72. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/basic_operators.h +0 -0
  73. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/bignum.h +0 -0
  74. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/compar.h +0 -0
  75. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/compilers.h +0 -0
  76. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/complex.h +0 -0
  77. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/cont.h +0 -0
  78. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/dir.h +0 -0
  79. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/enc.h +0 -0
  80. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/encoding.h +0 -0
  81. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/enum.h +0 -0
  82. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/enumerator.h +0 -0
  83. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/eval.h +0 -0
  84. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/file.h +0 -0
  85. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/fixnum.h +0 -0
  86. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/imemo.h +0 -0
  87. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/inits.h +0 -0
  88. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/load.h +0 -0
  89. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/loadpath.h +0 -0
  90. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/math.h +0 -0
  91. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/missing.h +0 -0
  92. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/numeric.h +0 -0
  93. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/object.h +0 -0
  94. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/proc.h +0 -0
  95. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/ractor.h +0 -0
  96. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/random.h +0 -0
  97. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/rational.h +0 -0
  98. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/sanitizers.h +0 -0
  99. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/serial.h +0 -0
  100. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/static_assert.h +0 -0
  101. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/symbol.h +0 -0
  102. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/time.h +0 -0
  103. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/transcode.h +0 -0
  104. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/util.h +0 -0
  105. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/warnings.h +0 -0
  106. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal.h +0 -0
  107. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/known_errors.inc +0 -0
  108. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/node_name.inc +0 -0
  109. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/optinsn.inc +0 -0
  110. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/optunifs.inc +0 -0
  111. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/probes_helper.h +0 -0
  112. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/regenc.h +0 -0
  113. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/regint.h +0 -0
  114. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/regparse.h +0 -0
  115. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/rjit.h +0 -0
  116. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/rjit_c.h +0 -0
  117. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ruby_assert.h +0 -0
  118. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ruby_atomic.h +0 -0
  119. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/shape.h +0 -0
  120. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/siphash.h +0 -0
  121. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/thread_none.h +0 -0
  122. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/timev.h +0 -0
  123. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/transcode_data.h +0 -0
  124. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/variable.h +0 -0
  125. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_call_iseq_optimized.inc +0 -0
  126. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_debug.h +0 -0
  127. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_sync.h +0 -0
  128. /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vmtc.inc +0 -0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debase-ruby_core_source
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Moseley
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-05-24 00:00:00.000000000 Z
13
+ date: 2023-09-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: archive-tar-minitar
@@ -2138,119 +2138,123 @@ files:
2138
2138
  - lib/debase/ruby_core_source/ruby-3.2.0-p0/vm_sync.h
2139
2139
  - lib/debase/ruby_core_source/ruby-3.2.0-p0/vmtc.inc
2140
2140
  - lib/debase/ruby_core_source/ruby-3.2.0-p0/yjit.h
2141
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/addr2line.h
2142
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/builtin.h
2143
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/ccan/build_assert/build_assert.h
2144
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/ccan/check_type/check_type.h
2145
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/ccan/container_of/container_of.h
2146
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/ccan/list/list.h
2147
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/ccan/str/str.h
2148
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/constant.h
2149
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/darray.h
2150
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/debug_counter.h
2151
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/dln.h
2152
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/encindex.h
2153
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/eval_intern.h
2154
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/hrtime.h
2155
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/id.h
2156
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/id_table.h
2157
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/insns.inc
2158
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/insns_info.inc
2159
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal.h
2160
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/array.h
2161
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/basic_operators.h
2162
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/bignum.h
2163
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/bits.h
2164
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/class.h
2165
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/cmdlineopt.h
2166
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/compar.h
2167
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/compile.h
2168
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/compilers.h
2169
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/complex.h
2170
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/cont.h
2171
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/dir.h
2172
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/enc.h
2173
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/encoding.h
2174
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/enum.h
2175
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/enumerator.h
2176
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/error.h
2177
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/eval.h
2178
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/file.h
2179
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/fixnum.h
2180
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/gc.h
2181
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/hash.h
2182
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/imemo.h
2183
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/inits.h
2184
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/io.h
2185
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/load.h
2186
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/loadpath.h
2187
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/math.h
2188
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/missing.h
2189
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/numeric.h
2190
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/object.h
2191
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/parse.h
2192
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/proc.h
2193
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/process.h
2194
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/ractor.h
2195
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/random.h
2196
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/range.h
2197
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/rational.h
2198
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/re.h
2199
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/sanitizers.h
2200
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/serial.h
2201
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/signal.h
2202
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/static_assert.h
2203
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/string.h
2204
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/struct.h
2205
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/symbol.h
2206
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/thread.h
2207
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/time.h
2208
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/transcode.h
2209
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/util.h
2210
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/variable.h
2211
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/vm.h
2212
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/warnings.h
2213
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/iseq.h
2214
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/known_errors.inc
2215
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/method.h
2216
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/node.h
2217
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/node_name.inc
2218
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/opt_sc.inc
2219
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/optinsn.inc
2220
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/optunifs.inc
2221
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/parse.h
2222
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/probes_helper.h
2223
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/ractor_core.h
2224
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/regenc.h
2225
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/regint.h
2226
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/regparse.h
2227
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/revision.h
2228
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/rjit.h
2229
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/rjit_c.h
2230
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/ruby_assert.h
2231
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/ruby_atomic.h
2232
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/shape.h
2233
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/siphash.h
2234
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/symbol.h
2235
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/thread_none.h
2236
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/thread_pthread.h
2237
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/thread_win32.h
2238
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/timev.h
2239
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/transcode_data.h
2240
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/transient_heap.h
2241
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/variable.h
2242
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/version.h
2243
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/vm.inc
2244
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/vm_call_iseq_optimized.inc
2245
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/vm_callinfo.h
2246
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/vm_core.h
2247
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/vm_debug.h
2248
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/vm_exec.h
2249
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/vm_insnhelper.h
2250
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/vm_opts.h
2251
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/vm_sync.h
2252
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/vmtc.inc
2253
- - lib/debase/ruby_core_source/ruby-3.3.0-preview1/yjit.h
2141
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/addr2line.h
2142
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/builtin.h
2143
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/ccan/build_assert/build_assert.h
2144
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/ccan/check_type/check_type.h
2145
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/ccan/container_of/container_of.h
2146
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/ccan/list/list.h
2147
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/ccan/str/str.h
2148
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/constant.h
2149
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/darray.h
2150
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/debug_counter.h
2151
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/dln.h
2152
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/encindex.h
2153
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/eval_intern.h
2154
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/hrtime.h
2155
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/id.h
2156
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/id_table.h
2157
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/insns.inc
2158
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/insns_info.inc
2159
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal.h
2160
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/array.h
2161
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/basic_operators.h
2162
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/bignum.h
2163
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/bits.h
2164
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/class.h
2165
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/cmdlineopt.h
2166
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/compar.h
2167
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/compile.h
2168
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/compilers.h
2169
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/complex.h
2170
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/cont.h
2171
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/dir.h
2172
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/enc.h
2173
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/encoding.h
2174
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/enum.h
2175
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/enumerator.h
2176
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/error.h
2177
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/eval.h
2178
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/file.h
2179
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/fixnum.h
2180
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/gc.h
2181
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/hash.h
2182
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/imemo.h
2183
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/inits.h
2184
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/io.h
2185
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/load.h
2186
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/loadpath.h
2187
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/math.h
2188
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/missing.h
2189
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/numeric.h
2190
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/object.h
2191
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/parse.h
2192
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/proc.h
2193
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/process.h
2194
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/ractor.h
2195
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/random.h
2196
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/range.h
2197
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/rational.h
2198
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/re.h
2199
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/ruby_parser.h
2200
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/sanitizers.h
2201
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/serial.h
2202
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/signal.h
2203
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/static_assert.h
2204
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/string.h
2205
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/struct.h
2206
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/symbol.h
2207
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/thread.h
2208
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/time.h
2209
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/transcode.h
2210
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/util.h
2211
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/variable.h
2212
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/vm.h
2213
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/warnings.h
2214
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/iseq.h
2215
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/known_errors.inc
2216
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/method.h
2217
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/node.h
2218
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/node_name.inc
2219
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/optinsn.inc
2220
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/optunifs.inc
2221
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/parse.h
2222
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_bits.h
2223
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_node.h
2224
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_st.h
2225
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_value.h
2226
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/probes_helper.h
2227
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/ractor_core.h
2228
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/regenc.h
2229
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/regint.h
2230
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/regparse.h
2231
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/revision.h
2232
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/rjit.h
2233
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/rjit_c.h
2234
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/ruby_assert.h
2235
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/ruby_atomic.h
2236
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/rubyparser.h
2237
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/shape.h
2238
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/siphash.h
2239
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/symbol.h
2240
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/thread_none.h
2241
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/thread_pthread.h
2242
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/thread_win32.h
2243
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/timev.h
2244
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/transcode_data.h
2245
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/variable.h
2246
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/version.h
2247
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/vm.inc
2248
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/vm_call_iseq_optimized.inc
2249
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/vm_callinfo.h
2250
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/vm_core.h
2251
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/vm_debug.h
2252
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/vm_exec.h
2253
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/vm_insnhelper.h
2254
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/vm_opts.h
2255
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/vm_sync.h
2256
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/vmtc.inc
2257
+ - lib/debase/ruby_core_source/ruby-3.3.0-preview2/yjit.h
2254
2258
  - lib/debase/ruby_core_source/version.rb
2255
2259
  homepage: https://github.com/ruby-debug/debase-ruby_core_source
2256
2260
  licenses:
@@ -1,179 +0,0 @@
1
- #ifndef RUBY_DARRAY_H
2
- #define RUBY_DARRAY_H
3
-
4
- #include <stdint.h>
5
- #include <stddef.h>
6
- #include <stdlib.h>
7
-
8
- // Type for a dynamic array. Use to declare a dynamic array.
9
- // It is a pointer so it fits in st_table nicely. Designed
10
- // to be fairly type-safe.
11
- //
12
- // NULL is a valid empty dynamic array.
13
- //
14
- // Example:
15
- // rb_darray(char) char_array = NULL;
16
- // rb_darray_append(&char_array, 'e');
17
- // printf("pushed %c\n", *rb_darray_ref(char_array, 0));
18
- // rb_darray_free(char_array);
19
- //
20
- #define rb_darray(T) struct { rb_darray_meta_t meta; T data[]; } *
21
-
22
- // Copy an element out of the array. Warning: not bounds checked.
23
- //
24
- // T rb_darray_get(rb_darray(T) ary, size_t idx);
25
- //
26
- #define rb_darray_get(ary, idx) ((ary)->data[(idx)])
27
-
28
- // Assign to an element. Warning: not bounds checked.
29
- //
30
- // void rb_darray_set(rb_darray(T) ary, size_t idx, T element);
31
- //
32
- #define rb_darray_set(ary, idx, element) ((ary)->data[(idx)] = (element))
33
-
34
- // Get a pointer to an element. Warning: not bounds checked.
35
- //
36
- // T *rb_darray_ref(rb_darray(T) ary, size_t idx);
37
- //
38
- #define rb_darray_ref(ary, idx) (&((ary)->data[(idx)]))
39
-
40
- // Copy a new element into the array. ptr_to_ary is evaluated multiple times.
41
- //
42
- // void rb_darray_append(rb_darray(T) *ptr_to_ary, T element);
43
- //
44
- #define rb_darray_append(ptr_to_ary, element) do { \
45
- rb_darray_ensure_space((ptr_to_ary), sizeof(**(ptr_to_ary)), \
46
- sizeof((*(ptr_to_ary))->data[0])); \
47
- rb_darray_set(*(ptr_to_ary), \
48
- (*(ptr_to_ary))->meta.size, \
49
- (element)); \
50
- (*(ptr_to_ary))->meta.size++; \
51
- } while (0)
52
-
53
-
54
- // Last element of the array
55
- //
56
- #define rb_darray_back(ary) ((ary)->data[(ary)->meta.size - 1])
57
-
58
- // Remove the last element of the array.
59
- //
60
- #define rb_darray_pop_back(ary) ((ary)->meta.size--)
61
-
62
- // Remove element at idx and replace it by the last element
63
- #define rb_darray_remove_unordered(ary, idx) do { \
64
- rb_darray_set(ary, idx, rb_darray_back(ary)); \
65
- rb_darray_pop_back(ary); \
66
- } while (0);
67
-
68
- // Iterate over items of the array in a for loop
69
- //
70
- #define rb_darray_foreach(ary, idx_name, elem_ptr_var) \
71
- for (size_t idx_name = 0; idx_name < rb_darray_size(ary) && ((elem_ptr_var) = rb_darray_ref(ary, idx_name)); ++idx_name)
72
-
73
- // Iterate over valid indices in the array in a for loop
74
- //
75
- #define rb_darray_for(ary, idx_name) \
76
- for (size_t idx_name = 0; idx_name < rb_darray_size(ary); ++idx_name)
77
-
78
- // Make a dynamic array of a certain size. All bytes backing the elements are set to zero.
79
- //
80
- // Note that NULL is a valid empty dynamic array.
81
- //
82
- // void rb_darray_make(rb_darray(T) *ptr_to_ary, size_t size);
83
- //
84
- #define rb_darray_make(ptr_to_ary, size) \
85
- rb_darray_make_impl((ptr_to_ary), size, sizeof(**(ptr_to_ary)), \
86
- sizeof((*(ptr_to_ary))->data[0]))
87
-
88
- #define rb_darray_data_ptr(ary) ((ary)->data)
89
-
90
- // Set the size of the array to zero without freeing the backing memory.
91
- // Allows reusing the same array.
92
- //
93
- #define rb_darray_clear(ary) (ary->meta.size = 0)
94
-
95
- typedef struct rb_darray_meta {
96
- size_t size;
97
- size_t capa;
98
- } rb_darray_meta_t;
99
-
100
- // Get the size of the dynamic array.
101
- //
102
- static inline size_t
103
- rb_darray_size(const void *ary)
104
- {
105
- const rb_darray_meta_t *meta = ary;
106
- return meta ? meta->size : 0;
107
- }
108
-
109
- // Get the capacity of the dynamic array.
110
- //
111
- static inline size_t
112
- rb_darray_capa(const void *ary)
113
- {
114
- const rb_darray_meta_t *meta = ary;
115
- return meta ? meta->capa : 0;
116
- }
117
-
118
- // Free the dynamic array.
119
- //
120
- static inline void
121
- rb_darray_free(void *ary)
122
- {
123
- rb_darray_meta_t *meta = ary;
124
- ruby_sized_xfree(ary, meta->capa);
125
- }
126
-
127
- // Internal function
128
- // Ensure there is space for one more element.
129
- // Note: header_size can be bigger than sizeof(rb_darray_meta_t) when T is __int128_t, for example.
130
- static inline void
131
- rb_darray_ensure_space(void *ptr_to_ary, size_t header_size, size_t element_size)
132
- {
133
- rb_darray_meta_t **ptr_to_ptr_to_meta = ptr_to_ary;
134
- rb_darray_meta_t *meta = *ptr_to_ptr_to_meta;
135
- size_t current_capa = rb_darray_capa(meta);
136
- if (rb_darray_size(meta) < current_capa) return;
137
-
138
- // Double the capacity
139
- size_t new_capa = current_capa == 0 ? 1 : current_capa * 2;
140
-
141
- rb_darray_meta_t *doubled_ary = rb_xrealloc_mul_add(meta, new_capa, element_size, header_size);
142
- // rb_xrealloc functions guarantee that NULL is not returned
143
- assert(doubled_ary != NULL);
144
-
145
- if (meta == NULL) {
146
- // First allocation. Initialize size. On subsequence allocations
147
- // realloc takes care of carrying over the size.
148
- doubled_ary->size = 0;
149
- }
150
-
151
- doubled_ary->capa = new_capa;
152
-
153
- // We don't have access to the type of the dynamic array in function context.
154
- // Write out result with memcpy to avoid strict aliasing issue.
155
- memcpy(ptr_to_ary, &doubled_ary, sizeof(doubled_ary));
156
- }
157
-
158
- static inline void
159
- rb_darray_make_impl(void *ptr_to_ary, size_t array_size, size_t header_size, size_t element_size)
160
- {
161
- rb_darray_meta_t **ptr_to_ptr_to_meta = ptr_to_ary;
162
- if (array_size == 0) {
163
- *ptr_to_ptr_to_meta = NULL;
164
- return;
165
- }
166
-
167
- rb_darray_meta_t *meta = rb_xcalloc_mul_add(array_size, element_size, header_size);
168
- // rb_xcalloc functions guarantee that NULL is not returned
169
- assert(meta != NULL);
170
-
171
- meta->size = array_size;
172
- meta->capa = array_size;
173
-
174
- // We don't have access to the type of the dynamic array in function context.
175
- // Write out result with memcpy to avoid strict aliasing issue.
176
- memcpy(ptr_to_ary, &meta, sizeof(meta));
177
- }
178
-
179
- #endif /* RUBY_DARRAY_H */
@@ -1,38 +0,0 @@
1
- #ifndef INTERNAL_IO_H /*-*-C-*-vi:se ft=c:*/
2
- #define INTERNAL_IO_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 IO.
10
- */
11
- #include "ruby/ruby.h" /* for VALUE */
12
- #include "ruby/io.h" /* for rb_io_t */
13
-
14
- /* io.c */
15
- void ruby_set_inplace_mode(const char *);
16
- void rb_stdio_set_default_encoding(void);
17
- VALUE rb_io_flush_raw(VALUE, int);
18
- size_t rb_io_memsize(const rb_io_t *);
19
- int rb_stderr_tty_p(void);
20
- void rb_io_fptr_finalize_internal(void *ptr);
21
- #ifdef rb_io_fptr_finalize
22
- # undef rb_io_fptr_finalize
23
- #endif
24
- #define rb_io_fptr_finalize rb_io_fptr_finalize_internal
25
- VALUE rb_io_popen(VALUE pname, VALUE pmode, VALUE env, VALUE opt);
26
-
27
- VALUE rb_io_prep_stdin(void);
28
- VALUE rb_io_prep_stdout(void);
29
- VALUE rb_io_prep_stderr(void);
30
-
31
- RUBY_SYMBOL_EXPORT_BEGIN
32
- /* io.c (export) */
33
- void rb_maygvl_fd_fix_cloexec(int fd);
34
- int rb_gc_for_fd(int err);
35
- void rb_write_error_str(VALUE mesg);
36
- RUBY_SYMBOL_EXPORT_END
37
-
38
- #endif /* INTERNAL_IO_H */
@@ -1,25 +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 "ruby/ruby.h" /* for VALUE */
12
- struct rb_iseq_struct; /* in vm_core.h */
13
-
14
- /* parse.y */
15
- VALUE rb_parser_set_yydebug(VALUE, VALUE);
16
- void *rb_parser_load_file(VALUE parser, VALUE name);
17
- void rb_parser_keep_script_lines(VALUE vparser);
18
- void rb_parser_error_tolerant(VALUE vparser);
19
- void rb_parser_keep_tokens(VALUE vparser);
20
-
21
- RUBY_SYMBOL_EXPORT_BEGIN
22
- VALUE rb_parser_set_context(VALUE, const struct rb_iseq_struct *, int);
23
- RUBY_SYMBOL_EXPORT_END
24
-
25
- #endif /* INTERNAL_PARSE_H */