datadog-ruby_core_source 3.5.2 → 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/ccan/build_assert/build_assert.h +40 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/ccan/check_type/check_type.h +63 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/ccan/container_of/container_of.h +142 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/ccan/list/list.h +791 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/ccan/str/str.h +17 -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/id.h +357 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/id_table.h +64 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/array.h +155 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/basic_operators.h +66 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/box.h +96 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/class.h +749 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/compilers.h +107 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/gc.h +360 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/imemo.h +323 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/sanitizers.h +346 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/serial.h +23 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/set_table.h +70 -0
- data/lib/datadog/ruby_core_source/{ruby-3.3.5-p100/internal/dir.h → ruby-4.0.6-p0/internal/static_assert.h} +8 -8
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/variable.h +76 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/vm.h +138 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal/warnings.h +16 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/internal.h +105 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/iseq.h +359 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/method.h +276 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/node.h +122 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/parser_st.h +162 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/parser_value.h +106 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/ast.h +8254 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/defines.h +260 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/diagnostic.h +460 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/encoding.h +283 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/node.h +129 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/options.h +488 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/pack.h +163 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/parser.h +936 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/prettyprint.h +34 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/prism.h +408 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/regexp.h +43 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/static_literals.h +121 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/util/pm_buffer.h +236 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/util/pm_char.h +204 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/util/pm_constant_pool.h +218 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/util/pm_integer.h +130 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/util/pm_list.h +103 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/util/pm_memchr.h +29 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/util/pm_newline_list.h +113 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/util/pm_string.h +200 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/util/pm_strncasecmp.h +32 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/util/pm_strpbrk.h +46 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism/version.h +29 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/prism_compile.h +106 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/ractor_core.h +331 -0
- data/lib/datadog/ruby_core_source/{ruby-3.4.0-p0/internal/dir.h → ruby-4.0.6-p0/ruby_assert.h} +6 -8
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/ruby_atomic.h +73 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/rubyparser.h +1393 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/shape.h +464 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/thread_none.h +21 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/thread_pthread.h +185 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/vm_core.h +2408 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/vm_debug.h +124 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.6-p0/vm_opts.h +67 -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 +81 -179
- 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/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/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
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
#ifndef INTERNAL_SET_TABLE_H
|
|
2
|
+
#define INTERNAL_SET_TABLE_H
|
|
3
|
+
|
|
4
|
+
#include "ruby/st.h"
|
|
5
|
+
|
|
6
|
+
struct set_table_entry;
|
|
7
|
+
|
|
8
|
+
typedef struct set_table_entry set_table_entry;
|
|
9
|
+
|
|
10
|
+
struct set_table {
|
|
11
|
+
/* Cached features of the table -- see st.c for more details. */
|
|
12
|
+
unsigned char entry_power, bin_power, size_ind;
|
|
13
|
+
/* How many times the table was rebuilt. */
|
|
14
|
+
unsigned int rebuilds_num;
|
|
15
|
+
const struct st_hash_type *type;
|
|
16
|
+
/* Number of entries currently in the table. */
|
|
17
|
+
st_index_t num_entries;
|
|
18
|
+
|
|
19
|
+
/* Start and bound index of entries in array entries.
|
|
20
|
+
entries_starts and entries_bound are in interval
|
|
21
|
+
[0,allocated_entries]. */
|
|
22
|
+
st_index_t entries_start, entries_bound;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Array of size 2^entry_power.
|
|
26
|
+
* Followed by st_index_t *bins, Array of bins used for access by keys.
|
|
27
|
+
*/
|
|
28
|
+
set_table_entry *entries;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
typedef struct set_table set_table;
|
|
32
|
+
|
|
33
|
+
typedef int set_foreach_callback_func(st_data_t, st_data_t);
|
|
34
|
+
typedef int set_foreach_check_callback_func(st_data_t, st_data_t, int);
|
|
35
|
+
typedef int set_update_callback_func(st_data_t *key, st_data_t arg, int existing);
|
|
36
|
+
|
|
37
|
+
#define set_table_size rb_set_table_size
|
|
38
|
+
size_t rb_set_table_size(const struct set_table *tbl);
|
|
39
|
+
#define set_init_table_with_size rb_set_init_table_with_size
|
|
40
|
+
set_table *rb_set_init_table_with_size(set_table *tab, const struct st_hash_type *, st_index_t);
|
|
41
|
+
#define set_init_numtable rb_set_init_numtable
|
|
42
|
+
set_table *rb_set_init_numtable(void);
|
|
43
|
+
#define set_init_numtable_with_size rb_set_init_numtable_with_size
|
|
44
|
+
set_table *rb_set_init_numtable_with_size(st_index_t size);
|
|
45
|
+
#define set_table_delete rb_set_table_delete
|
|
46
|
+
int rb_set_table_delete(set_table *, st_data_t *); /* returns 0:notfound 1:deleted */
|
|
47
|
+
#define set_insert rb_set_insert
|
|
48
|
+
int rb_set_insert(set_table *, st_data_t);
|
|
49
|
+
#define set_table_lookup rb_set_table_lookup
|
|
50
|
+
int rb_set_table_lookup(set_table *, st_data_t);
|
|
51
|
+
#define set_foreach_with_replace rb_set_foreach_with_replace
|
|
52
|
+
int rb_set_foreach_with_replace(set_table *tab, set_foreach_check_callback_func *func, set_update_callback_func *replace, st_data_t arg);
|
|
53
|
+
#define set_table_foreach rb_set_table_foreach
|
|
54
|
+
int rb_set_table_foreach(set_table *, set_foreach_callback_func *, st_data_t);
|
|
55
|
+
#define set_foreach_check rb_set_foreach_check
|
|
56
|
+
int rb_set_foreach_check(set_table *, set_foreach_check_callback_func *, st_data_t, st_data_t);
|
|
57
|
+
#define set_keys rb_set_keys
|
|
58
|
+
st_index_t rb_set_keys(set_table *table, st_data_t *keys, st_index_t size);
|
|
59
|
+
#define set_free_table rb_set_free_table
|
|
60
|
+
void rb_set_free_table(set_table *);
|
|
61
|
+
#define set_table_clear rb_set_table_clear
|
|
62
|
+
void rb_set_table_clear(set_table *);
|
|
63
|
+
#define set_copy rb_set_copy
|
|
64
|
+
set_table *rb_set_copy(set_table *new_table, set_table *old_table);
|
|
65
|
+
#define set_memsize rb_set_memsize
|
|
66
|
+
PUREFUNC(size_t rb_set_memsize(const set_table *));
|
|
67
|
+
#define set_compact_table rb_set_compact_table
|
|
68
|
+
void set_compact_table(set_table *tab);
|
|
69
|
+
|
|
70
|
+
#endif
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
#ifndef
|
|
2
|
-
#define
|
|
1
|
+
#ifndef INTERNAL_STATIC_ASSERT_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_STATIC_ASSERT_H
|
|
3
3
|
/**
|
|
4
4
|
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
5
|
* @copyright This file is a part of the programming language Ruby.
|
|
6
6
|
* Permission is hereby granted, to either redistribute and/or
|
|
7
7
|
* modify this file, provided that the conditions mentioned in the
|
|
8
8
|
* file COPYING are met. Consult the file for details.
|
|
9
|
-
* @brief
|
|
9
|
+
* @brief C11 shim for _Static_assert.
|
|
10
10
|
*/
|
|
11
|
-
#include "ruby/
|
|
11
|
+
#include "ruby/internal/static_assert.h"
|
|
12
|
+
#ifndef STATIC_ASSERT
|
|
13
|
+
# define STATIC_ASSERT RBIMPL_STATIC_ASSERT
|
|
14
|
+
#endif
|
|
12
15
|
|
|
13
|
-
/*
|
|
14
|
-
VALUE rb_dir_getwd_ospath(void);
|
|
15
|
-
|
|
16
|
-
#endif /* INTERNAL_DIR_H */
|
|
16
|
+
#endif /* INTERNAL_STATIC_ASSERT_H */
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
#ifndef INTERNAL_VARIABLE_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_VARIABLE_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 variables.
|
|
10
|
+
*/
|
|
11
|
+
#include "ruby/internal/config.h"
|
|
12
|
+
#include <stddef.h> /* for size_t */
|
|
13
|
+
#include "constant.h" /* for rb_const_entry_t */
|
|
14
|
+
#include "ruby/internal/stdbool.h" /* for bool */
|
|
15
|
+
#include "ruby/ruby.h" /* for VALUE */
|
|
16
|
+
#include "shape.h" /* for shape_id_t */
|
|
17
|
+
|
|
18
|
+
/* variable.c */
|
|
19
|
+
void rb_gc_mark_global_tbl(void);
|
|
20
|
+
void rb_gc_update_global_tbl(void);
|
|
21
|
+
VALUE rb_search_class_path(VALUE);
|
|
22
|
+
VALUE rb_attr_delete(VALUE, ID);
|
|
23
|
+
void rb_autoload_str(VALUE mod, ID id, VALUE file);
|
|
24
|
+
VALUE rb_autoload_at_p(VALUE, ID, int);
|
|
25
|
+
void rb_autoload_copy_table_for_box(st_table *, const rb_box_t *);
|
|
26
|
+
NORETURN(VALUE rb_mod_const_missing(VALUE,VALUE));
|
|
27
|
+
rb_gvar_getter_t *rb_gvar_getter_function_of(ID);
|
|
28
|
+
rb_gvar_setter_t *rb_gvar_setter_function_of(ID);
|
|
29
|
+
void rb_gvar_readonly_setter(VALUE v, ID id, VALUE *_);
|
|
30
|
+
void rb_gvar_ractor_local(const char *name);
|
|
31
|
+
void rb_gvar_box_ready(const char *name);
|
|
32
|
+
void rb_gvar_box_dynamic(const char *name);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Sets the name of a module.
|
|
36
|
+
*
|
|
37
|
+
* Non-permanently named classes can have a temporary name assigned (or
|
|
38
|
+
* cleared). In that case the name will be used for `#inspect` and `#to_s`, and
|
|
39
|
+
* nested classes/modules will be named with the temporary name as a prefix.
|
|
40
|
+
*
|
|
41
|
+
* After the module is assigned to a constant, the temporary name will be
|
|
42
|
+
* discarded, and the name will be computed based on the nesting.
|
|
43
|
+
*
|
|
44
|
+
* @param[in] mod An instance of ::rb_cModule.
|
|
45
|
+
* @param[in] name An instance of ::rb_cString.
|
|
46
|
+
* @retval mod
|
|
47
|
+
*/
|
|
48
|
+
VALUE rb_mod_set_temporary_name(VALUE, VALUE);
|
|
49
|
+
|
|
50
|
+
void rb_obj_copy_ivs_to_hash_table(VALUE obj, st_table *table);
|
|
51
|
+
void rb_obj_init_too_complex(VALUE obj, st_table *table);
|
|
52
|
+
void rb_evict_ivars_to_hash(VALUE obj);
|
|
53
|
+
VALUE rb_obj_field_get(VALUE obj, shape_id_t target_shape_id);
|
|
54
|
+
void rb_ivar_set_internal(VALUE obj, ID id, VALUE val);
|
|
55
|
+
void rb_ivar_foreach_buffered(VALUE obj, int (*func)(ID name, VALUE val, st_data_t arg), st_data_t arg);
|
|
56
|
+
attr_index_t rb_ivar_set_index(VALUE obj, ID id, VALUE val);
|
|
57
|
+
attr_index_t rb_obj_field_set(VALUE obj, shape_id_t target_shape_id, ID field_name, VALUE val);
|
|
58
|
+
VALUE rb_ivar_get_at(VALUE obj, attr_index_t index, ID id);
|
|
59
|
+
VALUE rb_ivar_get_at_no_ractor_check(VALUE obj, attr_index_t index);
|
|
60
|
+
|
|
61
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
|
62
|
+
/* variable.c (export) */
|
|
63
|
+
void rb_mark_generic_ivar(VALUE obj);
|
|
64
|
+
VALUE rb_const_missing(VALUE klass, VALUE name);
|
|
65
|
+
bool rb_class_ivar_set(VALUE klass, ID vid, VALUE value);
|
|
66
|
+
void rb_fields_tbl_copy(VALUE dst, VALUE src);
|
|
67
|
+
RUBY_SYMBOL_EXPORT_END
|
|
68
|
+
|
|
69
|
+
VALUE rb_ivar_lookup(VALUE obj, ID id, VALUE undef);
|
|
70
|
+
VALUE rb_gvar_get(ID);
|
|
71
|
+
VALUE rb_gvar_set(ID, VALUE);
|
|
72
|
+
VALUE rb_gvar_defined(ID);
|
|
73
|
+
void rb_const_warn_if_deprecated(const rb_const_entry_t *, VALUE, ID);
|
|
74
|
+
void rb_ensure_iv_list_size(VALUE obj, uint32_t current_len, uint32_t newsize);
|
|
75
|
+
|
|
76
|
+
#endif /* INTERNAL_VARIABLE_H */
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
#ifndef INTERNAL_VM_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_VM_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 RubyVM.
|
|
10
|
+
*/
|
|
11
|
+
#include "ruby/internal/stdbool.h" /* for bool */
|
|
12
|
+
#include "internal/serial.h" /* for rb_serial_t */
|
|
13
|
+
#include "internal/static_assert.h" /* for STATIC_ASSERT */
|
|
14
|
+
#include "ruby/ruby.h" /* for ID */
|
|
15
|
+
#include "ruby/st.h" /* for st_table */
|
|
16
|
+
|
|
17
|
+
#ifdef rb_funcallv
|
|
18
|
+
# undef rb_funcallv
|
|
19
|
+
#endif
|
|
20
|
+
|
|
21
|
+
#ifdef rb_method_basic_definition_p
|
|
22
|
+
# undef rb_method_basic_definition_p
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
struct rb_callable_method_entry_struct; /* in method.h */
|
|
26
|
+
struct rb_method_definition_struct; /* in method.h */
|
|
27
|
+
struct rb_execution_context_struct; /* in vm_core.h */
|
|
28
|
+
struct rb_control_frame_struct; /* in vm_core.h */
|
|
29
|
+
struct rb_callinfo; /* in vm_core.h */
|
|
30
|
+
|
|
31
|
+
enum method_missing_reason {
|
|
32
|
+
MISSING_NOENTRY = 0x00,
|
|
33
|
+
MISSING_PRIVATE = 0x01,
|
|
34
|
+
MISSING_PROTECTED = 0x02,
|
|
35
|
+
MISSING_FCALL = 0x04,
|
|
36
|
+
MISSING_VCALL = 0x08,
|
|
37
|
+
MISSING_SUPER = 0x10,
|
|
38
|
+
MISSING_MISSING = 0x20,
|
|
39
|
+
MISSING_NONE = 0x40
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/* vm_insnhelper.h */
|
|
43
|
+
VALUE rb_vm_push_frame_fname(struct rb_execution_context_struct *ec, VALUE fname);
|
|
44
|
+
|
|
45
|
+
/* vm.c */
|
|
46
|
+
VALUE rb_obj_is_thread(VALUE obj);
|
|
47
|
+
void rb_vm_mark(void *ptr);
|
|
48
|
+
void rb_vm_register_global_object(VALUE obj);
|
|
49
|
+
void rb_vm_each_stack_value(void *ptr, void (*cb)(VALUE, void*), void *ctx);
|
|
50
|
+
PUREFUNC(VALUE rb_vm_top_self(void));
|
|
51
|
+
const void **rb_vm_get_insns_address_table(void);
|
|
52
|
+
VALUE rb_source_location(int *pline);
|
|
53
|
+
const char *rb_source_location_cstr(int *pline);
|
|
54
|
+
void rb_vm_pop_cfunc_frame(void);
|
|
55
|
+
void rb_vm_check_redefinition_by_prepend(VALUE klass);
|
|
56
|
+
int rb_vm_check_optimizable_mid(VALUE mid);
|
|
57
|
+
VALUE rb_yield_refine_block(VALUE refinement, VALUE refinements);
|
|
58
|
+
VALUE ruby_vm_special_exception_copy(VALUE);
|
|
59
|
+
|
|
60
|
+
void rb_lastline_set_up(VALUE val, unsigned int up);
|
|
61
|
+
|
|
62
|
+
/* vm_eval.c */
|
|
63
|
+
VALUE rb_current_realfilepath(void);
|
|
64
|
+
VALUE rb_check_block_call(VALUE, ID, int, const VALUE *, rb_block_call_func_t, VALUE);
|
|
65
|
+
typedef void rb_check_funcall_hook(int, VALUE, ID, int, const VALUE *, VALUE);
|
|
66
|
+
VALUE rb_check_funcall_with_hook_kw(VALUE recv, ID mid, int argc, const VALUE *argv,
|
|
67
|
+
rb_check_funcall_hook *hook, VALUE arg, int kw_splat);
|
|
68
|
+
const char *rb_type_str(enum ruby_value_type type);
|
|
69
|
+
VALUE rb_check_funcall_default(VALUE, ID, int, const VALUE *, VALUE);
|
|
70
|
+
VALUE rb_check_funcall_basic_kw(VALUE, ID, VALUE, int, const VALUE*, int);
|
|
71
|
+
VALUE rb_yield_1(VALUE val);
|
|
72
|
+
VALUE rb_ec_yield(struct rb_execution_context_struct *ec, VALUE val);
|
|
73
|
+
VALUE rb_yield_force_blockarg(VALUE values);
|
|
74
|
+
VALUE rb_lambda_call(VALUE obj, ID mid, int argc, const VALUE *argv,
|
|
75
|
+
rb_block_call_func_t bl_proc, int min_argc, int max_argc,
|
|
76
|
+
VALUE data2);
|
|
77
|
+
void rb_check_stack_overflow(void);
|
|
78
|
+
#define RB_BLOCK_NO_USE_PACKED_ARGS 2
|
|
79
|
+
VALUE rb_block_call2(VALUE obj, ID mid, int argc, const VALUE *argv, rb_block_call_func_t bl_proc, VALUE data2, long flags);
|
|
80
|
+
struct vm_ifunc *rb_current_ifunc(void);
|
|
81
|
+
VALUE rb_gccct_clear_table(VALUE);
|
|
82
|
+
VALUE rb_eval_cmd_call_kw(VALUE cmd, int argc, const VALUE *argv, int kw_splat);
|
|
83
|
+
|
|
84
|
+
#if USE_YJIT || USE_ZJIT
|
|
85
|
+
/* vm_exec.c */
|
|
86
|
+
extern uint64_t rb_vm_insn_count;
|
|
87
|
+
#endif
|
|
88
|
+
|
|
89
|
+
extern bool rb_free_at_exit;
|
|
90
|
+
|
|
91
|
+
/* miniinit.c and builtin.c */
|
|
92
|
+
void rb_free_loaded_builtin_table(void);
|
|
93
|
+
|
|
94
|
+
/* vm_insnhelper.c */
|
|
95
|
+
VALUE rb_equal_opt(VALUE obj1, VALUE obj2);
|
|
96
|
+
VALUE rb_eql_opt(VALUE obj1, VALUE obj2);
|
|
97
|
+
|
|
98
|
+
struct rb_iseq_struct;
|
|
99
|
+
const struct rb_callcache *rb_vm_search_method_slowpath(const struct rb_callinfo *ci, VALUE klass);
|
|
100
|
+
|
|
101
|
+
/* vm_method.c */
|
|
102
|
+
int rb_ec_obj_respond_to(struct rb_execution_context_struct *ec, VALUE obj, ID id, int priv);
|
|
103
|
+
|
|
104
|
+
void rb_clear_constant_cache(void);
|
|
105
|
+
|
|
106
|
+
/* vm_dump.c */
|
|
107
|
+
void rb_print_backtrace(FILE *);
|
|
108
|
+
|
|
109
|
+
/* vm_backtrace.c */
|
|
110
|
+
VALUE rb_vm_thread_backtrace(int argc, const VALUE *argv, VALUE thval);
|
|
111
|
+
VALUE rb_vm_thread_backtrace_locations(int argc, const VALUE *argv, VALUE thval);
|
|
112
|
+
VALUE rb_vm_backtrace(int argc, const VALUE * argv, struct rb_execution_context_struct * ec);
|
|
113
|
+
VALUE rb_vm_backtrace_locations(int argc, const VALUE * argv, struct rb_execution_context_struct * ec);
|
|
114
|
+
VALUE rb_make_backtrace(void);
|
|
115
|
+
void rb_backtrace_print_as_bugreport(FILE*);
|
|
116
|
+
int rb_backtrace_p(VALUE obj);
|
|
117
|
+
VALUE rb_backtrace_to_str_ary(VALUE obj);
|
|
118
|
+
VALUE rb_backtrace_to_location_ary(VALUE obj);
|
|
119
|
+
VALUE rb_location_ary_to_backtrace(VALUE ary);
|
|
120
|
+
void rb_backtrace_each(VALUE (*iter)(VALUE recv, VALUE str), VALUE output);
|
|
121
|
+
int rb_frame_info_p(VALUE obj);
|
|
122
|
+
int rb_get_node_id_from_frame_info(VALUE obj);
|
|
123
|
+
const struct rb_iseq_struct *rb_get_iseq_from_frame_info(VALUE obj);
|
|
124
|
+
|
|
125
|
+
VALUE rb_ec_backtrace_object(const struct rb_execution_context_struct *ec);
|
|
126
|
+
|
|
127
|
+
#define RUBY_DTRACE_CREATE_HOOK(name, arg) \
|
|
128
|
+
RUBY_DTRACE_HOOK(name##_CREATE, arg)
|
|
129
|
+
#define RUBY_DTRACE_HOOK(name, arg) \
|
|
130
|
+
do { \
|
|
131
|
+
if (UNLIKELY(RUBY_DTRACE_##name##_ENABLED())) { \
|
|
132
|
+
int dtrace_line; \
|
|
133
|
+
const char *dtrace_file = rb_source_location_cstr(&dtrace_line); \
|
|
134
|
+
if (!dtrace_file) dtrace_file = ""; \
|
|
135
|
+
RUBY_DTRACE_##name(arg, dtrace_file, dtrace_line); \
|
|
136
|
+
} \
|
|
137
|
+
} while (0)
|
|
138
|
+
#endif /* INTERNAL_VM_H */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#ifndef INTERNAL_WARNINGS_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_WARNINGS_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 to suppress / mandate warnings.
|
|
10
|
+
*/
|
|
11
|
+
#include "ruby/internal/warning_push.h"
|
|
12
|
+
#define COMPILER_WARNING_PUSH RBIMPL_WARNING_PUSH()
|
|
13
|
+
#define COMPILER_WARNING_POP RBIMPL_WARNING_POP()
|
|
14
|
+
#define COMPILER_WARNING_ERROR(flag) RBIMPL_WARNING_ERROR(flag)
|
|
15
|
+
#define COMPILER_WARNING_IGNORED(flag) RBIMPL_WARNING_IGNORED(flag)
|
|
16
|
+
#endif /* INTERNAL_WARNINGS_H */
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
#ifndef RUBY_INTERNAL_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define RUBY_INTERNAL_H 1
|
|
3
|
+
/**
|
|
4
|
+
* @author $Author$
|
|
5
|
+
* @date Tue May 17 11:42:20 JST 2011
|
|
6
|
+
* @copyright Copyright (C) 2011 Yukihiro Matsumoto
|
|
7
|
+
* @copyright This file is a part of the programming language Ruby.
|
|
8
|
+
* Permission is hereby granted, to either redistribute and/or
|
|
9
|
+
* modify this file, provided that the conditions mentioned in the
|
|
10
|
+
* file COPYING are met. Consult the file for details.
|
|
11
|
+
*/
|
|
12
|
+
#include "ruby/internal/config.h"
|
|
13
|
+
|
|
14
|
+
#ifdef __cplusplus
|
|
15
|
+
# error not for C++
|
|
16
|
+
#endif
|
|
17
|
+
|
|
18
|
+
#define LIKELY(x) RB_LIKELY(x)
|
|
19
|
+
#define UNLIKELY(x) RB_UNLIKELY(x)
|
|
20
|
+
|
|
21
|
+
#define numberof(array) ((int)(sizeof(array) / sizeof((array)[0])))
|
|
22
|
+
#define roomof(x, y) (((x) + (y) - 1) / (y))
|
|
23
|
+
#define type_roomof(x, y) roomof(sizeof(x), sizeof(y))
|
|
24
|
+
|
|
25
|
+
/* Prevent compiler from reordering access */
|
|
26
|
+
#define ACCESS_ONCE(type,x) (*((volatile type *)&(x)))
|
|
27
|
+
|
|
28
|
+
#define UNDEF_P RB_UNDEF_P
|
|
29
|
+
#define NIL_OR_UNDEF_P RB_NIL_OR_UNDEF_P
|
|
30
|
+
|
|
31
|
+
#include "ruby/ruby.h"
|
|
32
|
+
|
|
33
|
+
/* Following macros were formerly defined in this header but moved to somewhere
|
|
34
|
+
* else. In order to detect them we undef here. */
|
|
35
|
+
|
|
36
|
+
/* internal/array.h */
|
|
37
|
+
#undef RARRAY_AREF
|
|
38
|
+
|
|
39
|
+
/* internal/class.h */
|
|
40
|
+
#undef RClass
|
|
41
|
+
#undef RCLASS_SUPER
|
|
42
|
+
|
|
43
|
+
/* internal/hash.h */
|
|
44
|
+
#undef RHASH_IFNONE
|
|
45
|
+
#undef RHASH_SIZE
|
|
46
|
+
#undef RHASH_TBL
|
|
47
|
+
#undef RHASH_EMPTY_P
|
|
48
|
+
|
|
49
|
+
/* internal/struct.h */
|
|
50
|
+
#undef RSTRUCT_LEN
|
|
51
|
+
#undef RSTRUCT_PTR
|
|
52
|
+
#undef RSTRUCT_SET
|
|
53
|
+
#undef RSTRUCT_GET
|
|
54
|
+
|
|
55
|
+
/* Also, we keep the following macros here. They are expected to be
|
|
56
|
+
* overridden in each headers. */
|
|
57
|
+
|
|
58
|
+
/* internal/array.h */
|
|
59
|
+
#define rb_ary_new_from_args(...) rb_nonexistent_symbol(__VA_ARGS__)
|
|
60
|
+
|
|
61
|
+
/* internal/string.h */
|
|
62
|
+
#define rb_fstring_cstr(...) rb_nonexistent_symbol(__VA_ARGS__)
|
|
63
|
+
|
|
64
|
+
/* internal/symbol.h */
|
|
65
|
+
#define rb_sym_intern_ascii_cstr(...) rb_nonexistent_symbol(__VA_ARGS__)
|
|
66
|
+
|
|
67
|
+
/* internal/vm.h */
|
|
68
|
+
#define rb_funcallv(...) rb_nonexistent_symbol(__VA_ARGS__)
|
|
69
|
+
#define rb_method_basic_definition_p(...) rb_nonexistent_symbol(__VA_ARGS__)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/* MRI debug support */
|
|
73
|
+
|
|
74
|
+
/* gc.c */
|
|
75
|
+
void rb_obj_info_dump(VALUE obj);
|
|
76
|
+
void rb_obj_info_dump_loc(VALUE obj, const char *file, int line, const char *func);
|
|
77
|
+
|
|
78
|
+
/* debug.c */
|
|
79
|
+
|
|
80
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
|
81
|
+
void ruby_debug_breakpoint(void);
|
|
82
|
+
PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
|
|
83
|
+
RUBY_SYMBOL_EXPORT_END
|
|
84
|
+
|
|
85
|
+
// show obj data structure without any side-effect
|
|
86
|
+
#define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
|
|
87
|
+
|
|
88
|
+
// same as rp, but add message header
|
|
89
|
+
#define rp_m(msg, obj) do { \
|
|
90
|
+
fputs((msg), stderr); \
|
|
91
|
+
rb_obj_info_dump((VALUE)(obj)); \
|
|
92
|
+
} while (0)
|
|
93
|
+
|
|
94
|
+
// `ruby_debug_breakpoint()` does nothing,
|
|
95
|
+
// but breakpoint is set in run.gdb, so `make gdb` can stop here.
|
|
96
|
+
#define bp() ruby_debug_breakpoint()
|
|
97
|
+
|
|
98
|
+
#define RBOOL(v) ((v) ? Qtrue : Qfalse)
|
|
99
|
+
#define RB_BIGNUM_TYPE_P(x) RB_TYPE_P((x), T_BIGNUM)
|
|
100
|
+
|
|
101
|
+
#ifndef __MINGW32__
|
|
102
|
+
#undef memcpy
|
|
103
|
+
#define memcpy ruby_nonempty_memcpy
|
|
104
|
+
#endif
|
|
105
|
+
#endif /* RUBY_INTERNAL_H */
|