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.
- checksums.yaml +4 -4
- data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/thread_win32.h +36 -0
- data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/thread_win32.h +36 -0
- data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/thread_win32.h +36 -0
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/constant.h +53 -0
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/debug_counter.h +423 -0
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_sync.h +137 -0
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/constant.h +53 -0
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/debug_counter.h +423 -0
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_sync.h +137 -0
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/constant.h +53 -0
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/debug_counter.h +423 -0
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/vm_sync.h +137 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/constant.h +53 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/debug_counter.h +425 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/vm_sync.h +160 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/constant.h +53 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/debug_counter.h +426 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/vm_sync.h +160 -0
- data/lib/datadog/ruby_core_source/version.rb +1 -1
- metadata +20 -224
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/bignum.h +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/bits.h +0 -568
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/cmdlineopt.h +0 -65
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/compar.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/compile.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/complex.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/cont.h +0 -35
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/dir.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/enc.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/encoding.h +0 -35
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/enum.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/enumerator.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/error.h +0 -216
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/eval.h +0 -32
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/file.h +0 -38
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/fixnum.h +0 -184
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/hash.h +0 -191
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/inits.h +0 -50
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/io.h +0 -137
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/load.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/loadpath.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/math.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/missing.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/numeric.h +0 -273
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/object.h +0 -60
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/parse.h +0 -108
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/proc.h +0 -30
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/process.h +0 -124
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/ractor.h +0 -6
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/random.h +0 -17
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/range.h +0 -40
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/rational.h +0 -71
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/re.h +0 -28
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/ruby_parser.h +0 -69
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/sanitizers.h +0 -186
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/signal.h +0 -25
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/string.h +0 -159
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/struct.h +0 -127
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/symbol.h +0 -45
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/thread.h +0 -78
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/time.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/transcode.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/internal/util.h +0 -27
- data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/prism/extension.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/bignum.h +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/bits.h +0 -568
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/cmdlineopt.h +0 -65
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/compar.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/compile.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/complex.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/cont.h +0 -35
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/dir.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/enc.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/encoding.h +0 -35
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/enum.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/enumerator.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/error.h +0 -216
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/eval.h +0 -33
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/file.h +0 -38
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/fixnum.h +0 -184
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/hash.h +0 -191
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/inits.h +0 -50
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/io.h +0 -137
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/load.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/loadpath.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/math.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/missing.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/numeric.h +0 -273
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/object.h +0 -62
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/parse.h +0 -108
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/proc.h +0 -30
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/process.h +0 -124
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/ractor.h +0 -6
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/random.h +0 -17
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/range.h +0 -40
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/rational.h +0 -71
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/re.h +0 -28
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/ruby_parser.h +0 -69
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/sanitizers.h +0 -186
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/signal.h +0 -25
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/string.h +0 -160
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/struct.h +0 -127
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/symbol.h +0 -45
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/thread.h +0 -78
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/time.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/transcode.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/internal/util.h +0 -27
- data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/prism/extension.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/bignum.h +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/bits.h +0 -650
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/cmdlineopt.h +0 -65
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/compar.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/compile.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/complex.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/cont.h +0 -35
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/dir.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/enc.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/encoding.h +0 -38
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/enum.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/enumerator.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/error.h +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/eval.h +0 -33
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/file.h +0 -38
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/fixnum.h +0 -185
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/hash.h +0 -192
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/inits.h +0 -47
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/io.h +0 -143
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/load.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/loadpath.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/math.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/missing.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/numeric.h +0 -274
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/object.h +0 -63
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/parse.h +0 -130
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/proc.h +0 -31
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/process.h +0 -124
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/ractor.h +0 -10
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/random.h +0 -17
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/range.h +0 -40
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/rational.h +0 -71
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/re.h +0 -28
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/ruby_parser.h +0 -102
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/signal.h +0 -24
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/st.h +0 -11
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/string.h +0 -198
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/struct.h +0 -127
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/symbol.h +0 -45
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/thread.h +0 -108
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/time.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/transcode.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/internal/util.h +0 -27
- data/lib/datadog/ruby_core_source/ruby-3.4.0-p0/prism/extension.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/bignum.h +0 -256
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/bits.h +0 -647
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/cmdlineopt.h +0 -64
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/compar.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/compile.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/complex.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/concurrent_set.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/cont.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/dir.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/enc.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/encoding.h +0 -39
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/enum.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/enumerator.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/error.h +0 -251
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/eval.h +0 -43
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/file.h +0 -38
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/fixnum.h +0 -185
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/hash.h +0 -194
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/inits.h +0 -51
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/io.h +0 -163
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/load.h +0 -20
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/loadpath.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/math.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/missing.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/numeric.h +0 -323
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/object.h +0 -63
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/parse.h +0 -131
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/proc.h +0 -30
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/process.h +0 -124
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/ractor.h +0 -10
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/random.h +0 -17
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/range.h +0 -40
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/rational.h +0 -71
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/re.h +0 -33
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/ruby_parser.h +0 -102
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/signal.h +0 -25
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/st.h +0 -11
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/string.h +0 -203
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/struct.h +0 -160
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/symbol.h +0 -46
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/thread.h +0 -112
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/time.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/transcode.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/util.h +0 -27
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/prism/extension.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/bignum.h +0 -256
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/bits.h +0 -647
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/cmdlineopt.h +0 -64
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/compar.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/compile.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/complex.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/concurrent_set.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/cont.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/dir.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/enc.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/encoding.h +0 -39
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/enum.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/enumerator.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/error.h +0 -251
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/eval.h +0 -43
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/file.h +0 -38
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/fixnum.h +0 -185
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/hash.h +0 -194
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/inits.h +0 -51
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/io.h +0 -163
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/load.h +0 -20
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/loadpath.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/math.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/missing.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/numeric.h +0 -323
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/object.h +0 -63
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/parse.h +0 -131
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/proc.h +0 -30
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/process.h +0 -124
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/ractor.h +0 -10
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/random.h +0 -17
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/range.h +0 -40
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/rational.h +0 -73
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/re.h +0 -33
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/ruby_parser.h +0 -102
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/signal.h +0 -25
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/st.h +0 -11
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/string.h +0 -203
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/struct.h +0 -160
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/symbol.h +0 -46
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/thread.h +0 -112
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/time.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/transcode.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/util.h +0 -27
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/extension.h +0 -19
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_FIXNUM_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_FIXNUM_H
|
|
3
|
-
/**
|
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
|
8
|
-
* file COPYING are met. Consult the file for details.
|
|
9
|
-
* @brief Internal header for Fixnums.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/internal/config.h" /* for HAVE_LONG_LONG */
|
|
12
|
-
#include <limits.h> /* for CHAR_BIT */
|
|
13
|
-
#include "internal/bits.h" /* for MUL_OVERFLOW_FIXNUM_P */
|
|
14
|
-
#include "internal/compilers.h" /* for __has_builtin */
|
|
15
|
-
#include "ruby/internal/stdbool.h" /* for bool */
|
|
16
|
-
#include "ruby/intern.h" /* for rb_big_mul */
|
|
17
|
-
#include "ruby/ruby.h" /* for RB_FIXABLE */
|
|
18
|
-
|
|
19
|
-
#if HAVE_LONG_LONG && SIZEOF_LONG * 2 <= SIZEOF_LONG_LONG
|
|
20
|
-
# define DLONG LONG_LONG
|
|
21
|
-
# define DL2NUM(x) LL2NUM(x)
|
|
22
|
-
#elif defined(HAVE_INT128_T) && !(defined(__OpenBSD__) && defined(__mips64__))
|
|
23
|
-
# define DLONG int128_t
|
|
24
|
-
# define DL2NUM(x) (RB_FIXABLE(x) ? LONG2FIX(x) : rb_int128t2big(x))
|
|
25
|
-
VALUE rb_int128t2big(int128_t n); /* in bignum.c */
|
|
26
|
-
#endif
|
|
27
|
-
|
|
28
|
-
static inline long rb_overflowed_fix_to_int(long x);
|
|
29
|
-
static inline VALUE rb_fix_plus_fix(VALUE x, VALUE y);
|
|
30
|
-
static inline VALUE rb_fix_minus_fix(VALUE x, VALUE y);
|
|
31
|
-
static inline VALUE rb_fix_mul_fix(VALUE x, VALUE y);
|
|
32
|
-
static inline void rb_fix_divmod_fix(VALUE x, VALUE y, VALUE *divp, VALUE *modp);
|
|
33
|
-
static inline VALUE rb_fix_div_fix(VALUE x, VALUE y);
|
|
34
|
-
static inline VALUE rb_fix_mod_fix(VALUE x, VALUE y);
|
|
35
|
-
static inline bool FIXNUM_POSITIVE_P(VALUE num);
|
|
36
|
-
static inline bool FIXNUM_NEGATIVE_P(VALUE num);
|
|
37
|
-
static inline bool FIXNUM_ZERO_P(VALUE num);
|
|
38
|
-
|
|
39
|
-
static inline long
|
|
40
|
-
rb_overflowed_fix_to_int(long x)
|
|
41
|
-
{
|
|
42
|
-
return (long)((unsigned long)(x >> 1) ^ (1LU << (SIZEOF_LONG * CHAR_BIT - 1)));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
static inline VALUE
|
|
46
|
-
rb_fix_plus_fix(VALUE x, VALUE y)
|
|
47
|
-
{
|
|
48
|
-
#if !__has_builtin(__builtin_add_overflow)
|
|
49
|
-
long lz = FIX2LONG(x) + FIX2LONG(y);
|
|
50
|
-
return LONG2NUM(lz);
|
|
51
|
-
#else
|
|
52
|
-
long lz;
|
|
53
|
-
/* NOTE
|
|
54
|
-
* (1) `LONG2FIX(FIX2LONG(x)+FIX2LONG(y))`
|
|
55
|
-
+ = `((lx*2+1)/2 + (ly*2+1)/2)*2+1`
|
|
56
|
-
+ = `lx*2 + ly*2 + 1`
|
|
57
|
-
+ = `(lx*2+1) + (ly*2+1) - 1`
|
|
58
|
-
+ = `x + y - 1`
|
|
59
|
-
* (2) Fixnum's LSB is always 1.
|
|
60
|
-
* It means you can always run `x - 1` without overflow.
|
|
61
|
-
* (3) Of course `z = x + (y-1)` may overflow.
|
|
62
|
-
* At that time true value is
|
|
63
|
-
* * positive: 0b0 1xxx...1, and z = 0b1xxx...1
|
|
64
|
-
* * negative: 0b1 0xxx...1, and z = 0b0xxx...1
|
|
65
|
-
* To convert this true value to long,
|
|
66
|
-
* (a) Use arithmetic shift
|
|
67
|
-
* * positive: 0b11xxx...
|
|
68
|
-
* * negative: 0b00xxx...
|
|
69
|
-
* (b) invert MSB
|
|
70
|
-
* * positive: 0b01xxx...
|
|
71
|
-
* * negative: 0b10xxx...
|
|
72
|
-
*/
|
|
73
|
-
if (__builtin_add_overflow((long)x, (long)y-1, &lz)) {
|
|
74
|
-
return rb_int2big(rb_overflowed_fix_to_int(lz));
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
return (VALUE)lz;
|
|
78
|
-
}
|
|
79
|
-
#endif
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
static inline VALUE
|
|
83
|
-
rb_fix_minus_fix(VALUE x, VALUE y)
|
|
84
|
-
{
|
|
85
|
-
#if !__has_builtin(__builtin_sub_overflow)
|
|
86
|
-
long lz = FIX2LONG(x) - FIX2LONG(y);
|
|
87
|
-
return LONG2NUM(lz);
|
|
88
|
-
#else
|
|
89
|
-
long lz;
|
|
90
|
-
if (__builtin_sub_overflow((long)x, (long)y-1, &lz)) {
|
|
91
|
-
return rb_int2big(rb_overflowed_fix_to_int(lz));
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
return (VALUE)lz;
|
|
95
|
-
}
|
|
96
|
-
#endif
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/* arguments must be Fixnum */
|
|
100
|
-
static inline VALUE
|
|
101
|
-
rb_fix_mul_fix(VALUE x, VALUE y)
|
|
102
|
-
{
|
|
103
|
-
long lx = FIX2LONG(x);
|
|
104
|
-
long ly = FIX2LONG(y);
|
|
105
|
-
#ifdef DLONG
|
|
106
|
-
return DL2NUM((DLONG)lx * (DLONG)ly);
|
|
107
|
-
#else
|
|
108
|
-
if (MUL_OVERFLOW_FIXNUM_P(lx, ly)) {
|
|
109
|
-
return rb_big_mul(rb_int2big(lx), rb_int2big(ly));
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return LONG2FIX(lx * ly);
|
|
113
|
-
}
|
|
114
|
-
#endif
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/*
|
|
118
|
-
* This behaves different from C99 for negative arguments.
|
|
119
|
-
* Note that div may overflow fixnum.
|
|
120
|
-
*/
|
|
121
|
-
static inline void
|
|
122
|
-
rb_fix_divmod_fix(VALUE a, VALUE b, VALUE *divp, VALUE *modp)
|
|
123
|
-
{
|
|
124
|
-
/* assume / and % comply C99.
|
|
125
|
-
* ldiv(3) won't be inlined by GCC and clang.
|
|
126
|
-
* I expect / and % are compiled as single idiv.
|
|
127
|
-
*/
|
|
128
|
-
long x = FIX2LONG(a);
|
|
129
|
-
long y = FIX2LONG(b);
|
|
130
|
-
long div, mod;
|
|
131
|
-
if (x == FIXNUM_MIN && y == -1) {
|
|
132
|
-
if (divp) *divp = LONG2NUM(-FIXNUM_MIN);
|
|
133
|
-
if (modp) *modp = LONG2FIX(0);
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
div = x / y;
|
|
137
|
-
mod = x % y;
|
|
138
|
-
if (y > 0 ? mod < 0 : mod > 0) {
|
|
139
|
-
mod += y;
|
|
140
|
-
div -= 1;
|
|
141
|
-
}
|
|
142
|
-
if (divp) *divp = LONG2FIX(div);
|
|
143
|
-
if (modp) *modp = LONG2FIX(mod);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/* div() for Ruby
|
|
147
|
-
* This behaves different from C99 for negative arguments.
|
|
148
|
-
*/
|
|
149
|
-
static inline VALUE
|
|
150
|
-
rb_fix_div_fix(VALUE x, VALUE y)
|
|
151
|
-
{
|
|
152
|
-
VALUE div;
|
|
153
|
-
rb_fix_divmod_fix(x, y, &div, NULL);
|
|
154
|
-
return div;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/* mod() for Ruby
|
|
158
|
-
* This behaves different from C99 for negative arguments.
|
|
159
|
-
*/
|
|
160
|
-
static inline VALUE
|
|
161
|
-
rb_fix_mod_fix(VALUE x, VALUE y)
|
|
162
|
-
{
|
|
163
|
-
VALUE mod;
|
|
164
|
-
rb_fix_divmod_fix(x, y, NULL, &mod);
|
|
165
|
-
return mod;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
static inline bool
|
|
169
|
-
FIXNUM_POSITIVE_P(VALUE num)
|
|
170
|
-
{
|
|
171
|
-
return (SIGNED_VALUE)num > (SIGNED_VALUE)INT2FIX(0);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
static inline bool
|
|
175
|
-
FIXNUM_NEGATIVE_P(VALUE num)
|
|
176
|
-
{
|
|
177
|
-
return (SIGNED_VALUE)num < 0;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
static inline bool
|
|
181
|
-
FIXNUM_ZERO_P(VALUE num)
|
|
182
|
-
{
|
|
183
|
-
return num == INT2FIX(0);
|
|
184
|
-
}
|
|
185
|
-
#endif /* INTERNAL_FIXNUM_H */
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_HASH_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_HASH_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 Hash.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/internal/config.h"
|
|
12
|
-
#include <stddef.h> /* for size_t */
|
|
13
|
-
#include "ruby/internal/stdbool.h" /* for bool */
|
|
14
|
-
#include "ruby/ruby.h" /* for struct RBasic */
|
|
15
|
-
#include "ruby/st.h" /* for struct st_table */
|
|
16
|
-
|
|
17
|
-
#define RHASH_AR_TABLE_MAX_SIZE SIZEOF_VALUE
|
|
18
|
-
|
|
19
|
-
struct ar_table_struct;
|
|
20
|
-
typedef unsigned char ar_hint_t;
|
|
21
|
-
|
|
22
|
-
enum ruby_rhash_flags {
|
|
23
|
-
RHASH_PASS_AS_KEYWORDS = FL_USER1, /* FL 1 */
|
|
24
|
-
RHASH_PROC_DEFAULT = FL_USER2, /* FL 2 */
|
|
25
|
-
RHASH_ST_TABLE_FLAG = FL_USER3, /* FL 3 */
|
|
26
|
-
RHASH_AR_TABLE_SIZE_MASK = (FL_USER4|FL_USER5|FL_USER6|FL_USER7), /* FL 4..7 */
|
|
27
|
-
RHASH_AR_TABLE_SIZE_SHIFT = (FL_USHIFT+4),
|
|
28
|
-
RHASH_AR_TABLE_BOUND_MASK = (FL_USER8|FL_USER9|FL_USER10|FL_USER11), /* FL 8..11 */
|
|
29
|
-
RHASH_AR_TABLE_BOUND_SHIFT = (FL_USHIFT+8),
|
|
30
|
-
|
|
31
|
-
// we can not put it in "enum" because it can exceed "int" range.
|
|
32
|
-
#define RHASH_LEV_MASK (FL_USER13 | FL_USER14 | FL_USER15 | /* FL 13..19 */ \
|
|
33
|
-
FL_USER16 | FL_USER17 | FL_USER18 | FL_USER19)
|
|
34
|
-
|
|
35
|
-
RHASH_LEV_SHIFT = (FL_USHIFT + 13),
|
|
36
|
-
RHASH_LEV_MAX = 127, /* 7 bits */
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
typedef struct ar_table_pair_struct {
|
|
40
|
-
VALUE key;
|
|
41
|
-
VALUE val;
|
|
42
|
-
} ar_table_pair;
|
|
43
|
-
|
|
44
|
-
typedef struct ar_table_struct {
|
|
45
|
-
union {
|
|
46
|
-
ar_hint_t ary[RHASH_AR_TABLE_MAX_SIZE];
|
|
47
|
-
VALUE word;
|
|
48
|
-
} ar_hint;
|
|
49
|
-
/* 64bit CPU: 8B * 2 * 8 = 128B */
|
|
50
|
-
ar_table_pair pairs[RHASH_AR_TABLE_MAX_SIZE];
|
|
51
|
-
} ar_table;
|
|
52
|
-
|
|
53
|
-
struct RHash {
|
|
54
|
-
struct RBasic basic;
|
|
55
|
-
const VALUE ifnone;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
#define RHASH(obj) ((struct RHash *)(obj))
|
|
59
|
-
|
|
60
|
-
#ifdef RHASH_IFNONE
|
|
61
|
-
# undef RHASH_IFNONE
|
|
62
|
-
#endif
|
|
63
|
-
|
|
64
|
-
#ifdef RHASH_SIZE
|
|
65
|
-
# undef RHASH_SIZE
|
|
66
|
-
#endif
|
|
67
|
-
|
|
68
|
-
#ifdef RHASH_EMPTY_P
|
|
69
|
-
# undef RHASH_EMPTY_P
|
|
70
|
-
#endif
|
|
71
|
-
|
|
72
|
-
/* hash.c */
|
|
73
|
-
void rb_hash_st_table_set(VALUE hash, st_table *st);
|
|
74
|
-
VALUE rb_hash_default_value(VALUE hash, VALUE key);
|
|
75
|
-
VALUE rb_hash_set_default_proc(VALUE hash, VALUE proc);
|
|
76
|
-
long rb_dbl_long_hash(double d);
|
|
77
|
-
st_table *rb_init_identtable(void);
|
|
78
|
-
st_index_t rb_any_hash(VALUE a);
|
|
79
|
-
int rb_any_cmp(VALUE a, VALUE b);
|
|
80
|
-
VALUE rb_to_hash_type(VALUE obj);
|
|
81
|
-
VALUE rb_hash_key_str(VALUE);
|
|
82
|
-
VALUE rb_hash_values(VALUE hash);
|
|
83
|
-
VALUE rb_hash_rehash(VALUE hash);
|
|
84
|
-
int rb_hash_add_new_element(VALUE hash, VALUE key, VALUE val);
|
|
85
|
-
VALUE rb_hash_set_pair(VALUE hash, VALUE pair);
|
|
86
|
-
int rb_hash_stlike_delete(VALUE hash, st_data_t *pkey, st_data_t *pval);
|
|
87
|
-
int rb_hash_stlike_foreach_with_replace(VALUE hash, st_foreach_check_callback_func *func, st_update_callback_func *replace, st_data_t arg);
|
|
88
|
-
int rb_hash_stlike_update(VALUE hash, st_data_t key, st_update_callback_func *func, st_data_t arg);
|
|
89
|
-
VALUE rb_ident_hash_new_with_size(st_index_t size);
|
|
90
|
-
void rb_hash_free(VALUE hash);
|
|
91
|
-
RUBY_EXTERN VALUE rb_cHash_empty_frozen;
|
|
92
|
-
|
|
93
|
-
static inline unsigned RHASH_AR_TABLE_SIZE_RAW(VALUE h);
|
|
94
|
-
static inline VALUE RHASH_IFNONE(VALUE h);
|
|
95
|
-
static inline size_t RHASH_SIZE(VALUE h);
|
|
96
|
-
static inline bool RHASH_EMPTY_P(VALUE h);
|
|
97
|
-
static inline bool RHASH_AR_TABLE_P(VALUE h);
|
|
98
|
-
static inline bool RHASH_ST_TABLE_P(VALUE h);
|
|
99
|
-
static inline struct ar_table_struct *RHASH_AR_TABLE(VALUE h);
|
|
100
|
-
static inline st_table *RHASH_ST_TABLE(VALUE h);
|
|
101
|
-
static inline size_t RHASH_ST_SIZE(VALUE h);
|
|
102
|
-
static inline void RHASH_ST_CLEAR(VALUE h);
|
|
103
|
-
|
|
104
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
105
|
-
/* hash.c (export) */
|
|
106
|
-
VALUE rb_hash_delete_entry(VALUE hash, VALUE key);
|
|
107
|
-
VALUE rb_ident_hash_new(void);
|
|
108
|
-
int rb_hash_stlike_foreach(VALUE hash, st_foreach_callback_func *func, st_data_t arg);
|
|
109
|
-
RUBY_SYMBOL_EXPORT_END
|
|
110
|
-
|
|
111
|
-
VALUE rb_hash_new_with_size(st_index_t size);
|
|
112
|
-
VALUE rb_hash_resurrect(VALUE hash);
|
|
113
|
-
int rb_hash_stlike_lookup(VALUE hash, st_data_t key, st_data_t *pval);
|
|
114
|
-
VALUE rb_hash_keys(VALUE hash);
|
|
115
|
-
VALUE rb_hash_has_key(VALUE hash, VALUE key);
|
|
116
|
-
VALUE rb_hash_compare_by_id_p(VALUE hash);
|
|
117
|
-
|
|
118
|
-
st_table *rb_hash_tbl_raw(VALUE hash, const char *file, int line);
|
|
119
|
-
#define RHASH_TBL_RAW(h) rb_hash_tbl_raw(h, __FILE__, __LINE__)
|
|
120
|
-
|
|
121
|
-
VALUE rb_hash_compare_by_id(VALUE hash);
|
|
122
|
-
|
|
123
|
-
static inline bool
|
|
124
|
-
RHASH_AR_TABLE_P(VALUE h)
|
|
125
|
-
{
|
|
126
|
-
return ! FL_TEST_RAW(h, RHASH_ST_TABLE_FLAG);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
RBIMPL_ATTR_RETURNS_NONNULL()
|
|
130
|
-
static inline struct ar_table_struct *
|
|
131
|
-
RHASH_AR_TABLE(VALUE h)
|
|
132
|
-
{
|
|
133
|
-
return (struct ar_table_struct *)((uintptr_t)h + sizeof(struct RHash));
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
RBIMPL_ATTR_RETURNS_NONNULL()
|
|
137
|
-
static inline st_table *
|
|
138
|
-
RHASH_ST_TABLE(VALUE h)
|
|
139
|
-
{
|
|
140
|
-
return (st_table *)((uintptr_t)h + sizeof(struct RHash));
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
static inline VALUE
|
|
144
|
-
RHASH_IFNONE(VALUE h)
|
|
145
|
-
{
|
|
146
|
-
return RHASH(h)->ifnone;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
static inline size_t
|
|
150
|
-
RHASH_SIZE(VALUE h)
|
|
151
|
-
{
|
|
152
|
-
if (RHASH_AR_TABLE_P(h)) {
|
|
153
|
-
return RHASH_AR_TABLE_SIZE_RAW(h);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
return RHASH_ST_SIZE(h);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
static inline bool
|
|
161
|
-
RHASH_EMPTY_P(VALUE h)
|
|
162
|
-
{
|
|
163
|
-
return RHASH_SIZE(h) == 0;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
static inline bool
|
|
167
|
-
RHASH_ST_TABLE_P(VALUE h)
|
|
168
|
-
{
|
|
169
|
-
return ! RHASH_AR_TABLE_P(h);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
static inline size_t
|
|
173
|
-
RHASH_ST_SIZE(VALUE h)
|
|
174
|
-
{
|
|
175
|
-
return RHASH_ST_TABLE(h)->num_entries;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
static inline void
|
|
179
|
-
RHASH_ST_CLEAR(VALUE h)
|
|
180
|
-
{
|
|
181
|
-
memset(RHASH_ST_TABLE(h), 0, sizeof(st_table));
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
static inline unsigned
|
|
185
|
-
RHASH_AR_TABLE_SIZE_RAW(VALUE h)
|
|
186
|
-
{
|
|
187
|
-
VALUE ret = FL_TEST_RAW(h, RHASH_AR_TABLE_SIZE_MASK);
|
|
188
|
-
ret >>= RHASH_AR_TABLE_SIZE_SHIFT;
|
|
189
|
-
return (unsigned)ret;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
#endif /* INTERNAL_HASH_H */
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_INITS_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_INITS_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 aggregating init functions.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/* class.c */
|
|
13
|
-
void Init_class_hierarchy(void);
|
|
14
|
-
|
|
15
|
-
/* dmyext.c */
|
|
16
|
-
void Init_enc(void);
|
|
17
|
-
void Init_ext(void);
|
|
18
|
-
|
|
19
|
-
/* file.c */
|
|
20
|
-
void Init_File(void);
|
|
21
|
-
|
|
22
|
-
/* localeinit.c */
|
|
23
|
-
int Init_enc_set_filesystem_encoding(void);
|
|
24
|
-
|
|
25
|
-
/* newline.c */
|
|
26
|
-
void Init_newline(void);
|
|
27
|
-
|
|
28
|
-
/* vm.c */
|
|
29
|
-
void Init_BareVM(void);
|
|
30
|
-
void Init_vm_objects(void);
|
|
31
|
-
|
|
32
|
-
/* vm_backtrace.c */
|
|
33
|
-
void Init_vm_backtrace(void);
|
|
34
|
-
|
|
35
|
-
/* vm_eval.c */
|
|
36
|
-
void Init_vm_eval(void);
|
|
37
|
-
|
|
38
|
-
/* vm_insnhelper.c */
|
|
39
|
-
void Init_vm_stack_canary(void);
|
|
40
|
-
|
|
41
|
-
/* vm_method.c */
|
|
42
|
-
void Init_eval_method(void);
|
|
43
|
-
|
|
44
|
-
/* inits.c */
|
|
45
|
-
void rb_call_inits(void);
|
|
46
|
-
|
|
47
|
-
#endif /* INTERNAL_INITS_H */
|
|
@@ -1,143 +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
|
-
|
|
13
|
-
#define HAVE_RB_IO_T
|
|
14
|
-
struct rb_io;
|
|
15
|
-
|
|
16
|
-
#include "ruby/io.h" /* for rb_io_t */
|
|
17
|
-
|
|
18
|
-
#define IO_WITHOUT_GVL(func, arg) rb_nogvl(func, arg, RUBY_UBF_IO, 0, RB_NOGVL_OFFLOAD_SAFE)
|
|
19
|
-
#define IO_WITHOUT_GVL_INT(func, arg) (int)(VALUE)IO_WITHOUT_GVL(func, arg)
|
|
20
|
-
|
|
21
|
-
/** Ruby's IO, metadata and buffers. */
|
|
22
|
-
struct rb_io {
|
|
23
|
-
|
|
24
|
-
/** The IO's Ruby level counterpart. */
|
|
25
|
-
VALUE self;
|
|
26
|
-
|
|
27
|
-
/** stdio ptr for read/write, if available. */
|
|
28
|
-
FILE *stdio_file;
|
|
29
|
-
|
|
30
|
-
/** file descriptor. */
|
|
31
|
-
int fd;
|
|
32
|
-
|
|
33
|
-
/** mode flags: FMODE_XXXs */
|
|
34
|
-
int mode;
|
|
35
|
-
|
|
36
|
-
/** child's pid (for pipes) */
|
|
37
|
-
rb_pid_t pid;
|
|
38
|
-
|
|
39
|
-
/** number of lines read */
|
|
40
|
-
int lineno;
|
|
41
|
-
|
|
42
|
-
/** pathname for file */
|
|
43
|
-
VALUE pathv;
|
|
44
|
-
|
|
45
|
-
/** finalize proc */
|
|
46
|
-
void (*finalize)(struct rb_io*,int);
|
|
47
|
-
|
|
48
|
-
/** Write buffer. */
|
|
49
|
-
rb_io_buffer_t wbuf;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* (Byte) read buffer. Note also that there is a field called
|
|
53
|
-
* ::rb_io_t::cbuf, which also concerns read IO.
|
|
54
|
-
*/
|
|
55
|
-
rb_io_buffer_t rbuf;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Duplex IO object, if set.
|
|
59
|
-
*
|
|
60
|
-
* @see rb_io_set_write_io()
|
|
61
|
-
*/
|
|
62
|
-
VALUE tied_io_for_writing;
|
|
63
|
-
|
|
64
|
-
struct rb_io_encoding encs; /**< Decomposed encoding flags. */
|
|
65
|
-
|
|
66
|
-
/** Encoding converter used when reading from this IO. */
|
|
67
|
-
rb_econv_t *readconv;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* rb_io_ungetc() destination. This buffer is read before checking
|
|
71
|
-
* ::rb_io_t::rbuf
|
|
72
|
-
*/
|
|
73
|
-
rb_io_buffer_t cbuf;
|
|
74
|
-
|
|
75
|
-
/** Encoding converter used when writing to this IO. */
|
|
76
|
-
rb_econv_t *writeconv;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* This is, when set, an instance of ::rb_cString which holds the "common"
|
|
80
|
-
* encoding. Write conversion can convert strings twice... In case
|
|
81
|
-
* conversion from encoding X to encoding Y does not exist, Ruby finds an
|
|
82
|
-
* encoding Z that bridges the two, so that X to Z to Y conversion happens.
|
|
83
|
-
*/
|
|
84
|
-
VALUE writeconv_asciicompat;
|
|
85
|
-
|
|
86
|
-
/** Whether ::rb_io_t::writeconv is already set up. */
|
|
87
|
-
int writeconv_initialized;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Value of ::rb_io_t::rb_io_enc_t::ecflags stored right before
|
|
91
|
-
* initialising ::rb_io_t::writeconv.
|
|
92
|
-
*/
|
|
93
|
-
int writeconv_pre_ecflags;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Value of ::rb_io_t::rb_io_enc_t::ecopts stored right before initialising
|
|
97
|
-
* ::rb_io_t::writeconv.
|
|
98
|
-
*/
|
|
99
|
-
VALUE writeconv_pre_ecopts;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* This is a Ruby level mutex. It avoids multiple threads to write to an
|
|
103
|
-
* IO at once; helps for instance rb_io_puts() to ensure newlines right
|
|
104
|
-
* next to its arguments.
|
|
105
|
-
*
|
|
106
|
-
* This of course doesn't help inter-process IO interleaves, though.
|
|
107
|
-
*/
|
|
108
|
-
VALUE write_lock;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* The timeout associated with this IO when performing blocking operations.
|
|
112
|
-
*/
|
|
113
|
-
VALUE timeout;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
/* io.c */
|
|
117
|
-
void ruby_set_inplace_mode(const char *);
|
|
118
|
-
void rb_stdio_set_default_encoding(void);
|
|
119
|
-
VALUE rb_io_flush_raw(VALUE, int);
|
|
120
|
-
size_t rb_io_memsize(const rb_io_t *);
|
|
121
|
-
int rb_stderr_tty_p(void);
|
|
122
|
-
void rb_io_fptr_finalize_internal(void *ptr);
|
|
123
|
-
#ifdef rb_io_fptr_finalize
|
|
124
|
-
# undef rb_io_fptr_finalize
|
|
125
|
-
#endif
|
|
126
|
-
#define rb_io_fptr_finalize rb_io_fptr_finalize_internal
|
|
127
|
-
VALUE rb_io_popen(VALUE pname, VALUE pmode, VALUE env, VALUE opt);
|
|
128
|
-
|
|
129
|
-
VALUE rb_io_prep_stdin(void);
|
|
130
|
-
VALUE rb_io_prep_stdout(void);
|
|
131
|
-
VALUE rb_io_prep_stderr(void);
|
|
132
|
-
|
|
133
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
134
|
-
/* io.c (export) */
|
|
135
|
-
void rb_maygvl_fd_fix_cloexec(int fd);
|
|
136
|
-
int rb_gc_for_fd(int err);
|
|
137
|
-
void rb_write_error_str(VALUE mesg);
|
|
138
|
-
|
|
139
|
-
VALUE rb_io_blocking_region_wait(struct rb_io *io, rb_blocking_function_t *function, void *argument, enum rb_io_event events);
|
|
140
|
-
VALUE rb_io_blocking_region(struct rb_io *io, rb_blocking_function_t *function, void *argument);
|
|
141
|
-
RUBY_SYMBOL_EXPORT_END
|
|
142
|
-
|
|
143
|
-
#endif /* INTERNAL_IO_H */
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_LOAD_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_LOAD_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 require.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/ruby.h" /* for VALUE */
|
|
12
|
-
|
|
13
|
-
/* load.c */
|
|
14
|
-
VALUE rb_get_expanded_load_path(void);
|
|
15
|
-
int rb_require_internal(VALUE fname);
|
|
16
|
-
NORETURN(void rb_load_fail(VALUE, const char*));
|
|
17
|
-
|
|
18
|
-
#endif /* INTERNAL_LOAD_H */
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_LOADPATH_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_LOADPATH_H
|
|
3
|
-
/**
|
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
|
8
|
-
* file COPYING are met. Consult the file for details.
|
|
9
|
-
* @brief Internal header for $LOAD_PATH.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/* loadpath.c */
|
|
13
|
-
extern const char ruby_exec_prefix[];
|
|
14
|
-
extern const char ruby_initial_load_paths[];
|
|
15
|
-
|
|
16
|
-
#endif /* INTERNAL_LOADPATH_H */
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_MATH_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_MATH_H
|
|
3
|
-
/**
|
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
|
8
|
-
* file COPYING are met. Consult the file for details.
|
|
9
|
-
* @brief Internal header for Math.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/ruby.h" /* for VALUE */
|
|
12
|
-
|
|
13
|
-
/* math.c */
|
|
14
|
-
VALUE rb_math_atan2(VALUE, VALUE);
|
|
15
|
-
VALUE rb_math_cos(VALUE);
|
|
16
|
-
VALUE rb_math_cosh(VALUE);
|
|
17
|
-
VALUE rb_math_exp(VALUE);
|
|
18
|
-
VALUE rb_math_hypot(VALUE, VALUE);
|
|
19
|
-
VALUE rb_math_log(int argc, const VALUE *argv);
|
|
20
|
-
VALUE rb_math_sin(VALUE);
|
|
21
|
-
VALUE rb_math_sinh(VALUE);
|
|
22
|
-
|
|
23
|
-
#endif /* INTERNAL_MATH_H */
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_MISSING_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_MISSING_H
|
|
3
|
-
/**
|
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
|
8
|
-
* file COPYING are met. Consult the file for details.
|
|
9
|
-
* @brief Internal header corresponding missing.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/internal/config.h" /* for HAVE_SETPROCTITLE */
|
|
12
|
-
|
|
13
|
-
/* missing/setproctitle.c */
|
|
14
|
-
#ifndef HAVE_SETPROCTITLE
|
|
15
|
-
extern void ruby_init_setproctitle(int argc, char *argv[]);
|
|
16
|
-
extern void ruby_free_proctitle(void);
|
|
17
|
-
#endif
|
|
18
|
-
|
|
19
|
-
#endif /* INTERNAL_MISSING_H */
|