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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/debase-ruby_core_source.gemspec +1 -1
  4. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/addr2line.h +1 -1
  5. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ccan/build_assert/build_assert.h +40 -0
  6. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ccan/check_type/check_type.h +63 -0
  7. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ccan/container_of/container_of.h +142 -0
  8. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ccan/list/list.h +773 -0
  9. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ccan/str/str.h +16 -0
  10. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/constant.h +51 -0
  11. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/debug_counter.h +109 -0
  12. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/dln.h +10 -9
  13. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/encindex.h +69 -0
  14. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/eval_intern.h +334 -0
  15. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/gc.h +27 -10
  16. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/id.h +250 -0
  17. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/id_table.h +31 -0
  18. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/insns.inc +217 -0
  19. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/insns_info.inc +1570 -0
  20. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/internal.h +2036 -0
  21. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/iseq.h +308 -0
  22. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/known_errors.inc +16 -1
  23. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/method.h +218 -0
  24. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/node.h +115 -79
  25. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/node_name.inc +12 -22
  26. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/opt_sc.inc +1601 -0
  27. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/optinsn.inc +103 -0
  28. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/optunifs.inc +28 -83
  29. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/parse.h +74 -60
  30. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/probes_helper.h +43 -0
  31. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/regenc.h +254 -0
  32. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/regint.h +299 -211
  33. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/regparse.h +45 -37
  34. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/revision.h +1 -0
  35. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/ruby_assert.h +54 -0
  36. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/ruby_atomic.h +84 -26
  37. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/siphash.h +1 -1
  38. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/symbol.h +108 -0
  39. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/thread_pthread.h +14 -11
  40. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/thread_win32.h +2 -6
  41. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/timev.h +42 -0
  42. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/transcode_data.h +34 -12
  43. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/version.h +73 -0
  44. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/vm.inc +3667 -0
  45. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/vm_call_iseq_optimized.inc +213 -0
  46. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/vm_core.h +1768 -0
  47. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550/debug.h → ruby-2.5.4-p155/vm_debug.h} +4 -8
  48. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/vm_exec.h +38 -30
  49. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/vm_insnhelper.h +255 -0
  50. data/lib/debase/ruby_core_source/{ruby-1.9.3-p550 → ruby-2.5.4-p155}/vm_opts.h +14 -9
  51. data/lib/debase/ruby_core_source/ruby-2.5.4-p155/vmtc.inc +214 -0
  52. data/lib/debase/ruby_core_source/version.rb +1 -1
  53. metadata +52 -42
  54. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/constant.h +0 -34
  55. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/encdb.h +0 -167
  56. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/eval_intern.h +0 -234
  57. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/id.h +0 -177
  58. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/insns.inc +0 -179
  59. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/insns_info.inc +0 -695
  60. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/internal.h +0 -242
  61. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/iseq.h +0 -126
  62. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/method.h +0 -105
  63. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/opt_sc.inc +0 -670
  64. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/optinsn.inc +0 -30
  65. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/regenc.h +0 -219
  66. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/revision.h +0 -1
  67. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/timev.h +0 -21
  68. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/transdb.h +0 -189
  69. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/version.h +0 -52
  70. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/vm.inc +0 -3054
  71. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/vm_core.h +0 -763
  72. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/vm_insnhelper.h +0 -220
  73. data/lib/debase/ruby_core_source/ruby-1.9.3-p550/vmtc.inc +0 -97
@@ -1,219 +0,0 @@
1
- #ifndef ONIGURUMA_REGENC_H
2
- #define ONIGURUMA_REGENC_H
3
- /**********************************************************************
4
- regenc.h - Oniguruma (regular expression library)
5
- **********************************************************************/
6
- /*-
7
- * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
8
- * All rights reserved.
9
- *
10
- * Redistribution and use in source and binary forms, with or without
11
- * modification, are permitted provided that the following conditions
12
- * are met:
13
- * 1. Redistributions of source code must retain the above copyright
14
- * notice, this list of conditions and the following disclaimer.
15
- * 2. Redistributions in binary form must reproduce the above copyright
16
- * notice, this list of conditions and the following disclaimer in the
17
- * documentation and/or other materials provided with the distribution.
18
- *
19
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
20
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
23
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29
- * SUCH DAMAGE.
30
- */
31
- #ifndef REGINT_H
32
- #ifndef RUBY_EXTERN
33
- #include "ruby/config.h"
34
- #include "ruby/defines.h"
35
- #endif
36
- #ifdef ONIG_ESCAPE_UCHAR_COLLISION
37
- #undef ONIG_ESCAPE_UCHAR_COLLISION
38
- #endif
39
- #endif
40
- #include "ruby/oniguruma.h"
41
-
42
- #if defined __GNUC__ && __GNUC__ >= 4
43
- #pragma GCC visibility push(default)
44
- #endif
45
-
46
- typedef struct {
47
- OnigCodePoint from;
48
- OnigCodePoint to;
49
- } OnigPairCaseFoldCodes;
50
-
51
-
52
- #ifndef NULL
53
- #define NULL ((void* )0)
54
- #endif
55
-
56
- #ifndef TRUE
57
- #define TRUE 1
58
- #endif
59
-
60
- #ifndef FALSE
61
- #define FALSE 0
62
- #endif
63
-
64
- #ifndef ARG_UNUSED
65
- #if defined(__GNUC__)
66
- # define ARG_UNUSED __attribute__ ((unused))
67
- #else
68
- # define ARG_UNUSED
69
- #endif
70
- #endif
71
-
72
- #define ONIG_IS_NULL(p) (((void*)(p)) == (void*)0)
73
- #define ONIG_IS_NOT_NULL(p) (((void*)(p)) != (void*)0)
74
- #define ONIG_CHECK_NULL_RETURN(p) if (ONIG_IS_NULL(p)) return NULL
75
- #define ONIG_CHECK_NULL_RETURN_VAL(p,val) if (ONIG_IS_NULL(p)) return (val)
76
-
77
- #define enclen(enc,p,e) ((enc->max_enc_len == enc->min_enc_len) ? enc->min_enc_len : ONIGENC_MBC_ENC_LEN(enc,p,e))
78
-
79
- /* character types bit flag */
80
- #define BIT_CTYPE_NEWLINE (1<< ONIGENC_CTYPE_NEWLINE)
81
- #define BIT_CTYPE_ALPHA (1<< ONIGENC_CTYPE_ALPHA)
82
- #define BIT_CTYPE_BLANK (1<< ONIGENC_CTYPE_BLANK)
83
- #define BIT_CTYPE_CNTRL (1<< ONIGENC_CTYPE_CNTRL)
84
- #define BIT_CTYPE_DIGIT (1<< ONIGENC_CTYPE_DIGIT)
85
- #define BIT_CTYPE_GRAPH (1<< ONIGENC_CTYPE_GRAPH)
86
- #define BIT_CTYPE_LOWER (1<< ONIGENC_CTYPE_LOWER)
87
- #define BIT_CTYPE_PRINT (1<< ONIGENC_CTYPE_PRINT)
88
- #define BIT_CTYPE_PUNCT (1<< ONIGENC_CTYPE_PUNCT)
89
- #define BIT_CTYPE_SPACE (1<< ONIGENC_CTYPE_SPACE)
90
- #define BIT_CTYPE_UPPER (1<< ONIGENC_CTYPE_UPPER)
91
- #define BIT_CTYPE_XDIGIT (1<< ONIGENC_CTYPE_XDIGIT)
92
- #define BIT_CTYPE_WORD (1<< ONIGENC_CTYPE_WORD)
93
- #define BIT_CTYPE_ALNUM (1<< ONIGENC_CTYPE_ALNUM)
94
- #define BIT_CTYPE_ASCII (1<< ONIGENC_CTYPE_ASCII)
95
-
96
- #define CTYPE_TO_BIT(ctype) (1<<(ctype))
97
- #define CTYPE_IS_WORD_GRAPH_PRINT(ctype) \
98
- ((ctype) == ONIGENC_CTYPE_WORD || (ctype) == ONIGENC_CTYPE_GRAPH ||\
99
- (ctype) == ONIGENC_CTYPE_PRINT)
100
-
101
-
102
- typedef struct {
103
- const UChar *name;
104
- int ctype;
105
- short int len;
106
- } PosixBracketEntryType;
107
-
108
- #define PosixBracketEntryInit(name, ctype) {(const UChar *)name, ctype, (short int)(sizeof(name) - 1)}
109
-
110
- /* #define USE_CRNL_AS_LINE_TERMINATOR */
111
- #define USE_UNICODE_PROPERTIES
112
- /* #define USE_UNICODE_CASE_FOLD_TURKISH_AZERI */
113
- /* #define USE_UNICODE_ALL_LINE_TERMINATORS */ /* see Unicode.org UTF#18 */
114
-
115
-
116
- #define ONIG_ENCODING_INIT_DEFAULT ONIG_ENCODING_ASCII
117
-
118
- /* for encoding system implementation (internal) */
119
- ONIG_EXTERN int onigenc_ascii_apply_all_case_fold P_((OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void* arg, OnigEncoding enc));
120
- ONIG_EXTERN int onigenc_ascii_get_case_fold_codes_by_str P_((OnigCaseFoldType flag, const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[], OnigEncoding enc));
121
- ONIG_EXTERN int onigenc_apply_all_case_fold_with_map P_((int map_size, const OnigPairCaseFoldCodes map[], int ess_tsett_flag, OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void* arg));
122
- ONIG_EXTERN int onigenc_get_case_fold_codes_by_str_with_map P_((int map_size, const OnigPairCaseFoldCodes map[], int ess_tsett_flag, OnigCaseFoldType flag, const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]));
123
- ONIG_EXTERN int onigenc_not_support_get_ctype_code_range P_((OnigCtype ctype, OnigCodePoint* sb_out, const OnigCodePoint* ranges[], OnigEncoding enc));
124
- ONIG_EXTERN int onigenc_is_mbc_newline_0x0a P_((const UChar* p, const UChar* end, OnigEncoding enc));
125
-
126
-
127
- /* methods for single byte encoding */
128
- ONIG_EXTERN int onigenc_ascii_mbc_case_fold P_((OnigCaseFoldType flag, const UChar** p, const UChar* end, UChar* lower, OnigEncoding enc));
129
- ONIG_EXTERN int onigenc_single_byte_mbc_enc_len P_((const UChar* p, const UChar* e, OnigEncoding enc));
130
- ONIG_EXTERN OnigCodePoint onigenc_single_byte_mbc_to_code P_((const UChar* p, const UChar* end, OnigEncoding enc));
131
- ONIG_EXTERN int onigenc_single_byte_code_to_mbclen P_((OnigCodePoint code, OnigEncoding enc));
132
- ONIG_EXTERN int onigenc_single_byte_code_to_mbc P_((OnigCodePoint code, UChar *buf, OnigEncoding enc));
133
- ONIG_EXTERN UChar* onigenc_single_byte_left_adjust_char_head P_((const UChar* start, const UChar* s, const OnigUChar* end, OnigEncoding enc));
134
- ONIG_EXTERN int onigenc_always_true_is_allowed_reverse_match P_((const UChar* s, const UChar* end, OnigEncoding enc));
135
- ONIG_EXTERN int onigenc_always_false_is_allowed_reverse_match P_((const UChar* s, const UChar* end, OnigEncoding enc));
136
- ONIG_EXTERN int onigenc_ascii_is_code_ctype P_((OnigCodePoint code, unsigned int ctype, OnigEncoding enc));
137
-
138
- /* methods for multi byte encoding */
139
- ONIG_EXTERN OnigCodePoint onigenc_mbn_mbc_to_code P_((OnigEncoding enc, const UChar* p, const UChar* end));
140
- ONIG_EXTERN int onigenc_mbn_mbc_case_fold P_((OnigEncoding enc, OnigCaseFoldType flag, const UChar** p, const UChar* end, UChar* lower));
141
- ONIG_EXTERN int onigenc_mb2_code_to_mbclen P_((OnigCodePoint code, OnigEncoding enc));
142
- ONIG_EXTERN int onigenc_mb2_code_to_mbc P_((OnigEncoding enc, OnigCodePoint code, UChar *buf));
143
- ONIG_EXTERN int onigenc_minimum_property_name_to_ctype P_((OnigEncoding enc, UChar* p, UChar* end));
144
- ONIG_EXTERN int onigenc_unicode_property_name_to_ctype P_((OnigEncoding enc, UChar* p, UChar* end));
145
- ONIG_EXTERN int onigenc_mb2_is_code_ctype P_((OnigEncoding enc, OnigCodePoint code, unsigned int ctype));
146
- ONIG_EXTERN int onigenc_mb4_code_to_mbclen P_((OnigCodePoint code, OnigEncoding enc));
147
- ONIG_EXTERN int onigenc_mb4_code_to_mbc P_((OnigEncoding enc, OnigCodePoint code, UChar *buf));
148
- ONIG_EXTERN int onigenc_mb4_is_code_ctype P_((OnigEncoding enc, OnigCodePoint code, unsigned int ctype));
149
-
150
-
151
- /* in enc/unicode.c */
152
- ONIG_EXTERN int onigenc_unicode_is_code_ctype P_((OnigCodePoint code, unsigned int ctype, OnigEncoding enc));
153
- ONIG_EXTERN int onigenc_utf16_32_get_ctype_code_range P_((OnigCtype ctype, OnigCodePoint *sb_out, const OnigCodePoint* ranges[], OnigEncoding enc));
154
- ONIG_EXTERN int onigenc_unicode_ctype_code_range P_((int ctype, const OnigCodePoint* ranges[]));
155
- ONIG_EXTERN int onigenc_unicode_get_case_fold_codes_by_str P_((OnigEncoding enc, OnigCaseFoldType flag, const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]));
156
- ONIG_EXTERN int onigenc_unicode_mbc_case_fold P_((OnigEncoding enc, OnigCaseFoldType flag, const UChar** pp, const UChar* end, UChar* fold));
157
- ONIG_EXTERN int onigenc_unicode_apply_all_case_fold P_((OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void* arg, OnigEncoding enc));
158
-
159
-
160
- #define UTF16_IS_SURROGATE_FIRST(c) (((c) & 0xfc) == 0xd8)
161
- #define UTF16_IS_SURROGATE_SECOND(c) (((c) & 0xfc) == 0xdc)
162
-
163
- #define ONIGENC_ISO_8859_1_TO_LOWER_CASE(c) \
164
- OnigEncISO_8859_1_ToLowerCaseTable[c]
165
- #define ONIGENC_ISO_8859_1_TO_UPPER_CASE(c) \
166
- OnigEncISO_8859_1_ToUpperCaseTable[c]
167
-
168
- ONIG_EXTERN const UChar OnigEncISO_8859_1_ToLowerCaseTable[];
169
- ONIG_EXTERN const UChar OnigEncISO_8859_1_ToUpperCaseTable[];
170
-
171
- ONIG_EXTERN int
172
- onigenc_with_ascii_strncmp P_((OnigEncoding enc, const UChar* p, const UChar* end, const UChar* sascii /* ascii */, int n));
173
- ONIG_EXTERN UChar*
174
- onigenc_step P_((OnigEncoding enc, const UChar* p, const UChar* end, int n));
175
-
176
- /* defined in regexec.c, but used in enc/xxx.c */
177
- extern int onig_is_in_code_range P_((const UChar* p, OnigCodePoint code));
178
-
179
- ONIG_EXTERN OnigEncoding OnigEncDefaultCharEncoding;
180
- ONIG_EXTERN const UChar OnigEncAsciiToLowerCaseTable[];
181
- ONIG_EXTERN const UChar OnigEncAsciiToUpperCaseTable[];
182
- ONIG_EXTERN const unsigned short OnigEncAsciiCtypeTable[];
183
-
184
- #define ONIGENC_IS_ASCII_CODE(code) ((code) < 0x80)
185
- #define ONIGENC_ASCII_CODE_TO_LOWER_CASE(c) OnigEncAsciiToLowerCaseTable[c]
186
- #define ONIGENC_ASCII_CODE_TO_UPPER_CASE(c) OnigEncAsciiToUpperCaseTable[c]
187
- #define ONIGENC_IS_ASCII_CODE_CTYPE(code,ctype) \
188
- ((OnigEncAsciiCtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
189
- #define ONIGENC_IS_ASCII_CODE_CASE_AMBIG(code) \
190
- (ONIGENC_IS_ASCII_CODE_CTYPE(code, ONIGENC_CTYPE_UPPER) ||\
191
- ONIGENC_IS_ASCII_CODE_CTYPE(code, ONIGENC_CTYPE_LOWER))
192
-
193
- #ifdef ONIG_ENC_REGISTER
194
- extern int ONIG_ENC_REGISTER(const char *, OnigEncodingType*);
195
- #define OnigEncodingName(n) encoding_##n
196
- #define OnigEncodingDeclare(n) static OnigEncodingType OnigEncodingName(n)
197
- #define OnigEncodingDefine(f,n) \
198
- OnigEncodingDeclare(n); \
199
- void Init_##f(void) { \
200
- ONIG_ENC_REGISTER(OnigEncodingName(n).name, \
201
- &OnigEncodingName(n)); \
202
- } \
203
- OnigEncodingDeclare(n)
204
- #else
205
- #define OnigEncodingName(n) OnigEncoding##n
206
- #define OnigEncodingDeclare(n) OnigEncodingType OnigEncodingName(n)
207
- #define OnigEncodingDefine(f,n) OnigEncodingDeclare(n)
208
- #endif
209
-
210
- /* macros for define replica encoding and encoding alias */
211
- #define ENC_REPLICATE(name, orig)
212
- #define ENC_ALIAS(name, orig)
213
- #define ENC_DUMMY(name)
214
-
215
- #if defined __GNUC__ && __GNUC__ >= 4
216
- #pragma GCC visibility pop
217
- #endif
218
-
219
- #endif /* ONIGURUMA_REGENC_H */
@@ -1 +0,0 @@
1
- #define RUBY_REVISION 48165
@@ -1,21 +0,0 @@
1
- #ifndef RUBY_TIMEV_H
2
- #define RUBY_TIMEV_H
3
-
4
- struct vtm {
5
- VALUE year; /* 2000 for example. Integer. */
6
- int mon; /* 1..12 */
7
- int mday; /* 1..31 */
8
- int hour; /* 0..23 */
9
- int min; /* 0..59 */
10
- int sec; /* 0..60 */
11
- VALUE subsecx; /* 0 <= subsecx < TIME_SCALE. possibly Rational. */
12
- VALUE utc_offset; /* -3600 as -01:00 for example. possibly Rational. */
13
- int wday; /* 0:Sunday, 1:Monday, ..., 6:Saturday */
14
- int yday; /* 1..366 */
15
- int isdst; /* 0:StandardTime 1:DayLightSavingTime */
16
- const char *zone; /* "JST", "EST", "EDT", etc. */
17
- };
18
-
19
- #define TIME_SCALE 1000000000
20
-
21
- #endif
@@ -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 550
3
-
4
- #define RUBY_RELEASE_DATE "2014-10-27"
5
- #define RUBY_RELEASE_YEAR 2014
6
- #define RUBY_RELEASE_MONTH 10
7
- #define RUBY_RELEASE_DAY 27
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