binding_of_caller 0.7.2 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gemtest +0 -0
- data/.github/workflows/test.yml +108 -0
- data/.gitignore +12 -7
- data/.yardopts +0 -0
- data/Gemfile +6 -1
- data/LICENSE +0 -0
- data/README.md +17 -5
- data/Rakefile +4 -132
- data/binding_of_caller.gemspec +33 -35
- data/lib/binding_of_caller/jruby_interpreted.rb +123 -0
- data/lib/binding_of_caller/{mri2.rb → mri.rb} +8 -14
- data/lib/binding_of_caller/rubinius.rb +21 -28
- data/lib/binding_of_caller/version.rb +1 -1
- data/lib/binding_of_caller.rb +9 -10
- metadata +33 -109
- data/.travis.yml +0 -23
- data/HISTORY +0 -0
- data/examples/example.rb +0 -41
- data/ext/binding_of_caller/binding_of_caller.c +0 -225
- data/ext/binding_of_caller/extconf.rb +0 -33
- data/ext/binding_of_caller/ruby_headers/192/debug.h +0 -36
- data/ext/binding_of_caller/ruby_headers/192/dln.h +0 -41
- data/ext/binding_of_caller/ruby_headers/192/eval_intern.h +0 -232
- data/ext/binding_of_caller/ruby_headers/192/id.h +0 -173
- data/ext/binding_of_caller/ruby_headers/192/iseq.h +0 -104
- data/ext/binding_of_caller/ruby_headers/192/method.h +0 -103
- data/ext/binding_of_caller/ruby_headers/192/node.h +0 -483
- data/ext/binding_of_caller/ruby_headers/192/regenc.h +0 -211
- data/ext/binding_of_caller/ruby_headers/192/regint.h +0 -841
- data/ext/binding_of_caller/ruby_headers/192/regparse.h +0 -354
- data/ext/binding_of_caller/ruby_headers/192/rubys_gc.h +0 -77
- data/ext/binding_of_caller/ruby_headers/192/thread_pthread.h +0 -27
- data/ext/binding_of_caller/ruby_headers/192/thread_win32.h +0 -33
- data/ext/binding_of_caller/ruby_headers/192/timev.h +0 -21
- data/ext/binding_of_caller/ruby_headers/192/transcode_data.h +0 -109
- data/ext/binding_of_caller/ruby_headers/192/version.h +0 -55
- data/ext/binding_of_caller/ruby_headers/192/vm_core.h +0 -703
- data/ext/binding_of_caller/ruby_headers/192/vm_exec.h +0 -184
- data/ext/binding_of_caller/ruby_headers/192/vm_insnhelper.h +0 -208
- data/ext/binding_of_caller/ruby_headers/192/vm_opts.h +0 -51
- data/ext/binding_of_caller/ruby_headers/193/addr2line.h +0 -21
- data/ext/binding_of_caller/ruby_headers/193/atomic.h +0 -56
- data/ext/binding_of_caller/ruby_headers/193/constant.h +0 -34
- data/ext/binding_of_caller/ruby_headers/193/debug.h +0 -41
- data/ext/binding_of_caller/ruby_headers/193/dln.h +0 -50
- data/ext/binding_of_caller/ruby_headers/193/encdb.h +0 -167
- data/ext/binding_of_caller/ruby_headers/193/eval_intern.h +0 -234
- data/ext/binding_of_caller/ruby_headers/193/id.h +0 -175
- data/ext/binding_of_caller/ruby_headers/193/internal.h +0 -227
- data/ext/binding_of_caller/ruby_headers/193/iseq.h +0 -125
- data/ext/binding_of_caller/ruby_headers/193/method.h +0 -105
- data/ext/binding_of_caller/ruby_headers/193/node.h +0 -503
- data/ext/binding_of_caller/ruby_headers/193/parse.h +0 -186
- data/ext/binding_of_caller/ruby_headers/193/regenc.h +0 -219
- data/ext/binding_of_caller/ruby_headers/193/regint.h +0 -851
- data/ext/binding_of_caller/ruby_headers/193/regparse.h +0 -362
- data/ext/binding_of_caller/ruby_headers/193/revision.h +0 -1
- data/ext/binding_of_caller/ruby_headers/193/rubys_gc.h +0 -98
- data/ext/binding_of_caller/ruby_headers/193/thread_pthread.h +0 -51
- data/ext/binding_of_caller/ruby_headers/193/thread_win32.h +0 -40
- data/ext/binding_of_caller/ruby_headers/193/timev.h +0 -21
- data/ext/binding_of_caller/ruby_headers/193/transcode_data.h +0 -117
- data/ext/binding_of_caller/ruby_headers/193/transdb.h +0 -189
- data/ext/binding_of_caller/ruby_headers/193/version.h +0 -52
- data/ext/binding_of_caller/ruby_headers/193/vm_core.h +0 -755
- data/ext/binding_of_caller/ruby_headers/193/vm_exec.h +0 -184
- data/ext/binding_of_caller/ruby_headers/193/vm_insnhelper.h +0 -220
- data/ext/binding_of_caller/ruby_headers/193/vm_opts.h +0 -51
- data/test/test_binding_of_caller.rb +0 -161
@@ -1,189 +0,0 @@
|
|
1
|
-
rb_declare_transcoder("Big5", "UTF-8", "big5");
|
2
|
-
rb_declare_transcoder("UTF-8", "Big5", "big5");
|
3
|
-
rb_declare_transcoder("CP950", "UTF-8", "big5");
|
4
|
-
rb_declare_transcoder("UTF-8", "CP950", "big5");
|
5
|
-
rb_declare_transcoder("Big5-HKSCS", "UTF-8", "big5");
|
6
|
-
rb_declare_transcoder("UTF-8", "Big5-HKSCS", "big5");
|
7
|
-
rb_declare_transcoder("CP951", "UTF-8", "big5");
|
8
|
-
rb_declare_transcoder("UTF-8", "CP951", "big5");
|
9
|
-
rb_declare_transcoder("Big5-UAO", "UTF-8", "big5");
|
10
|
-
rb_declare_transcoder("UTF-8", "Big5-UAO", "big5");
|
11
|
-
rb_declare_transcoder("GB2312", "UTF-8", "chinese");
|
12
|
-
rb_declare_transcoder("GB12345", "UTF-8", "chinese");
|
13
|
-
rb_declare_transcoder("UTF-8", "GB2312", "chinese");
|
14
|
-
rb_declare_transcoder("UTF-8", "GB12345", "chinese");
|
15
|
-
rb_declare_transcoder("UTF8-DoCoMo", "UTF8-KDDI", "emoji");
|
16
|
-
rb_declare_transcoder("UTF8-DoCoMo", "UTF8-SoftBank", "emoji");
|
17
|
-
rb_declare_transcoder("UTF8-DoCoMo", "UTF-8", "emoji");
|
18
|
-
rb_declare_transcoder("UTF8-KDDI", "UTF8-DoCoMo", "emoji");
|
19
|
-
rb_declare_transcoder("UTF8-KDDI", "UTF8-SoftBank", "emoji");
|
20
|
-
rb_declare_transcoder("UTF8-KDDI", "UTF-8", "emoji");
|
21
|
-
rb_declare_transcoder("UTF8-SoftBank", "UTF8-DoCoMo", "emoji");
|
22
|
-
rb_declare_transcoder("UTF8-SoftBank", "UTF8-KDDI", "emoji");
|
23
|
-
rb_declare_transcoder("UTF8-SoftBank", "UTF-8", "emoji");
|
24
|
-
rb_declare_transcoder("UTF-8", "UTF8-DoCoMo", "emoji");
|
25
|
-
rb_declare_transcoder("UTF-8", "UTF8-KDDI", "emoji");
|
26
|
-
rb_declare_transcoder("UTF-8", "UTF8-SoftBank", "emoji");
|
27
|
-
rb_declare_transcoder("stateless-ISO-2022-JP-KDDI", "UTF8-KDDI", "emoji_iso2022_kddi");
|
28
|
-
rb_declare_transcoder("UTF8-KDDI", "stateless-ISO-2022-JP-KDDI", "emoji_iso2022_kddi");
|
29
|
-
rb_declare_transcoder("ISO-2022-JP-KDDI", "stateless-ISO-2022-JP-KDDI", "emoji_iso2022_kddi");
|
30
|
-
rb_declare_transcoder("stateless-ISO-2022-JP-KDDI", "ISO-2022-JP-KDDI", "emoji_iso2022_kddi");
|
31
|
-
rb_declare_transcoder("SJIS-DOCOMO", "UTF8-DOCOMO", "emoji_sjis_docomo");
|
32
|
-
rb_declare_transcoder("UTF8-DOCOMO", "SJIS-DOCOMO", "emoji_sjis_docomo");
|
33
|
-
rb_declare_transcoder("SJIS-KDDI", "UTF8-KDDI", "emoji_sjis_kddi");
|
34
|
-
rb_declare_transcoder("UTF8-KDDI", "SJIS-KDDI", "emoji_sjis_kddi");
|
35
|
-
rb_declare_transcoder("SJIS-SoftBank", "UTF8-SoftBank", "emoji_sjis_softbank");
|
36
|
-
rb_declare_transcoder("UTF8-SoftBank", "SJIS-SoftBank", "emoji_sjis_softbank");
|
37
|
-
rb_declare_transcoder("", "amp_escape", "escape");
|
38
|
-
rb_declare_transcoder("", "xml_text_escape", "escape");
|
39
|
-
rb_declare_transcoder("", "xml_attr_content_escape", "escape");
|
40
|
-
rb_declare_transcoder("", "xml_attr_quote", "escape");
|
41
|
-
rb_declare_transcoder("GB18030", "UTF-8", "gb18030");
|
42
|
-
rb_declare_transcoder("UTF-8", "GB18030", "gb18030");
|
43
|
-
rb_declare_transcoder("GBK", "UTF-8", "gbk");
|
44
|
-
rb_declare_transcoder("UTF-8", "GBK", "gbk");
|
45
|
-
rb_declare_transcoder("ISO-2022-JP", "stateless-ISO-2022-JP", "iso2022");
|
46
|
-
rb_declare_transcoder("stateless-ISO-2022-JP", "ISO-2022-JP", "iso2022");
|
47
|
-
rb_declare_transcoder("stateless-ISO-2022-JP", "EUC-JP", "iso2022");
|
48
|
-
rb_declare_transcoder("EUC-JP", "stateless-ISO-2022-JP", "iso2022");
|
49
|
-
rb_declare_transcoder("CP50220", "cp51932", "iso2022");
|
50
|
-
rb_declare_transcoder("CP50221", "cp51932", "iso2022");
|
51
|
-
rb_declare_transcoder("CP51932", "CP50221", "iso2022");
|
52
|
-
rb_declare_transcoder("CP51932", "CP50220", "iso2022");
|
53
|
-
rb_declare_transcoder("EUC-JP", "Shift_JIS", "japanese");
|
54
|
-
rb_declare_transcoder("Shift_JIS", "EUC-JP", "japanese");
|
55
|
-
rb_declare_transcoder("EUC-JP", "UTF-8", "japanese_euc");
|
56
|
-
rb_declare_transcoder("eucJP-ms", "UTF-8", "japanese_euc");
|
57
|
-
rb_declare_transcoder("CP51932", "UTF-8", "japanese_euc");
|
58
|
-
rb_declare_transcoder("UTF-8", "EUC-JP", "japanese_euc");
|
59
|
-
rb_declare_transcoder("UTF-8", "eucJP-ms", "japanese_euc");
|
60
|
-
rb_declare_transcoder("UTF-8", "CP51932", "japanese_euc");
|
61
|
-
rb_declare_transcoder("Shift_JIS", "UTF-8", "japanese_sjis");
|
62
|
-
rb_declare_transcoder("Windows-31J", "UTF-8", "japanese_sjis");
|
63
|
-
rb_declare_transcoder("UTF-8", "Shift_JIS", "japanese_sjis");
|
64
|
-
rb_declare_transcoder("UTF-8", "Windows-31J", "japanese_sjis");
|
65
|
-
rb_declare_transcoder("UTF-8", "EUC-KR", "korean");
|
66
|
-
rb_declare_transcoder("EUC-KR", "UTF-8", "korean");
|
67
|
-
rb_declare_transcoder("UTF-8", "CP949", "korean");
|
68
|
-
rb_declare_transcoder("CP949", "UTF-8", "korean");
|
69
|
-
rb_declare_transcoder("", "universal_newline", "newline");
|
70
|
-
rb_declare_transcoder("", "crlf_newline", "newline");
|
71
|
-
rb_declare_transcoder("", "cr_newline", "newline");
|
72
|
-
rb_declare_transcoder("US-ASCII", "UTF-8", "single_byte");
|
73
|
-
rb_declare_transcoder("UTF-8", "US-ASCII", "single_byte");
|
74
|
-
rb_declare_transcoder("ASCII-8BIT", "UTF-8", "single_byte");
|
75
|
-
rb_declare_transcoder("UTF-8", "ASCII-8BIT", "single_byte");
|
76
|
-
rb_declare_transcoder("ISO-8859-1", "UTF-8", "single_byte");
|
77
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-1", "single_byte");
|
78
|
-
rb_declare_transcoder("ISO-8859-2", "UTF-8", "single_byte");
|
79
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-2", "single_byte");
|
80
|
-
rb_declare_transcoder("ISO-8859-3", "UTF-8", "single_byte");
|
81
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-3", "single_byte");
|
82
|
-
rb_declare_transcoder("ISO-8859-4", "UTF-8", "single_byte");
|
83
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-4", "single_byte");
|
84
|
-
rb_declare_transcoder("ISO-8859-5", "UTF-8", "single_byte");
|
85
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-5", "single_byte");
|
86
|
-
rb_declare_transcoder("ISO-8859-6", "UTF-8", "single_byte");
|
87
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-6", "single_byte");
|
88
|
-
rb_declare_transcoder("ISO-8859-7", "UTF-8", "single_byte");
|
89
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-7", "single_byte");
|
90
|
-
rb_declare_transcoder("ISO-8859-8", "UTF-8", "single_byte");
|
91
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-8", "single_byte");
|
92
|
-
rb_declare_transcoder("ISO-8859-9", "UTF-8", "single_byte");
|
93
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-9", "single_byte");
|
94
|
-
rb_declare_transcoder("ISO-8859-10", "UTF-8", "single_byte");
|
95
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-10", "single_byte");
|
96
|
-
rb_declare_transcoder("ISO-8859-11", "UTF-8", "single_byte");
|
97
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-11", "single_byte");
|
98
|
-
rb_declare_transcoder("ISO-8859-13", "UTF-8", "single_byte");
|
99
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-13", "single_byte");
|
100
|
-
rb_declare_transcoder("ISO-8859-14", "UTF-8", "single_byte");
|
101
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-14", "single_byte");
|
102
|
-
rb_declare_transcoder("ISO-8859-15", "UTF-8", "single_byte");
|
103
|
-
rb_declare_transcoder("UTF-8", "ISO-8859-15", "single_byte");
|
104
|
-
rb_declare_transcoder("WINDOWS-874", "UTF-8", "single_byte");
|
105
|
-
rb_declare_transcoder("UTF-8", "WINDOWS-874", "single_byte");
|
106
|
-
rb_declare_transcoder("WINDOWS-1250", "UTF-8", "single_byte");
|
107
|
-
rb_declare_transcoder("UTF-8", "WINDOWS-1250", "single_byte");
|
108
|
-
rb_declare_transcoder("WINDOWS-1251", "UTF-8", "single_byte");
|
109
|
-
rb_declare_transcoder("UTF-8", "WINDOWS-1251", "single_byte");
|
110
|
-
rb_declare_transcoder("WINDOWS-1252", "UTF-8", "single_byte");
|
111
|
-
rb_declare_transcoder("UTF-8", "WINDOWS-1252", "single_byte");
|
112
|
-
rb_declare_transcoder("WINDOWS-1253", "UTF-8", "single_byte");
|
113
|
-
rb_declare_transcoder("UTF-8", "WINDOWS-1253", "single_byte");
|
114
|
-
rb_declare_transcoder("WINDOWS-1254", "UTF-8", "single_byte");
|
115
|
-
rb_declare_transcoder("UTF-8", "WINDOWS-1254", "single_byte");
|
116
|
-
rb_declare_transcoder("WINDOWS-1255", "UTF-8", "single_byte");
|
117
|
-
rb_declare_transcoder("UTF-8", "WINDOWS-1255", "single_byte");
|
118
|
-
rb_declare_transcoder("WINDOWS-1256", "UTF-8", "single_byte");
|
119
|
-
rb_declare_transcoder("UTF-8", "WINDOWS-1256", "single_byte");
|
120
|
-
rb_declare_transcoder("WINDOWS-1257", "UTF-8", "single_byte");
|
121
|
-
rb_declare_transcoder("UTF-8", "WINDOWS-1257", "single_byte");
|
122
|
-
rb_declare_transcoder("IBM437", "UTF-8", "single_byte");
|
123
|
-
rb_declare_transcoder("UTF-8", "IBM437", "single_byte");
|
124
|
-
rb_declare_transcoder("IBM775", "UTF-8", "single_byte");
|
125
|
-
rb_declare_transcoder("UTF-8", "IBM775", "single_byte");
|
126
|
-
rb_declare_transcoder("IBM737", "UTF-8", "single_byte");
|
127
|
-
rb_declare_transcoder("UTF-8", "IBM737", "single_byte");
|
128
|
-
rb_declare_transcoder("IBM852", "UTF-8", "single_byte");
|
129
|
-
rb_declare_transcoder("UTF-8", "IBM852", "single_byte");
|
130
|
-
rb_declare_transcoder("IBM855", "UTF-8", "single_byte");
|
131
|
-
rb_declare_transcoder("UTF-8", "IBM855", "single_byte");
|
132
|
-
rb_declare_transcoder("IBM857", "UTF-8", "single_byte");
|
133
|
-
rb_declare_transcoder("UTF-8", "IBM857", "single_byte");
|
134
|
-
rb_declare_transcoder("IBM860", "UTF-8", "single_byte");
|
135
|
-
rb_declare_transcoder("UTF-8", "IBM860", "single_byte");
|
136
|
-
rb_declare_transcoder("IBM861", "UTF-8", "single_byte");
|
137
|
-
rb_declare_transcoder("UTF-8", "IBM861", "single_byte");
|
138
|
-
rb_declare_transcoder("IBM862", "UTF-8", "single_byte");
|
139
|
-
rb_declare_transcoder("UTF-8", "IBM862", "single_byte");
|
140
|
-
rb_declare_transcoder("IBM863", "UTF-8", "single_byte");
|
141
|
-
rb_declare_transcoder("UTF-8", "IBM863", "single_byte");
|
142
|
-
rb_declare_transcoder("IBM865", "UTF-8", "single_byte");
|
143
|
-
rb_declare_transcoder("UTF-8", "IBM865", "single_byte");
|
144
|
-
rb_declare_transcoder("IBM866", "UTF-8", "single_byte");
|
145
|
-
rb_declare_transcoder("UTF-8", "IBM866", "single_byte");
|
146
|
-
rb_declare_transcoder("IBM869", "UTF-8", "single_byte");
|
147
|
-
rb_declare_transcoder("UTF-8", "IBM869", "single_byte");
|
148
|
-
rb_declare_transcoder("MACCROATIAN", "UTF-8", "single_byte");
|
149
|
-
rb_declare_transcoder("UTF-8", "MACCROATIAN", "single_byte");
|
150
|
-
rb_declare_transcoder("MACCYRILLIC", "UTF-8", "single_byte");
|
151
|
-
rb_declare_transcoder("UTF-8", "MACCYRILLIC", "single_byte");
|
152
|
-
rb_declare_transcoder("MACGREEK", "UTF-8", "single_byte");
|
153
|
-
rb_declare_transcoder("UTF-8", "MACGREEK", "single_byte");
|
154
|
-
rb_declare_transcoder("MACICELAND", "UTF-8", "single_byte");
|
155
|
-
rb_declare_transcoder("UTF-8", "MACICELAND", "single_byte");
|
156
|
-
rb_declare_transcoder("MACROMAN", "UTF-8", "single_byte");
|
157
|
-
rb_declare_transcoder("UTF-8", "MACROMAN", "single_byte");
|
158
|
-
rb_declare_transcoder("MACROMANIA", "UTF-8", "single_byte");
|
159
|
-
rb_declare_transcoder("UTF-8", "MACROMANIA", "single_byte");
|
160
|
-
rb_declare_transcoder("MACTURKISH", "UTF-8", "single_byte");
|
161
|
-
rb_declare_transcoder("UTF-8", "MACTURKISH", "single_byte");
|
162
|
-
rb_declare_transcoder("MACUKRAINE", "UTF-8", "single_byte");
|
163
|
-
rb_declare_transcoder("UTF-8", "MACUKRAINE", "single_byte");
|
164
|
-
rb_declare_transcoder("KOI8-U", "UTF-8", "single_byte");
|
165
|
-
rb_declare_transcoder("UTF-8", "KOI8-U", "single_byte");
|
166
|
-
rb_declare_transcoder("KOI8-R", "UTF-8", "single_byte");
|
167
|
-
rb_declare_transcoder("UTF-8", "KOI8-R", "single_byte");
|
168
|
-
rb_declare_transcoder("TIS-620", "UTF-8", "single_byte");
|
169
|
-
rb_declare_transcoder("UTF-8", "TIS-620", "single_byte");
|
170
|
-
rb_declare_transcoder("CP850", "UTF-8", "single_byte");
|
171
|
-
rb_declare_transcoder("UTF-8", "CP850", "single_byte");
|
172
|
-
rb_declare_transcoder("CP852", "UTF-8", "single_byte");
|
173
|
-
rb_declare_transcoder("UTF-8", "CP852", "single_byte");
|
174
|
-
rb_declare_transcoder("CP855", "UTF-8", "single_byte");
|
175
|
-
rb_declare_transcoder("UTF-8", "CP855", "single_byte");
|
176
|
-
rb_declare_transcoder("UTF-8", "UTF8-MAC", "utf8_mac");
|
177
|
-
rb_declare_transcoder("UTF8-MAC", "UTF-8", "utf8_mac");
|
178
|
-
rb_declare_transcoder("UTF-16BE", "UTF-8", "utf_16_32");
|
179
|
-
rb_declare_transcoder("UTF-8", "UTF-16BE", "utf_16_32");
|
180
|
-
rb_declare_transcoder("UTF-16LE", "UTF-8", "utf_16_32");
|
181
|
-
rb_declare_transcoder("UTF-8", "UTF-16LE", "utf_16_32");
|
182
|
-
rb_declare_transcoder("UTF-32BE", "UTF-8", "utf_16_32");
|
183
|
-
rb_declare_transcoder("UTF-8", "UTF-32BE", "utf_16_32");
|
184
|
-
rb_declare_transcoder("UTF-32LE", "UTF-8", "utf_16_32");
|
185
|
-
rb_declare_transcoder("UTF-8", "UTF-32LE", "utf_16_32");
|
186
|
-
rb_declare_transcoder("UTF-16", "UTF-8", "utf_16_32");
|
187
|
-
rb_declare_transcoder("UTF-32", "UTF-8", "utf_16_32");
|
188
|
-
rb_declare_transcoder("UTF-8", "UTF-16", "utf_16_32");
|
189
|
-
rb_declare_transcoder("UTF-8", "UTF-32", "utf_16_32");
|
@@ -1,52 +0,0 @@
|
|
1
|
-
#define RUBY_VERSION "1.9.3"
|
2
|
-
#define RUBY_PATCHLEVEL -1
|
3
|
-
|
4
|
-
#define RUBY_RELEASE_DATE "2011-07-31"
|
5
|
-
#define RUBY_RELEASE_YEAR 2011
|
6
|
-
#define RUBY_RELEASE_MONTH 7
|
7
|
-
#define RUBY_RELEASE_DAY 31
|
8
|
-
|
9
|
-
#include "ruby/version.h"
|
10
|
-
|
11
|
-
#if !defined RUBY_LIB_VERSION && defined RUBY_LIB_VERSION_STYLE
|
12
|
-
# if RUBY_LIB_VERSION_STYLE == 3
|
13
|
-
# define RUBY_LIB_VERSION STRINGIZE(RUBY_API_VERSION_MAJOR)"."STRINGIZE(RUBY_API_VERSION_MINOR)"."STRINGIZE(RUBY_API_VERSION_TEENY)
|
14
|
-
# elif RUBY_LIB_VERSION_STYLE == 2
|
15
|
-
# define RUBY_LIB_VERSION STRINGIZE(RUBY_API_VERSION_MAJOR)"."STRINGIZE(RUBY_API_VERSION_MINOR)
|
16
|
-
# endif
|
17
|
-
#endif
|
18
|
-
|
19
|
-
#if RUBY_PATCHLEVEL == -1
|
20
|
-
#define RUBY_PATCHLEVEL_STR "dev"
|
21
|
-
#else
|
22
|
-
#define RUBY_PATCHLEVEL_STR "p"STRINGIZE(RUBY_PATCHLEVEL)
|
23
|
-
#endif
|
24
|
-
|
25
|
-
#ifndef RUBY_REVISION
|
26
|
-
# include "revision.h"
|
27
|
-
#endif
|
28
|
-
# ifndef RUBY_REVISION
|
29
|
-
# define RUBY_REVISION 0
|
30
|
-
#endif
|
31
|
-
|
32
|
-
#if RUBY_REVISION
|
33
|
-
# ifdef RUBY_BRANCH_NAME
|
34
|
-
# define RUBY_REVISION_STR " "RUBY_BRANCH_NAME" "STRINGIZE(RUBY_REVISION)
|
35
|
-
# else
|
36
|
-
# define RUBY_REVISION_STR " revision "STRINGIZE(RUBY_REVISION)
|
37
|
-
# endif
|
38
|
-
#else
|
39
|
-
# define RUBY_REVISION_STR ""
|
40
|
-
#endif
|
41
|
-
|
42
|
-
# define RUBY_DESCRIPTION \
|
43
|
-
"ruby "RUBY_VERSION \
|
44
|
-
RUBY_PATCHLEVEL_STR \
|
45
|
-
" ("RUBY_RELEASE_DATE \
|
46
|
-
RUBY_REVISION_STR") " \
|
47
|
-
"["RUBY_PLATFORM"]"
|
48
|
-
# define RUBY_COPYRIGHT \
|
49
|
-
"ruby - Copyright (C) " \
|
50
|
-
STRINGIZE(RUBY_BIRTH_YEAR)"-" \
|
51
|
-
STRINGIZE(RUBY_RELEASE_YEAR)" " \
|
52
|
-
RUBY_AUTHOR
|