debase-ruby_core_source 0.10.15 → 0.10.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/debase-ruby_core_source.gemspec +1 -1
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/addr2line.h +1 -1
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ccan/build_assert/build_assert.h +40 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ccan/check_type/check_type.h +63 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ccan/container_of/container_of.h +142 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ccan/list/list.h +773 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ccan/str/str.h +16 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/constant.h +51 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/debug_counter.h +109 -0
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/dln.h +10 -9
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/encindex.h +69 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/eval_intern.h +334 -0
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/gc.h +27 -10
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/id.h +250 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/id_table.h +31 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/insns.inc +217 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/insns_info.inc +1570 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/internal.h +2036 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/iseq.h +308 -0
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/known_errors.inc +16 -1
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/method.h +218 -0
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/node.h +115 -79
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/node_name.inc +12 -22
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/opt_sc.inc +1601 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/optinsn.inc +103 -0
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/optunifs.inc +28 -83
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/parse.h +74 -60
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/probes_helper.h +43 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/regenc.h +254 -0
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/regint.h +299 -211
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/regparse.h +45 -37
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/revision.h +1 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ruby_assert.h +54 -0
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/ruby_atomic.h +84 -26
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/siphash.h +1 -1
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/symbol.h +108 -0
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/thread_pthread.h +14 -11
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/thread_win32.h +2 -6
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/timev.h +42 -0
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/transcode_data.h +34 -12
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/version.h +73 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/vm.inc +3667 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/vm_call_iseq_optimized.inc +213 -0
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/vm_core.h +1768 -0
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550/debug.h → ruby-2.5.4-p155/vm_debug.h} +4 -8
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/vm_exec.h +38 -30
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/vm_insnhelper.h +255 -0
- data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/vm_opts.h +14 -9
- data/lib/debase/ruby_core_source/ruby-2.5.4-p155/vmtc.inc +214 -0
- data/lib/debase/ruby_core_source/version.rb +1 -1
- metadata +52 -42
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/constant.h +0 -34
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/encdb.h +0 -167
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/eval_intern.h +0 -234
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/id.h +0 -177
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/insns.inc +0 -179
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/insns_info.inc +0 -695
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/internal.h +0 -242
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/iseq.h +0 -126
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/method.h +0 -105
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/opt_sc.inc +0 -670
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/optinsn.inc +0 -30
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/regenc.h +0 -219
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/revision.h +0 -1
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/timev.h +0 -21
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/transdb.h +0 -189
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/version.h +0 -52
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/vm.inc +0 -3054
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/vm_core.h +0 -763
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/vm_insnhelper.h +0 -220
- data/lib/debase/ruby_core_source/ruby-1.9.3-p550/vmtc.inc +0 -97
@@ -14,9 +14,7 @@
|
|
14
14
|
#ifndef RUBY_TRANSCODE_DATA_H
|
15
15
|
#define RUBY_TRANSCODE_DATA_H 1
|
16
16
|
|
17
|
-
|
18
|
-
#pragma GCC visibility push(default)
|
19
|
-
#endif
|
17
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
20
18
|
|
21
19
|
#define WORDINDEX_SHIFT_BITS 2
|
22
20
|
#define WORDINDEX2INFO(widx) ((widx) << WORDINDEX_SHIFT_BITS)
|
@@ -48,10 +46,26 @@
|
|
48
46
|
#define makeSTR1LEN(len) ((len)-4)
|
49
47
|
|
50
48
|
#define o1(b1) (PType((((unsigned char)(b1))<<8)|ONEbt))
|
51
|
-
#define o2(b1,b2) (PType((((unsigned char)(b1))<<8)
|
52
|
-
|
53
|
-
|
54
|
-
#define
|
49
|
+
#define o2(b1,b2) (PType((((unsigned char)(b1))<<8)|\
|
50
|
+
(((unsigned char)(b2))<<16)|\
|
51
|
+
TWObt))
|
52
|
+
#define o3(b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|\
|
53
|
+
(((unsigned char)(b2))<<16)|\
|
54
|
+
(((unsigned int)(unsigned char)(b3))<<24)|\
|
55
|
+
THREEbt)&\
|
56
|
+
0xffffffffU))
|
57
|
+
#define o4(b0,b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|\
|
58
|
+
(((unsigned char)(b2))<<16)|\
|
59
|
+
(((unsigned int)(unsigned char)(b3))<<24)|\
|
60
|
+
((((unsigned char)(b0))&0x07)<<5)|\
|
61
|
+
FOURbt)&\
|
62
|
+
0xffffffffU))
|
63
|
+
#define g4(b0,b1,b2,b3) (PType(((((unsigned char)(b0))<<8)|\
|
64
|
+
(((unsigned char)(b2))<<16)|\
|
65
|
+
((((unsigned char)(b1))&0x0f)<<24)|\
|
66
|
+
((((unsigned int)(unsigned char)(b3))&0x0f)<<28)|\
|
67
|
+
GB4bt)&\
|
68
|
+
0xffffffffU))
|
55
69
|
#define funsio(diff) (PType((((unsigned int)(diff))<<8)|FUNsio))
|
56
70
|
|
57
71
|
#define getBT1(a) ((unsigned char)((a)>> 8))
|
@@ -72,9 +86,9 @@
|
|
72
86
|
#define THREETRAIL /* legal but undefined if three more trailing UTF-8 */
|
73
87
|
|
74
88
|
typedef enum {
|
75
|
-
|
76
|
-
|
77
|
-
|
89
|
+
asciicompat_converter, /* ASCII-compatible -> ASCII-compatible */
|
90
|
+
asciicompat_decoder, /* ASCII-incompatible -> ASCII-compatible */
|
91
|
+
asciicompat_encoder /* ASCII-compatible -> ASCII-incompatible */
|
78
92
|
/* ASCII-incompatible -> ASCII-incompatible is intentionally omitted. */
|
79
93
|
} rb_transcoder_asciicompat_type_t;
|
80
94
|
|
@@ -110,8 +124,16 @@ struct rb_transcoder {
|
|
110
124
|
void rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib);
|
111
125
|
void rb_register_transcoder(const rb_transcoder *);
|
112
126
|
|
113
|
-
|
114
|
-
|
127
|
+
/*
|
128
|
+
* To get rid of collision of initializer symbols in statically-linked encodings
|
129
|
+
* and transcoders
|
130
|
+
*/
|
131
|
+
#if defined(EXTSTATIC) && EXTSTATIC
|
132
|
+
# define TRANS_INIT(name) void Init_trans_ ## name(void)
|
133
|
+
#else
|
134
|
+
# define TRANS_INIT(name) void Init_ ## name(void)
|
115
135
|
#endif
|
116
136
|
|
137
|
+
RUBY_SYMBOL_EXPORT_END
|
138
|
+
|
117
139
|
#endif /* RUBY_TRANSCODE_DATA_H */
|
@@ -0,0 +1,73 @@
|
|
1
|
+
#define RUBY_VERSION "2.5.4"
|
2
|
+
#define RUBY_RELEASE_DATE "2019-03-13"
|
3
|
+
#define RUBY_PATCHLEVEL 155
|
4
|
+
|
5
|
+
#define RUBY_RELEASE_YEAR 2019
|
6
|
+
#define RUBY_RELEASE_MONTH 3
|
7
|
+
#define RUBY_RELEASE_DAY 13
|
8
|
+
|
9
|
+
#include "ruby/version.h"
|
10
|
+
|
11
|
+
#ifndef TOKEN_PASTE
|
12
|
+
#define TOKEN_PASTE(x,y) x##y
|
13
|
+
#endif
|
14
|
+
#define ONLY_ONE_DIGIT(x) TOKEN_PASTE(10,x) < 1000
|
15
|
+
#define WITH_ZERO_PADDING(x) TOKEN_PASTE(0,x)
|
16
|
+
#define RUBY_BIRTH_YEAR_STR STRINGIZE(RUBY_BIRTH_YEAR)
|
17
|
+
#define RUBY_RELEASE_YEAR_STR STRINGIZE(RUBY_RELEASE_YEAR)
|
18
|
+
#if ONLY_ONE_DIGIT(RUBY_RELEASE_MONTH)
|
19
|
+
#define RUBY_RELEASE_MONTH_STR STRINGIZE(WITH_ZERO_PADDING(RUBY_RELEASE_MONTH))
|
20
|
+
#else
|
21
|
+
#define RUBY_RELEASE_MONTH_STR STRINGIZE(RUBY_RELEASE_MONTH)
|
22
|
+
#endif
|
23
|
+
#if ONLY_ONE_DIGIT(RUBY_RELEASE_DAY)
|
24
|
+
#define RUBY_RELEASE_DAY_STR STRINGIZE(WITH_ZERO_PADDING(RUBY_RELEASE_DAY))
|
25
|
+
#else
|
26
|
+
#define RUBY_RELEASE_DAY_STR STRINGIZE(RUBY_RELEASE_DAY)
|
27
|
+
#endif
|
28
|
+
|
29
|
+
#if !defined RUBY_LIB_VERSION && defined RUBY_LIB_VERSION_STYLE
|
30
|
+
# if RUBY_LIB_VERSION_STYLE == 3
|
31
|
+
# define RUBY_LIB_VERSION STRINGIZE(RUBY_API_VERSION_MAJOR)"."STRINGIZE(RUBY_API_VERSION_MINOR)"."STRINGIZE(RUBY_API_VERSION_TEENY)
|
32
|
+
# elif RUBY_LIB_VERSION_STYLE == 2
|
33
|
+
# define RUBY_LIB_VERSION STRINGIZE(RUBY_API_VERSION_MAJOR)"."STRINGIZE(RUBY_API_VERSION_MINOR)
|
34
|
+
# endif
|
35
|
+
#endif
|
36
|
+
|
37
|
+
#if RUBY_PATCHLEVEL == -1
|
38
|
+
#define RUBY_PATCHLEVEL_STR "dev"
|
39
|
+
#else
|
40
|
+
#define RUBY_PATCHLEVEL_STR "p"STRINGIZE(RUBY_PATCHLEVEL)
|
41
|
+
#endif
|
42
|
+
|
43
|
+
#ifndef RUBY_REVISION
|
44
|
+
# include "revision.h"
|
45
|
+
#endif
|
46
|
+
#ifndef RUBY_REVISION
|
47
|
+
# define RUBY_REVISION 0
|
48
|
+
#endif
|
49
|
+
|
50
|
+
#if RUBY_REVISION
|
51
|
+
# if RUBY_PATCHLEVEL == -1
|
52
|
+
# ifndef RUBY_BRANCH_NAME
|
53
|
+
# define RUBY_BRANCH_NAME "trunk"
|
54
|
+
# endif
|
55
|
+
# define RUBY_REVISION_STR " "RUBY_BRANCH_NAME" "STRINGIZE(RUBY_REVISION)
|
56
|
+
# else
|
57
|
+
# define RUBY_REVISION_STR " revision "STRINGIZE(RUBY_REVISION)
|
58
|
+
# endif
|
59
|
+
#else
|
60
|
+
# define RUBY_REVISION_STR ""
|
61
|
+
#endif
|
62
|
+
|
63
|
+
# define RUBY_DESCRIPTION \
|
64
|
+
"ruby "RUBY_VERSION \
|
65
|
+
RUBY_PATCHLEVEL_STR \
|
66
|
+
" ("RUBY_RELEASE_DATE \
|
67
|
+
RUBY_REVISION_STR") " \
|
68
|
+
"["RUBY_PLATFORM"]"
|
69
|
+
# define RUBY_COPYRIGHT \
|
70
|
+
"ruby - Copyright (C) " \
|
71
|
+
RUBY_BIRTH_YEAR_STR"-" \
|
72
|
+
RUBY_RELEASE_YEAR_STR" " \
|
73
|
+
RUBY_AUTHOR
|