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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/darray.h +246 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/debug_counter.h +7 -10
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/eval_intern.h +3 -1
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/id.h +44 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/insns_info.inc +68 -94
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/array.h +2 -20
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/bits.h +6 -2
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/class.h +7 -2
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/cmdlineopt.h +3 -1
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/compile.h +0 -1
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/error.h +24 -2
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/gc.h +28 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/hash.h +18 -44
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/io.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/parse.h +133 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/process.h +0 -14
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/range.h +2 -2
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/re.h +1 -1
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/internal/ruby_parser.h +69 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/signal.h +4 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/string.h +15 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/struct.h +9 -34
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/thread.h +13 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/variable.h +16 -33
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/vm.h +5 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/iseq.h +4 -4
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/method.h +1 -1
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/node.h +125 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/parse.h +6 -4
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_bits.h +564 -0
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_node.h +133 -0
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_st.h +162 -0
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/parser_value.h +106 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ractor_core.h +3 -3
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/revision.h +5 -0
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview2/rubyparser.h +628 -0
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/symbol.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/thread_pthread.h +11 -13
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/thread_win32.h +0 -5
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/version.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm.inc +303 -404
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_callinfo.h +50 -16
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_core.h +29 -47
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_exec.h +11 -10
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_insnhelper.h +20 -23
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_opts.h +0 -5
- data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/yjit.h +4 -6
- data/lib/debase/ruby_core_source/version.rb +1 -1
- metadata +119 -115
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/darray.h +0 -179
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/io.h +0 -38
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/internal/parse.h +0 -25
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/node.h +0 -514
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/opt_sc.inc +0 -109
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/revision.h +0 -5
- data/lib/debase/ruby_core_source/ruby-3.3.0-preview1/transient_heap.h +0 -65
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/addr2line.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/builtin.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ccan/build_assert/build_assert.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ccan/check_type/check_type.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ccan/container_of/container_of.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ccan/list/list.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ccan/str/str.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/constant.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/dln.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/encindex.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/hrtime.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/id_table.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/insns.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/basic_operators.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/bignum.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/compar.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/compilers.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/complex.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/cont.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/dir.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/enc.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/encoding.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/enum.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/enumerator.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/eval.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/file.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/fixnum.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/imemo.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/inits.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/load.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/loadpath.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/math.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/missing.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/numeric.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/object.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/proc.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/ractor.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/random.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/rational.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/sanitizers.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/serial.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/static_assert.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/symbol.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/time.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/transcode.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/util.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal/warnings.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/internal.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/known_errors.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/node_name.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/optinsn.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/optunifs.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/probes_helper.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/regenc.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/regint.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/regparse.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/rjit.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/rjit_c.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ruby_assert.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/ruby_atomic.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/shape.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/siphash.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/thread_none.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/timev.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/transcode_data.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/variable.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_call_iseq_optimized.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_debug.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.3.0-preview1 → ruby-3.3.0-preview2}/vm_sync.h +0 -0
- /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.
|
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-
|
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-
|
2142
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2143
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2144
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2145
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2146
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2147
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2148
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2149
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2150
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2151
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2152
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2153
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2154
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2155
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2156
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2157
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2158
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2159
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2160
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2161
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2162
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2163
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2164
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2165
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2166
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2167
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2168
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2169
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2170
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2171
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2172
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2173
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2174
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2175
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2176
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2177
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2178
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2179
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2180
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2181
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2182
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2183
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2184
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2185
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2186
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2187
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2188
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2189
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2190
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2191
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2192
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2193
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2194
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2195
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2196
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2197
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2198
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2199
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2200
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2201
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2202
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2203
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2204
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2205
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2206
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2207
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2208
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2209
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2210
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2211
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2212
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2213
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2214
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2215
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2216
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2217
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2218
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2219
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2220
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2221
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2222
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2223
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2224
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2225
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2226
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2227
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2228
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2229
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2230
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2231
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2232
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2233
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2234
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2235
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2236
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2237
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2238
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2239
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2240
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2241
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2242
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2243
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2244
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2245
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2246
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2247
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2248
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2249
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2250
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2251
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2252
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
2253
|
-
- lib/debase/ruby_core_source/ruby-3.3.0-
|
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 */
|