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,45 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_SYMBOL_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_SYMBOL_H
|
|
3
|
-
/**
|
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
|
8
|
-
* file COPYING are met. Consult the file for details.
|
|
9
|
-
* @brief Internal header for Symbol.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/ruby.h" /* for VALUE */
|
|
12
|
-
#include "ruby/encoding.h" /* for rb_encoding */
|
|
13
|
-
#include "internal/compilers.h" /* for __has_builtin */
|
|
14
|
-
|
|
15
|
-
#ifdef rb_sym_intern_ascii_cstr
|
|
16
|
-
# undef rb_sym_intern_ascii_cstr
|
|
17
|
-
#endif
|
|
18
|
-
|
|
19
|
-
/* symbol.c */
|
|
20
|
-
VALUE rb_to_symbol_type(VALUE obj);
|
|
21
|
-
VALUE rb_sym_intern(const char *ptr, long len, rb_encoding *enc);
|
|
22
|
-
VALUE rb_sym_intern_ascii(const char *ptr, long len);
|
|
23
|
-
VALUE rb_sym_intern_ascii_cstr(const char *ptr);
|
|
24
|
-
int rb_is_const_name(VALUE name);
|
|
25
|
-
int rb_is_class_name(VALUE name);
|
|
26
|
-
int rb_is_instance_name(VALUE name);
|
|
27
|
-
int rb_is_local_name(VALUE name);
|
|
28
|
-
PUREFUNC(int rb_is_const_sym(VALUE sym));
|
|
29
|
-
PUREFUNC(int rb_is_attrset_sym(VALUE sym));
|
|
30
|
-
ID rb_make_internal_id(void);
|
|
31
|
-
ID rb_make_temporary_id(size_t n);
|
|
32
|
-
void rb_gc_free_dsymbol(VALUE);
|
|
33
|
-
int rb_static_id_valid_p(ID id);
|
|
34
|
-
|
|
35
|
-
/* vm.c */
|
|
36
|
-
void rb_free_static_symid_str(void);
|
|
37
|
-
|
|
38
|
-
#if __has_builtin(__builtin_constant_p)
|
|
39
|
-
#define rb_sym_intern_ascii_cstr(ptr) \
|
|
40
|
-
(__builtin_constant_p(ptr) ? \
|
|
41
|
-
rb_sym_intern_ascii((ptr), (long)strlen(ptr)) : \
|
|
42
|
-
rb_sym_intern_ascii_cstr(ptr))
|
|
43
|
-
#endif
|
|
44
|
-
|
|
45
|
-
#endif /* INTERNAL_SYMBOL_H */
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_THREAD_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_THREAD_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 Thread.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/ruby.h" /* for VALUE */
|
|
12
|
-
#include "ruby/intern.h" /* for rb_blocking_function_t */
|
|
13
|
-
#include "ccan/list/list.h" /* for list in rb_io_close_wait_list */
|
|
14
|
-
|
|
15
|
-
struct rb_thread_struct; /* in vm_core.h */
|
|
16
|
-
|
|
17
|
-
#define RB_VM_SAVE_MACHINE_CONTEXT(th) \
|
|
18
|
-
do { \
|
|
19
|
-
FLUSH_REGISTER_WINDOWS; \
|
|
20
|
-
setjmp((th)->ec->machine.regs); \
|
|
21
|
-
SET_MACHINE_STACK_END(&(th)->ec->machine.stack_end); \
|
|
22
|
-
} while (0)
|
|
23
|
-
|
|
24
|
-
/* thread.c */
|
|
25
|
-
#define COVERAGE_INDEX_LINES 0
|
|
26
|
-
#define COVERAGE_INDEX_BRANCHES 1
|
|
27
|
-
#define COVERAGE_TARGET_LINES 1
|
|
28
|
-
#define COVERAGE_TARGET_BRANCHES 2
|
|
29
|
-
#define COVERAGE_TARGET_METHODS 4
|
|
30
|
-
#define COVERAGE_TARGET_ONESHOT_LINES 8
|
|
31
|
-
#define COVERAGE_TARGET_EVAL 16
|
|
32
|
-
|
|
33
|
-
#define RUBY_FATAL_THREAD_KILLED INT2FIX(0)
|
|
34
|
-
#define RUBY_FATAL_THREAD_TERMINATED INT2FIX(1)
|
|
35
|
-
#define RUBY_FATAL_FIBER_KILLED RB_INT2FIX(2)
|
|
36
|
-
|
|
37
|
-
VALUE rb_obj_is_mutex(VALUE obj);
|
|
38
|
-
VALUE rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg);
|
|
39
|
-
void rb_thread_execute_interrupts(VALUE th);
|
|
40
|
-
VALUE rb_get_coverages(void);
|
|
41
|
-
int rb_get_coverage_mode(void);
|
|
42
|
-
VALUE rb_default_coverage(int);
|
|
43
|
-
VALUE rb_thread_shield_new(void);
|
|
44
|
-
bool rb_thread_shield_owned(VALUE self);
|
|
45
|
-
VALUE rb_thread_shield_wait(VALUE self);
|
|
46
|
-
VALUE rb_thread_shield_release(VALUE self);
|
|
47
|
-
VALUE rb_thread_shield_destroy(VALUE self);
|
|
48
|
-
int rb_thread_to_be_killed(VALUE thread);
|
|
49
|
-
void rb_mutex_allow_trap(VALUE self, int val);
|
|
50
|
-
VALUE rb_uninterruptible(VALUE (*b_proc)(VALUE), VALUE data);
|
|
51
|
-
VALUE rb_mutex_owned_p(VALUE self);
|
|
52
|
-
VALUE rb_exec_recursive_outer_mid(VALUE (*f)(VALUE g, VALUE h, int r), VALUE g, VALUE h, ID mid);
|
|
53
|
-
void ruby_mn_threads_params(void);
|
|
54
|
-
|
|
55
|
-
int rb_thread_wait_for_single_fd(int fd, int events, struct timeval * timeout);
|
|
56
|
-
|
|
57
|
-
struct rb_io_close_wait_list {
|
|
58
|
-
struct ccan_list_head pending_fd_users;
|
|
59
|
-
VALUE closing_thread;
|
|
60
|
-
VALUE wakeup_mutex;
|
|
61
|
-
};
|
|
62
|
-
int rb_notify_fd_close(int fd, struct rb_io_close_wait_list *busy);
|
|
63
|
-
void rb_notify_fd_close_wait(struct rb_io_close_wait_list *busy);
|
|
64
|
-
|
|
65
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
66
|
-
|
|
67
|
-
/* Temporary. This API will be removed (renamed). */
|
|
68
|
-
VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd);
|
|
69
|
-
VALUE rb_thread_io_blocking_call(rb_blocking_function_t *func, void *data1, int fd, int events);
|
|
70
|
-
|
|
71
|
-
/* thread.c (export) */
|
|
72
|
-
int ruby_thread_has_gvl_p(void); /* for ext/fiddle/closure.c */
|
|
73
|
-
|
|
74
|
-
RUBY_SYMBOL_EXPORT_END
|
|
75
|
-
|
|
76
|
-
int rb_threadptr_execute_interrupts(struct rb_thread_struct *th, int blocking_timing);
|
|
77
|
-
|
|
78
|
-
#endif /* INTERNAL_THREAD_H */
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_TIME_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_TIME_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 Time.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/internal/config.h" /* for SIGNEDNESS_OF_TIME_T */
|
|
12
|
-
#include "internal/bits.h" /* for SIGNED_INTEGER_MAX */
|
|
13
|
-
#include "ruby/ruby.h" /* for VALUE */
|
|
14
|
-
|
|
15
|
-
#if SIGNEDNESS_OF_TIME_T < 0 /* signed */
|
|
16
|
-
# define TIMET_MAX SIGNED_INTEGER_MAX(time_t)
|
|
17
|
-
# define TIMET_MIN SIGNED_INTEGER_MIN(time_t)
|
|
18
|
-
#elif SIGNEDNESS_OF_TIME_T > 0 /* unsigned */
|
|
19
|
-
# define TIMET_MAX UNSIGNED_INTEGER_MAX(time_t)
|
|
20
|
-
# define TIMET_MIN ((time_t)0)
|
|
21
|
-
#endif
|
|
22
|
-
|
|
23
|
-
struct timeval; /* <- in <sys/time.h> or <winsock2.h> */
|
|
24
|
-
|
|
25
|
-
/* time.c */
|
|
26
|
-
struct timeval rb_time_timeval(VALUE);
|
|
27
|
-
|
|
28
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
29
|
-
/* time.c (export) */
|
|
30
|
-
void ruby_reset_leap_second_info(void);
|
|
31
|
-
void ruby_reset_timezone(void);
|
|
32
|
-
RUBY_SYMBOL_EXPORT_END
|
|
33
|
-
|
|
34
|
-
#endif /* INTERNAL_TIME_H */
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_TRANSCODE_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_TRANSCODE_H
|
|
3
|
-
/**
|
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
|
8
|
-
* file COPYING are met. Consult the file for details.
|
|
9
|
-
* @brief Internal header for Encoding::Converter.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/internal/config.h"
|
|
12
|
-
#include <stddef.h> /* for size_t */
|
|
13
|
-
#include "ruby/ruby.h" /* for VALUE */
|
|
14
|
-
#include "ruby/encoding.h" /* for rb_econv_t */
|
|
15
|
-
|
|
16
|
-
/* transcode.c */
|
|
17
|
-
extern VALUE rb_cEncodingConverter;
|
|
18
|
-
size_t rb_econv_memsize(rb_econv_t *);
|
|
19
|
-
|
|
20
|
-
/* vm.c */
|
|
21
|
-
void rb_free_transcoder_table(void);
|
|
22
|
-
|
|
23
|
-
#endif /* INTERNAL_TRANSCODE_H */
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_UTIL_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_UTIL_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 util.c.
|
|
10
|
-
* @warning DO NOT ADD RANDOM GARBAGE HERE THIS FILE IS FOR util.c
|
|
11
|
-
*/
|
|
12
|
-
#include "ruby/internal/config.h"
|
|
13
|
-
#include <stddef.h> /* for size_t */
|
|
14
|
-
|
|
15
|
-
#ifdef HAVE_SYS_TYPES_H
|
|
16
|
-
# include <sys/types.h> /* for ssize_t (note: on Windows ssize_t is */
|
|
17
|
-
#endif /* `#define`d in ruby/config.h) */
|
|
18
|
-
|
|
19
|
-
/* util.c */
|
|
20
|
-
char *ruby_dtoa(double d_, int mode, int ndigits, int *decpt, int *sign, char **rve);
|
|
21
|
-
char *ruby_hdtoa(double d, const char *xdigs, int ndigits, int *decpt, int *sign, char **rve);
|
|
22
|
-
|
|
23
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
24
|
-
/* util.c (export) */
|
|
25
|
-
RUBY_SYMBOL_EXPORT_END
|
|
26
|
-
|
|
27
|
-
#endif /* INTERNAL_UTIL_H */
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#ifndef PRISM_EXT_NODE_H
|
|
2
|
-
#define PRISM_EXT_NODE_H
|
|
3
|
-
|
|
4
|
-
#define EXPECTED_PRISM_VERSION "0.19.0"
|
|
5
|
-
|
|
6
|
-
#include <ruby.h>
|
|
7
|
-
#include <ruby/encoding.h>
|
|
8
|
-
#include "prism.h"
|
|
9
|
-
|
|
10
|
-
VALUE pm_source_new(pm_parser_t *parser, rb_encoding *encoding);
|
|
11
|
-
VALUE pm_token_new(pm_parser_t *parser, pm_token_t *token, rb_encoding *encoding, VALUE source);
|
|
12
|
-
VALUE pm_ast_new(pm_parser_t *parser, pm_node_t *node, rb_encoding *encoding);
|
|
13
|
-
|
|
14
|
-
void Init_prism_api_node(void);
|
|
15
|
-
void Init_prism_pack(void);
|
|
16
|
-
PRISM_EXPORTED_FUNCTION void Init_prism(void);
|
|
17
|
-
|
|
18
|
-
#endif
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_BIGNUM_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_BIGNUM_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 Bignums.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/internal/config.h" /* for HAVE_LIBGMP */
|
|
12
|
-
#include <stddef.h> /* for size_t */
|
|
13
|
-
|
|
14
|
-
#ifdef HAVE_SYS_TYPES_H
|
|
15
|
-
# include <sys/types.h> /* for ssize_t (note: on Windows ssize_t is */
|
|
16
|
-
#endif /* `#define`d in ruby/config.h) */
|
|
17
|
-
|
|
18
|
-
#include "ruby/internal/stdbool.h" /* for bool */
|
|
19
|
-
#include "ruby/ruby.h" /* for struct RBasic */
|
|
20
|
-
|
|
21
|
-
#ifndef BDIGIT
|
|
22
|
-
# if SIZEOF_INT*2 <= SIZEOF_LONG_LONG
|
|
23
|
-
# define BDIGIT unsigned int
|
|
24
|
-
# define SIZEOF_BDIGIT SIZEOF_INT
|
|
25
|
-
# define BDIGIT_DBL unsigned LONG_LONG
|
|
26
|
-
# define BDIGIT_DBL_SIGNED LONG_LONG
|
|
27
|
-
# define PRI_BDIGIT_PREFIX ""
|
|
28
|
-
# define PRI_BDIGIT_DBL_PREFIX PRI_LL_PREFIX
|
|
29
|
-
# elif SIZEOF_INT*2 <= SIZEOF_LONG
|
|
30
|
-
# define BDIGIT unsigned int
|
|
31
|
-
# define SIZEOF_BDIGIT SIZEOF_INT
|
|
32
|
-
# define BDIGIT_DBL unsigned long
|
|
33
|
-
# define BDIGIT_DBL_SIGNED long
|
|
34
|
-
# define PRI_BDIGIT_PREFIX ""
|
|
35
|
-
# define PRI_BDIGIT_DBL_PREFIX "l"
|
|
36
|
-
# elif SIZEOF_SHORT*2 <= SIZEOF_LONG
|
|
37
|
-
# define BDIGIT unsigned short
|
|
38
|
-
# define SIZEOF_BDIGIT SIZEOF_SHORT
|
|
39
|
-
# define BDIGIT_DBL unsigned long
|
|
40
|
-
# define BDIGIT_DBL_SIGNED long
|
|
41
|
-
# define PRI_BDIGIT_PREFIX "h"
|
|
42
|
-
# define PRI_BDIGIT_DBL_PREFIX "l"
|
|
43
|
-
# else
|
|
44
|
-
# define BDIGIT unsigned short
|
|
45
|
-
# define SIZEOF_BDIGIT (SIZEOF_LONG/2)
|
|
46
|
-
# define SIZEOF_ACTUAL_BDIGIT SIZEOF_LONG
|
|
47
|
-
# define BDIGIT_DBL unsigned long
|
|
48
|
-
# define BDIGIT_DBL_SIGNED long
|
|
49
|
-
# define PRI_BDIGIT_PREFIX "h"
|
|
50
|
-
# define PRI_BDIGIT_DBL_PREFIX "l"
|
|
51
|
-
# endif
|
|
52
|
-
#endif
|
|
53
|
-
|
|
54
|
-
#ifndef SIZEOF_ACTUAL_BDIGIT
|
|
55
|
-
# define SIZEOF_ACTUAL_BDIGIT SIZEOF_BDIGIT
|
|
56
|
-
#endif
|
|
57
|
-
|
|
58
|
-
#ifdef PRI_BDIGIT_PREFIX
|
|
59
|
-
# define PRIdBDIGIT PRI_BDIGIT_PREFIX"d"
|
|
60
|
-
# define PRIiBDIGIT PRI_BDIGIT_PREFIX"i"
|
|
61
|
-
# define PRIoBDIGIT PRI_BDIGIT_PREFIX"o"
|
|
62
|
-
# define PRIuBDIGIT PRI_BDIGIT_PREFIX"u"
|
|
63
|
-
# define PRIxBDIGIT PRI_BDIGIT_PREFIX"x"
|
|
64
|
-
# define PRIXBDIGIT PRI_BDIGIT_PREFIX"X"
|
|
65
|
-
#endif
|
|
66
|
-
|
|
67
|
-
#ifdef PRI_BDIGIT_DBL_PREFIX
|
|
68
|
-
# define PRIdBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"d"
|
|
69
|
-
# define PRIiBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"i"
|
|
70
|
-
# define PRIoBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"o"
|
|
71
|
-
# define PRIuBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"u"
|
|
72
|
-
# define PRIxBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"x"
|
|
73
|
-
# define PRIXBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"X"
|
|
74
|
-
#endif
|
|
75
|
-
|
|
76
|
-
#define RBIGNUM(obj) ((struct RBignum *)(obj))
|
|
77
|
-
#define BIGNUM_SIGN_BIT FL_USER1
|
|
78
|
-
#define BIGNUM_EMBED_FLAG ((VALUE)FL_USER2)
|
|
79
|
-
#define BIGNUM_EMBED_LEN_NUMBITS 3
|
|
80
|
-
#define BIGNUM_EMBED_LEN_MASK \
|
|
81
|
-
(~(~(VALUE)0U << BIGNUM_EMBED_LEN_NUMBITS) << BIGNUM_EMBED_LEN_SHIFT)
|
|
82
|
-
#define BIGNUM_EMBED_LEN_SHIFT \
|
|
83
|
-
(FL_USHIFT+3) /* bit offset of BIGNUM_EMBED_LEN_MASK */
|
|
84
|
-
#ifndef BIGNUM_EMBED_LEN_MAX
|
|
85
|
-
# if (SIZEOF_VALUE*RBIMPL_RVALUE_EMBED_LEN_MAX/SIZEOF_ACTUAL_BDIGIT) < (1 << BIGNUM_EMBED_LEN_NUMBITS)-1
|
|
86
|
-
# define BIGNUM_EMBED_LEN_MAX (SIZEOF_VALUE*RBIMPL_RVALUE_EMBED_LEN_MAX/SIZEOF_ACTUAL_BDIGIT)
|
|
87
|
-
# else
|
|
88
|
-
# define BIGNUM_EMBED_LEN_MAX ((1 << BIGNUM_EMBED_LEN_NUMBITS)-1)
|
|
89
|
-
# endif
|
|
90
|
-
#endif
|
|
91
|
-
|
|
92
|
-
enum rb_int_parse_flags {
|
|
93
|
-
RB_INT_PARSE_SIGN = 0x01,
|
|
94
|
-
RB_INT_PARSE_UNDERSCORE = 0x02,
|
|
95
|
-
RB_INT_PARSE_PREFIX = 0x04,
|
|
96
|
-
RB_INT_PARSE_ALL = 0x07,
|
|
97
|
-
RB_INT_PARSE_DEFAULT = 0x07,
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
struct RBignum {
|
|
101
|
-
struct RBasic basic;
|
|
102
|
-
union {
|
|
103
|
-
struct {
|
|
104
|
-
size_t len;
|
|
105
|
-
BDIGIT *digits;
|
|
106
|
-
} heap;
|
|
107
|
-
BDIGIT ary[BIGNUM_EMBED_LEN_MAX];
|
|
108
|
-
} as;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
/* bignum.c */
|
|
112
|
-
extern const char ruby_digitmap[];
|
|
113
|
-
double rb_big_fdiv_double(VALUE x, VALUE y);
|
|
114
|
-
VALUE rb_big_uminus(VALUE x);
|
|
115
|
-
VALUE rb_big_hash(VALUE);
|
|
116
|
-
VALUE rb_big_odd_p(VALUE);
|
|
117
|
-
VALUE rb_big_even_p(VALUE);
|
|
118
|
-
size_t rb_big_size(VALUE);
|
|
119
|
-
VALUE rb_integer_float_cmp(VALUE x, VALUE y);
|
|
120
|
-
VALUE rb_integer_float_eq(VALUE x, VALUE y);
|
|
121
|
-
VALUE rb_str_convert_to_inum(VALUE str, int base, int badcheck, int raise_exception);
|
|
122
|
-
VALUE rb_big_comp(VALUE x);
|
|
123
|
-
VALUE rb_big_aref(VALUE x, VALUE y);
|
|
124
|
-
VALUE rb_big_abs(VALUE x);
|
|
125
|
-
VALUE rb_big_size_m(VALUE big);
|
|
126
|
-
VALUE rb_big_bit_length(VALUE big);
|
|
127
|
-
VALUE rb_big_remainder(VALUE x, VALUE y);
|
|
128
|
-
VALUE rb_big_gt(VALUE x, VALUE y);
|
|
129
|
-
VALUE rb_big_ge(VALUE x, VALUE y);
|
|
130
|
-
VALUE rb_big_lt(VALUE x, VALUE y);
|
|
131
|
-
VALUE rb_big_le(VALUE x, VALUE y);
|
|
132
|
-
VALUE rb_int_powm(int const argc, VALUE * const argv, VALUE const num);
|
|
133
|
-
VALUE rb_big_isqrt(VALUE n);
|
|
134
|
-
static inline bool BIGNUM_SIGN(VALUE b);
|
|
135
|
-
static inline bool BIGNUM_POSITIVE_P(VALUE b);
|
|
136
|
-
static inline bool BIGNUM_NEGATIVE_P(VALUE b);
|
|
137
|
-
static inline void BIGNUM_SET_SIGN(VALUE b, bool sign);
|
|
138
|
-
static inline void BIGNUM_NEGATE(VALUE b);
|
|
139
|
-
static inline size_t BIGNUM_LEN(VALUE b);
|
|
140
|
-
static inline BDIGIT *BIGNUM_DIGITS(VALUE b);
|
|
141
|
-
static inline int BIGNUM_LENINT(VALUE b);
|
|
142
|
-
static inline bool BIGNUM_EMBED_P(VALUE b);
|
|
143
|
-
|
|
144
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
145
|
-
/* bignum.c (export) */
|
|
146
|
-
VALUE rb_big_mul_normal(VALUE x, VALUE y);
|
|
147
|
-
VALUE rb_big_mul_balance(VALUE x, VALUE y);
|
|
148
|
-
VALUE rb_big_mul_karatsuba(VALUE x, VALUE y);
|
|
149
|
-
VALUE rb_big_mul_toom3(VALUE x, VALUE y);
|
|
150
|
-
VALUE rb_big_sq_fast(VALUE x);
|
|
151
|
-
VALUE rb_big_divrem_normal(VALUE x, VALUE y);
|
|
152
|
-
VALUE rb_big2str_poweroftwo(VALUE x, int base);
|
|
153
|
-
VALUE rb_big2str_generic(VALUE x, int base);
|
|
154
|
-
VALUE rb_str2big_poweroftwo(VALUE arg, int base, int badcheck);
|
|
155
|
-
VALUE rb_str2big_normal(VALUE arg, int base, int badcheck);
|
|
156
|
-
VALUE rb_str2big_karatsuba(VALUE arg, int base, int badcheck);
|
|
157
|
-
#if defined(HAVE_LIBGMP) && defined(HAVE_GMP_H)
|
|
158
|
-
VALUE rb_big_mul_gmp(VALUE x, VALUE y);
|
|
159
|
-
VALUE rb_big_divrem_gmp(VALUE x, VALUE y);
|
|
160
|
-
VALUE rb_big2str_gmp(VALUE x, int base);
|
|
161
|
-
VALUE rb_str2big_gmp(VALUE arg, int base, int badcheck);
|
|
162
|
-
#endif
|
|
163
|
-
VALUE rb_int_parse_cstr(const char *str, ssize_t len, char **endp, size_t *ndigits, int base, int flags);
|
|
164
|
-
RUBY_SYMBOL_EXPORT_END
|
|
165
|
-
|
|
166
|
-
#if defined(HAVE_INT128_T)
|
|
167
|
-
VALUE rb_int128t2big(int128_t n);
|
|
168
|
-
#endif
|
|
169
|
-
|
|
170
|
-
/* sign: positive:1, negative:0 */
|
|
171
|
-
static inline bool
|
|
172
|
-
BIGNUM_SIGN(VALUE b)
|
|
173
|
-
{
|
|
174
|
-
return FL_TEST_RAW(b, BIGNUM_SIGN_BIT);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
static inline bool
|
|
178
|
-
BIGNUM_POSITIVE_P(VALUE b)
|
|
179
|
-
{
|
|
180
|
-
return BIGNUM_SIGN(b);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
static inline bool
|
|
184
|
-
BIGNUM_NEGATIVE_P(VALUE b)
|
|
185
|
-
{
|
|
186
|
-
return ! BIGNUM_POSITIVE_P(b);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
static inline void
|
|
190
|
-
BIGNUM_SET_SIGN(VALUE b, bool sign)
|
|
191
|
-
{
|
|
192
|
-
if (sign) {
|
|
193
|
-
FL_SET_RAW(b, BIGNUM_SIGN_BIT);
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
FL_UNSET_RAW(b, BIGNUM_SIGN_BIT);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
static inline void
|
|
201
|
-
BIGNUM_NEGATE(VALUE b)
|
|
202
|
-
{
|
|
203
|
-
FL_REVERSE_RAW(b, BIGNUM_SIGN_BIT);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
static inline size_t
|
|
207
|
-
BIGNUM_LEN(VALUE b)
|
|
208
|
-
{
|
|
209
|
-
if (! BIGNUM_EMBED_P(b)) {
|
|
210
|
-
return RBIGNUM(b)->as.heap.len;
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
size_t ret = RBASIC(b)->flags;
|
|
214
|
-
ret &= BIGNUM_EMBED_LEN_MASK;
|
|
215
|
-
ret >>= BIGNUM_EMBED_LEN_SHIFT;
|
|
216
|
-
return ret;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
static inline int
|
|
221
|
-
BIGNUM_LENINT(VALUE b)
|
|
222
|
-
{
|
|
223
|
-
return rb_long2int(BIGNUM_LEN(b));
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/* LSB:BIGNUM_DIGITS(b)[0], MSB:BIGNUM_DIGITS(b)[BIGNUM_LEN(b)-1] */
|
|
227
|
-
static inline BDIGIT *
|
|
228
|
-
BIGNUM_DIGITS(VALUE b)
|
|
229
|
-
{
|
|
230
|
-
if (BIGNUM_EMBED_P(b)) {
|
|
231
|
-
return RBIGNUM(b)->as.ary;
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
return RBIGNUM(b)->as.heap.digits;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
static inline bool
|
|
239
|
-
BIGNUM_EMBED_P(VALUE b)
|
|
240
|
-
{
|
|
241
|
-
return FL_TEST_RAW(b, BIGNUM_EMBED_FLAG);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
#endif /* INTERNAL_BIGNUM_H */
|