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,131 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_PARSE_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_PARSE_H
|
|
3
|
-
/**
|
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
|
8
|
-
* file COPYING are met. Consult the file for details.
|
|
9
|
-
* @brief Internal header for the parser.
|
|
10
|
-
*/
|
|
11
|
-
#include <limits.h>
|
|
12
|
-
#include "rubyparser.h"
|
|
13
|
-
#include "internal/static_assert.h"
|
|
14
|
-
|
|
15
|
-
// The default parser to use for Ruby code.
|
|
16
|
-
typedef enum {
|
|
17
|
-
RB_DEFAULT_PARSER_PARSE_Y,
|
|
18
|
-
RB_DEFAULT_PARSER_PRISM,
|
|
19
|
-
} ruby_default_parser_enum;
|
|
20
|
-
|
|
21
|
-
ruby_default_parser_enum rb_ruby_default_parser(void);
|
|
22
|
-
void rb_ruby_default_parser_set(ruby_default_parser_enum parser);
|
|
23
|
-
|
|
24
|
-
#define rb_ruby_prism_p() (rb_ruby_default_parser() == RB_DEFAULT_PARSER_PRISM)
|
|
25
|
-
|
|
26
|
-
#ifdef UNIVERSAL_PARSER
|
|
27
|
-
#define rb_encoding const void
|
|
28
|
-
#endif
|
|
29
|
-
|
|
30
|
-
struct rb_iseq_struct; /* in vm_core.h */
|
|
31
|
-
|
|
32
|
-
/* structs for managing terminator of string literal and heredocment */
|
|
33
|
-
typedef struct rb_strterm_literal_struct {
|
|
34
|
-
long nest;
|
|
35
|
-
int func; /* STR_FUNC_* (e.g., STR_FUNC_ESCAPE and STR_FUNC_EXPAND) */
|
|
36
|
-
int paren; /* '(' of `%q(...)` */
|
|
37
|
-
int term; /* ')' of `%q(...)` */
|
|
38
|
-
} rb_strterm_literal_t;
|
|
39
|
-
|
|
40
|
-
typedef struct rb_strterm_heredoc_struct {
|
|
41
|
-
rb_parser_string_t *lastline; /* the string of line that contains `<<"END"` */
|
|
42
|
-
long offset; /* the column of END in `<<"END"` */
|
|
43
|
-
int sourceline; /* lineno of the line that contains `<<"END"` */
|
|
44
|
-
unsigned length; /* the length of END in `<<"END"` */
|
|
45
|
-
uint8_t quote;
|
|
46
|
-
uint8_t func;
|
|
47
|
-
} rb_strterm_heredoc_t;
|
|
48
|
-
|
|
49
|
-
#define HERETERM_LENGTH_MAX UINT_MAX
|
|
50
|
-
|
|
51
|
-
typedef struct rb_strterm_struct {
|
|
52
|
-
bool heredoc;
|
|
53
|
-
union {
|
|
54
|
-
rb_strterm_literal_t literal;
|
|
55
|
-
rb_strterm_heredoc_t heredoc;
|
|
56
|
-
} u;
|
|
57
|
-
} rb_strterm_t;
|
|
58
|
-
|
|
59
|
-
/* parse.y */
|
|
60
|
-
void rb_ruby_parser_mark(void *ptr);
|
|
61
|
-
size_t rb_ruby_parser_memsize(const void *ptr);
|
|
62
|
-
|
|
63
|
-
void rb_ruby_parser_set_options(rb_parser_t *p, int print, int loop, int chomp, int split);
|
|
64
|
-
rb_parser_t *rb_ruby_parser_set_context(rb_parser_t *p, const struct rb_iseq_struct *base, int main);
|
|
65
|
-
void rb_ruby_parser_set_script_lines(rb_parser_t *p);
|
|
66
|
-
void rb_ruby_parser_error_tolerant(rb_parser_t *p);
|
|
67
|
-
void rb_ruby_parser_keep_tokens(rb_parser_t *p);
|
|
68
|
-
typedef rb_parser_string_t*(rb_parser_lex_gets_func)(struct parser_params*, rb_parser_input_data, int);
|
|
69
|
-
rb_ast_t *rb_parser_compile(rb_parser_t *p, rb_parser_lex_gets_func *gets, VALUE fname, rb_parser_input_data input, int line);
|
|
70
|
-
|
|
71
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
72
|
-
|
|
73
|
-
rb_encoding *rb_ruby_parser_encoding(rb_parser_t *p);
|
|
74
|
-
int rb_ruby_parser_end_seen_p(rb_parser_t *p);
|
|
75
|
-
int rb_ruby_parser_set_yydebug(rb_parser_t *p, int flag);
|
|
76
|
-
rb_parser_string_t *rb_str_to_parser_string(rb_parser_t *p, VALUE str);
|
|
77
|
-
void rb_parser_string_free(rb_parser_t *p, rb_parser_string_t *str);
|
|
78
|
-
|
|
79
|
-
int rb_parser_dvar_defined_ref(struct parser_params*, ID, ID**);
|
|
80
|
-
ID rb_parser_internal_id(struct parser_params*);
|
|
81
|
-
typedef void (*rb_parser_reg_fragment_error_func)(struct parser_params *, VALUE);
|
|
82
|
-
int rb_parser_reg_fragment_check(struct parser_params*, rb_parser_string_t*, int, rb_parser_reg_fragment_error_func);
|
|
83
|
-
int rb_reg_named_capture_assign_iter_impl(struct parser_params *p, const char *s, long len, rb_encoding *enc, NODE **succ_block, const rb_code_location_t *loc, rb_parser_assignable_func assignable);
|
|
84
|
-
int rb_parser_local_defined(struct parser_params *p, ID id, const struct rb_iseq_struct *iseq);
|
|
85
|
-
NODE *rb_parser_assignable(struct parser_params *p, ID id, NODE *val, const YYLTYPE *loc);
|
|
86
|
-
|
|
87
|
-
RUBY_SYMBOL_EXPORT_END
|
|
88
|
-
|
|
89
|
-
#ifndef UNIVERSAL_PARSER
|
|
90
|
-
rb_parser_t *rb_ruby_parser_allocate(void);
|
|
91
|
-
rb_parser_t *rb_ruby_parser_new(void);
|
|
92
|
-
#endif
|
|
93
|
-
|
|
94
|
-
#ifdef RIPPER
|
|
95
|
-
void ripper_parser_mark(void *ptr);
|
|
96
|
-
void ripper_parser_free(void *ptr);
|
|
97
|
-
size_t ripper_parser_memsize(const void *ptr);
|
|
98
|
-
void ripper_error(struct parser_params *p);
|
|
99
|
-
VALUE ripper_value(struct parser_params *p);
|
|
100
|
-
int rb_ruby_parser_get_yydebug(rb_parser_t *p);
|
|
101
|
-
void rb_ruby_parser_set_value(rb_parser_t *p, VALUE value);
|
|
102
|
-
int rb_ruby_parser_error_p(rb_parser_t *p);
|
|
103
|
-
VALUE rb_ruby_parser_debug_output(rb_parser_t *p);
|
|
104
|
-
void rb_ruby_parser_set_debug_output(rb_parser_t *p, VALUE output);
|
|
105
|
-
VALUE rb_ruby_parser_parsing_thread(rb_parser_t *p);
|
|
106
|
-
void rb_ruby_parser_set_parsing_thread(rb_parser_t *p, VALUE parsing_thread);
|
|
107
|
-
void rb_ruby_parser_ripper_initialize(rb_parser_t *p, rb_parser_lex_gets_func *gets, rb_parser_input_data input, VALUE sourcefile_string, const char *sourcefile, int sourceline);
|
|
108
|
-
VALUE rb_ruby_parser_result(rb_parser_t *p);
|
|
109
|
-
rb_encoding *rb_ruby_parser_enc(rb_parser_t *p);
|
|
110
|
-
VALUE rb_ruby_parser_ruby_sourcefile_string(rb_parser_t *p);
|
|
111
|
-
int rb_ruby_parser_ruby_sourceline(rb_parser_t *p);
|
|
112
|
-
int rb_ruby_parser_lex_state(rb_parser_t *p);
|
|
113
|
-
void rb_ruby_ripper_parse0(rb_parser_t *p);
|
|
114
|
-
int rb_ruby_ripper_dedent_string(rb_parser_t *p, rb_parser_string_t *string, int width);
|
|
115
|
-
int rb_ruby_ripper_initialized_p(rb_parser_t *p);
|
|
116
|
-
void rb_ruby_ripper_parser_initialize(rb_parser_t *p);
|
|
117
|
-
long rb_ruby_ripper_column(rb_parser_t *p);
|
|
118
|
-
long rb_ruby_ripper_token_len(rb_parser_t *p);
|
|
119
|
-
rb_parser_string_t *rb_ruby_ripper_lex_lastline(rb_parser_t *p);
|
|
120
|
-
VALUE rb_ruby_ripper_lex_state_name(struct parser_params *p, int state);
|
|
121
|
-
#ifdef UNIVERSAL_PARSER
|
|
122
|
-
rb_parser_t *rb_ripper_parser_params_allocate(const rb_parser_config_t *config);
|
|
123
|
-
#endif
|
|
124
|
-
struct parser_params *rb_ruby_ripper_parser_allocate(void);
|
|
125
|
-
#endif
|
|
126
|
-
|
|
127
|
-
#ifdef UNIVERSAL_PARSER
|
|
128
|
-
#undef rb_encoding
|
|
129
|
-
#endif
|
|
130
|
-
|
|
131
|
-
#endif /* INTERNAL_PARSE_H */
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_PROC_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_PROC_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 Proc.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/ruby.h" /* for rb_block_call_func_t */
|
|
12
|
-
#include "ruby/st.h" /* for st_index_t */
|
|
13
|
-
struct rb_block; /* in vm_core.h */
|
|
14
|
-
struct rb_iseq_struct; /* in vm_core.h */
|
|
15
|
-
|
|
16
|
-
/* proc.c */
|
|
17
|
-
VALUE rb_proc_location(VALUE self);
|
|
18
|
-
st_index_t rb_hash_proc(st_index_t hash, VALUE proc);
|
|
19
|
-
int rb_block_pair_yield_optimizable(void);
|
|
20
|
-
int rb_block_arity(void);
|
|
21
|
-
int rb_block_min_max_arity(int *max);
|
|
22
|
-
VALUE rb_block_to_s(VALUE self, const struct rb_block *block, const char *additional_info);
|
|
23
|
-
VALUE rb_callable_receiver(VALUE);
|
|
24
|
-
|
|
25
|
-
VALUE rb_func_proc_dup(VALUE src_obj);
|
|
26
|
-
VALUE rb_func_lambda_new(rb_block_call_func_t func, VALUE val, int min_argc, int max_argc);
|
|
27
|
-
VALUE rb_iseq_location(const struct rb_iseq_struct *iseq);
|
|
28
|
-
VALUE rb_sym_to_proc(VALUE sym);
|
|
29
|
-
|
|
30
|
-
#endif /* INTERNAL_PROC_H */
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_PROCESS_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_PROCESS_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 Process.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/internal/config.h" /* for rb_pid_t */
|
|
12
|
-
#include <stddef.h> /* for size_t */
|
|
13
|
-
|
|
14
|
-
#ifdef HAVE_SYS_TYPES_H
|
|
15
|
-
# include <sys/types.h> /* for mode_t */
|
|
16
|
-
#endif
|
|
17
|
-
|
|
18
|
-
#ifdef _WIN32
|
|
19
|
-
# include "ruby/win32.h" /* for mode_t */
|
|
20
|
-
#endif
|
|
21
|
-
|
|
22
|
-
#include "ruby/ruby.h" /* for VALUE */
|
|
23
|
-
#include "internal/compilers.h" /* for __has_warning */
|
|
24
|
-
#include "internal/imemo.h" /* for RB_IMEMO_TMPBUF_PTR */
|
|
25
|
-
|
|
26
|
-
#define RB_MAX_GROUPS (65536)
|
|
27
|
-
|
|
28
|
-
struct waitpid_state;
|
|
29
|
-
struct rb_process_status;
|
|
30
|
-
struct rb_execarg {
|
|
31
|
-
union {
|
|
32
|
-
struct {
|
|
33
|
-
VALUE shell_script;
|
|
34
|
-
} sh;
|
|
35
|
-
struct {
|
|
36
|
-
VALUE command_name;
|
|
37
|
-
VALUE command_abspath; /* full path string or nil */
|
|
38
|
-
VALUE argv_str;
|
|
39
|
-
VALUE argv_buf;
|
|
40
|
-
} cmd;
|
|
41
|
-
} invoke;
|
|
42
|
-
VALUE redirect_fds;
|
|
43
|
-
VALUE envp_str;
|
|
44
|
-
VALUE envp_buf;
|
|
45
|
-
VALUE dup2_tmpbuf;
|
|
46
|
-
unsigned use_shell : 1;
|
|
47
|
-
unsigned pgroup_given : 1;
|
|
48
|
-
unsigned umask_given : 1;
|
|
49
|
-
unsigned unsetenv_others_given : 1;
|
|
50
|
-
unsigned unsetenv_others_do : 1;
|
|
51
|
-
unsigned close_others_given : 1;
|
|
52
|
-
unsigned close_others_do : 1;
|
|
53
|
-
unsigned chdir_given : 1;
|
|
54
|
-
unsigned new_pgroup_given : 1;
|
|
55
|
-
unsigned new_pgroup_flag : 1;
|
|
56
|
-
unsigned uid_given : 1;
|
|
57
|
-
unsigned gid_given : 1;
|
|
58
|
-
unsigned exception : 1;
|
|
59
|
-
unsigned exception_given : 1;
|
|
60
|
-
struct rb_process_status *status;
|
|
61
|
-
struct waitpid_state *waitpid_state; /* for async process management */
|
|
62
|
-
rb_pid_t pgroup_pgid; /* asis(-1), new pgroup(0), specified pgroup (0<V). */
|
|
63
|
-
VALUE rlimit_limits; /* Qfalse or [[rtype, softlim, hardlim], ...] */
|
|
64
|
-
mode_t umask_mask;
|
|
65
|
-
rb_uid_t uid;
|
|
66
|
-
rb_gid_t gid;
|
|
67
|
-
int close_others_maxhint;
|
|
68
|
-
VALUE fd_dup2;
|
|
69
|
-
VALUE fd_close;
|
|
70
|
-
VALUE fd_open;
|
|
71
|
-
VALUE fd_dup2_child;
|
|
72
|
-
VALUE env_modification; /* Qfalse or [[k1,v1], ...] */
|
|
73
|
-
VALUE path_env;
|
|
74
|
-
VALUE chdir_dir;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/* process.c */
|
|
78
|
-
rb_pid_t rb_call_proc__fork(void);
|
|
79
|
-
void rb_last_status_clear(void);
|
|
80
|
-
static inline char **ARGVSTR2ARGV(VALUE argv_str);
|
|
81
|
-
static inline size_t ARGVSTR2ARGC(VALUE argv_str);
|
|
82
|
-
|
|
83
|
-
#ifdef HAVE_PWD_H
|
|
84
|
-
VALUE rb_getlogin(void);
|
|
85
|
-
VALUE rb_getpwdirnam_for_login(VALUE login); /* read as: "get pwd db home dir by username for login" */
|
|
86
|
-
VALUE rb_getpwdiruid(void); /* read as: "get pwd db home dir for getuid()" */
|
|
87
|
-
#endif
|
|
88
|
-
|
|
89
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
90
|
-
/* process.c (export) */
|
|
91
|
-
int rb_exec_async_signal_safe(const struct rb_execarg *e, char *errmsg, size_t errmsg_buflen);
|
|
92
|
-
rb_pid_t rb_fork_async_signal_safe(int *status, int (*chfunc)(void*, char *, size_t), void *charg, VALUE fds, char *errmsg, size_t errmsg_buflen);
|
|
93
|
-
VALUE rb_execarg_new(int argc, const VALUE *argv, int accept_shell, int allow_exc_opt);
|
|
94
|
-
struct rb_execarg *rb_execarg_get(VALUE execarg_obj); /* dangerous. needs GC guard. */
|
|
95
|
-
int rb_execarg_addopt(VALUE execarg_obj, VALUE key, VALUE val);
|
|
96
|
-
void rb_execarg_parent_start(VALUE execarg_obj);
|
|
97
|
-
void rb_execarg_parent_end(VALUE execarg_obj);
|
|
98
|
-
int rb_execarg_run_options(const struct rb_execarg *e, struct rb_execarg *s, char* errmsg, size_t errmsg_buflen);
|
|
99
|
-
VALUE rb_execarg_extract_options(VALUE execarg_obj, VALUE opthash);
|
|
100
|
-
void rb_execarg_setenv(VALUE execarg_obj, VALUE env);
|
|
101
|
-
RUBY_SYMBOL_EXPORT_END
|
|
102
|
-
|
|
103
|
-
/* argv_str contains extra two elements.
|
|
104
|
-
* The beginning one is for /bin/sh used by exec_with_sh.
|
|
105
|
-
* The last one for terminating NULL used by execve.
|
|
106
|
-
* See rb_exec_fillarg() in process.c. */
|
|
107
|
-
static inline char **
|
|
108
|
-
ARGVSTR2ARGV(VALUE argv_str)
|
|
109
|
-
{
|
|
110
|
-
char **buf = RB_IMEMO_TMPBUF_PTR(argv_str);
|
|
111
|
-
return &buf[1];
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
static inline size_t
|
|
115
|
-
ARGVSTR2ARGC(VALUE argv_str)
|
|
116
|
-
{
|
|
117
|
-
size_t i = 0;
|
|
118
|
-
char *const *p = ARGVSTR2ARGV(argv_str);
|
|
119
|
-
while (p[i++])
|
|
120
|
-
;
|
|
121
|
-
return i - 1;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
#endif /* INTERNAL_PROCESS_H */
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_RACTOR_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_RACTOR_H
|
|
3
|
-
|
|
4
|
-
void rb_ractor_ensure_main_ractor(const char *msg);
|
|
5
|
-
|
|
6
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
7
|
-
void rb_ractor_setup_belonging(VALUE obj);
|
|
8
|
-
RUBY_SYMBOL_EXPORT_END
|
|
9
|
-
|
|
10
|
-
#endif /* INTERNAL_RACTOR_H */
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_RANDOM_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_RANDOM_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 Random.
|
|
10
|
-
*/
|
|
11
|
-
#include <stddef.h> /* for size_t */
|
|
12
|
-
|
|
13
|
-
/* random.c */
|
|
14
|
-
int ruby_fill_random_bytes(void *, size_t, int);
|
|
15
|
-
void rb_free_default_rand_key(void);
|
|
16
|
-
|
|
17
|
-
#endif /* INTERNAL_RANDOM_H */
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_RANGE_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_RANGE_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 Range.
|
|
10
|
-
*/
|
|
11
|
-
#include "internal/struct.h" /* for RSTRUCT */
|
|
12
|
-
|
|
13
|
-
/* range.c */
|
|
14
|
-
static inline VALUE RANGE_BEG(VALUE r);
|
|
15
|
-
static inline VALUE RANGE_END(VALUE r);
|
|
16
|
-
static inline VALUE RANGE_EXCL(VALUE r);
|
|
17
|
-
|
|
18
|
-
static inline VALUE
|
|
19
|
-
RANGE_BEG(VALUE r)
|
|
20
|
-
{
|
|
21
|
-
return RSTRUCT(r)->as.ary[0];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
static inline VALUE
|
|
25
|
-
RANGE_END(VALUE r)
|
|
26
|
-
{
|
|
27
|
-
return RSTRUCT_GET(r, 1);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
static inline VALUE
|
|
31
|
-
RANGE_EXCL(VALUE r)
|
|
32
|
-
{
|
|
33
|
-
return RSTRUCT_GET(r, 2);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
VALUE
|
|
37
|
-
rb_range_component_beg_len(VALUE b, VALUE e, int excl,
|
|
38
|
-
long *begp, long *lenp, long len, int err);
|
|
39
|
-
|
|
40
|
-
#endif /* INTERNAL_RANGE_H */
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_RATIONAL_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_RATIONAL_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 Rational.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/internal/config.h" /* for HAVE_LIBGMP */
|
|
12
|
-
#include "ruby/ruby.h" /* for struct RBasic */
|
|
13
|
-
#include "internal/numeric.h" /* for INT_POSITIVE_P */
|
|
14
|
-
#include "ruby_assert.h" /* for assert */
|
|
15
|
-
|
|
16
|
-
struct RRational {
|
|
17
|
-
struct RBasic basic;
|
|
18
|
-
VALUE num;
|
|
19
|
-
VALUE den;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
#define RRATIONAL(obj) ((struct RRational *)(obj))
|
|
23
|
-
|
|
24
|
-
/* rational.c */
|
|
25
|
-
VALUE rb_rational_canonicalize(VALUE x);
|
|
26
|
-
VALUE rb_rational_uminus(VALUE self);
|
|
27
|
-
VALUE rb_rational_plus(VALUE self, VALUE other);
|
|
28
|
-
VALUE rb_rational_minus(VALUE self, VALUE other);
|
|
29
|
-
VALUE rb_rational_mul(VALUE self, VALUE other);
|
|
30
|
-
VALUE rb_rational_div(VALUE self, VALUE other);
|
|
31
|
-
VALUE rb_lcm(VALUE x, VALUE y);
|
|
32
|
-
VALUE rb_rational_reciprocal(VALUE x);
|
|
33
|
-
VALUE rb_cstr_to_rat(const char *, int);
|
|
34
|
-
VALUE rb_rational_hash(VALUE self);
|
|
35
|
-
VALUE rb_rational_abs(VALUE self);
|
|
36
|
-
VALUE rb_rational_cmp(VALUE self, VALUE other);
|
|
37
|
-
VALUE rb_rational_pow(VALUE self, VALUE other);
|
|
38
|
-
VALUE rb_rational_floor(VALUE self, int ndigits);
|
|
39
|
-
VALUE rb_numeric_quo(VALUE x, VALUE y);
|
|
40
|
-
VALUE rb_flo_round_by_rational(int argc, VALUE *argv, VALUE num);
|
|
41
|
-
VALUE rb_float_numerator(VALUE x);
|
|
42
|
-
VALUE rb_float_denominator(VALUE x);
|
|
43
|
-
|
|
44
|
-
static inline void RATIONAL_SET_NUM(VALUE r, VALUE n);
|
|
45
|
-
static inline void RATIONAL_SET_DEN(VALUE r, VALUE d);
|
|
46
|
-
|
|
47
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
48
|
-
/* rational.c (export) */
|
|
49
|
-
VALUE rb_gcd(VALUE x, VALUE y);
|
|
50
|
-
VALUE rb_gcd_normal(VALUE self, VALUE other);
|
|
51
|
-
#if defined(HAVE_LIBGMP) && defined(HAVE_GMP_H)
|
|
52
|
-
VALUE rb_gcd_gmp(VALUE x, VALUE y);
|
|
53
|
-
#endif
|
|
54
|
-
RUBY_SYMBOL_EXPORT_END
|
|
55
|
-
|
|
56
|
-
static inline void
|
|
57
|
-
RATIONAL_SET_NUM(VALUE r, VALUE n)
|
|
58
|
-
{
|
|
59
|
-
assert(RB_INTEGER_TYPE_P(n));
|
|
60
|
-
RB_OBJ_WRITE(r, &RRATIONAL(r)->num, n);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
static inline void
|
|
64
|
-
RATIONAL_SET_DEN(VALUE r, VALUE d)
|
|
65
|
-
{
|
|
66
|
-
assert(RB_INTEGER_TYPE_P(d));
|
|
67
|
-
assert(INT_POSITIVE_P(d));
|
|
68
|
-
RB_OBJ_WRITE(r, &RRATIONAL(r)->den, d);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
#endif /* INTERNAL_RATIONAL_H */
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_RUBY_PARSE_H
|
|
2
|
-
#define INTERNAL_RUBY_PARSE_H
|
|
3
|
-
|
|
4
|
-
#include "internal.h"
|
|
5
|
-
#include "internal/bignum.h"
|
|
6
|
-
#include "internal/compilers.h"
|
|
7
|
-
#include "internal/complex.h"
|
|
8
|
-
#include "internal/parse.h"
|
|
9
|
-
#include "internal/rational.h"
|
|
10
|
-
#include "rubyparser.h"
|
|
11
|
-
#include "vm.h"
|
|
12
|
-
|
|
13
|
-
struct lex_pointer_string {
|
|
14
|
-
VALUE str;
|
|
15
|
-
long ptr;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
|
19
|
-
#ifdef UNIVERSAL_PARSER
|
|
20
|
-
const rb_parser_config_t *rb_ruby_parser_config(void);
|
|
21
|
-
rb_parser_t *rb_parser_params_new(void);
|
|
22
|
-
#endif
|
|
23
|
-
VALUE rb_parser_set_context(VALUE, const struct rb_iseq_struct *, int);
|
|
24
|
-
VALUE rb_parser_new(void);
|
|
25
|
-
VALUE rb_parser_compile_string_path(VALUE vparser, VALUE fname, VALUE src, int line);
|
|
26
|
-
VALUE rb_str_new_parser_string(rb_parser_string_t *str);
|
|
27
|
-
VALUE rb_str_new_mutable_parser_string(rb_parser_string_t *str);
|
|
28
|
-
rb_parser_string_t *rb_parser_lex_get_str(struct parser_params *p, struct lex_pointer_string *ptr_str);
|
|
29
|
-
|
|
30
|
-
VALUE rb_node_str_string_val(const NODE *);
|
|
31
|
-
VALUE rb_node_sym_string_val(const NODE *);
|
|
32
|
-
VALUE rb_node_dstr_string_val(const NODE *);
|
|
33
|
-
VALUE rb_node_regx_string_val(const NODE *);
|
|
34
|
-
VALUE rb_node_dregx_string_val(const NODE *);
|
|
35
|
-
VALUE rb_node_line_lineno_val(const NODE *);
|
|
36
|
-
VALUE rb_node_file_path_val(const NODE *);
|
|
37
|
-
VALUE rb_node_encoding_val(const NODE *);
|
|
38
|
-
|
|
39
|
-
VALUE rb_node_integer_literal_val(const NODE *);
|
|
40
|
-
VALUE rb_node_float_literal_val(const NODE *);
|
|
41
|
-
VALUE rb_node_rational_literal_val(const NODE *);
|
|
42
|
-
VALUE rb_node_imaginary_literal_val(const NODE *);
|
|
43
|
-
RUBY_SYMBOL_EXPORT_END
|
|
44
|
-
|
|
45
|
-
VALUE rb_parser_end_seen_p(VALUE);
|
|
46
|
-
VALUE rb_parser_encoding(VALUE);
|
|
47
|
-
VALUE rb_parser_set_yydebug(VALUE, VALUE);
|
|
48
|
-
VALUE rb_parser_build_script_lines_from(rb_parser_ary_t *script_lines);
|
|
49
|
-
void rb_parser_set_options(VALUE, int, int, int, int);
|
|
50
|
-
VALUE rb_parser_load_file(VALUE parser, VALUE name);
|
|
51
|
-
void rb_parser_set_script_lines(VALUE vparser);
|
|
52
|
-
void rb_parser_error_tolerant(VALUE vparser);
|
|
53
|
-
void rb_parser_keep_tokens(VALUE vparser);
|
|
54
|
-
|
|
55
|
-
VALUE rb_parser_compile_string(VALUE, const char*, VALUE, int);
|
|
56
|
-
VALUE rb_parser_compile_file_path(VALUE vparser, VALUE fname, VALUE input, int line);
|
|
57
|
-
VALUE rb_parser_compile_generic(VALUE vparser, rb_parser_lex_gets_func *lex_gets, VALUE fname, VALUE input, int line);
|
|
58
|
-
VALUE rb_parser_compile_array(VALUE vparser, VALUE fname, VALUE array, int start);
|
|
59
|
-
|
|
60
|
-
enum lex_state_bits {
|
|
61
|
-
EXPR_BEG_bit, /* ignore newline, +/- is a sign. */
|
|
62
|
-
EXPR_END_bit, /* newline significant, +/- is an operator. */
|
|
63
|
-
EXPR_ENDARG_bit, /* ditto, and unbound braces. */
|
|
64
|
-
EXPR_ENDFN_bit, /* ditto, and unbound braces. */
|
|
65
|
-
EXPR_ARG_bit, /* newline significant, +/- is an operator. */
|
|
66
|
-
EXPR_CMDARG_bit, /* newline significant, +/- is an operator. */
|
|
67
|
-
EXPR_MID_bit, /* newline significant, +/- is an operator. */
|
|
68
|
-
EXPR_FNAME_bit, /* ignore newline, no reserved words. */
|
|
69
|
-
EXPR_DOT_bit, /* right after `.', `&.' or `::', no reserved words. */
|
|
70
|
-
EXPR_CLASS_bit, /* immediate after `class', no here document. */
|
|
71
|
-
EXPR_LABEL_bit, /* flag bit, label is allowed. */
|
|
72
|
-
EXPR_LABELED_bit, /* flag bit, just after a label. */
|
|
73
|
-
EXPR_FITEM_bit, /* symbol literal as FNAME. */
|
|
74
|
-
EXPR_MAX_STATE
|
|
75
|
-
};
|
|
76
|
-
/* examine combinations */
|
|
77
|
-
enum lex_state_e {
|
|
78
|
-
#define DEF_EXPR(n) EXPR_##n = (1 << EXPR_##n##_bit)
|
|
79
|
-
DEF_EXPR(BEG),
|
|
80
|
-
DEF_EXPR(END),
|
|
81
|
-
DEF_EXPR(ENDARG),
|
|
82
|
-
DEF_EXPR(ENDFN),
|
|
83
|
-
DEF_EXPR(ARG),
|
|
84
|
-
DEF_EXPR(CMDARG),
|
|
85
|
-
DEF_EXPR(MID),
|
|
86
|
-
DEF_EXPR(FNAME),
|
|
87
|
-
DEF_EXPR(DOT),
|
|
88
|
-
DEF_EXPR(CLASS),
|
|
89
|
-
DEF_EXPR(LABEL),
|
|
90
|
-
DEF_EXPR(LABELED),
|
|
91
|
-
DEF_EXPR(FITEM),
|
|
92
|
-
EXPR_VALUE = EXPR_BEG,
|
|
93
|
-
EXPR_BEG_ANY = (EXPR_BEG | EXPR_MID | EXPR_CLASS),
|
|
94
|
-
EXPR_ARG_ANY = (EXPR_ARG | EXPR_CMDARG),
|
|
95
|
-
EXPR_END_ANY = (EXPR_END | EXPR_ENDARG | EXPR_ENDFN),
|
|
96
|
-
EXPR_NONE = 0
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
VALUE rb_ruby_ast_new(const NODE *const root);
|
|
100
|
-
rb_ast_t *rb_ruby_ast_data_get(VALUE ast_value);
|
|
101
|
-
|
|
102
|
-
#endif /* INTERNAL_RUBY_PARSE_H */
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_SERIAL_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_SERIAL_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 rb_serial_t.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/internal/config.h" /* for HAVE_LONG_LONG */
|
|
12
|
-
#include "ruby/defines.h" /* for LONG_LONG */
|
|
13
|
-
|
|
14
|
-
#ifndef HAVE_LONG_LONG
|
|
15
|
-
# error need C99+
|
|
16
|
-
#endif
|
|
17
|
-
|
|
18
|
-
typedef unsigned LONG_LONG rb_serial_t;
|
|
19
|
-
#define SERIALT2NUM ULL2NUM
|
|
20
|
-
#define PRI_SERIALT_PREFIX PRI_LL_PREFIX
|
|
21
|
-
#define SIZEOF_SERIAL_T SIZEOF_LONG_LONG
|
|
22
|
-
|
|
23
|
-
#endif /* INTERNAL_SERIAL_H */
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#ifndef INTERNAL_STATIC_ASSERT_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
-
#define INTERNAL_STATIC_ASSERT_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 C11 shim for _Static_assert.
|
|
10
|
-
*/
|
|
11
|
-
#include "ruby/internal/static_assert.h"
|
|
12
|
-
#ifndef STATIC_ASSERT
|
|
13
|
-
# define STATIC_ASSERT RBIMPL_STATIC_ASSERT
|
|
14
|
-
#endif
|
|
15
|
-
|
|
16
|
-
#endif /* INTERNAL_STATIC_ASSERT_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,16 +0,0 @@
|
|
|
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 */
|