debase-ruby_core_source 3.3.6 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/CHANGELOG.md +6 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/builtin.h +7 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/darray.h +1 -3
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/id.h +5 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/insns.inc +2 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/insns_info.inc +310 -175
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/basic_operators.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/bits.h +82 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/encoding.h +2 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/error.h +26 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/fixnum.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/gc.h +14 -6
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/imemo.h +6 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/io.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/parse.h +2 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/proc.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/ractor.h +4 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/sanitizers.h +31 -39
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/string.h +22 -10
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/thread.h +23 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/vm.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/method.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/optunifs.inc +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/parse.h +2 -2
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/ast.h +427 -3
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/defines.h +8 -7
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/diagnostic.h +1 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/extension.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/prism.h +47 -11
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/version.h +2 -2
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism_compile.h +5 -5
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/ractor_core.h +6 -6
- data/lib/debase/ruby_core_source/ruby-3.4.0/revision.h +5 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/rubyparser.h +3 -2
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/thread_pthread.h +0 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/version.h +1 -1
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm.inc +151 -88
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_core.h +40 -12
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_sync.h +3 -3
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vmtc.inc +2 -0
- data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/yjit.h +1 -0
- data/lib/debase/ruby_core_source/version.rb +1 -1
- metadata +147 -293
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/darray.h +0 -191
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/debug_counter.h +0 -423
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/dln.h +0 -34
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id.h +0 -343
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns.inc +0 -259
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns_info.inc +0 -9530
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/array.h +0 -151
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/basic_operators.h +0 -63
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bits.h +0 -568
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/class.h +0 -283
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/error.h +0 -216
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/fixnum.h +0 -184
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/gc.h +0 -334
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/hash.h +0 -191
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/imemo.h +0 -260
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/io.h +0 -140
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/parse.h +0 -117
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ractor.h +0 -6
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/sanitizers.h +0 -297
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/string.h +0 -182
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/thread.h +0 -79
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/vm.h +0 -137
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/known_errors.inc +0 -1419
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/method.h +0 -255
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optunifs.inc +0 -43
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parse.h +0 -243
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/ast.h +0 -6245
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/defines.h +0 -206
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/diagnostic.h +0 -433
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/extension.h +0 -19
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/node.h +0 -150
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/options.h +0 -305
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/parser.h +0 -891
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h +0 -33
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/static_literals.h +0 -120
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_char.h +0 -205
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_constant_pool.h +0 -226
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_integer.h +0 -119
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_newline_list.h +0 -102
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string.h +0 -174
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string_list.h +0 -44
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/version.h +0 -29
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism_compile.h +0 -88
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ractor_core.h +0 -393
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regint.h +0 -1010
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/revision.h +0 -5
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rubyparser.h +0 -1430
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/shape.h +0 -233
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/symbol.h +0 -118
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_pthread.h +0 -166
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/version.h +0 -69
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm.inc +0 -5643
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_callinfo.h +0 -605
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_core.h +0 -2236
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_insnhelper.h +0 -272
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_sync.h +0 -137
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vmtc.inc +0 -253
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/addr2line.h +0 -22
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/builtin.h +0 -119
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/build_assert/build_assert.h +0 -40
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/check_type/check_type.h +0 -63
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/container_of/container_of.h +0 -142
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/list/list.h +0 -791
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/str/str.h +0 -17
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/constant.h +0 -53
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/encindex.h +0 -70
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/eval_intern.h +0 -324
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/hrtime.h +0 -237
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/id_table.h +0 -39
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/bignum.h +0 -244
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cmdlineopt.h +0 -65
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compar.h +0 -29
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compile.h +0 -34
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compilers.h +0 -107
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/complex.h +0 -29
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cont.h +0 -35
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/dir.h +0 -16
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enc.h +0 -19
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/encoding.h +0 -36
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enum.h +0 -18
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enumerator.h +0 -21
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/eval.h +0 -33
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/file.h +0 -38
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/inits.h +0 -47
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/load.h +0 -18
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/loadpath.h +0 -16
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/math.h +0 -23
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/missing.h +0 -19
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/numeric.h +0 -274
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/object.h +0 -63
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/proc.h +0 -30
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/process.h +0 -124
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/random.h +0 -17
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/range.h +0 -40
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/rational.h +0 -71
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/re.h +0 -28
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/ruby_parser.h +0 -102
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/serial.h +0 -23
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/signal.h +0 -24
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/st.h +0 -11
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/static_assert.h +0 -16
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/struct.h +0 -127
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/symbol.h +0 -45
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/time.h +0 -34
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/transcode.h +0 -23
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/util.h +0 -27
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/variable.h +0 -72
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/warnings.h +0 -16
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal.h +0 -108
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/iseq.h +0 -340
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node.h +0 -111
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node_name.inc +0 -224
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/optinsn.inc +0 -128
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_bits.h +0 -564
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_node.h +0 -32
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_st.h +0 -162
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_value.h +0 -106
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/encoding.h +0 -283
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/pack.h +0 -163
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prettyprint.h +0 -34
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prism.h +0 -336
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_buffer.h +0 -218
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_list.h +0 -97
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_memchr.h +0 -29
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strncasecmp.h +0 -32
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strpbrk.h +0 -46
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/probes_helper.h +0 -42
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regenc.h +0 -254
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regparse.h +0 -371
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/revision.h +0 -5
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit.h +0 -101
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit_c.h +0 -165
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_assert.h +0 -14
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_atomic.h +0 -23
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/siphash.h +0 -48
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_none.h +0 -21
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_win32.h +0 -58
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/timev.h +0 -58
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/transcode_data.h +0 -138
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/variable.h +0 -39
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_call_iseq_optimized.inc +0 -244
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_debug.h +0 -124
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_exec.h +0 -199
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_opts.h +0 -67
- data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/yjit.h +0 -79
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/addr2line.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/build_assert/build_assert.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/check_type/check_type.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/container_of/container_of.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/list/list.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/str/str.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/constant.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/debug_counter.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/dln.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/encindex.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/eval_intern.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/hrtime.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/id_table.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/array.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/bignum.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/class.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/cmdlineopt.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compar.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compile.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compilers.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/complex.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/cont.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/dir.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enc.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enum.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enumerator.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/eval.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/file.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/hash.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/inits.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/load.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/loadpath.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/math.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/missing.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/numeric.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/object.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/process.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/random.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/range.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/rational.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/re.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/ruby_parser.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/serial.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/signal.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/st.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/static_assert.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/struct.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/symbol.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/time.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/transcode.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/util.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/variable.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/warnings.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/iseq.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/known_errors.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/node.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/node_name.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/optinsn.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_bits.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_node.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_st.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_value.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/encoding.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/node.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/options.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/pack.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/parser.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/prettyprint.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/regexp.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/static_literals.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_buffer.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_char.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_constant_pool.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_integer.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_list.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_memchr.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_newline_list.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_string.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_strncasecmp.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_strpbrk.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/probes_helper.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/regenc.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/regint.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/regparse.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/rjit.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/rjit_c.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ruby_assert.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ruby_atomic.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/shape.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/siphash.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/symbol.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/thread_none.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/thread_win32.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/timev.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/transcode_data.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/variable.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_call_iseq_optimized.inc +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_callinfo.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_debug.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_exec.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_insnhelper.h +0 -0
- /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_opts.h +0 -0
@@ -1,39 +0,0 @@
|
|
1
|
-
#ifndef RUBY_ID_TABLE_H
|
2
|
-
#define RUBY_ID_TABLE_H 1
|
3
|
-
#include "ruby/internal/config.h"
|
4
|
-
#include <stddef.h>
|
5
|
-
#include "ruby/ruby.h"
|
6
|
-
|
7
|
-
struct rb_id_table;
|
8
|
-
|
9
|
-
/* compatible with ST_* */
|
10
|
-
enum rb_id_table_iterator_result {
|
11
|
-
ID_TABLE_CONTINUE = ST_CONTINUE,
|
12
|
-
ID_TABLE_STOP = ST_STOP,
|
13
|
-
ID_TABLE_DELETE = ST_DELETE,
|
14
|
-
ID_TABLE_REPLACE = ST_REPLACE,
|
15
|
-
ID_TABLE_ITERATOR_RESULT_END
|
16
|
-
};
|
17
|
-
|
18
|
-
struct rb_id_table *rb_id_table_create(size_t size);
|
19
|
-
void rb_id_table_free(struct rb_id_table *tbl);
|
20
|
-
void rb_id_table_clear(struct rb_id_table *tbl);
|
21
|
-
|
22
|
-
size_t rb_id_table_memsize(const struct rb_id_table *tbl);
|
23
|
-
|
24
|
-
int rb_id_table_insert(struct rb_id_table *tbl, ID id, VALUE val);
|
25
|
-
int rb_id_table_lookup(struct rb_id_table *tbl, ID id, VALUE *valp);
|
26
|
-
int rb_id_table_delete(struct rb_id_table *tbl, ID id);
|
27
|
-
|
28
|
-
typedef enum rb_id_table_iterator_result rb_id_table_update_value_callback_func_t(VALUE *val, void *data, int existing);
|
29
|
-
typedef enum rb_id_table_iterator_result rb_id_table_foreach_func_t(ID id, VALUE val, void *data);
|
30
|
-
typedef enum rb_id_table_iterator_result rb_id_table_foreach_values_func_t(VALUE val, void *data);
|
31
|
-
void rb_id_table_foreach(struct rb_id_table *tbl, rb_id_table_foreach_func_t *func, void *data);
|
32
|
-
void rb_id_table_foreach_values(struct rb_id_table *tbl, rb_id_table_foreach_values_func_t *func, void *data);
|
33
|
-
void rb_id_table_foreach_values_with_replace(struct rb_id_table *tbl, rb_id_table_foreach_values_func_t *func, rb_id_table_update_value_callback_func_t *replace, void *data);
|
34
|
-
|
35
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
36
|
-
size_t rb_id_table_size(const struct rb_id_table *tbl);
|
37
|
-
RUBY_SYMBOL_EXPORT_END
|
38
|
-
|
39
|
-
#endif /* RUBY_ID_TABLE_H */
|
@@ -1,244 +0,0 @@
|
|
1
|
-
#ifndef INTERNAL_BIGNUM_H /*-*-C-*-vi:se ft=c:*/
|
2
|
-
#define INTERNAL_BIGNUM_H
|
3
|
-
/**
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
8
|
-
* file COPYING are met. Consult the file for details.
|
9
|
-
* @brief Internal header for Bignums.
|
10
|
-
*/
|
11
|
-
#include "ruby/internal/config.h" /* for HAVE_LIBGMP */
|
12
|
-
#include <stddef.h> /* for size_t */
|
13
|
-
|
14
|
-
#ifdef HAVE_SYS_TYPES_H
|
15
|
-
# include <sys/types.h> /* for ssize_t (note: on Windows ssize_t is */
|
16
|
-
#endif /* `#define`d in ruby/config.h) */
|
17
|
-
|
18
|
-
#include "ruby/internal/stdbool.h" /* for bool */
|
19
|
-
#include "ruby/ruby.h" /* for struct RBasic */
|
20
|
-
|
21
|
-
#ifndef BDIGIT
|
22
|
-
# if SIZEOF_INT*2 <= SIZEOF_LONG_LONG
|
23
|
-
# define BDIGIT unsigned int
|
24
|
-
# define SIZEOF_BDIGIT SIZEOF_INT
|
25
|
-
# define BDIGIT_DBL unsigned LONG_LONG
|
26
|
-
# define BDIGIT_DBL_SIGNED LONG_LONG
|
27
|
-
# define PRI_BDIGIT_PREFIX ""
|
28
|
-
# define PRI_BDIGIT_DBL_PREFIX PRI_LL_PREFIX
|
29
|
-
# elif SIZEOF_INT*2 <= SIZEOF_LONG
|
30
|
-
# define BDIGIT unsigned int
|
31
|
-
# define SIZEOF_BDIGIT SIZEOF_INT
|
32
|
-
# define BDIGIT_DBL unsigned long
|
33
|
-
# define BDIGIT_DBL_SIGNED long
|
34
|
-
# define PRI_BDIGIT_PREFIX ""
|
35
|
-
# define PRI_BDIGIT_DBL_PREFIX "l"
|
36
|
-
# elif SIZEOF_SHORT*2 <= SIZEOF_LONG
|
37
|
-
# define BDIGIT unsigned short
|
38
|
-
# define SIZEOF_BDIGIT SIZEOF_SHORT
|
39
|
-
# define BDIGIT_DBL unsigned long
|
40
|
-
# define BDIGIT_DBL_SIGNED long
|
41
|
-
# define PRI_BDIGIT_PREFIX "h"
|
42
|
-
# define PRI_BDIGIT_DBL_PREFIX "l"
|
43
|
-
# else
|
44
|
-
# define BDIGIT unsigned short
|
45
|
-
# define SIZEOF_BDIGIT (SIZEOF_LONG/2)
|
46
|
-
# define SIZEOF_ACTUAL_BDIGIT SIZEOF_LONG
|
47
|
-
# define BDIGIT_DBL unsigned long
|
48
|
-
# define BDIGIT_DBL_SIGNED long
|
49
|
-
# define PRI_BDIGIT_PREFIX "h"
|
50
|
-
# define PRI_BDIGIT_DBL_PREFIX "l"
|
51
|
-
# endif
|
52
|
-
#endif
|
53
|
-
|
54
|
-
#ifndef SIZEOF_ACTUAL_BDIGIT
|
55
|
-
# define SIZEOF_ACTUAL_BDIGIT SIZEOF_BDIGIT
|
56
|
-
#endif
|
57
|
-
|
58
|
-
#ifdef PRI_BDIGIT_PREFIX
|
59
|
-
# define PRIdBDIGIT PRI_BDIGIT_PREFIX"d"
|
60
|
-
# define PRIiBDIGIT PRI_BDIGIT_PREFIX"i"
|
61
|
-
# define PRIoBDIGIT PRI_BDIGIT_PREFIX"o"
|
62
|
-
# define PRIuBDIGIT PRI_BDIGIT_PREFIX"u"
|
63
|
-
# define PRIxBDIGIT PRI_BDIGIT_PREFIX"x"
|
64
|
-
# define PRIXBDIGIT PRI_BDIGIT_PREFIX"X"
|
65
|
-
#endif
|
66
|
-
|
67
|
-
#ifdef PRI_BDIGIT_DBL_PREFIX
|
68
|
-
# define PRIdBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"d"
|
69
|
-
# define PRIiBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"i"
|
70
|
-
# define PRIoBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"o"
|
71
|
-
# define PRIuBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"u"
|
72
|
-
# define PRIxBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"x"
|
73
|
-
# define PRIXBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"X"
|
74
|
-
#endif
|
75
|
-
|
76
|
-
#define RBIGNUM(obj) ((struct RBignum *)(obj))
|
77
|
-
#define BIGNUM_SIGN_BIT FL_USER1
|
78
|
-
#define BIGNUM_EMBED_FLAG ((VALUE)FL_USER2)
|
79
|
-
#define BIGNUM_EMBED_LEN_NUMBITS 3
|
80
|
-
#define BIGNUM_EMBED_LEN_MASK \
|
81
|
-
(~(~(VALUE)0U << BIGNUM_EMBED_LEN_NUMBITS) << BIGNUM_EMBED_LEN_SHIFT)
|
82
|
-
#define BIGNUM_EMBED_LEN_SHIFT \
|
83
|
-
(FL_USHIFT+3) /* bit offset of BIGNUM_EMBED_LEN_MASK */
|
84
|
-
#ifndef BIGNUM_EMBED_LEN_MAX
|
85
|
-
# if (SIZEOF_VALUE*RBIMPL_RVALUE_EMBED_LEN_MAX/SIZEOF_ACTUAL_BDIGIT) < (1 << BIGNUM_EMBED_LEN_NUMBITS)-1
|
86
|
-
# define BIGNUM_EMBED_LEN_MAX (SIZEOF_VALUE*RBIMPL_RVALUE_EMBED_LEN_MAX/SIZEOF_ACTUAL_BDIGIT)
|
87
|
-
# else
|
88
|
-
# define BIGNUM_EMBED_LEN_MAX ((1 << BIGNUM_EMBED_LEN_NUMBITS)-1)
|
89
|
-
# endif
|
90
|
-
#endif
|
91
|
-
|
92
|
-
enum rb_int_parse_flags {
|
93
|
-
RB_INT_PARSE_SIGN = 0x01,
|
94
|
-
RB_INT_PARSE_UNDERSCORE = 0x02,
|
95
|
-
RB_INT_PARSE_PREFIX = 0x04,
|
96
|
-
RB_INT_PARSE_ALL = 0x07,
|
97
|
-
RB_INT_PARSE_DEFAULT = 0x07,
|
98
|
-
};
|
99
|
-
|
100
|
-
struct RBignum {
|
101
|
-
struct RBasic basic;
|
102
|
-
union {
|
103
|
-
struct {
|
104
|
-
size_t len;
|
105
|
-
BDIGIT *digits;
|
106
|
-
} heap;
|
107
|
-
BDIGIT ary[BIGNUM_EMBED_LEN_MAX];
|
108
|
-
} as;
|
109
|
-
};
|
110
|
-
|
111
|
-
/* bignum.c */
|
112
|
-
extern const char ruby_digitmap[];
|
113
|
-
double rb_big_fdiv_double(VALUE x, VALUE y);
|
114
|
-
VALUE rb_big_uminus(VALUE x);
|
115
|
-
VALUE rb_big_hash(VALUE);
|
116
|
-
VALUE rb_big_odd_p(VALUE);
|
117
|
-
VALUE rb_big_even_p(VALUE);
|
118
|
-
size_t rb_big_size(VALUE);
|
119
|
-
VALUE rb_integer_float_cmp(VALUE x, VALUE y);
|
120
|
-
VALUE rb_integer_float_eq(VALUE x, VALUE y);
|
121
|
-
VALUE rb_str_convert_to_inum(VALUE str, int base, int badcheck, int raise_exception);
|
122
|
-
VALUE rb_big_comp(VALUE x);
|
123
|
-
VALUE rb_big_aref(VALUE x, VALUE y);
|
124
|
-
VALUE rb_big_abs(VALUE x);
|
125
|
-
VALUE rb_big_size_m(VALUE big);
|
126
|
-
VALUE rb_big_bit_length(VALUE big);
|
127
|
-
VALUE rb_big_remainder(VALUE x, VALUE y);
|
128
|
-
VALUE rb_big_gt(VALUE x, VALUE y);
|
129
|
-
VALUE rb_big_ge(VALUE x, VALUE y);
|
130
|
-
VALUE rb_big_lt(VALUE x, VALUE y);
|
131
|
-
VALUE rb_big_le(VALUE x, VALUE y);
|
132
|
-
VALUE rb_int_powm(int const argc, VALUE * const argv, VALUE const num);
|
133
|
-
VALUE rb_big_isqrt(VALUE n);
|
134
|
-
static inline bool BIGNUM_SIGN(VALUE b);
|
135
|
-
static inline bool BIGNUM_POSITIVE_P(VALUE b);
|
136
|
-
static inline bool BIGNUM_NEGATIVE_P(VALUE b);
|
137
|
-
static inline void BIGNUM_SET_SIGN(VALUE b, bool sign);
|
138
|
-
static inline void BIGNUM_NEGATE(VALUE b);
|
139
|
-
static inline size_t BIGNUM_LEN(VALUE b);
|
140
|
-
static inline BDIGIT *BIGNUM_DIGITS(VALUE b);
|
141
|
-
static inline int BIGNUM_LENINT(VALUE b);
|
142
|
-
static inline bool BIGNUM_EMBED_P(VALUE b);
|
143
|
-
|
144
|
-
RUBY_SYMBOL_EXPORT_BEGIN
|
145
|
-
/* bignum.c (export) */
|
146
|
-
VALUE rb_big_mul_normal(VALUE x, VALUE y);
|
147
|
-
VALUE rb_big_mul_balance(VALUE x, VALUE y);
|
148
|
-
VALUE rb_big_mul_karatsuba(VALUE x, VALUE y);
|
149
|
-
VALUE rb_big_mul_toom3(VALUE x, VALUE y);
|
150
|
-
VALUE rb_big_sq_fast(VALUE x);
|
151
|
-
VALUE rb_big_divrem_normal(VALUE x, VALUE y);
|
152
|
-
VALUE rb_big2str_poweroftwo(VALUE x, int base);
|
153
|
-
VALUE rb_big2str_generic(VALUE x, int base);
|
154
|
-
VALUE rb_str2big_poweroftwo(VALUE arg, int base, int badcheck);
|
155
|
-
VALUE rb_str2big_normal(VALUE arg, int base, int badcheck);
|
156
|
-
VALUE rb_str2big_karatsuba(VALUE arg, int base, int badcheck);
|
157
|
-
#if defined(HAVE_LIBGMP) && defined(HAVE_GMP_H)
|
158
|
-
VALUE rb_big_mul_gmp(VALUE x, VALUE y);
|
159
|
-
VALUE rb_big_divrem_gmp(VALUE x, VALUE y);
|
160
|
-
VALUE rb_big2str_gmp(VALUE x, int base);
|
161
|
-
VALUE rb_str2big_gmp(VALUE arg, int base, int badcheck);
|
162
|
-
#endif
|
163
|
-
VALUE rb_int_parse_cstr(const char *str, ssize_t len, char **endp, size_t *ndigits, int base, int flags);
|
164
|
-
RUBY_SYMBOL_EXPORT_END
|
165
|
-
|
166
|
-
#if defined(HAVE_INT128_T)
|
167
|
-
VALUE rb_int128t2big(int128_t n);
|
168
|
-
#endif
|
169
|
-
|
170
|
-
/* sign: positive:1, negative:0 */
|
171
|
-
static inline bool
|
172
|
-
BIGNUM_SIGN(VALUE b)
|
173
|
-
{
|
174
|
-
return FL_TEST_RAW(b, BIGNUM_SIGN_BIT);
|
175
|
-
}
|
176
|
-
|
177
|
-
static inline bool
|
178
|
-
BIGNUM_POSITIVE_P(VALUE b)
|
179
|
-
{
|
180
|
-
return BIGNUM_SIGN(b);
|
181
|
-
}
|
182
|
-
|
183
|
-
static inline bool
|
184
|
-
BIGNUM_NEGATIVE_P(VALUE b)
|
185
|
-
{
|
186
|
-
return ! BIGNUM_POSITIVE_P(b);
|
187
|
-
}
|
188
|
-
|
189
|
-
static inline void
|
190
|
-
BIGNUM_SET_SIGN(VALUE b, bool sign)
|
191
|
-
{
|
192
|
-
if (sign) {
|
193
|
-
FL_SET_RAW(b, BIGNUM_SIGN_BIT);
|
194
|
-
}
|
195
|
-
else {
|
196
|
-
FL_UNSET_RAW(b, BIGNUM_SIGN_BIT);
|
197
|
-
}
|
198
|
-
}
|
199
|
-
|
200
|
-
static inline void
|
201
|
-
BIGNUM_NEGATE(VALUE b)
|
202
|
-
{
|
203
|
-
FL_REVERSE_RAW(b, BIGNUM_SIGN_BIT);
|
204
|
-
}
|
205
|
-
|
206
|
-
static inline size_t
|
207
|
-
BIGNUM_LEN(VALUE b)
|
208
|
-
{
|
209
|
-
if (! BIGNUM_EMBED_P(b)) {
|
210
|
-
return RBIGNUM(b)->as.heap.len;
|
211
|
-
}
|
212
|
-
else {
|
213
|
-
size_t ret = RBASIC(b)->flags;
|
214
|
-
ret &= BIGNUM_EMBED_LEN_MASK;
|
215
|
-
ret >>= BIGNUM_EMBED_LEN_SHIFT;
|
216
|
-
return ret;
|
217
|
-
}
|
218
|
-
}
|
219
|
-
|
220
|
-
static inline int
|
221
|
-
BIGNUM_LENINT(VALUE b)
|
222
|
-
{
|
223
|
-
return rb_long2int(BIGNUM_LEN(b));
|
224
|
-
}
|
225
|
-
|
226
|
-
/* LSB:BIGNUM_DIGITS(b)[0], MSB:BIGNUM_DIGITS(b)[BIGNUM_LEN(b)-1] */
|
227
|
-
static inline BDIGIT *
|
228
|
-
BIGNUM_DIGITS(VALUE b)
|
229
|
-
{
|
230
|
-
if (BIGNUM_EMBED_P(b)) {
|
231
|
-
return RBIGNUM(b)->as.ary;
|
232
|
-
}
|
233
|
-
else {
|
234
|
-
return RBIGNUM(b)->as.heap.digits;
|
235
|
-
}
|
236
|
-
}
|
237
|
-
|
238
|
-
static inline bool
|
239
|
-
BIGNUM_EMBED_P(VALUE b)
|
240
|
-
{
|
241
|
-
return FL_TEST_RAW(b, BIGNUM_EMBED_FLAG);
|
242
|
-
}
|
243
|
-
|
244
|
-
#endif /* INTERNAL_BIGNUM_H */
|
@@ -1,65 +0,0 @@
|
|
1
|
-
#ifndef INTERNAL_CMDLINEOPT_H /*-*-C-*-vi:se ft=c:*/
|
2
|
-
#define INTERNAL_CMDLINEOPT_H
|
3
|
-
|
4
|
-
#include "rjit.h"
|
5
|
-
#include "yjit.h"
|
6
|
-
|
7
|
-
typedef struct {
|
8
|
-
unsigned int mask;
|
9
|
-
unsigned int set;
|
10
|
-
} ruby_features_t;
|
11
|
-
|
12
|
-
typedef struct ruby_cmdline_options {
|
13
|
-
const char *script;
|
14
|
-
VALUE script_name;
|
15
|
-
VALUE e_script;
|
16
|
-
struct {
|
17
|
-
struct {
|
18
|
-
VALUE name;
|
19
|
-
int index;
|
20
|
-
} enc;
|
21
|
-
} src, ext, intern;
|
22
|
-
VALUE req_list;
|
23
|
-
ruby_features_t features;
|
24
|
-
ruby_features_t warn;
|
25
|
-
unsigned int dump;
|
26
|
-
long backtrace_length_limit;
|
27
|
-
#if USE_RJIT
|
28
|
-
struct rb_rjit_options rjit;
|
29
|
-
#endif
|
30
|
-
|
31
|
-
const char *crash_report;
|
32
|
-
|
33
|
-
signed int sflag: 2;
|
34
|
-
unsigned int xflag: 1;
|
35
|
-
unsigned int warning: 1;
|
36
|
-
unsigned int verbose: 1;
|
37
|
-
unsigned int do_loop: 1;
|
38
|
-
unsigned int do_print: 1;
|
39
|
-
unsigned int do_line: 1;
|
40
|
-
unsigned int do_split: 1;
|
41
|
-
unsigned int do_search: 1;
|
42
|
-
unsigned int setids: 2;
|
43
|
-
#if USE_YJIT
|
44
|
-
unsigned int yjit: 1;
|
45
|
-
#endif
|
46
|
-
} ruby_cmdline_options_t;
|
47
|
-
|
48
|
-
struct ruby_opt_message {
|
49
|
-
const char *str;
|
50
|
-
unsigned short namelen, secondlen;
|
51
|
-
};
|
52
|
-
|
53
|
-
#define RUBY_OPT_MESSAGE(shortopt, longopt, desc) { \
|
54
|
-
shortopt " " longopt " " desc, \
|
55
|
-
(unsigned short)sizeof(shortopt), \
|
56
|
-
(unsigned short)sizeof(longopt), \
|
57
|
-
}
|
58
|
-
|
59
|
-
#define opt_match(s, l, name) \
|
60
|
-
((((l) > rb_strlen_lit(name)) ? (s)[rb_strlen_lit(name)] == '=' : \
|
61
|
-
(l) == rb_strlen_lit(name)) && \
|
62
|
-
memcmp((s), name, rb_strlen_lit(name)) == 0 && \
|
63
|
-
(((s) += rb_strlen_lit(name)), 1))
|
64
|
-
|
65
|
-
#endif
|
@@ -1,29 +0,0 @@
|
|
1
|
-
#ifndef INTERNAL_COMPAR_H /*-*-C-*-vi:se ft=c:*/
|
2
|
-
#define INTERNAL_COMPAR_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 Comparable.
|
10
|
-
*/
|
11
|
-
#include "internal/basic_operators.h"
|
12
|
-
|
13
|
-
#define STRING_P(s) (RB_TYPE_P((s), T_STRING) && CLASS_OF(s) == rb_cString)
|
14
|
-
|
15
|
-
#define CMP_OPTIMIZABLE(type) BASIC_OP_UNREDEFINED_P(BOP_CMP, type##_REDEFINED_OP_FLAG)
|
16
|
-
|
17
|
-
#define OPTIMIZED_CMP(a, b) \
|
18
|
-
((FIXNUM_P(a) && FIXNUM_P(b) && CMP_OPTIMIZABLE(INTEGER)) ? \
|
19
|
-
(((long)a > (long)b) ? 1 : ((long)a < (long)b) ? -1 : 0) : \
|
20
|
-
(STRING_P(a) && STRING_P(b) && CMP_OPTIMIZABLE(STRING)) ? \
|
21
|
-
rb_str_cmp(a, b) : \
|
22
|
-
(RB_FLOAT_TYPE_P(a) && RB_FLOAT_TYPE_P(b) && CMP_OPTIMIZABLE(FLOAT)) ? \
|
23
|
-
rb_float_cmp(a, b) : \
|
24
|
-
rb_cmpint(rb_funcallv(a, id_cmp, 1, &b), a, b))
|
25
|
-
|
26
|
-
/* compar.c */
|
27
|
-
VALUE rb_invcmp(VALUE, VALUE);
|
28
|
-
|
29
|
-
#endif /* INTERNAL_COMPAR_H */
|
@@ -1,34 +0,0 @@
|
|
1
|
-
#ifndef INTERNAL_COMPILE_H /*-*-C-*-vi:se ft=c:*/
|
2
|
-
#define INTERNAL_COMPILE_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 compiler.
|
10
|
-
*/
|
11
|
-
#include "ruby/internal/config.h"
|
12
|
-
#include <stddef.h> /* for size_t */
|
13
|
-
#include "ruby/ruby.h" /* for rb_event_flag_t */
|
14
|
-
|
15
|
-
struct rb_iseq_struct; /* in vm_core.h */
|
16
|
-
|
17
|
-
/* compile.c */
|
18
|
-
int rb_dvar_defined(ID, const struct rb_iseq_struct *);
|
19
|
-
int rb_local_defined(ID, const struct rb_iseq_struct *);
|
20
|
-
int rb_insn_len(VALUE insn);
|
21
|
-
const char *rb_insns_name(int i);
|
22
|
-
VALUE rb_insns_name_array(void);
|
23
|
-
int rb_iseq_cdhash_cmp(VALUE val, VALUE lit);
|
24
|
-
st_index_t rb_iseq_cdhash_hash(VALUE a);
|
25
|
-
|
26
|
-
/* iseq.c */
|
27
|
-
int rb_vm_insn_addr2insn(const void *);
|
28
|
-
int rb_vm_insn_decode(const VALUE encoded);
|
29
|
-
extern bool ruby_vm_keep_script_lines;
|
30
|
-
|
31
|
-
/* iseq.c (export) */
|
32
|
-
rb_event_flag_t rb_iseq_event_flags(const struct rb_iseq_struct *iseq, size_t pos);
|
33
|
-
|
34
|
-
#endif /* INTERNAL_COMPILE_H */
|
@@ -1,107 +0,0 @@
|
|
1
|
-
#ifndef INTERNAL_COMPILERS_H /*-*-C-*-vi:se ft=c:*/
|
2
|
-
#define INTERNAL_COMPILERS_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 absorbing C compiler differences.
|
10
|
-
*/
|
11
|
-
#include "ruby/internal/compiler_since.h"
|
12
|
-
#include "ruby/internal/has/attribute.h"
|
13
|
-
#include "ruby/internal/has/builtin.h"
|
14
|
-
#include "ruby/internal/has/c_attribute.h"
|
15
|
-
#include "ruby/internal/has/declspec_attribute.h"
|
16
|
-
#include "ruby/internal/has/extension.h"
|
17
|
-
#include "ruby/internal/has/feature.h"
|
18
|
-
#include "ruby/internal/has/warning.h"
|
19
|
-
#include "ruby/backward/2/gcc_version_since.h"
|
20
|
-
|
21
|
-
#define MSC_VERSION_SINCE(_) RBIMPL_COMPILER_SINCE(MSVC, (_) / 100, (_) % 100, 0)
|
22
|
-
#define MSC_VERSION_BEFORE(_) RBIMPL_COMPILER_BEFORE(MSVC, (_) / 100, (_) % 100, 0)
|
23
|
-
|
24
|
-
#ifndef __has_attribute
|
25
|
-
# define __has_attribute(...) RBIMPL_HAS_ATTRIBUTE(__VA_ARGS__)
|
26
|
-
#endif
|
27
|
-
|
28
|
-
#ifndef __has_c_attribute
|
29
|
-
# /* As of writing everything that lacks __has_c_attribute also completely
|
30
|
-
# * lacks C2x attributes as well. Might change in future? */
|
31
|
-
# define __has_c_attribute(...) 0
|
32
|
-
#endif
|
33
|
-
|
34
|
-
#ifndef __has_declspec_attribute
|
35
|
-
# define __has_declspec_attribute(...) RBIMPL_HAS_DECLSPEC_ATTRIBUTE(__VA_ARGS__)
|
36
|
-
#endif
|
37
|
-
|
38
|
-
#ifndef __has_builtin
|
39
|
-
# define __has_builtin(...) RBIMPL_HAS_BUILTIN(__VA_ARGS__)
|
40
|
-
#endif
|
41
|
-
|
42
|
-
#ifndef __has_feature
|
43
|
-
# define __has_feature(...) RBIMPL_HAS_FEATURE(__VA_ARGS__)
|
44
|
-
#endif
|
45
|
-
|
46
|
-
#ifndef __has_extension
|
47
|
-
# define __has_extension(...) RBIMPL_HAS_EXTENSION(__VA_ARGS__)
|
48
|
-
#endif
|
49
|
-
|
50
|
-
#ifndef __has_warning
|
51
|
-
# define __has_warning(...) RBIMPL_HAS_WARNING(__VA_ARGS__)
|
52
|
-
#endif
|
53
|
-
|
54
|
-
#ifndef __GNUC__
|
55
|
-
# define __extension__ /* void */
|
56
|
-
#endif
|
57
|
-
|
58
|
-
#ifndef MAYBE_UNUSED
|
59
|
-
# define MAYBE_UNUSED(x) x
|
60
|
-
#endif
|
61
|
-
|
62
|
-
#ifndef WARN_UNUSED_RESULT
|
63
|
-
# define WARN_UNUSED_RESULT(x) x
|
64
|
-
#endif
|
65
|
-
|
66
|
-
#define RB_OBJ_BUILTIN_TYPE(obj) rb_obj_builtin_type(obj)
|
67
|
-
#define OBJ_BUILTIN_TYPE(obj) RB_OBJ_BUILTIN_TYPE(obj)
|
68
|
-
#ifdef __GNUC__
|
69
|
-
#define rb_obj_builtin_type(obj) \
|
70
|
-
__extension__({ \
|
71
|
-
VALUE arg_obj = (obj); \
|
72
|
-
RB_SPECIAL_CONST_P(arg_obj) ? -1 : \
|
73
|
-
(int)RB_BUILTIN_TYPE(arg_obj); \
|
74
|
-
})
|
75
|
-
#else
|
76
|
-
# include "ruby/ruby.h"
|
77
|
-
static inline int
|
78
|
-
rb_obj_builtin_type(VALUE obj)
|
79
|
-
{
|
80
|
-
return RB_SPECIAL_CONST_P(obj) ? -1 :
|
81
|
-
(int)RB_BUILTIN_TYPE(obj);
|
82
|
-
}
|
83
|
-
#endif
|
84
|
-
|
85
|
-
/* A macro for defining a flexible array, like: VALUE ary[FLEX_ARY_LEN]; */
|
86
|
-
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
|
87
|
-
# define FLEX_ARY_LEN /* VALUE ary[]; */
|
88
|
-
#elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
89
|
-
# define FLEX_ARY_LEN 0 /* VALUE ary[0]; */
|
90
|
-
#else
|
91
|
-
# define FLEX_ARY_LEN 1 /* VALUE ary[1]; */
|
92
|
-
#endif
|
93
|
-
|
94
|
-
/*
|
95
|
-
* For declaring bitfields out of non-unsigned int types:
|
96
|
-
* struct date {
|
97
|
-
* BITFIELD(enum months, month, 4);
|
98
|
-
* ...
|
99
|
-
* };
|
100
|
-
*/
|
101
|
-
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
|
102
|
-
# define BITFIELD(type, name, size) type name : size
|
103
|
-
#else
|
104
|
-
# define BITFIELD(type, name, size) unsigned int name : size
|
105
|
-
#endif
|
106
|
-
|
107
|
-
#endif /* INTERNAL_COMPILERS_H */
|
@@ -1,29 +0,0 @@
|
|
1
|
-
#ifndef INTERNAL_COMPLEX_H /*-*-C-*-vi:se ft=c:*/
|
2
|
-
#define INTERNAL_COMPLEX_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 Complex.
|
10
|
-
*/
|
11
|
-
#include "ruby/internal/value.h" /* for struct RBasic */
|
12
|
-
|
13
|
-
struct RComplex {
|
14
|
-
struct RBasic basic;
|
15
|
-
VALUE real;
|
16
|
-
VALUE imag;
|
17
|
-
};
|
18
|
-
|
19
|
-
#define RCOMPLEX(obj) ((struct RComplex *)(obj))
|
20
|
-
|
21
|
-
/* shortcut macro for internal only */
|
22
|
-
#define RCOMPLEX_SET_REAL(cmp, r) RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->real, (r))
|
23
|
-
#define RCOMPLEX_SET_IMAG(cmp, i) RB_OBJ_WRITE((cmp), &RCOMPLEX(cmp)->imag, (i))
|
24
|
-
|
25
|
-
/* complex.c */
|
26
|
-
VALUE rb_dbl_complex_new_polar_pi(double abs, double ang);
|
27
|
-
st_index_t rb_complex_hash(VALUE comp);
|
28
|
-
|
29
|
-
#endif /* INTERNAL_COMPLEX_H */
|
@@ -1,35 +0,0 @@
|
|
1
|
-
#ifndef INTERNAL_CONT_H /*-*-C-*-vi:se ft=c:*/
|
2
|
-
#define INTERNAL_CONT_H
|
3
|
-
/**
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
8
|
-
* file COPYING are met. Consult the file for details.
|
9
|
-
* @brief Internal header for Fiber.
|
10
|
-
*/
|
11
|
-
#include "ruby/ruby.h" /* for VALUE */
|
12
|
-
#include "iseq.h"
|
13
|
-
|
14
|
-
struct rb_thread_struct; /* in vm_core.h */
|
15
|
-
struct rb_fiber_struct; /* in cont.c */
|
16
|
-
struct rb_execution_context_struct; /* in vm_core.c */
|
17
|
-
|
18
|
-
/* cont.c */
|
19
|
-
void rb_fiber_reset_root_local_storage(struct rb_thread_struct *);
|
20
|
-
void ruby_register_rollback_func_for_ensure(VALUE (*ensure_func)(VALUE), VALUE (*rollback_func)(VALUE));
|
21
|
-
void rb_jit_cont_init(void);
|
22
|
-
void rb_jit_cont_each_iseq(rb_iseq_callback callback, void *data);
|
23
|
-
void rb_jit_cont_finish(void);
|
24
|
-
|
25
|
-
/* vm.c */
|
26
|
-
void rb_free_shared_fiber_pool(void);
|
27
|
-
|
28
|
-
// Copy locals from the current execution to the specified fiber.
|
29
|
-
VALUE rb_fiber_inherit_storage(struct rb_execution_context_struct *ec, struct rb_fiber_struct *fiber);
|
30
|
-
|
31
|
-
VALUE rb_fiberptr_self(struct rb_fiber_struct *fiber);
|
32
|
-
unsigned int rb_fiberptr_blocking(struct rb_fiber_struct *fiber);
|
33
|
-
struct rb_execution_context_struct * rb_fiberptr_get_ec(struct rb_fiber_struct *fiber);
|
34
|
-
|
35
|
-
#endif /* INTERNAL_CONT_H */
|
@@ -1,16 +0,0 @@
|
|
1
|
-
#ifndef INTERNAL_DIR_H /*-*-C-*-vi:se ft=c:*/
|
2
|
-
#define INTERNAL_DIR_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 Dir.
|
10
|
-
*/
|
11
|
-
#include "ruby/ruby.h" /* for VALUE */
|
12
|
-
|
13
|
-
/* dir.c */
|
14
|
-
VALUE rb_dir_getwd_ospath(void);
|
15
|
-
|
16
|
-
#endif /* INTERNAL_DIR_H */
|
@@ -1,19 +0,0 @@
|
|
1
|
-
#ifndef INTERNAL_ENC_H /*-*-C-*-vi:se ft=c:*/
|
2
|
-
#define INTERNAL_ENC_H
|
3
|
-
/**
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
8
|
-
* file COPYING are met. Consult the file for details.
|
9
|
-
* @brief Internal header for Encoding.
|
10
|
-
*/
|
11
|
-
#include "ruby/encoding.h" /* for rb_encoding */
|
12
|
-
|
13
|
-
/* us_ascii.c */
|
14
|
-
extern rb_encoding OnigEncodingUS_ASCII;
|
15
|
-
|
16
|
-
/* utf_8.c */
|
17
|
-
extern rb_encoding OnigEncodingUTF_8;
|
18
|
-
|
19
|
-
#endif /* INTERNAL_ENC_H */
|
@@ -1,36 +0,0 @@
|
|
1
|
-
#ifndef INTERNAL_ENCODING_H /*-*-C-*-vi:se ft=c:*/
|
2
|
-
#define INTERNAL_ENCODING_H
|
3
|
-
/**
|
4
|
-
* @author Ruby developers <ruby-core@ruby-lang.org>
|
5
|
-
* @copyright This file is a part of the programming language Ruby.
|
6
|
-
* Permission is hereby granted, to either redistribute and/or
|
7
|
-
* modify this file, provided that the conditions mentioned in the
|
8
|
-
* file COPYING are met. Consult the file for details.
|
9
|
-
* @brief Internal header for Encoding.
|
10
|
-
*/
|
11
|
-
#include "ruby/ruby.h" /* for ID */
|
12
|
-
#include "ruby/encoding.h" /* for rb_encoding */
|
13
|
-
|
14
|
-
#define rb_enc_autoload_p(enc) (!rb_enc_mbmaxlen(enc))
|
15
|
-
#define rb_is_usascii_enc(enc) ((enc) == rb_usascii_encoding())
|
16
|
-
#define rb_is_ascii8bit_enc(enc) ((enc) == rb_ascii8bit_encoding())
|
17
|
-
#define rb_is_locale_enc(enc) ((enc) == rb_locale_encoding())
|
18
|
-
|
19
|
-
/* encoding.c */
|
20
|
-
ID rb_id_encoding(void);
|
21
|
-
const char * rb_enc_inspect_name(rb_encoding *enc);
|
22
|
-
rb_encoding *rb_enc_get_from_index(int index);
|
23
|
-
rb_encoding *rb_enc_check_str(VALUE str1, VALUE str2);
|
24
|
-
int rb_encdb_replicate(const char *alias, const char *orig);
|
25
|
-
int rb_encdb_alias(const char *alias, const char *orig);
|
26
|
-
int rb_enc_autoload(rb_encoding *enc);
|
27
|
-
int rb_encdb_dummy(const char *name);
|
28
|
-
void rb_encdb_declare(const char *name);
|
29
|
-
void rb_enc_set_base(const char *name, const char *orig);
|
30
|
-
int rb_enc_set_dummy(int index);
|
31
|
-
PUREFUNC(int rb_data_is_encoding(VALUE obj));
|
32
|
-
|
33
|
-
/* vm.c */
|
34
|
-
void rb_free_global_enc_table(void);
|
35
|
-
|
36
|
-
#endif /* INTERNAL_ENCODING_H */
|
@@ -1,18 +0,0 @@
|
|
1
|
-
#ifndef INTERNAL_ENUM_H /*-*-C-*-vi:se ft=c:*/
|
2
|
-
#define INTERNAL_ENUM_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 Enumerable.
|
10
|
-
*/
|
11
|
-
#include "ruby/ruby.h" /* for VALUE */
|
12
|
-
|
13
|
-
/* enum.c */
|
14
|
-
extern VALUE rb_cArithSeq;
|
15
|
-
VALUE rb_f_send(int argc, VALUE *argv, VALUE recv);
|
16
|
-
VALUE rb_nmin_run(VALUE obj, VALUE num, int by, int rev, int ary);
|
17
|
-
|
18
|
-
#endif /* INTERNAL_ENUM_H */
|