datadog-ruby_core_source 3.4.3 → 3.5.0
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-3.5.0-preview1 → ruby-4.0.0-p0}/prism/extension.h +1 -1
- data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/options.h +4 -1
- data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/version.h +2 -2
- data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/vm_core.h +9 -0
- data/lib/datadog/ruby_core_source/version.rb +1 -1
- metadata +108 -211
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/id.h +0 -352
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/id_table.h +0 -39
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/array.h +0 -152
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/basic_operators.h +0 -65
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/bignum.h +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/bits.h +0 -650
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/class.h +0 -283
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/cmdlineopt.h +0 -61
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/cont.h +0 -35
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/encoding.h +0 -38
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/error.h +0 -244
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/eval.h +0 -33
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/gc.h +0 -333
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/hash.h +0 -193
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/imemo.h +0 -257
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/inits.h +0 -47
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/io.h +0 -143
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/load.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/numeric.h +0 -274
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/object.h +0 -63
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/re.h +0 -28
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/sanitizers.h +0 -330
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/signal.h +0 -24
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/st.h +0 -11
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/string.h +0 -199
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/struct.h +0 -119
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/symbol.h +0 -47
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/thread.h +0 -108
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/time.h +0 -37
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/variable.h +0 -70
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/vm.h +0 -137
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal.h +0 -108
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/iseq.h +0 -351
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/method.h +0 -258
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/ast.h +0 -7964
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/diagnostic.h +0 -451
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/options.h +0 -442
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/parser.h +0 -933
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/prism.h +0 -383
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/regexp.h +0 -43
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/util/pm_buffer.h +0 -228
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/util/pm_integer.h +0 -126
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/util/pm_list.h +0 -97
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/util/pm_string.h +0 -190
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism/version.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/prism_compile.h +0 -105
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/ractor_core.h +0 -382
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/ruby_atomic.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/rubyparser.h +0 -1380
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/shape.h +0 -234
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/thread_pthread.h +0 -167
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/vm_core.h +0 -2235
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/vm_debug.h +0 -124
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ccan/build_assert/build_assert.h +0 -40
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ccan/check_type/check_type.h +0 -63
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ccan/container_of/container_of.h +0 -142
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ccan/list/list.h +0 -791
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ccan/str/str.h +0 -17
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/compar.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/compile.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/compilers.h +0 -107
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/complex.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/dir.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/enc.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/enum.h +0 -18
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/enumerator.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/file.h +0 -38
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/fixnum.h +0 -185
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/loadpath.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/math.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/missing.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/parse.h +0 -131
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/proc.h +0 -30
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/process.h +0 -124
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/ractor.h +0 -10
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/random.h +0 -17
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/range.h +0 -40
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/rational.h +0 -71
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/ruby_parser.h +0 -102
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/serial.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/static_assert.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/transcode.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/util.h +0 -27
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/internal/warnings.h +0 -16
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/node.h +0 -122
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/parser_st.h +0 -162
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/parser_value.h +0 -106
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/defines.h +0 -260
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/encoding.h +0 -283
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/extension.h +0 -19
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/node.h +0 -129
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/pack.h +0 -163
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/prettyprint.h +0 -34
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/static_literals.h +0 -121
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_char.h +0 -204
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_constant_pool.h +0 -218
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_memchr.h +0 -29
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_newline_list.h +0 -113
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_strncasecmp.h +0 -32
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/prism/util/pm_strpbrk.h +0 -46
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/ruby_assert.h +0 -14
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/thread_none.h +0 -21
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview3/vm_opts.h +0 -67
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/build_assert/build_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/check_type/check_type.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/container_of/container_of.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/list/list.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/str/str.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/id.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/id_table.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/array.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/basic_operators.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/bignum.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/bits.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/box.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/class.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/cmdlineopt.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compar.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compile.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compilers.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/complex.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/concurrent_set.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/cont.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/dir.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enc.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/encoding.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enum.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enumerator.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/error.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/eval.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/file.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/fixnum.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/gc.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/hash.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/imemo.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/inits.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/io.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/load.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/loadpath.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/math.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/missing.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/numeric.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/object.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/parse.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/proc.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/process.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/ractor.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/random.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/range.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/rational.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/re.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/ruby_parser.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/sanitizers.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/serial.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/set_table.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/signal.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/st.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/static_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/string.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/struct.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/symbol.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/thread.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/time.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/transcode.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/util.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/variable.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal/vm.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/warnings.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/internal.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/iseq.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/method.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/node.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/parser_st.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/parser_value.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/ast.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/defines.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/diagnostic.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/encoding.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/node.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/pack.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/parser.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/prettyprint.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/prism.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/regexp.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/static_literals.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/util/pm_buffer.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_char.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_constant_pool.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/util/pm_integer.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/util/pm_list.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_memchr.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_newline_list.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism/util/pm_string.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_strncasecmp.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_strpbrk.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/prism_compile.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/ractor_core.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ruby_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/ruby_atomic.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/rubyparser.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/shape.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/thread_none.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/thread_pthread.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-4.0.0-preview3 → ruby-4.0.0-p0}/vm_debug.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/vm_opts.h +0 -0
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_CLASS_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_CLASS_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 Class.
|
|
10
|
-
*/
|
|
11
|
-
#include "id.h"
|
|
12
|
-
#include "id_table.h" /* for struct rb_id_table */
|
|
13
|
-
#include "internal/serial.h" /* for rb_serial_t */
|
|
14
|
-
#include "internal/static_assert.h"
|
|
15
|
-
#include "internal/variable.h" /* for rb_class_ivar_set */
|
|
16
|
-
#include "ruby/internal/stdbool.h" /* for bool */
|
|
17
|
-
#include "ruby/intern.h" /* for rb_alloc_func_t */
|
|
18
|
-
#include "ruby/ruby.h" /* for struct RBasic */
|
|
19
|
-
#include "shape.h"
|
|
20
|
-
#include "ruby_assert.h"
|
|
21
|
-
#include "vm_core.h"
|
|
22
|
-
#include "vm_sync.h"
|
|
23
|
-
#include "method.h" /* for rb_cref_t */
|
|
24
|
-
|
|
25
|
-
#ifdef RCLASS_SUPER
|
|
26
|
-
# undef RCLASS_SUPER
|
|
27
|
-
#endif
|
|
28
|
-
|
|
29
|
-
struct rb_subclass_entry {
|
|
30
|
-
VALUE klass;
|
|
31
|
-
struct rb_subclass_entry *next;
|
|
32
|
-
struct rb_subclass_entry *prev;
|
|
33
|
-
};
|
|
34
|
-
typedef struct rb_subclass_entry rb_subclass_entry_t;
|
|
35
|
-
|
|
36
|
-
struct rb_cvar_class_tbl_entry {
|
|
37
|
-
uint32_t index;
|
|
38
|
-
rb_serial_t global_cvar_state;
|
|
39
|
-
const rb_cref_t * cref;
|
|
40
|
-
VALUE class_value;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
struct rb_classext_struct {
|
|
44
|
-
VALUE *iv_ptr;
|
|
45
|
-
struct rb_id_table *const_tbl;
|
|
46
|
-
struct rb_id_table *callable_m_tbl;
|
|
47
|
-
struct rb_id_table *cc_tbl; /* ID -> [[ci1, cc1], [ci2, cc2] ...] */
|
|
48
|
-
struct rb_id_table *cvc_tbl;
|
|
49
|
-
size_t superclass_depth;
|
|
50
|
-
VALUE *superclasses;
|
|
51
|
-
struct rb_subclass_entry *subclasses;
|
|
52
|
-
struct rb_subclass_entry *subclass_entry;
|
|
53
|
-
/**
|
|
54
|
-
* In the case that this is an `ICLASS`, `module_subclasses` points to the link
|
|
55
|
-
* in the module's `subclasses` list that indicates that the klass has been
|
|
56
|
-
* included. Hopefully that makes sense.
|
|
57
|
-
*/
|
|
58
|
-
struct rb_subclass_entry *module_subclass_entry;
|
|
59
|
-
const VALUE origin_;
|
|
60
|
-
const VALUE refined_class;
|
|
61
|
-
union {
|
|
62
|
-
struct {
|
|
63
|
-
rb_alloc_func_t allocator;
|
|
64
|
-
} class;
|
|
65
|
-
struct {
|
|
66
|
-
VALUE attached_object;
|
|
67
|
-
} singleton_class;
|
|
68
|
-
} as;
|
|
69
|
-
const VALUE includer;
|
|
70
|
-
attr_index_t max_iv_count;
|
|
71
|
-
unsigned char variation_count;
|
|
72
|
-
bool permanent_classpath : 1;
|
|
73
|
-
bool cloned : 1;
|
|
74
|
-
VALUE classpath;
|
|
75
|
-
};
|
|
76
|
-
typedef struct rb_classext_struct rb_classext_t;
|
|
77
|
-
|
|
78
|
-
STATIC_ASSERT(shape_max_variations, SHAPE_MAX_VARIATIONS < (1 << (sizeof(((rb_classext_t *)0)->variation_count) * CHAR_BIT)));
|
|
79
|
-
|
|
80
|
-
struct RClass {
|
|
81
|
-
struct RBasic basic;
|
|
82
|
-
VALUE super;
|
|
83
|
-
struct rb_id_table *m_tbl;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
// Assert that classes can be embedded in heaps[2] (which has 160B slot size)
|
|
87
|
-
STATIC_ASSERT(sizeof_rb_classext_t, sizeof(struct RClass) + sizeof(rb_classext_t) <= 4 * RVALUE_SIZE);
|
|
88
|
-
|
|
89
|
-
struct RClass_and_rb_classext_t {
|
|
90
|
-
struct RClass rclass;
|
|
91
|
-
rb_classext_t classext;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
#define RCLASS_EXT(c) (&((struct RClass_and_rb_classext_t*)(c))->classext)
|
|
95
|
-
#define RCLASS_CONST_TBL(c) (RCLASS_EXT(c)->const_tbl)
|
|
96
|
-
#define RCLASS_M_TBL(c) (RCLASS(c)->m_tbl)
|
|
97
|
-
#define RCLASS_IVPTR(c) (RCLASS_EXT(c)->iv_ptr)
|
|
98
|
-
#define RCLASS_CALLABLE_M_TBL(c) (RCLASS_EXT(c)->callable_m_tbl)
|
|
99
|
-
#define RCLASS_CC_TBL(c) (RCLASS_EXT(c)->cc_tbl)
|
|
100
|
-
#define RCLASS_CVC_TBL(c) (RCLASS_EXT(c)->cvc_tbl)
|
|
101
|
-
#define RCLASS_ORIGIN(c) (RCLASS_EXT(c)->origin_)
|
|
102
|
-
#define RCLASS_REFINED_CLASS(c) (RCLASS_EXT(c)->refined_class)
|
|
103
|
-
#define RCLASS_INCLUDER(c) (RCLASS_EXT(c)->includer)
|
|
104
|
-
#define RCLASS_SUBCLASS_ENTRY(c) (RCLASS_EXT(c)->subclass_entry)
|
|
105
|
-
#define RCLASS_MODULE_SUBCLASS_ENTRY(c) (RCLASS_EXT(c)->module_subclass_entry)
|
|
106
|
-
#define RCLASS_SUBCLASSES(c) (RCLASS_EXT(c)->subclasses)
|
|
107
|
-
#define RCLASS_SUPERCLASS_DEPTH(c) (RCLASS_EXT(c)->superclass_depth)
|
|
108
|
-
#define RCLASS_SUPERCLASSES(c) (RCLASS_EXT(c)->superclasses)
|
|
109
|
-
#define RCLASS_ATTACHED_OBJECT(c) (RCLASS_EXT(c)->as.singleton_class.attached_object)
|
|
110
|
-
|
|
111
|
-
#define RCLASS_IS_ROOT FL_USER0
|
|
112
|
-
#define RICLASS_IS_ORIGIN FL_USER0
|
|
113
|
-
#define RCLASS_SUPERCLASSES_INCLUDE_SELF FL_USER2
|
|
114
|
-
#define RICLASS_ORIGIN_SHARED_MTBL FL_USER3
|
|
115
|
-
|
|
116
|
-
static inline st_table *
|
|
117
|
-
RCLASS_IV_HASH(VALUE obj)
|
|
118
|
-
{
|
|
119
|
-
RUBY_ASSERT(RB_TYPE_P(obj, RUBY_T_CLASS) || RB_TYPE_P(obj, RUBY_T_MODULE));
|
|
120
|
-
RUBY_ASSERT(rb_shape_obj_too_complex(obj));
|
|
121
|
-
return (st_table *)RCLASS_IVPTR(obj);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
static inline void
|
|
125
|
-
RCLASS_SET_IV_HASH(VALUE obj, const st_table *tbl)
|
|
126
|
-
{
|
|
127
|
-
RUBY_ASSERT(RB_TYPE_P(obj, RUBY_T_CLASS) || RB_TYPE_P(obj, RUBY_T_MODULE));
|
|
128
|
-
RUBY_ASSERT(rb_shape_obj_too_complex(obj));
|
|
129
|
-
RCLASS_IVPTR(obj) = (VALUE *)tbl;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
static inline uint32_t
|
|
133
|
-
RCLASS_IV_COUNT(VALUE obj)
|
|
134
|
-
{
|
|
135
|
-
RUBY_ASSERT(RB_TYPE_P(obj, RUBY_T_CLASS) || RB_TYPE_P(obj, RUBY_T_MODULE));
|
|
136
|
-
if (rb_shape_obj_too_complex(obj)) {
|
|
137
|
-
uint32_t count;
|
|
138
|
-
|
|
139
|
-
// "Too complex" classes could have their IV hash mutated in
|
|
140
|
-
// parallel, so lets lock around getting the hash size.
|
|
141
|
-
RB_VM_LOCK_ENTER();
|
|
142
|
-
{
|
|
143
|
-
count = (uint32_t)rb_st_table_size(RCLASS_IV_HASH(obj));
|
|
144
|
-
}
|
|
145
|
-
RB_VM_LOCK_LEAVE();
|
|
146
|
-
|
|
147
|
-
return count;
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
return rb_shape_get_shape_by_id(RCLASS_SHAPE_ID(obj))->next_iv_index;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
static inline void
|
|
155
|
-
RCLASS_SET_M_TBL(VALUE klass, struct rb_id_table *table)
|
|
156
|
-
{
|
|
157
|
-
RUBY_ASSERT(!RB_OBJ_PROMOTED(klass));
|
|
158
|
-
RCLASS_M_TBL(klass) = table;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* class.c */
|
|
162
|
-
void rb_class_subclass_add(VALUE super, VALUE klass);
|
|
163
|
-
void rb_class_remove_from_super_subclasses(VALUE);
|
|
164
|
-
void rb_class_update_superclasses(VALUE);
|
|
165
|
-
size_t rb_class_superclasses_memsize(VALUE);
|
|
166
|
-
void rb_class_remove_subclass_head(VALUE);
|
|
167
|
-
int rb_singleton_class_internal_p(VALUE sklass);
|
|
168
|
-
VALUE rb_class_boot(VALUE);
|
|
169
|
-
VALUE rb_class_s_alloc(VALUE klass);
|
|
170
|
-
VALUE rb_module_s_alloc(VALUE klass);
|
|
171
|
-
void rb_module_set_initialized(VALUE module);
|
|
172
|
-
void rb_module_check_initializable(VALUE module);
|
|
173
|
-
VALUE rb_make_metaclass(VALUE, VALUE);
|
|
174
|
-
VALUE rb_include_class_new(VALUE, VALUE);
|
|
175
|
-
void rb_class_foreach_subclass(VALUE klass, void (*f)(VALUE, VALUE), VALUE);
|
|
176
|
-
void rb_class_detach_subclasses(VALUE);
|
|
177
|
-
void rb_class_detach_module_subclasses(VALUE);
|
|
178
|
-
void rb_class_remove_from_module_subclasses(VALUE);
|
|
179
|
-
VALUE rb_define_class_id_under_no_pin(VALUE outer, ID id, VALUE super);
|
|
180
|
-
VALUE rb_obj_methods(int argc, const VALUE *argv, VALUE obj);
|
|
181
|
-
VALUE rb_obj_protected_methods(int argc, const VALUE *argv, VALUE obj);
|
|
182
|
-
VALUE rb_obj_private_methods(int argc, const VALUE *argv, VALUE obj);
|
|
183
|
-
VALUE rb_obj_public_methods(int argc, const VALUE *argv, VALUE obj);
|
|
184
|
-
VALUE rb_class_undefined_instance_methods(VALUE mod);
|
|
185
|
-
VALUE rb_special_singleton_class(VALUE);
|
|
186
|
-
VALUE rb_singleton_class_clone_and_attach(VALUE obj, VALUE attach);
|
|
187
|
-
VALUE rb_singleton_class_get(VALUE obj);
|
|
188
|
-
void rb_undef_methods_from(VALUE klass, VALUE super);
|
|
189
|
-
|
|
190
|
-
static inline void RCLASS_SET_ORIGIN(VALUE klass, VALUE origin);
|
|
191
|
-
static inline void RICLASS_SET_ORIGIN_SHARED_MTBL(VALUE iclass);
|
|
192
|
-
static inline VALUE RCLASS_SUPER(VALUE klass);
|
|
193
|
-
static inline VALUE RCLASS_SET_SUPER(VALUE klass, VALUE super);
|
|
194
|
-
static inline void RCLASS_SET_INCLUDER(VALUE iclass, VALUE klass);
|
|
195
|
-
|
|
196
|
-
VALUE rb_class_inherited(VALUE, VALUE);
|
|
197
|
-
VALUE rb_keyword_error_new(const char *, VALUE);
|
|
198
|
-
|
|
199
|
-
static inline bool
|
|
200
|
-
RCLASS_SINGLETON_P(VALUE klass)
|
|
201
|
-
{
|
|
202
|
-
return RB_TYPE_P(klass, T_CLASS) && FL_TEST_RAW(klass, FL_SINGLETON);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
static inline rb_alloc_func_t
|
|
206
|
-
RCLASS_ALLOCATOR(VALUE klass)
|
|
207
|
-
{
|
|
208
|
-
if (RCLASS_SINGLETON_P(klass)) {
|
|
209
|
-
return 0;
|
|
210
|
-
}
|
|
211
|
-
return RCLASS_EXT(klass)->as.class.allocator;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
static inline void
|
|
215
|
-
RCLASS_SET_ALLOCATOR(VALUE klass, rb_alloc_func_t allocator)
|
|
216
|
-
{
|
|
217
|
-
assert(!RCLASS_SINGLETON_P(klass));
|
|
218
|
-
RCLASS_EXT(klass)->as.class.allocator = allocator;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
static inline void
|
|
222
|
-
RCLASS_SET_ORIGIN(VALUE klass, VALUE origin)
|
|
223
|
-
{
|
|
224
|
-
RB_OBJ_WRITE(klass, &RCLASS_ORIGIN(klass), origin);
|
|
225
|
-
if (klass != origin) FL_SET(origin, RICLASS_IS_ORIGIN);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
static inline void
|
|
229
|
-
RICLASS_SET_ORIGIN_SHARED_MTBL(VALUE iclass)
|
|
230
|
-
{
|
|
231
|
-
FL_SET(iclass, RICLASS_ORIGIN_SHARED_MTBL);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
static inline bool
|
|
235
|
-
RICLASS_OWNS_M_TBL_P(VALUE iclass)
|
|
236
|
-
{
|
|
237
|
-
return FL_TEST_RAW(iclass, RICLASS_IS_ORIGIN | RICLASS_ORIGIN_SHARED_MTBL) == RICLASS_IS_ORIGIN;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
static inline void
|
|
241
|
-
RCLASS_SET_INCLUDER(VALUE iclass, VALUE klass)
|
|
242
|
-
{
|
|
243
|
-
RB_OBJ_WRITE(iclass, &RCLASS_INCLUDER(iclass), klass);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
static inline VALUE
|
|
247
|
-
RCLASS_SUPER(VALUE klass)
|
|
248
|
-
{
|
|
249
|
-
return RCLASS(klass)->super;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
static inline VALUE
|
|
253
|
-
RCLASS_SET_SUPER(VALUE klass, VALUE super)
|
|
254
|
-
{
|
|
255
|
-
if (super) {
|
|
256
|
-
rb_class_remove_from_super_subclasses(klass);
|
|
257
|
-
rb_class_subclass_add(super, klass);
|
|
258
|
-
}
|
|
259
|
-
RB_OBJ_WRITE(klass, &RCLASS(klass)->super, super);
|
|
260
|
-
rb_class_update_superclasses(klass);
|
|
261
|
-
return super;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
static inline void
|
|
265
|
-
RCLASS_SET_CLASSPATH(VALUE klass, VALUE classpath, bool permanent)
|
|
266
|
-
{
|
|
267
|
-
assert(BUILTIN_TYPE(klass) == T_CLASS || BUILTIN_TYPE(klass) == T_MODULE);
|
|
268
|
-
assert(classpath == 0 || BUILTIN_TYPE(classpath) == T_STRING);
|
|
269
|
-
|
|
270
|
-
RB_OBJ_WRITE(klass, &(RCLASS_EXT(klass)->classpath), classpath);
|
|
271
|
-
RCLASS_EXT(klass)->permanent_classpath = permanent;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
static inline VALUE
|
|
275
|
-
RCLASS_SET_ATTACHED_OBJECT(VALUE klass, VALUE attached_object)
|
|
276
|
-
{
|
|
277
|
-
assert(RCLASS_SINGLETON_P(klass));
|
|
278
|
-
|
|
279
|
-
RB_OBJ_WRITE(klass, &RCLASS_EXT(klass)->as.singleton_class.attached_object, attached_object);
|
|
280
|
-
return attached_object;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
#endif /* INTERNAL_CLASS_H */
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_CMDLINEOPT_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_CMDLINEOPT_H
|
|
3
|
-
|
|
4
|
-
#include "yjit.h"
|
|
5
|
-
|
|
6
|
-
typedef struct {
|
|
7
|
-
unsigned int mask;
|
|
8
|
-
unsigned int set;
|
|
9
|
-
} ruby_features_t;
|
|
10
|
-
|
|
11
|
-
typedef struct ruby_cmdline_options {
|
|
12
|
-
const char *script;
|
|
13
|
-
VALUE script_name;
|
|
14
|
-
VALUE e_script;
|
|
15
|
-
struct {
|
|
16
|
-
struct {
|
|
17
|
-
VALUE name;
|
|
18
|
-
int index;
|
|
19
|
-
} enc;
|
|
20
|
-
} src, ext, intern;
|
|
21
|
-
VALUE req_list;
|
|
22
|
-
ruby_features_t features;
|
|
23
|
-
ruby_features_t warn;
|
|
24
|
-
unsigned int dump;
|
|
25
|
-
long backtrace_length_limit;
|
|
26
|
-
|
|
27
|
-
const char *crash_report;
|
|
28
|
-
|
|
29
|
-
signed int sflag: 2;
|
|
30
|
-
unsigned int xflag: 1;
|
|
31
|
-
unsigned int warning: 1;
|
|
32
|
-
unsigned int verbose: 1;
|
|
33
|
-
unsigned int do_loop: 1;
|
|
34
|
-
unsigned int do_print: 1;
|
|
35
|
-
unsigned int do_line: 1;
|
|
36
|
-
unsigned int do_split: 1;
|
|
37
|
-
unsigned int do_search: 1;
|
|
38
|
-
unsigned int setids: 2;
|
|
39
|
-
#if USE_YJIT
|
|
40
|
-
unsigned int yjit: 1;
|
|
41
|
-
#endif
|
|
42
|
-
} ruby_cmdline_options_t;
|
|
43
|
-
|
|
44
|
-
struct ruby_opt_message {
|
|
45
|
-
const char *str;
|
|
46
|
-
unsigned short namelen, secondlen;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
#define RUBY_OPT_MESSAGE(shortopt, longopt, desc) { \
|
|
50
|
-
shortopt " " longopt " " desc, \
|
|
51
|
-
(unsigned short)sizeof(shortopt), \
|
|
52
|
-
(unsigned short)sizeof(longopt), \
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
#define opt_match(s, l, name) \
|
|
56
|
-
((((l) > rb_strlen_lit(name)) ? (s)[rb_strlen_lit(name)] == '=' : \
|
|
57
|
-
(l) == rb_strlen_lit(name)) && \
|
|
58
|
-
memcmp((s), name, rb_strlen_lit(name)) == 0 && \
|
|
59
|
-
(((s) += rb_strlen_lit(name)), 1))
|
|
60
|
-
|
|
61
|
-
#endif
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_CONT_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_CONT_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 Fiber.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/ruby.h" /* for VALUE */
|
|
12
|
-
#include "iseq.h"
|
|
13
|
-
|
|
14
|
-
struct rb_thread_struct; /* in vm_core.h */
|
|
15
|
-
struct rb_fiber_struct; /* in cont.c */
|
|
16
|
-
struct rb_execution_context_struct; /* in vm_core.c */
|
|
17
|
-
|
|
18
|
-
/* cont.c */
|
|
19
|
-
void rb_fiber_reset_root_local_storage(struct rb_thread_struct *);
|
|
20
|
-
void ruby_register_rollback_func_for_ensure(VALUE (*ensure_func)(VALUE), VALUE (*rollback_func)(VALUE));
|
|
21
|
-
void rb_jit_cont_init(void);
|
|
22
|
-
void rb_jit_cont_each_iseq(rb_iseq_callback callback, void *data);
|
|
23
|
-
void rb_jit_cont_finish(void);
|
|
24
|
-
|
|
25
|
-
/* vm.c */
|
|
26
|
-
void rb_free_shared_fiber_pool(void);
|
|
27
|
-
|
|
28
|
-
// Copy locals from the current execution to the specified fiber.
|
|
29
|
-
VALUE rb_fiber_inherit_storage(struct rb_execution_context_struct *ec, struct rb_fiber_struct *fiber);
|
|
30
|
-
|
|
31
|
-
VALUE rb_fiberptr_self(struct rb_fiber_struct *fiber);
|
|
32
|
-
unsigned int rb_fiberptr_blocking(struct rb_fiber_struct *fiber);
|
|
33
|
-
struct rb_execution_context_struct * rb_fiberptr_get_ec(struct rb_fiber_struct *fiber);
|
|
34
|
-
|
|
35
|
-
#endif /* INTERNAL_CONT_H */
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_ENCODING_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_ENCODING_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.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/ruby.h" /* for ID */
|
|
12
|
-
#include "ruby/encoding.h" /* for rb_encoding */
|
|
13
|
-
|
|
14
|
-
#define rb_enc_autoload_p(enc) (!rb_enc_mbmaxlen(enc))
|
|
15
|
-
#define rb_is_usascii_enc(enc) ((enc) == rb_usascii_encoding())
|
|
16
|
-
#define rb_is_ascii8bit_enc(enc) ((enc) == rb_ascii8bit_encoding())
|
|
17
|
-
#define rb_is_locale_enc(enc) ((enc) == rb_locale_encoding())
|
|
18
|
-
|
|
19
|
-
/* encoding.c */
|
|
20
|
-
ID rb_id_encoding(void);
|
|
21
|
-
const char * rb_enc_inspect_name(rb_encoding *enc);
|
|
22
|
-
rb_encoding *rb_enc_get_from_index(int index);
|
|
23
|
-
rb_encoding *rb_enc_check_str(VALUE str1, VALUE str2);
|
|
24
|
-
int rb_encdb_replicate(const char *alias, const char *orig);
|
|
25
|
-
int rb_encdb_alias(const char *alias, const char *orig);
|
|
26
|
-
int rb_enc_autoload(rb_encoding *enc);
|
|
27
|
-
int rb_encdb_dummy(const char *name);
|
|
28
|
-
void rb_encdb_declare(const char *name);
|
|
29
|
-
void rb_enc_set_base(const char *name, const char *orig);
|
|
30
|
-
int rb_enc_set_dummy(int index);
|
|
31
|
-
void rb_enc_raw_set(VALUE obj, rb_encoding *enc);
|
|
32
|
-
|
|
33
|
-
PUREFUNC(int rb_data_is_encoding(VALUE obj));
|
|
34
|
-
|
|
35
|
-
/* vm.c */
|
|
36
|
-
void rb_free_global_enc_table(void);
|
|
37
|
-
|
|
38
|
-
#endif /* INTERNAL_ENCODING_H */
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_ERROR_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_ERROR_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 Exception.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/internal/config.h"
|
|
12
|
-
#include <stdarg.h> /* for va_list */
|
|
13
|
-
#include "internal/string.h" /* for rb_fstring_cstr */
|
|
14
|
-
#include "ruby/internal/stdbool.h" /* for bool */
|
|
15
|
-
#include "ruby/encoding.h" /* for rb_encoding */
|
|
16
|
-
#include "ruby/intern.h" /* for rb_exc_raise */
|
|
17
|
-
#include "ruby/ruby.h" /* for enum ruby_value_type */
|
|
18
|
-
|
|
19
|
-
#ifdef Check_Type
|
|
20
|
-
# undef Check_Type /* in ruby/ruby.h */
|
|
21
|
-
#endif
|
|
22
|
-
|
|
23
|
-
#ifdef rb_raise_static
|
|
24
|
-
# undef rb_raise_static
|
|
25
|
-
# undef rb_sys_fail_path
|
|
26
|
-
# undef rb_syserr_fail_path
|
|
27
|
-
#endif
|
|
28
|
-
|
|
29
|
-
#define rb_raise_static(e, m) \
|
|
30
|
-
rb_raise_cstr_i((e), rb_str_new_static((m), rb_strlen_lit(m)))
|
|
31
|
-
#ifdef RUBY_FUNCTION_NAME_STRING
|
|
32
|
-
# define rb_syserr_fail_path(err, path) rb_syserr_fail_path_in(RUBY_FUNCTION_NAME_STRING, (err), (path))
|
|
33
|
-
# define rb_syserr_new_path(err, path) rb_syserr_new_path_in(RUBY_FUNCTION_NAME_STRING, (err), (path))
|
|
34
|
-
#else
|
|
35
|
-
# define rb_syserr_fail_path(err, path) rb_syserr_fail_str((err), (path))
|
|
36
|
-
# define rb_syserr_new_path(err, path) rb_syserr_new_str((err), (path))
|
|
37
|
-
#endif
|
|
38
|
-
|
|
39
|
-
#define rb_sys_fail(mesg) \
|
|
40
|
-
do { \
|
|
41
|
-
int errno_to_fail = errno; \
|
|
42
|
-
rb_syserr_fail(errno_to_fail, (mesg)); \
|
|
43
|
-
} while (0)
|
|
44
|
-
|
|
45
|
-
#define rb_sys_fail_str(mesg) \
|
|
46
|
-
do { \
|
|
47
|
-
int errno_to_fail = errno; \
|
|
48
|
-
rb_syserr_fail_str(errno_to_fail, (mesg)); \
|
|
49
|
-
} while (0)
|
|
50
|
-
|
|
51
|
-
#define rb_sys_fail_path(path) \
|
|
52
|
-
do { \
|
|
53
|
-
int errno_to_fail = errno; \
|
|
54
|
-
rb_syserr_fail_path(errno_to_fail, (path)); \
|
|
55
|
-
} while (0)
|
|
56
|
-
|
|
57
|
-
#define rb_sys_fail_sprintf(...) \
|
|
58
|
-
do { \
|
|
59
|
-
int errno_to_fail = errno; \
|
|
60
|
-
rb_syserr_fail_str(errno_to_fail, rb_sprintf("" __VA_ARGS__)); \
|
|
61
|
-
} while (0)
|
|
62
|
-
|
|
63
|
-
/* error.c */
|
|
64
|
-
extern long rb_backtrace_length_limit;
|
|
65
|
-
extern VALUE rb_eEAGAIN;
|
|
66
|
-
extern VALUE rb_eEWOULDBLOCK;
|
|
67
|
-
extern VALUE rb_eEINPROGRESS;
|
|
68
|
-
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 3, 0)
|
|
69
|
-
void rb_report_bug_valist(VALUE file, int line, const char *fmt, va_list args);
|
|
70
|
-
NORETURN(void rb_async_bug_errno(const char *,int));
|
|
71
|
-
const char *rb_builtin_type_name(int t);
|
|
72
|
-
const char *rb_builtin_class_name(VALUE x);
|
|
73
|
-
PRINTF_ARGS(void rb_warn_deprecated(const char *fmt, const char *suggest, ...), 1, 3);
|
|
74
|
-
PRINTF_ARGS(void rb_warn_deprecated_to_remove(const char *removal, const char *fmt, const char *suggest, ...), 2, 4);
|
|
75
|
-
PRINTF_ARGS(void rb_warn_reserved_name(const char *removal, const char *fmt, ...), 2, 3);
|
|
76
|
-
#if RUBY_DEBUG
|
|
77
|
-
# include "ruby/version.h"
|
|
78
|
-
# define RUBY_VERSION_SINCE(major, minor) (RUBY_API_VERSION_CODE >= (major * 10000) + (minor) * 100)
|
|
79
|
-
# define RUBY_VERSION_BEFORE(major, minor) (RUBY_API_VERSION_CODE < (major * 10000) + (minor) * 100)
|
|
80
|
-
# if defined(RBIMPL_WARNING_PRAGMA0)
|
|
81
|
-
# define RBIMPL_TODO0(x) RBIMPL_WARNING_PRAGMA0(message(x))
|
|
82
|
-
# elif RBIMPL_COMPILER_SINCE(MSVC, 12, 0, 0)
|
|
83
|
-
# define RBIMPL_TODO0(x) __pragma(message(x))
|
|
84
|
-
# endif
|
|
85
|
-
|
|
86
|
-
# if RBIMPL_HAS_ATTRIBUTE(diagnose_if) || defined(__OPTIMIZE__)
|
|
87
|
-
|
|
88
|
-
#define RUBY_VERSION_isdigit(c) ('0'<=(c)&&(c)<='9')
|
|
89
|
-
// upto 99
|
|
90
|
-
#define RUBY_VERSION__number_len(v, ofs) \
|
|
91
|
-
(!RUBY_VERSION_isdigit((v)[ofs]) ? \
|
|
92
|
-
0 : !RUBY_VERSION_isdigit((v)[(ofs) + 1]) ? 1 : 2)
|
|
93
|
-
#define RUBY_VERSION__to_number(v, ofs) \
|
|
94
|
-
(!RUBY_VERSION_isdigit((v)[ofs]) ? \
|
|
95
|
-
0 : !RUBY_VERSION_isdigit((v)[(ofs) + 1]) ? \
|
|
96
|
-
((v)[ofs]-'0') : \
|
|
97
|
-
(((v)[ofs]-'0')*10+(v)[(ofs)+1]-'0'))
|
|
98
|
-
|
|
99
|
-
#define RUBY_VERSION_CODE_FROM_MAJOR_MINOR_STRING(v) \
|
|
100
|
-
(RUBY_VERSION__to_number(v, 0) * 10000 + \
|
|
101
|
-
((v)[RUBY_VERSION__number_len(v, 0)] == '.' ? \
|
|
102
|
-
RUBY_VERSION__to_number(v, RUBY_VERSION__number_len(v, 0)+1) * 100 : 0))
|
|
103
|
-
#define RUBY_VERSION_STRING_SINCE(v) (RUBY_API_VERSION_CODE >= RUBY_VERSION_CODE_FROM_MAJOR_MINOR_STRING(v))
|
|
104
|
-
#define RUBY_VERSION_STRING_BEFORE(v) (RUBY_API_VERSION_CODE < RUBY_VERSION_CODE_FROM_MAJOR_MINOR_STRING(v))
|
|
105
|
-
|
|
106
|
-
# if RBIMPL_HAS_ATTRIBUTE(diagnose_if)
|
|
107
|
-
RBIMPL_ATTR_FORCEINLINE()
|
|
108
|
-
static void
|
|
109
|
-
rb_deprecated_method_to_be_removed(const char *removal)
|
|
110
|
-
RBIMPL_ATTR_DIAGNOSE_IF(!RUBY_VERSION_isdigit(removal[0]), "malformed version number", "error")
|
|
111
|
-
RBIMPL_ATTR_DIAGNOSE_IF(RUBY_VERSION_STRING_SINCE(removal), "deprecated method to be removed", "error")
|
|
112
|
-
{
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
RBIMPL_ATTR_FORCEINLINE()
|
|
116
|
-
static void
|
|
117
|
-
rb_diagnose_reserved_name_at(const char *coming)
|
|
118
|
-
RBIMPL_ATTR_DIAGNOSE_IF(!RUBY_VERSION_isdigit(coming[0]), "malformed version number", "error")
|
|
119
|
-
RBIMPL_ATTR_DIAGNOSE_IF(RUBY_VERSION_STRING_SINCE(coming), "reserved name already in use", "error")
|
|
120
|
-
{
|
|
121
|
-
}
|
|
122
|
-
# else
|
|
123
|
-
RBIMPL_ATTR_ERROR(("deprecated"))
|
|
124
|
-
void rb_deprecated_method_to_be_removed(const char *);
|
|
125
|
-
# define rb_deprecated_method_to_be_removed(removal) \
|
|
126
|
-
(sizeof(char[1-2*(!RUBY_VERSION_isdigit(removal[0]) || RUBY_VERSION_STRING_SINCE(removal))])!=1 ? \
|
|
127
|
-
rb_deprecated_method_to_be_removed(removal) : \
|
|
128
|
-
RBIMPL_ASSERT_NOTHING)
|
|
129
|
-
|
|
130
|
-
RBIMPL_ATTR_ERROR(("deprecated"))
|
|
131
|
-
void rb_diagnose_reserved_name_at(const char *);
|
|
132
|
-
# define rb_diagnose_reserved_name_at(coming) \
|
|
133
|
-
(sizeof(char[1-2*(!RUBY_VERSION_isdigit(coming[0]) || RUBY_VERSION_STRING_SINCE(coming))])!=1 ? \
|
|
134
|
-
rb_diagnose_reserved_name_at(coming) : \
|
|
135
|
-
RBIMPL_ASSERT_NOTHING)
|
|
136
|
-
|
|
137
|
-
# endif
|
|
138
|
-
# define rb_warn_deprecated_to_remove_at(removal, ...) \
|
|
139
|
-
(rb_deprecated_method_to_be_removed(#removal), \
|
|
140
|
-
rb_warn_deprecated_to_remove(#removal, __VA_ARGS__))
|
|
141
|
-
|
|
142
|
-
# define rb_warn_reserved_name_at(coming, ...) \
|
|
143
|
-
(rb_diagnose_reserved_name_at(#coming), \
|
|
144
|
-
rb_warn_reserved_name(#coming, __VA_ARGS__))
|
|
145
|
-
# endif
|
|
146
|
-
#endif
|
|
147
|
-
#ifndef rb_warn_deprecated_to_remove_at
|
|
148
|
-
# define rb_warn_deprecated_to_remove_at(removal, ...) \
|
|
149
|
-
rb_warn_deprecated_to_remove(#removal, __VA_ARGS__)
|
|
150
|
-
#endif
|
|
151
|
-
#ifndef rb_warn_reserved_name_at
|
|
152
|
-
# define rb_warn_reserved_name_at(removal, ...) \
|
|
153
|
-
rb_warn_reserved_name(#removal, __VA_ARGS__)
|
|
154
|
-
#endif
|
|
155
|
-
#ifndef RUBY_VERSION_SINCE
|
|
156
|
-
# define RUBY_VERSION_SINCE(major, minor) 0
|
|
157
|
-
#endif
|
|
158
|
-
#ifndef RUBY_VERSION_BEFORE
|
|
159
|
-
# define RUBY_VERSION_BEFORE(major, minor) 0
|
|
160
|
-
#endif
|
|
161
|
-
#ifndef RBIMPL_TODO0
|
|
162
|
-
# define RBIMPL_TODO0(x)
|
|
163
|
-
#endif
|
|
164
|
-
#define RBIMPL_TODO(message) RBIMPL_TODO0("TODO: " message)
|
|
165
|
-
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 6, 0)
|
|
166
|
-
VALUE rb_syntax_error_append(VALUE, VALUE, int, int, rb_encoding*, const char*, va_list);
|
|
167
|
-
PRINTF_ARGS(void rb_enc_warn(rb_encoding *enc, const char *fmt, ...), 2, 3);
|
|
168
|
-
PRINTF_ARGS(void rb_sys_enc_warning(rb_encoding *enc, const char *fmt, ...), 2, 3);
|
|
169
|
-
PRINTF_ARGS(void rb_syserr_enc_warning(int err, rb_encoding *enc, const char *fmt, ...), 3, 4);
|
|
170
|
-
PRINTF_ARGS(void rb_enc_compile_warning(rb_encoding *enc, const char *file, int line, const char *fmt, ...), 4, 5);
|
|
171
|
-
PRINTF_ARGS(void rb_enc_compile_warn(rb_encoding *enc, const char *file, int line, const char *fmt, ...), 4, 5);
|
|
172
|
-
rb_warning_category_t rb_warning_category_from_name(VALUE category);
|
|
173
|
-
bool rb_warning_category_enabled_p(rb_warning_category_t category);
|
|
174
|
-
VALUE rb_name_err_new(VALUE mesg, VALUE recv, VALUE method);
|
|
175
|
-
VALUE rb_nomethod_err_new(VALUE mesg, VALUE recv, VALUE method, VALUE args, int priv);
|
|
176
|
-
VALUE rb_key_err_new(VALUE mesg, VALUE recv, VALUE name);
|
|
177
|
-
PRINTF_ARGS(VALUE rb_warning_string(const char *fmt, ...), 1, 2);
|
|
178
|
-
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 0)
|
|
179
|
-
NORETURN(void rb_vraise(VALUE, const char *, va_list));
|
|
180
|
-
NORETURN(static inline void rb_raise_cstr(VALUE etype, const char *mesg));
|
|
181
|
-
NORETURN(static inline void rb_raise_cstr_i(VALUE etype, VALUE mesg));
|
|
182
|
-
NORETURN(static inline void rb_name_err_raise_str(VALUE mesg, VALUE recv, VALUE name));
|
|
183
|
-
NORETURN(static inline void rb_name_err_raise(const char *mesg, VALUE recv, VALUE name));
|
|
184
|
-
NORETURN(static inline void rb_key_err_raise(VALUE mesg, VALUE recv, VALUE name));
|
|
185
|
-
static inline void Check_Type(VALUE v, enum ruby_value_type t);
|
|
186
|
-
static inline bool rb_typeddata_is_instance_of_inline(VALUE obj, const rb_data_type_t *data_type);
|
|
187
|
-
#define rb_typeddata_is_instance_of rb_typeddata_is_instance_of_inline
|
|
188
|
-
void rb_bug_without_die(const char *fmt, ...);
|
|
189
|
-
|
|
190
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
191
|
-
/* error.c (export) */
|
|
192
|
-
int rb_bug_reporter_add(void (*func)(FILE *, void *), void *data);
|
|
193
|
-
#ifdef RUBY_FUNCTION_NAME_STRING
|
|
194
|
-
NORETURN(void rb_sys_fail_path_in(const char *func_name, VALUE path));
|
|
195
|
-
NORETURN(void rb_syserr_fail_path_in(const char *func_name, int err, VALUE path));
|
|
196
|
-
VALUE rb_syserr_new_path_in(const char *func_name, int n, VALUE path);
|
|
197
|
-
#endif
|
|
198
|
-
RUBY_SYMBOL_EXPORT_END
|
|
199
|
-
|
|
200
|
-
/* vm.c */
|
|
201
|
-
void rb_free_warning(void);
|
|
202
|
-
|
|
203
|
-
static inline void
|
|
204
|
-
rb_raise_cstr_i(VALUE etype, VALUE mesg)
|
|
205
|
-
{
|
|
206
|
-
VALUE exc = rb_exc_new_str(etype, mesg);
|
|
207
|
-
rb_exc_raise(exc);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
static inline void
|
|
211
|
-
rb_raise_cstr(VALUE etype, const char *mesg)
|
|
212
|
-
{
|
|
213
|
-
VALUE str = rb_str_new_cstr(mesg);
|
|
214
|
-
rb_raise_cstr_i(etype, str);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
static inline void
|
|
218
|
-
rb_name_err_raise_str(VALUE mesg, VALUE recv, VALUE name)
|
|
219
|
-
{
|
|
220
|
-
VALUE exc = rb_name_err_new(mesg, recv, name);
|
|
221
|
-
rb_exc_raise(exc);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
static inline void
|
|
225
|
-
rb_name_err_raise(const char *mesg, VALUE recv, VALUE name)
|
|
226
|
-
{
|
|
227
|
-
VALUE str = rb_fstring_cstr(mesg);
|
|
228
|
-
rb_name_err_raise_str(str, recv, name);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
static inline void
|
|
232
|
-
rb_key_err_raise(VALUE mesg, VALUE recv, VALUE name)
|
|
233
|
-
{
|
|
234
|
-
VALUE exc = rb_key_err_new(mesg, recv, name);
|
|
235
|
-
rb_exc_raise(exc);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
static inline bool
|
|
239
|
-
rb_typeddata_is_instance_of_inline(VALUE obj, const rb_data_type_t *data_type)
|
|
240
|
-
{
|
|
241
|
-
return RB_TYPE_P(obj, T_DATA) && RTYPEDDATA_P(obj) && (RTYPEDDATA_TYPE(obj) == data_type);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
#endif /* INTERNAL_ERROR_H */
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_EVAL_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_EVAL_H
|
|
3
|
-
/**
|
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
|
8
|
-
* file COPYING are met. Consult the file for details.
|
|
9
|
-
* @brief Internal header for the evaluator.
|
|
10
|
-
* @note There also is eval_intern.h, which is evaluator's internal
|
|
11
|
-
* header (related to this file, but not the same role).
|
|
12
|
-
*/
|
|
13
|
-
#include "ruby/ruby.h" /* for ID */
|
|
14
|
-
|
|
15
|
-
#define id_signo ruby_static_id_signo
|
|
16
|
-
#define id_status ruby_static_id_status
|
|
17
|
-
|
|
18
|
-
/* eval.c */
|
|
19
|
-
extern ID ruby_static_id_signo;
|
|
20
|
-
extern ID ruby_static_id_status;
|
|
21
|
-
VALUE rb_refinement_module_get_refined_class(VALUE module);
|
|
22
|
-
void rb_class_modify_check(VALUE);
|
|
23
|
-
NORETURN(VALUE rb_f_raise(int argc, VALUE *argv));
|
|
24
|
-
VALUE rb_top_main_class(const char *method);
|
|
25
|
-
|
|
26
|
-
/* eval_error.c */
|
|
27
|
-
VALUE rb_get_backtrace(VALUE info);
|
|
28
|
-
|
|
29
|
-
/* eval_jump.c */
|
|
30
|
-
void rb_call_end_proc(VALUE data);
|
|
31
|
-
void rb_mark_end_proc(void);
|
|
32
|
-
|
|
33
|
-
#endif /* INTERNAL_EVAL_H */
|