debase-ruby_core_source 3.3.1 → 3.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.idea/vcs.xml +28 -0
- data/CHANGELOG.md +8 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/addr2line.h +22 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/builtin.h +117 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/build_assert/build_assert.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/check_type/check_type.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/container_of/container_of.h +142 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/list/list.h +791 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ccan/str/str.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/constant.h +53 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/darray.h +246 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/debug_counter.h +423 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/dln.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/encindex.h +70 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/eval_intern.h +343 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/hrtime.h +227 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/id.h +343 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/id_table.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/insns.inc +251 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/insns_info.inc +9215 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/array.h +151 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/basic_operators.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/bignum.h +244 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/bits.h +568 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/class.h +277 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/cmdlineopt.h +65 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compar.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compile.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/compilers.h +107 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/complex.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/cont.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/dir.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enc.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/encoding.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enum.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/enumerator.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/error.h +216 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/eval.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/file.h +38 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/fixnum.h +184 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/gc.h +364 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/hash.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/imemo.h +240 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/inits.h +50 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/io.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/load.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/loadpath.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/math.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/missing.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/numeric.h +273 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/object.h +62 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/parse.h +108 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/proc.h +30 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/process.h +124 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/ractor.h +6 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/random.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/range.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/rational.h +71 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/re.h +28 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/ruby_parser.h +69 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/sanitizers.h +186 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/serial.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/signal.h +25 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/static_assert.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/string.h +160 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/struct.h +127 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/symbol.h +45 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/thread.h +78 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/time.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/transcode.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/util.h +27 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/variable.h +72 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/vm.h +136 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal/warnings.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/internal.h +112 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/iseq.h +338 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/known_errors.inc +791 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/method.h +254 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/node.h +128 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/node_name.inc +212 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/optinsn.inc +128 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/optunifs.inc +43 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parse.h +243 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_bits.h +564 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_node.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_st.h +162 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/parser_value.h +106 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/ast.h +4612 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/defines.h +94 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/diagnostic.h +297 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/encoding.h +248 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/extension.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/node.h +57 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/options.h +204 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/pack.h +152 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/parser.h +716 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/prettyprint.h +26 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/prism.h +272 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_buffer.h +146 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_char.h +205 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_constant_pool.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_list.h +97 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_memchr.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_newline_list.h +104 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_state_stack.h +42 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_string.h +150 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_string_list.h +44 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_strncasecmp.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/util/pm_strpbrk.h +43 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/version.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism_compile.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/probes_helper.h +42 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ractor_core.h +393 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regenc.h +254 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regint.h +1006 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/regparse.h +371 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/revision.h +5 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rjit.h +101 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rjit_c.h +164 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ruby_assert.h +14 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/ruby_atomic.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/rubyparser.h +1405 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/shape.h +233 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/siphash.h +48 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/symbol.h +118 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_none.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_pthread.h +166 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/thread_win32.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/timev.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/transcode_data.h +138 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/variable.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/version.h +69 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm.inc +5436 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_call_iseq_optimized.inc +244 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_callinfo.h +614 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_core.h +2202 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_debug.h +122 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_exec.h +199 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_insnhelper.h +261 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_opts.h +67 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vm_sync.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/vmtc.inc +245 -0
- data/lib/debase/ruby_core_source/ruby-3.3.5-p100/yjit.h +72 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/addr2line.h +22 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/builtin.h +119 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/build_assert/build_assert.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/check_type/check_type.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/container_of/container_of.h +142 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/list/list.h +791 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ccan/str/str.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/constant.h +53 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/darray.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/debug_counter.h +423 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/dln.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/encindex.h +70 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/eval_intern.h +324 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/hrtime.h +237 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id.h +343 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id_table.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns.inc +259 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns_info.inc +9530 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/array.h +151 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/basic_operators.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bignum.h +244 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bits.h +568 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/class.h +283 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/cmdlineopt.h +65 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compar.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compile.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/compilers.h +107 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/complex.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/cont.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/dir.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enc.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/encoding.h +36 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enum.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/enumerator.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/error.h +216 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/eval.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/file.h +38 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/fixnum.h +184 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/gc.h +334 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/hash.h +191 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/imemo.h +260 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/inits.h +47 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/io.h +140 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/load.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/loadpath.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/math.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/missing.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/numeric.h +274 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/object.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/parse.h +117 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/proc.h +30 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/process.h +124 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ractor.h +6 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/random.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/range.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/rational.h +71 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/re.h +28 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ruby_parser.h +102 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/sanitizers.h +297 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/serial.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/signal.h +24 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/st.h +11 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/static_assert.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/string.h +182 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/struct.h +127 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/symbol.h +45 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/thread.h +79 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/time.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/transcode.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/util.h +27 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/variable.h +72 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/vm.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/warnings.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal.h +108 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/iseq.h +340 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/known_errors.inc +1419 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/method.h +255 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/node.h +111 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/node_name.inc +224 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optinsn.inc +128 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optunifs.inc +43 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parse.h +243 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_bits.h +564 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_node.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_st.h +162 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parser_value.h +106 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/ast.h +6245 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/defines.h +206 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/diagnostic.h +433 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/encoding.h +283 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/extension.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/node.h +150 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/options.h +305 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/pack.h +163 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/parser.h +891 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/prettyprint.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/prism.h +347 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/static_literals.h +120 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_buffer.h +218 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_char.h +205 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_constant_pool.h +226 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_integer.h +119 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_list.h +97 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_memchr.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_newline_list.h +102 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string.h +174 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string_list.h +44 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_strncasecmp.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_strpbrk.h +46 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/version.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism_compile.h +88 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/probes_helper.h +42 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ractor_core.h +393 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regenc.h +254 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regint.h +1010 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regparse.h +371 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/revision.h +5 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rjit.h +101 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rjit_c.h +165 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ruby_assert.h +14 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ruby_atomic.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rubyparser.h +1430 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/shape.h +233 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/siphash.h +48 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/symbol.h +118 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_none.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_pthread.h +166 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_win32.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/timev.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/transcode_data.h +138 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/variable.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/version.h +69 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm.inc +5643 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_call_iseq_optimized.inc +244 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_callinfo.h +605 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_core.h +2236 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_debug.h +124 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_exec.h +199 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_insnhelper.h +272 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_opts.h +67 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_sync.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vmtc.inc +253 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/yjit.h +79 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/addr2line.h +22 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/builtin.h +119 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/build_assert/build_assert.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/check_type/check_type.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/container_of/container_of.h +142 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/list/list.h +791 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/str/str.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/constant.h +53 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/darray.h +209 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/debug_counter.h +423 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/dln.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/encindex.h +70 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/eval_intern.h +324 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/hrtime.h +237 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/id.h +347 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/id_table.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/insns.inc +265 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/insns_info.inc +9902 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/array.h +152 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/basic_operators.h +64 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/bignum.h +244 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/bits.h +568 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/class.h +283 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cmdlineopt.h +65 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compar.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compile.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compilers.h +107 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/complex.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cont.h +35 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/dir.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enc.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/encoding.h +36 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enum.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enumerator.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/error.h +218 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/eval.h +33 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/file.h +38 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/fixnum.h +184 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/gc.h +322 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/hash.h +192 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/imemo.h +261 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/inits.h +47 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/io.h +143 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/load.h +18 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/loadpath.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/math.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/missing.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/numeric.h +274 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/object.h +63 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/parse.h +129 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/proc.h +30 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/process.h +124 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/ractor.h +6 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/random.h +17 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/range.h +40 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/rational.h +71 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/re.h +28 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/ruby_parser.h +102 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/sanitizers.h +326 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/serial.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/signal.h +24 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/st.h +11 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/static_assert.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/string.h +186 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/struct.h +127 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/symbol.h +45 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/thread.h +85 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/time.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/transcode.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/util.h +27 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/variable.h +72 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/vm.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/warnings.h +16 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal.h +108 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/iseq.h +340 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/known_errors.inc +1419 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/method.h +255 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node.h +111 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node_name.inc +224 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/optinsn.inc +128 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/optunifs.inc +43 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parse.h +244 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_bits.h +564 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_node.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_st.h +162 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_value.h +106 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/ast.h +7524 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/defines.h +242 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/diagnostic.h +450 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/encoding.h +283 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/extension.h +19 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/node.h +129 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/options.h +396 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/pack.h +163 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/parser.h +933 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prettyprint.h +34 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prism.h +336 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/regexp.h +43 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/static_literals.h +121 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_buffer.h +218 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_char.h +204 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_constant_pool.h +218 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_integer.h +126 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_list.h +97 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_memchr.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_newline_list.h +113 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_string.h +190 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strncasecmp.h +32 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strpbrk.h +46 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/version.h +29 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism_compile.h +99 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/probes_helper.h +42 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ractor_core.h +382 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regenc.h +254 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regint.h +1006 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regparse.h +371 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/revision.h +5 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit.h +101 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit_c.h +165 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_assert.h +14 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_atomic.h +23 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rubyparser.h +1350 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/shape.h +234 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/siphash.h +48 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/symbol.h +123 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_none.h +21 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_pthread.h +168 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_win32.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/timev.h +58 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/transcode_data.h +138 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/variable.h +39 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/version.h +69 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm.inc +5840 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_call_iseq_optimized.inc +244 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_callinfo.h +627 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_core.h +2222 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_debug.h +124 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_exec.h +199 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_insnhelper.h +277 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_opts.h +67 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_sync.h +137 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vmtc.inc +259 -0
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/yjit.h +79 -0
- data/lib/debase/ruby_core_source/version.rb +1 -1
- metadata +436 -6
@@ -0,0 +1,127 @@
|
|
1
|
+
#ifndef INTERNAL_STRUCT_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_STRUCT_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 Struct.
|
10
|
+
*/
|
11
|
+
#include "ruby/internal/stdbool.h" /* for bool */
|
12
|
+
#include "ruby/ruby.h" /* for struct RBasic */
|
13
|
+
|
14
|
+
enum {
|
15
|
+
RSTRUCT_EMBED_LEN_MASK = RUBY_FL_USER7 | RUBY_FL_USER6 | RUBY_FL_USER5 | RUBY_FL_USER4 |
|
16
|
+
RUBY_FL_USER3 | RUBY_FL_USER2 | RUBY_FL_USER1,
|
17
|
+
RSTRUCT_EMBED_LEN_SHIFT = (RUBY_FL_USHIFT+1),
|
18
|
+
};
|
19
|
+
|
20
|
+
struct RStruct {
|
21
|
+
struct RBasic basic;
|
22
|
+
union {
|
23
|
+
struct {
|
24
|
+
long len;
|
25
|
+
const VALUE *ptr;
|
26
|
+
} heap;
|
27
|
+
/* This is a length 1 array because:
|
28
|
+
* 1. GCC has a bug that does not optimize C flexible array members
|
29
|
+
* (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102452)
|
30
|
+
* 2. Zero length arrays are not supported by all compilers
|
31
|
+
*/
|
32
|
+
const VALUE ary[1];
|
33
|
+
} as;
|
34
|
+
};
|
35
|
+
|
36
|
+
#define RSTRUCT(obj) ((struct RStruct *)(obj))
|
37
|
+
|
38
|
+
#ifdef RSTRUCT_LEN
|
39
|
+
# undef RSTRUCT_LEN
|
40
|
+
#endif
|
41
|
+
|
42
|
+
#ifdef RSTRUCT_PTR
|
43
|
+
# undef RSTRUCT_PTR
|
44
|
+
#endif
|
45
|
+
|
46
|
+
#ifdef RSTRUCT_SET
|
47
|
+
# undef RSTRUCT_SET
|
48
|
+
#endif
|
49
|
+
|
50
|
+
#ifdef RSTRUCT_GET
|
51
|
+
# undef RSTRUCT_GET
|
52
|
+
#endif
|
53
|
+
|
54
|
+
#define RSTRUCT_LEN internal_RSTRUCT_LEN
|
55
|
+
#define RSTRUCT_SET internal_RSTRUCT_SET
|
56
|
+
#define RSTRUCT_GET internal_RSTRUCT_GET
|
57
|
+
|
58
|
+
/* struct.c */
|
59
|
+
VALUE rb_struct_init_copy(VALUE copy, VALUE s);
|
60
|
+
VALUE rb_struct_lookup(VALUE s, VALUE idx);
|
61
|
+
VALUE rb_struct_s_keyword_init(VALUE klass);
|
62
|
+
static inline const VALUE *rb_struct_const_heap_ptr(VALUE st);
|
63
|
+
static inline long RSTRUCT_EMBED_LEN(VALUE st);
|
64
|
+
static inline long RSTRUCT_LEN(VALUE st);
|
65
|
+
static inline int RSTRUCT_LENINT(VALUE st);
|
66
|
+
static inline const VALUE *RSTRUCT_CONST_PTR(VALUE st);
|
67
|
+
static inline void RSTRUCT_SET(VALUE st, long k, VALUE v);
|
68
|
+
static inline VALUE RSTRUCT_GET(VALUE st, long k);
|
69
|
+
|
70
|
+
static inline long
|
71
|
+
RSTRUCT_EMBED_LEN(VALUE st)
|
72
|
+
{
|
73
|
+
long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
|
74
|
+
ret >>= RSTRUCT_EMBED_LEN_SHIFT;
|
75
|
+
return ret;
|
76
|
+
}
|
77
|
+
|
78
|
+
static inline long
|
79
|
+
RSTRUCT_LEN(VALUE st)
|
80
|
+
{
|
81
|
+
if (FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK)) {
|
82
|
+
return RSTRUCT_EMBED_LEN(st);
|
83
|
+
}
|
84
|
+
else {
|
85
|
+
return RSTRUCT(st)->as.heap.len;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
static inline int
|
90
|
+
RSTRUCT_LENINT(VALUE st)
|
91
|
+
{
|
92
|
+
return rb_long2int(RSTRUCT_LEN(st));
|
93
|
+
}
|
94
|
+
|
95
|
+
static inline const VALUE *
|
96
|
+
RSTRUCT_CONST_PTR(VALUE st)
|
97
|
+
{
|
98
|
+
const struct RStruct *p = RSTRUCT(st);
|
99
|
+
|
100
|
+
if (FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK)) {
|
101
|
+
return p->as.ary;
|
102
|
+
}
|
103
|
+
else {
|
104
|
+
return p->as.heap.ptr;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
static inline void
|
109
|
+
RSTRUCT_SET(VALUE st, long k, VALUE v)
|
110
|
+
{
|
111
|
+
RB_OBJ_WRITE(st, &RSTRUCT_CONST_PTR(st)[k], v);
|
112
|
+
}
|
113
|
+
|
114
|
+
static inline VALUE
|
115
|
+
RSTRUCT_GET(VALUE st, long k)
|
116
|
+
{
|
117
|
+
return RSTRUCT_CONST_PTR(st)[k];
|
118
|
+
}
|
119
|
+
|
120
|
+
static inline const VALUE *
|
121
|
+
rb_struct_const_heap_ptr(VALUE st)
|
122
|
+
{
|
123
|
+
assert(!FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK));
|
124
|
+
return RSTRUCT(st)->as.heap.ptr;
|
125
|
+
}
|
126
|
+
|
127
|
+
#endif /* INTERNAL_STRUCT_H */
|
@@ -0,0 +1,45 @@
|
|
1
|
+
#ifndef INTERNAL_SYMBOL_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_SYMBOL_H
|
3
|
+
/**
|
4
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
5
|
+
* @copyright This file is a part of the programming language Ruby.
|
6
|
+
* Permission is hereby granted, to either redistribute and/or
|
7
|
+
* modify this file, provided that the conditions mentioned in the
|
8
|
+
* file COPYING are met. Consult the file for details.
|
9
|
+
* @brief Internal header for Symbol.
|
10
|
+
*/
|
11
|
+
#include "ruby/ruby.h" /* for VALUE */
|
12
|
+
#include "ruby/encoding.h" /* for rb_encoding */
|
13
|
+
#include "internal/compilers.h" /* for __has_builtin */
|
14
|
+
|
15
|
+
#ifdef rb_sym_intern_ascii_cstr
|
16
|
+
# undef rb_sym_intern_ascii_cstr
|
17
|
+
#endif
|
18
|
+
|
19
|
+
/* symbol.c */
|
20
|
+
VALUE rb_to_symbol_type(VALUE obj);
|
21
|
+
VALUE rb_sym_intern(const char *ptr, long len, rb_encoding *enc);
|
22
|
+
VALUE rb_sym_intern_ascii(const char *ptr, long len);
|
23
|
+
VALUE rb_sym_intern_ascii_cstr(const char *ptr);
|
24
|
+
int rb_is_const_name(VALUE name);
|
25
|
+
int rb_is_class_name(VALUE name);
|
26
|
+
int rb_is_instance_name(VALUE name);
|
27
|
+
int rb_is_local_name(VALUE name);
|
28
|
+
PUREFUNC(int rb_is_const_sym(VALUE sym));
|
29
|
+
PUREFUNC(int rb_is_attrset_sym(VALUE sym));
|
30
|
+
ID rb_make_internal_id(void);
|
31
|
+
ID rb_make_temporary_id(size_t n);
|
32
|
+
void rb_gc_free_dsymbol(VALUE);
|
33
|
+
int rb_static_id_valid_p(ID id);
|
34
|
+
|
35
|
+
/* vm.c */
|
36
|
+
void rb_free_static_symid_str(void);
|
37
|
+
|
38
|
+
#if __has_builtin(__builtin_constant_p)
|
39
|
+
#define rb_sym_intern_ascii_cstr(ptr) \
|
40
|
+
(__builtin_constant_p(ptr) ? \
|
41
|
+
rb_sym_intern_ascii((ptr), (long)strlen(ptr)) : \
|
42
|
+
rb_sym_intern_ascii_cstr(ptr))
|
43
|
+
#endif
|
44
|
+
|
45
|
+
#endif /* INTERNAL_SYMBOL_H */
|
@@ -0,0 +1,78 @@
|
|
1
|
+
#ifndef INTERNAL_THREAD_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_THREAD_H
|
3
|
+
/**
|
4
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
5
|
+
* @copyright This file is a part of the programming language Ruby.
|
6
|
+
* Permission is hereby granted, to either redistribute and/or
|
7
|
+
* modify this file, provided that the conditions mentioned in the
|
8
|
+
* file COPYING are met. Consult the file for details.
|
9
|
+
* @brief Internal header for Thread.
|
10
|
+
*/
|
11
|
+
#include "ruby/ruby.h" /* for VALUE */
|
12
|
+
#include "ruby/intern.h" /* for rb_blocking_function_t */
|
13
|
+
#include "ccan/list/list.h" /* for list in rb_io_close_wait_list */
|
14
|
+
|
15
|
+
struct rb_thread_struct; /* in vm_core.h */
|
16
|
+
|
17
|
+
#define RB_VM_SAVE_MACHINE_CONTEXT(th) \
|
18
|
+
do { \
|
19
|
+
FLUSH_REGISTER_WINDOWS; \
|
20
|
+
setjmp((th)->ec->machine.regs); \
|
21
|
+
SET_MACHINE_STACK_END(&(th)->ec->machine.stack_end); \
|
22
|
+
} while (0)
|
23
|
+
|
24
|
+
/* thread.c */
|
25
|
+
#define COVERAGE_INDEX_LINES 0
|
26
|
+
#define COVERAGE_INDEX_BRANCHES 1
|
27
|
+
#define COVERAGE_TARGET_LINES 1
|
28
|
+
#define COVERAGE_TARGET_BRANCHES 2
|
29
|
+
#define COVERAGE_TARGET_METHODS 4
|
30
|
+
#define COVERAGE_TARGET_ONESHOT_LINES 8
|
31
|
+
#define COVERAGE_TARGET_EVAL 16
|
32
|
+
|
33
|
+
#define RUBY_FATAL_THREAD_KILLED INT2FIX(0)
|
34
|
+
#define RUBY_FATAL_THREAD_TERMINATED INT2FIX(1)
|
35
|
+
#define RUBY_FATAL_FIBER_KILLED RB_INT2FIX(2)
|
36
|
+
|
37
|
+
VALUE rb_obj_is_mutex(VALUE obj);
|
38
|
+
VALUE rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg);
|
39
|
+
void rb_thread_execute_interrupts(VALUE th);
|
40
|
+
VALUE rb_get_coverages(void);
|
41
|
+
int rb_get_coverage_mode(void);
|
42
|
+
VALUE rb_default_coverage(int);
|
43
|
+
VALUE rb_thread_shield_new(void);
|
44
|
+
bool rb_thread_shield_owned(VALUE self);
|
45
|
+
VALUE rb_thread_shield_wait(VALUE self);
|
46
|
+
VALUE rb_thread_shield_release(VALUE self);
|
47
|
+
VALUE rb_thread_shield_destroy(VALUE self);
|
48
|
+
int rb_thread_to_be_killed(VALUE thread);
|
49
|
+
void rb_mutex_allow_trap(VALUE self, int val);
|
50
|
+
VALUE rb_uninterruptible(VALUE (*b_proc)(VALUE), VALUE data);
|
51
|
+
VALUE rb_mutex_owned_p(VALUE self);
|
52
|
+
VALUE rb_exec_recursive_outer_mid(VALUE (*f)(VALUE g, VALUE h, int r), VALUE g, VALUE h, ID mid);
|
53
|
+
void ruby_mn_threads_params(void);
|
54
|
+
|
55
|
+
int rb_thread_wait_for_single_fd(int fd, int events, struct timeval * timeout);
|
56
|
+
|
57
|
+
struct rb_io_close_wait_list {
|
58
|
+
struct ccan_list_head pending_fd_users;
|
59
|
+
VALUE closing_thread;
|
60
|
+
VALUE wakeup_mutex;
|
61
|
+
};
|
62
|
+
int rb_notify_fd_close(int fd, struct rb_io_close_wait_list *busy);
|
63
|
+
void rb_notify_fd_close_wait(struct rb_io_close_wait_list *busy);
|
64
|
+
|
65
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
66
|
+
|
67
|
+
/* Temporary. This API will be removed (renamed). */
|
68
|
+
VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd);
|
69
|
+
VALUE rb_thread_io_blocking_call(rb_blocking_function_t *func, void *data1, int fd, int events);
|
70
|
+
|
71
|
+
/* thread.c (export) */
|
72
|
+
int ruby_thread_has_gvl_p(void); /* for ext/fiddle/closure.c */
|
73
|
+
|
74
|
+
RUBY_SYMBOL_EXPORT_END
|
75
|
+
|
76
|
+
int rb_threadptr_execute_interrupts(struct rb_thread_struct *th, int blocking_timing);
|
77
|
+
|
78
|
+
#endif /* INTERNAL_THREAD_H */
|
@@ -0,0 +1,34 @@
|
|
1
|
+
#ifndef INTERNAL_TIME_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_TIME_H
|
3
|
+
/**
|
4
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
5
|
+
* @copyright This file is a part of the programming language Ruby.
|
6
|
+
* Permission is hereby granted, to either redistribute and/or
|
7
|
+
* modify this file, provided that the conditions mentioned in the
|
8
|
+
* file COPYING are met. Consult the file for details.
|
9
|
+
* @brief Internal header for Time.
|
10
|
+
*/
|
11
|
+
#include "ruby/internal/config.h" /* for SIGNEDNESS_OF_TIME_T */
|
12
|
+
#include "internal/bits.h" /* for SIGNED_INTEGER_MAX */
|
13
|
+
#include "ruby/ruby.h" /* for VALUE */
|
14
|
+
|
15
|
+
#if SIGNEDNESS_OF_TIME_T < 0 /* signed */
|
16
|
+
# define TIMET_MAX SIGNED_INTEGER_MAX(time_t)
|
17
|
+
# define TIMET_MIN SIGNED_INTEGER_MIN(time_t)
|
18
|
+
#elif SIGNEDNESS_OF_TIME_T > 0 /* unsigned */
|
19
|
+
# define TIMET_MAX UNSIGNED_INTEGER_MAX(time_t)
|
20
|
+
# define TIMET_MIN ((time_t)0)
|
21
|
+
#endif
|
22
|
+
|
23
|
+
struct timeval; /* <- in <sys/time.h> or <winsock2.h> */
|
24
|
+
|
25
|
+
/* time.c */
|
26
|
+
struct timeval rb_time_timeval(VALUE);
|
27
|
+
|
28
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
29
|
+
/* time.c (export) */
|
30
|
+
void ruby_reset_leap_second_info(void);
|
31
|
+
void ruby_reset_timezone(void);
|
32
|
+
RUBY_SYMBOL_EXPORT_END
|
33
|
+
|
34
|
+
#endif /* INTERNAL_TIME_H */
|
@@ -0,0 +1,23 @@
|
|
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 */
|
@@ -0,0 +1,27 @@
|
|
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 */
|
@@ -0,0 +1,72 @@
|
|
1
|
+
#ifndef INTERNAL_VARIABLE_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_VARIABLE_H
|
3
|
+
/**
|
4
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
5
|
+
* @copyright This file is a part of the programming language Ruby.
|
6
|
+
* Permission is hereby granted, to either redistribute and/or
|
7
|
+
* modify this file, provided that the conditions mentioned in the
|
8
|
+
* file COPYING are met. Consult the file for details.
|
9
|
+
* @brief Internal header for variables.
|
10
|
+
*/
|
11
|
+
#include "ruby/internal/config.h"
|
12
|
+
#include <stddef.h> /* for size_t */
|
13
|
+
#include "constant.h" /* for rb_const_entry_t */
|
14
|
+
#include "ruby/internal/stdbool.h" /* for bool */
|
15
|
+
#include "ruby/ruby.h" /* for VALUE */
|
16
|
+
#include "shape.h" /* for rb_shape_t */
|
17
|
+
|
18
|
+
/* variable.c */
|
19
|
+
void rb_gc_mark_global_tbl(void);
|
20
|
+
void rb_gc_update_global_tbl(void);
|
21
|
+
size_t rb_generic_ivar_memsize(VALUE);
|
22
|
+
VALUE rb_search_class_path(VALUE);
|
23
|
+
VALUE rb_attr_delete(VALUE, ID);
|
24
|
+
void rb_autoload_str(VALUE mod, ID id, VALUE file);
|
25
|
+
VALUE rb_autoload_at_p(VALUE, ID, int);
|
26
|
+
NORETURN(VALUE rb_mod_const_missing(VALUE,VALUE));
|
27
|
+
rb_gvar_getter_t *rb_gvar_getter_function_of(ID);
|
28
|
+
rb_gvar_setter_t *rb_gvar_setter_function_of(ID);
|
29
|
+
void rb_gvar_readonly_setter(VALUE v, ID id, VALUE *_);
|
30
|
+
void rb_gvar_ractor_local(const char *name);
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Sets the name of a module.
|
34
|
+
*
|
35
|
+
* Non-permanently named classes can have a temporary name assigned (or
|
36
|
+
* cleared). In that case the name will be used for `#inspect` and `#to_s`, and
|
37
|
+
* nested classes/modules will be named with the temporary name as a prefix.
|
38
|
+
*
|
39
|
+
* After the module is assigned to a constant, the temporary name will be
|
40
|
+
* discarded, and the name will be computed based on the nesting.
|
41
|
+
*
|
42
|
+
* @param[in] mod An instance of ::rb_cModule.
|
43
|
+
* @param[in] name An instance of ::rb_cString.
|
44
|
+
* @retval mod
|
45
|
+
*/
|
46
|
+
VALUE rb_mod_set_temporary_name(VALUE, VALUE);
|
47
|
+
|
48
|
+
struct gen_ivtbl;
|
49
|
+
int rb_gen_ivtbl_get(VALUE obj, ID id, struct gen_ivtbl **ivtbl);
|
50
|
+
void rb_obj_copy_ivs_to_hash_table(VALUE obj, st_table *table);
|
51
|
+
void rb_obj_convert_to_too_complex(VALUE obj, st_table *table);
|
52
|
+
void rb_evict_ivars_to_hash(VALUE obj);
|
53
|
+
|
54
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
55
|
+
/* variable.c (export) */
|
56
|
+
void rb_mark_generic_ivar(VALUE obj);
|
57
|
+
void rb_ref_update_generic_ivar(VALUE);
|
58
|
+
void rb_mv_generic_ivar(VALUE src, VALUE dst);
|
59
|
+
VALUE rb_const_missing(VALUE klass, VALUE name);
|
60
|
+
int rb_class_ivar_set(VALUE klass, ID vid, VALUE value);
|
61
|
+
void rb_iv_tbl_copy(VALUE dst, VALUE src);
|
62
|
+
RUBY_SYMBOL_EXPORT_END
|
63
|
+
|
64
|
+
VALUE rb_ivar_lookup(VALUE obj, ID id, VALUE undef);
|
65
|
+
VALUE rb_gvar_get(ID);
|
66
|
+
VALUE rb_gvar_set(ID, VALUE);
|
67
|
+
VALUE rb_gvar_defined(ID);
|
68
|
+
void rb_const_warn_if_deprecated(const rb_const_entry_t *, VALUE, ID);
|
69
|
+
void rb_ensure_iv_list_size(VALUE obj, uint32_t len, uint32_t newsize);
|
70
|
+
attr_index_t rb_obj_ivar_set(VALUE obj, ID id, VALUE val);
|
71
|
+
|
72
|
+
#endif /* INTERNAL_VARIABLE_H */
|
@@ -0,0 +1,136 @@
|
|
1
|
+
#ifndef INTERNAL_VM_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_VM_H
|
3
|
+
/**
|
4
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
5
|
+
* @copyright This file is a part of the programming language Ruby.
|
6
|
+
* Permission is hereby granted, to either redistribute and/or
|
7
|
+
* modify this file, provided that the conditions mentioned in the
|
8
|
+
* file COPYING are met. Consult the file for details.
|
9
|
+
* @brief Internal header for RubyVM.
|
10
|
+
*/
|
11
|
+
#include "ruby/internal/stdbool.h" /* for bool */
|
12
|
+
#include "internal/serial.h" /* for rb_serial_t */
|
13
|
+
#include "internal/static_assert.h" /* for STATIC_ASSERT */
|
14
|
+
#include "ruby/ruby.h" /* for ID */
|
15
|
+
#include "ruby/st.h" /* for st_table */
|
16
|
+
|
17
|
+
#ifdef rb_funcallv
|
18
|
+
# undef rb_funcallv
|
19
|
+
#endif
|
20
|
+
|
21
|
+
#ifdef rb_method_basic_definition_p
|
22
|
+
# undef rb_method_basic_definition_p
|
23
|
+
#endif
|
24
|
+
|
25
|
+
struct rb_callable_method_entry_struct; /* in method.h */
|
26
|
+
struct rb_method_definition_struct; /* in method.h */
|
27
|
+
struct rb_execution_context_struct; /* in vm_core.h */
|
28
|
+
struct rb_control_frame_struct; /* in vm_core.h */
|
29
|
+
struct rb_callinfo; /* in vm_core.h */
|
30
|
+
|
31
|
+
enum method_missing_reason {
|
32
|
+
MISSING_NOENTRY = 0x00,
|
33
|
+
MISSING_PRIVATE = 0x01,
|
34
|
+
MISSING_PROTECTED = 0x02,
|
35
|
+
MISSING_FCALL = 0x04,
|
36
|
+
MISSING_VCALL = 0x08,
|
37
|
+
MISSING_SUPER = 0x10,
|
38
|
+
MISSING_MISSING = 0x20,
|
39
|
+
MISSING_NONE = 0x40
|
40
|
+
};
|
41
|
+
|
42
|
+
/* vm_insnhelper.h */
|
43
|
+
VALUE rb_vm_push_frame_fname(struct rb_execution_context_struct *ec, VALUE fname);
|
44
|
+
|
45
|
+
/* vm.c */
|
46
|
+
VALUE rb_obj_is_thread(VALUE obj);
|
47
|
+
void rb_vm_mark(void *ptr);
|
48
|
+
void rb_vm_each_stack_value(void *ptr, void (*cb)(VALUE, void*), void *ctx);
|
49
|
+
PUREFUNC(VALUE rb_vm_top_self(void));
|
50
|
+
const void **rb_vm_get_insns_address_table(void);
|
51
|
+
VALUE rb_source_location(int *pline);
|
52
|
+
const char *rb_source_location_cstr(int *pline);
|
53
|
+
void rb_vm_pop_cfunc_frame(void);
|
54
|
+
int rb_vm_add_root_module(VALUE module);
|
55
|
+
void rb_vm_check_redefinition_by_prepend(VALUE klass);
|
56
|
+
int rb_vm_check_optimizable_mid(VALUE mid);
|
57
|
+
VALUE rb_yield_refine_block(VALUE refinement, VALUE refinements);
|
58
|
+
VALUE ruby_vm_special_exception_copy(VALUE);
|
59
|
+
PUREFUNC(st_table *rb_vm_fstring_table(void));
|
60
|
+
|
61
|
+
void rb_lastline_set_up(VALUE val, unsigned int up);
|
62
|
+
|
63
|
+
/* vm_eval.c */
|
64
|
+
VALUE rb_current_realfilepath(void);
|
65
|
+
VALUE rb_check_block_call(VALUE, ID, int, const VALUE *, rb_block_call_func_t, VALUE);
|
66
|
+
typedef void rb_check_funcall_hook(int, VALUE, ID, int, const VALUE *, VALUE);
|
67
|
+
VALUE rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, const VALUE *argv,
|
68
|
+
rb_check_funcall_hook *hook, VALUE arg);
|
69
|
+
VALUE rb_check_funcall_with_hook_kw(VALUE recv, ID mid, int argc, const VALUE *argv,
|
70
|
+
rb_check_funcall_hook *hook, VALUE arg, int kw_splat);
|
71
|
+
const char *rb_type_str(enum ruby_value_type type);
|
72
|
+
VALUE rb_check_funcall_default(VALUE, ID, int, const VALUE *, VALUE);
|
73
|
+
VALUE rb_check_funcall_basic_kw(VALUE, ID, VALUE, int, const VALUE*, int);
|
74
|
+
VALUE rb_yield_1(VALUE val);
|
75
|
+
VALUE rb_yield_force_blockarg(VALUE values);
|
76
|
+
VALUE rb_lambda_call(VALUE obj, ID mid, int argc, const VALUE *argv,
|
77
|
+
rb_block_call_func_t bl_proc, int min_argc, int max_argc,
|
78
|
+
VALUE data2);
|
79
|
+
void rb_check_stack_overflow(void);
|
80
|
+
|
81
|
+
#if USE_YJIT
|
82
|
+
/* vm_exec.c */
|
83
|
+
extern uint64_t rb_vm_insns_count;
|
84
|
+
#endif
|
85
|
+
|
86
|
+
extern bool rb_free_at_exit;
|
87
|
+
|
88
|
+
/* miniinit.c and builtin.c */
|
89
|
+
void rb_free_loaded_builtin_table(void);
|
90
|
+
|
91
|
+
/* vm_insnhelper.c */
|
92
|
+
VALUE rb_equal_opt(VALUE obj1, VALUE obj2);
|
93
|
+
VALUE rb_eql_opt(VALUE obj1, VALUE obj2);
|
94
|
+
|
95
|
+
struct rb_iseq_struct;
|
96
|
+
const struct rb_callcache *rb_vm_search_method_slowpath(const struct rb_callinfo *ci, VALUE klass);
|
97
|
+
|
98
|
+
/* vm_method.c */
|
99
|
+
struct rb_execution_context_struct;
|
100
|
+
int rb_ec_obj_respond_to(struct rb_execution_context_struct *ec, VALUE obj, ID id, int priv);
|
101
|
+
|
102
|
+
void rb_clear_constant_cache(void);
|
103
|
+
|
104
|
+
/* vm_dump.c */
|
105
|
+
void rb_print_backtrace(FILE *);
|
106
|
+
|
107
|
+
/* vm_backtrace.c */
|
108
|
+
VALUE rb_vm_thread_backtrace(int argc, const VALUE *argv, VALUE thval);
|
109
|
+
VALUE rb_vm_thread_backtrace_locations(int argc, const VALUE *argv, VALUE thval);
|
110
|
+
VALUE rb_vm_backtrace(int argc, const VALUE * argv, struct rb_execution_context_struct * ec);
|
111
|
+
VALUE rb_vm_backtrace_locations(int argc, const VALUE * argv, struct rb_execution_context_struct * ec);
|
112
|
+
VALUE rb_make_backtrace(void);
|
113
|
+
void rb_backtrace_print_as_bugreport(FILE*);
|
114
|
+
int rb_backtrace_p(VALUE obj);
|
115
|
+
VALUE rb_backtrace_to_str_ary(VALUE obj);
|
116
|
+
VALUE rb_backtrace_to_location_ary(VALUE obj);
|
117
|
+
void rb_backtrace_each(VALUE (*iter)(VALUE recv, VALUE str), VALUE output);
|
118
|
+
int rb_frame_info_p(VALUE obj);
|
119
|
+
int rb_get_node_id_from_frame_info(VALUE obj);
|
120
|
+
const struct rb_iseq_struct *rb_get_iseq_from_frame_info(VALUE obj);
|
121
|
+
|
122
|
+
VALUE rb_ec_backtrace_object(const struct rb_execution_context_struct *ec);
|
123
|
+
void rb_backtrace_use_iseq_first_lineno_for_last_location(VALUE self);
|
124
|
+
|
125
|
+
#define RUBY_DTRACE_CREATE_HOOK(name, arg) \
|
126
|
+
RUBY_DTRACE_HOOK(name##_CREATE, arg)
|
127
|
+
#define RUBY_DTRACE_HOOK(name, arg) \
|
128
|
+
do { \
|
129
|
+
if (UNLIKELY(RUBY_DTRACE_##name##_ENABLED())) { \
|
130
|
+
int dtrace_line; \
|
131
|
+
const char *dtrace_file = rb_source_location_cstr(&dtrace_line); \
|
132
|
+
if (!dtrace_file) dtrace_file = ""; \
|
133
|
+
RUBY_DTRACE_##name(arg, dtrace_file, dtrace_line); \
|
134
|
+
} \
|
135
|
+
} while (0)
|
136
|
+
#endif /* INTERNAL_VM_H */
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#ifndef INTERNAL_WARNINGS_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define INTERNAL_WARNINGS_H
|
3
|
+
/**
|
4
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
5
|
+
* @copyright This file is a part of the programming language Ruby.
|
6
|
+
* Permission is hereby granted, to either redistribute and/or
|
7
|
+
* modify this file, provided that the conditions mentioned in the
|
8
|
+
* file COPYING are met. Consult the file for details.
|
9
|
+
* @brief Internal header to suppress / mandate warnings.
|
10
|
+
*/
|
11
|
+
#include "ruby/internal/warning_push.h"
|
12
|
+
#define COMPILER_WARNING_PUSH RBIMPL_WARNING_PUSH()
|
13
|
+
#define COMPILER_WARNING_POP RBIMPL_WARNING_POP()
|
14
|
+
#define COMPILER_WARNING_ERROR(flag) RBIMPL_WARNING_ERROR(flag)
|
15
|
+
#define COMPILER_WARNING_IGNORED(flag) RBIMPL_WARNING_IGNORED(flag)
|
16
|
+
#endif /* INTERNAL_WARNINGS_H */
|
@@ -0,0 +1,112 @@
|
|
1
|
+
#ifndef RUBY_INTERNAL_H /*-*-C-*-vi:se ft=c:*/
|
2
|
+
#define RUBY_INTERNAL_H 1
|
3
|
+
/**
|
4
|
+
* @author $Author$
|
5
|
+
* @date Tue May 17 11:42:20 JST 2011
|
6
|
+
* @copyright Copyright (C) 2011 Yukihiro Matsumoto
|
7
|
+
* @copyright This file is a part of the programming language Ruby.
|
8
|
+
* Permission is hereby granted, to either redistribute and/or
|
9
|
+
* modify this file, provided that the conditions mentioned in the
|
10
|
+
* file COPYING are met. Consult the file for details.
|
11
|
+
*/
|
12
|
+
#include "ruby/internal/config.h"
|
13
|
+
|
14
|
+
#ifdef __cplusplus
|
15
|
+
# error not for C++
|
16
|
+
#endif
|
17
|
+
|
18
|
+
#define LIKELY(x) RB_LIKELY(x)
|
19
|
+
#define UNLIKELY(x) RB_UNLIKELY(x)
|
20
|
+
|
21
|
+
#define numberof(array) ((int)(sizeof(array) / sizeof((array)[0])))
|
22
|
+
#define roomof(x, y) (((x) + (y) - 1) / (y))
|
23
|
+
#define type_roomof(x, y) roomof(sizeof(x), sizeof(y))
|
24
|
+
|
25
|
+
/* Prevent compiler from reordering access */
|
26
|
+
#define ACCESS_ONCE(type,x) (*((volatile type *)&(x)))
|
27
|
+
|
28
|
+
#define UNDEF_P RB_UNDEF_P
|
29
|
+
#define NIL_OR_UNDEF_P RB_NIL_OR_UNDEF_P
|
30
|
+
|
31
|
+
#include "ruby/ruby.h"
|
32
|
+
|
33
|
+
/* Following macros were formerly defined in this header but moved to somewhere
|
34
|
+
* else. In order to detect them we undef here. */
|
35
|
+
|
36
|
+
/* internal/array.h */
|
37
|
+
#undef RARRAY_AREF
|
38
|
+
|
39
|
+
/* internal/class.h */
|
40
|
+
#undef RClass
|
41
|
+
#undef RCLASS_SUPER
|
42
|
+
|
43
|
+
/* internal/gc.h */
|
44
|
+
#undef NEWOBJ_OF
|
45
|
+
#undef RB_NEWOBJ_OF
|
46
|
+
|
47
|
+
/* internal/hash.h */
|
48
|
+
#undef RHASH_IFNONE
|
49
|
+
#undef RHASH_SIZE
|
50
|
+
#undef RHASH_TBL
|
51
|
+
#undef RHASH_EMPTY_P
|
52
|
+
|
53
|
+
/* internal/struct.h */
|
54
|
+
#undef RSTRUCT_LEN
|
55
|
+
#undef RSTRUCT_PTR
|
56
|
+
#undef RSTRUCT_SET
|
57
|
+
#undef RSTRUCT_GET
|
58
|
+
|
59
|
+
/* Also, we keep the following macros here. They are expected to be
|
60
|
+
* overridden in each headers. */
|
61
|
+
|
62
|
+
/* internal/array.h */
|
63
|
+
#define rb_ary_new_from_args(...) rb_nonexistent_symbol(__VA_ARGS__)
|
64
|
+
|
65
|
+
/* internal/io.h */
|
66
|
+
#define rb_io_fptr_finalize(...) rb_nonexistent_symbol(__VA_ARGS__)
|
67
|
+
|
68
|
+
/* internal/string.h */
|
69
|
+
#define rb_fstring_cstr(...) rb_nonexistent_symbol(__VA_ARGS__)
|
70
|
+
|
71
|
+
/* internal/symbol.h */
|
72
|
+
#define rb_sym_intern_ascii_cstr(...) rb_nonexistent_symbol(__VA_ARGS__)
|
73
|
+
|
74
|
+
/* internal/vm.h */
|
75
|
+
#define rb_funcallv(...) rb_nonexistent_symbol(__VA_ARGS__)
|
76
|
+
#define rb_method_basic_definition_p(...) rb_nonexistent_symbol(__VA_ARGS__)
|
77
|
+
|
78
|
+
|
79
|
+
/* MRI debug support */
|
80
|
+
|
81
|
+
/* gc.c */
|
82
|
+
void rb_obj_info_dump(VALUE obj);
|
83
|
+
void rb_obj_info_dump_loc(VALUE obj, const char *file, int line, const char *func);
|
84
|
+
|
85
|
+
/* debug.c */
|
86
|
+
|
87
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
88
|
+
void ruby_debug_breakpoint(void);
|
89
|
+
PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
|
90
|
+
RUBY_SYMBOL_EXPORT_END
|
91
|
+
|
92
|
+
// show obj data structure without any side-effect
|
93
|
+
#define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
|
94
|
+
|
95
|
+
// same as rp, but add message header
|
96
|
+
#define rp_m(msg, obj) do { \
|
97
|
+
fputs((msg), stderr); \
|
98
|
+
rb_obj_info_dump((VALUE)(obj)); \
|
99
|
+
} while (0)
|
100
|
+
|
101
|
+
// `ruby_debug_breakpoint()` does nothing,
|
102
|
+
// but breakpoint is set in run.gdb, so `make gdb` can stop here.
|
103
|
+
#define bp() ruby_debug_breakpoint()
|
104
|
+
|
105
|
+
#define RBOOL(v) ((v) ? Qtrue : Qfalse)
|
106
|
+
#define RB_BIGNUM_TYPE_P(x) RB_TYPE_P((x), T_BIGNUM)
|
107
|
+
|
108
|
+
#ifndef __MINGW32__
|
109
|
+
#undef memcpy
|
110
|
+
#define memcpy ruby_nonempty_memcpy
|
111
|
+
#endif
|
112
|
+
#endif /* RUBY_INTERNAL_H */
|