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.
Files changed (293) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/CHANGELOG.md +6 -0
  4. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/builtin.h +7 -1
  5. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/darray.h +1 -3
  6. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/id.h +5 -0
  7. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/insns.inc +2 -0
  8. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/insns_info.inc +310 -175
  9. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/basic_operators.h +1 -0
  10. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/bits.h +82 -0
  11. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/encoding.h +2 -0
  12. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/error.h +26 -0
  13. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/fixnum.h +1 -0
  14. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/gc.h +14 -6
  15. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/imemo.h +6 -1
  16. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/io.h +1 -1
  17. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/parse.h +2 -1
  18. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/proc.h +1 -0
  19. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/ractor.h +4 -0
  20. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/sanitizers.h +31 -39
  21. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/string.h +22 -10
  22. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/thread.h +23 -0
  23. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/vm.h +1 -1
  24. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/method.h +1 -0
  25. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/optunifs.inc +1 -1
  26. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/parse.h +2 -2
  27. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/ast.h +427 -3
  28. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/defines.h +8 -7
  29. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/diagnostic.h +1 -0
  30. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/extension.h +1 -1
  31. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/prism.h +47 -11
  32. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/version.h +2 -2
  33. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism_compile.h +5 -5
  34. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/ractor_core.h +6 -6
  35. data/lib/debase/ruby_core_source/ruby-3.4.0/revision.h +5 -0
  36. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/rubyparser.h +3 -2
  37. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/thread_pthread.h +0 -1
  38. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/version.h +1 -1
  39. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm.inc +151 -88
  40. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_core.h +40 -12
  41. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_sync.h +3 -3
  42. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vmtc.inc +2 -0
  43. data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/yjit.h +1 -0
  44. data/lib/debase/ruby_core_source/version.rb +1 -1
  45. metadata +147 -293
  46. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/darray.h +0 -191
  47. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/debug_counter.h +0 -423
  48. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/dln.h +0 -34
  49. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/id.h +0 -343
  50. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns.inc +0 -259
  51. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/insns_info.inc +0 -9530
  52. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/array.h +0 -151
  53. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/basic_operators.h +0 -63
  54. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/bits.h +0 -568
  55. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/class.h +0 -283
  56. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/error.h +0 -216
  57. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/fixnum.h +0 -184
  58. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/gc.h +0 -334
  59. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/hash.h +0 -191
  60. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/imemo.h +0 -260
  61. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/io.h +0 -140
  62. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/parse.h +0 -117
  63. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/ractor.h +0 -6
  64. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/sanitizers.h +0 -297
  65. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/string.h +0 -182
  66. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/thread.h +0 -79
  67. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/internal/vm.h +0 -137
  68. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/known_errors.inc +0 -1419
  69. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/method.h +0 -255
  70. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/optunifs.inc +0 -43
  71. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/parse.h +0 -243
  72. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/ast.h +0 -6245
  73. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/defines.h +0 -206
  74. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/diagnostic.h +0 -433
  75. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/extension.h +0 -19
  76. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/node.h +0 -150
  77. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/options.h +0 -305
  78. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/parser.h +0 -891
  79. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h +0 -33
  80. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/static_literals.h +0 -120
  81. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_char.h +0 -205
  82. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_constant_pool.h +0 -226
  83. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_integer.h +0 -119
  84. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_newline_list.h +0 -102
  85. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string.h +0 -174
  86. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string_list.h +0 -44
  87. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/version.h +0 -29
  88. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism_compile.h +0 -88
  89. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/ractor_core.h +0 -393
  90. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/regint.h +0 -1010
  91. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/revision.h +0 -5
  92. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/rubyparser.h +0 -1430
  93. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/shape.h +0 -233
  94. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/symbol.h +0 -118
  95. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/thread_pthread.h +0 -166
  96. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/version.h +0 -69
  97. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm.inc +0 -5643
  98. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_callinfo.h +0 -605
  99. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_core.h +0 -2236
  100. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_insnhelper.h +0 -272
  101. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vm_sync.h +0 -137
  102. data/lib/debase/ruby_core_source/ruby-3.4.0-preview1/vmtc.inc +0 -253
  103. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/addr2line.h +0 -22
  104. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/builtin.h +0 -119
  105. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/build_assert/build_assert.h +0 -40
  106. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/check_type/check_type.h +0 -63
  107. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/container_of/container_of.h +0 -142
  108. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/list/list.h +0 -791
  109. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ccan/str/str.h +0 -17
  110. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/constant.h +0 -53
  111. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/encindex.h +0 -70
  112. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/eval_intern.h +0 -324
  113. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/hrtime.h +0 -237
  114. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/id_table.h +0 -39
  115. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/bignum.h +0 -244
  116. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cmdlineopt.h +0 -65
  117. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compar.h +0 -29
  118. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compile.h +0 -34
  119. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/compilers.h +0 -107
  120. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/complex.h +0 -29
  121. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/cont.h +0 -35
  122. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/dir.h +0 -16
  123. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enc.h +0 -19
  124. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/encoding.h +0 -36
  125. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enum.h +0 -18
  126. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/enumerator.h +0 -21
  127. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/eval.h +0 -33
  128. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/file.h +0 -38
  129. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/inits.h +0 -47
  130. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/load.h +0 -18
  131. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/loadpath.h +0 -16
  132. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/math.h +0 -23
  133. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/missing.h +0 -19
  134. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/numeric.h +0 -274
  135. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/object.h +0 -63
  136. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/proc.h +0 -30
  137. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/process.h +0 -124
  138. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/random.h +0 -17
  139. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/range.h +0 -40
  140. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/rational.h +0 -71
  141. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/re.h +0 -28
  142. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/ruby_parser.h +0 -102
  143. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/serial.h +0 -23
  144. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/signal.h +0 -24
  145. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/st.h +0 -11
  146. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/static_assert.h +0 -16
  147. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/struct.h +0 -127
  148. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/symbol.h +0 -45
  149. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/time.h +0 -34
  150. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/transcode.h +0 -23
  151. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/util.h +0 -27
  152. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/variable.h +0 -72
  153. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal/warnings.h +0 -16
  154. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/internal.h +0 -108
  155. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/iseq.h +0 -340
  156. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node.h +0 -111
  157. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/node_name.inc +0 -224
  158. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/optinsn.inc +0 -128
  159. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_bits.h +0 -564
  160. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_node.h +0 -32
  161. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_st.h +0 -162
  162. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/parser_value.h +0 -106
  163. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/encoding.h +0 -283
  164. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/pack.h +0 -163
  165. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prettyprint.h +0 -34
  166. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/prism.h +0 -336
  167. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_buffer.h +0 -218
  168. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_list.h +0 -97
  169. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_memchr.h +0 -29
  170. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strncasecmp.h +0 -32
  171. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/prism/util/pm_strpbrk.h +0 -46
  172. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/probes_helper.h +0 -42
  173. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regenc.h +0 -254
  174. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/regparse.h +0 -371
  175. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/revision.h +0 -5
  176. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit.h +0 -101
  177. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/rjit_c.h +0 -165
  178. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_assert.h +0 -14
  179. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/ruby_atomic.h +0 -23
  180. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/siphash.h +0 -48
  181. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_none.h +0 -21
  182. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/thread_win32.h +0 -58
  183. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/timev.h +0 -58
  184. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/transcode_data.h +0 -138
  185. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/variable.h +0 -39
  186. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_call_iseq_optimized.inc +0 -244
  187. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_debug.h +0 -124
  188. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_exec.h +0 -199
  189. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/vm_opts.h +0 -67
  190. data/lib/debase/ruby_core_source/ruby-3.4.0-preview2/yjit.h +0 -79
  191. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/addr2line.h +0 -0
  192. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/build_assert/build_assert.h +0 -0
  193. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/check_type/check_type.h +0 -0
  194. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/container_of/container_of.h +0 -0
  195. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/list/list.h +0 -0
  196. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ccan/str/str.h +0 -0
  197. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/constant.h +0 -0
  198. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/debug_counter.h +0 -0
  199. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/dln.h +0 -0
  200. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/encindex.h +0 -0
  201. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/eval_intern.h +0 -0
  202. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/hrtime.h +0 -0
  203. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/id_table.h +0 -0
  204. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/array.h +0 -0
  205. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/bignum.h +0 -0
  206. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/class.h +0 -0
  207. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/cmdlineopt.h +0 -0
  208. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compar.h +0 -0
  209. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compile.h +0 -0
  210. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/compilers.h +0 -0
  211. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/complex.h +0 -0
  212. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/cont.h +0 -0
  213. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/dir.h +0 -0
  214. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enc.h +0 -0
  215. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enum.h +0 -0
  216. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/enumerator.h +0 -0
  217. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/eval.h +0 -0
  218. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/file.h +0 -0
  219. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/internal/hash.h +0 -0
  220. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/inits.h +0 -0
  221. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/load.h +0 -0
  222. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/loadpath.h +0 -0
  223. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/math.h +0 -0
  224. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/missing.h +0 -0
  225. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/numeric.h +0 -0
  226. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/object.h +0 -0
  227. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/process.h +0 -0
  228. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/random.h +0 -0
  229. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/range.h +0 -0
  230. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/rational.h +0 -0
  231. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/re.h +0 -0
  232. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/ruby_parser.h +0 -0
  233. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/serial.h +0 -0
  234. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/signal.h +0 -0
  235. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/st.h +0 -0
  236. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/static_assert.h +0 -0
  237. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/struct.h +0 -0
  238. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/symbol.h +0 -0
  239. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/time.h +0 -0
  240. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/transcode.h +0 -0
  241. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/util.h +0 -0
  242. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/variable.h +0 -0
  243. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal/warnings.h +0 -0
  244. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/internal.h +0 -0
  245. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/iseq.h +0 -0
  246. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/known_errors.inc +0 -0
  247. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/node.h +0 -0
  248. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/node_name.inc +0 -0
  249. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/optinsn.inc +0 -0
  250. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_bits.h +0 -0
  251. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_node.h +0 -0
  252. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_st.h +0 -0
  253. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/parser_value.h +0 -0
  254. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/encoding.h +0 -0
  255. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/node.h +0 -0
  256. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/options.h +0 -0
  257. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/pack.h +0 -0
  258. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/parser.h +0 -0
  259. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/prettyprint.h +0 -0
  260. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/regexp.h +0 -0
  261. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/static_literals.h +0 -0
  262. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_buffer.h +0 -0
  263. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_char.h +0 -0
  264. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_constant_pool.h +0 -0
  265. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_integer.h +0 -0
  266. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_list.h +0 -0
  267. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_memchr.h +0 -0
  268. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_newline_list.h +0 -0
  269. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/prism/util/pm_string.h +0 -0
  270. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_strncasecmp.h +0 -0
  271. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/prism/util/pm_strpbrk.h +0 -0
  272. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/probes_helper.h +0 -0
  273. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/regenc.h +0 -0
  274. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/regint.h +0 -0
  275. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/regparse.h +0 -0
  276. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/rjit.h +0 -0
  277. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/rjit_c.h +0 -0
  278. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ruby_assert.h +0 -0
  279. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/ruby_atomic.h +0 -0
  280. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/shape.h +0 -0
  281. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/siphash.h +0 -0
  282. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/symbol.h +0 -0
  283. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/thread_none.h +0 -0
  284. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/thread_win32.h +0 -0
  285. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/timev.h +0 -0
  286. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/transcode_data.h +0 -0
  287. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/variable.h +0 -0
  288. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_call_iseq_optimized.inc +0 -0
  289. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_callinfo.h +0 -0
  290. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_debug.h +0 -0
  291. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_exec.h +0 -0
  292. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview2 → ruby-3.4.0}/vm_insnhelper.h +0 -0
  293. /data/lib/debase/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0}/vm_opts.h +0 -0
@@ -1,162 +0,0 @@
1
- /* This is a public domain general purpose hash table package
2
- originally written by Peter Moore @ UCB.
3
-
4
- The hash table data structures were redesigned and the package was
5
- rewritten by Vladimir Makarov <vmakarov@redhat.com>. */
6
-
7
- #ifndef RUBY_ST2_H
8
- #define RUBY_ST2_H 1
9
-
10
- #if defined(__cplusplus)
11
- extern "C" {
12
- #if 0
13
- } /* satisfy cc-mode */
14
- #endif
15
- #endif
16
-
17
- #include <stddef.h>
18
- #include <stdint.h>
19
- #include "ruby/config.h"
20
- #include "ruby/backward/2/long_long.h"
21
- #include "ruby/defines.h"
22
-
23
- RUBY_SYMBOL_EXPORT_BEGIN
24
-
25
- #if SIZEOF_LONG == SIZEOF_VOIDP
26
- typedef unsigned long parser_st_data_t;
27
- #elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
28
- typedef unsigned LONG_LONG parser_st_data_t;
29
- #else
30
- # error ---->> parser_st.c requires sizeof(void*) == sizeof(long) or sizeof(LONG_LONG) to be compiled. <<----
31
- #endif
32
- #define ST2_DATA_T_DEFINED
33
-
34
- #ifndef CHAR_BIT
35
- # ifdef HAVE_LIMITS_H
36
- # include <limits.h>
37
- # else
38
- # define CHAR_BIT 8
39
- # endif
40
- #endif
41
- #ifndef _
42
- # define _(args) args
43
- #endif
44
- #ifndef ANYARGS
45
- # ifdef __cplusplus
46
- # define ANYARGS ...
47
- # else
48
- # define ANYARGS
49
- # endif
50
- #endif
51
-
52
- typedef struct parser_st_table parser_st_table;
53
-
54
- typedef parser_st_data_t parser_st_index_t;
55
-
56
- /* Maximal value of unsigned integer type parser_st_index_t. */
57
- #define MAX_ST2_INDEX_VAL (~(parser_st_index_t) 0)
58
-
59
- typedef int parser_st_compare_func(parser_st_data_t, parser_st_data_t);
60
- typedef parser_st_index_t parser_st_hash_func(parser_st_data_t);
61
-
62
- typedef char st_check_for_sizeof_parser_st_index_t[SIZEOF_VOIDP == (int)sizeof(parser_st_index_t) ? 1 : -1];
63
- #define SIZEOF_ST_INDEX_T SIZEOF_VOIDP
64
-
65
- struct parser_st_hash_type {
66
- int (*compare)(parser_st_data_t, parser_st_data_t); /* parser_st_compare_func* */
67
- parser_st_index_t (*hash)(parser_st_data_t); /* parser_st_hash_func* */
68
- };
69
-
70
- #define ST_INDEX_BITS (SIZEOF_ST_INDEX_T * CHAR_BIT)
71
-
72
- #if defined(HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR) && defined(HAVE_BUILTIN___BUILTIN_TYPES_COMPATIBLE_P)
73
- # define ST2_DATA_COMPATIBLE_P(type) \
74
- __builtin_choose_expr(__builtin_types_compatible_p(type, parser_st_data_t), 1, 0)
75
- #else
76
- # define ST2_DATA_COMPATIBLE_P(type) 0
77
- #endif
78
-
79
- typedef struct parser_st_table_entry parser_st_table_entry;
80
-
81
- struct parser_st_table_entry; /* defined in parser_st.c */
82
-
83
- struct parser_st_table {
84
- /* Cached features of the table -- see st.c for more details. */
85
- unsigned char entry_power, bin_power, size_ind;
86
- /* How many times the table was rebuilt. */
87
- unsigned int rebuilds_num;
88
- const struct parser_st_hash_type *type;
89
- /* Number of entries currently in the table. */
90
- parser_st_index_t num_entries;
91
- /* Array of bins used for access by keys. */
92
- parser_st_index_t *bins;
93
- /* Start and bound index of entries in array entries.
94
- entries_starts and entries_bound are in interval
95
- [0,allocated_entries]. */
96
- parser_st_index_t entries_start, entries_bound;
97
- /* Array of size 2^entry_power. */
98
- parser_st_table_entry *entries;
99
- };
100
-
101
- #define parser_st_is_member(table,key) rb_parser_st_lookup((table),(key),(parser_st_data_t *)0)
102
-
103
- enum parser_st_retval {ST2_CONTINUE, ST2_STOP, ST2_DELETE, ST2_CHECK, ST2_REPLACE};
104
-
105
- size_t rb_parser_st_table_size(const struct parser_st_table *tbl);
106
- parser_st_table *rb_parser_st_init_table(const struct parser_st_hash_type *);
107
- parser_st_table *rb_parser_st_init_table_with_size(const struct parser_st_hash_type *, parser_st_index_t);
108
- parser_st_table *rb_parser_st_init_existing_table_with_size(parser_st_table *, const struct parser_st_hash_type *, parser_st_index_t);
109
- parser_st_table *rb_parser_st_init_numtable(void);
110
- parser_st_table *rb_parser_st_init_numtable_with_size(parser_st_index_t);
111
- parser_st_table *rb_parser_st_init_strtable(void);
112
- parser_st_table *rb_parser_st_init_strtable_with_size(parser_st_index_t);
113
- parser_st_table *rb_parser_st_init_strcasetable(void);
114
- parser_st_table *rb_parser_st_init_strcasetable_with_size(parser_st_index_t);
115
- int rb_parser_st_delete(parser_st_table *, parser_st_data_t *, parser_st_data_t *); /* returns 0:notfound 1:deleted */
116
- int rb_parser_st_delete_safe(parser_st_table *, parser_st_data_t *, parser_st_data_t *, parser_st_data_t);
117
- int rb_parser_st_shift(parser_st_table *, parser_st_data_t *, parser_st_data_t *); /* returns 0:notfound 1:deleted */
118
- int rb_parser_st_insert(parser_st_table *, parser_st_data_t, parser_st_data_t);
119
- int rb_parser_st_insert2(parser_st_table *, parser_st_data_t, parser_st_data_t, parser_st_data_t (*)(parser_st_data_t));
120
- int rb_parser_st_lookup(parser_st_table *, parser_st_data_t, parser_st_data_t *);
121
- int rb_parser_st_get_key(parser_st_table *, parser_st_data_t, parser_st_data_t *);
122
- typedef int parser_st_update_callback_func(parser_st_data_t *key, parser_st_data_t *value, parser_st_data_t arg, int existing);
123
- /* *key may be altered, but must equal to the old key, i.e., the
124
- * results of hash() are same and compare() returns 0, otherwise the
125
- * behavior is undefined */
126
- int rb_parser_st_update(parser_st_table *table, parser_st_data_t key, parser_st_update_callback_func *func, parser_st_data_t arg);
127
- typedef int parser_st_foreach_callback_func(parser_st_data_t, parser_st_data_t, parser_st_data_t);
128
- typedef int parser_st_foreach_check_callback_func(parser_st_data_t, parser_st_data_t, parser_st_data_t, int);
129
- int rb_parser_st_foreach_with_replace(parser_st_table *tab, parser_st_foreach_check_callback_func *func, parser_st_update_callback_func *replace, parser_st_data_t arg);
130
- int rb_parser_st_foreach(parser_st_table *, parser_st_foreach_callback_func *, parser_st_data_t);
131
- int rb_parser_st_foreach_check(parser_st_table *, parser_st_foreach_check_callback_func *, parser_st_data_t, parser_st_data_t);
132
- parser_st_index_t rb_parser_st_keys(parser_st_table *table, parser_st_data_t *keys, parser_st_index_t size);
133
- parser_st_index_t rb_parser_st_keys_check(parser_st_table *table, parser_st_data_t *keys, parser_st_index_t size, parser_st_data_t never);
134
- parser_st_index_t rb_parser_st_values(parser_st_table *table, parser_st_data_t *values, parser_st_index_t size);
135
- parser_st_index_t rb_parser_st_values_check(parser_st_table *table, parser_st_data_t *values, parser_st_index_t size, parser_st_data_t never);
136
- void rb_parser_st_add_direct(parser_st_table *, parser_st_data_t, parser_st_data_t);
137
- void rb_parser_st_free_table(parser_st_table *);
138
- void rb_parser_st_cleanup_safe(parser_st_table *, parser_st_data_t);
139
- void rb_parser_st_clear(parser_st_table *);
140
- parser_st_table *rb_parser_st_replace(parser_st_table *, parser_st_table *);
141
- parser_st_table *rb_parser_st_copy(parser_st_table *);
142
- CONSTFUNC(int rb_parser_st_numcmp(parser_st_data_t, parser_st_data_t));
143
- CONSTFUNC(parser_st_index_t rb_parser_st_numhash(parser_st_data_t));
144
- PUREFUNC(int rb_parser_st_locale_insensitive_strcasecmp(const char *s1, const char *s2));
145
- PUREFUNC(int rb_parser_st_locale_insensitive_strncasecmp(const char *s1, const char *s2, size_t n));
146
- PUREFUNC(size_t rb_parser_st_memsize(const parser_st_table *));
147
- PUREFUNC(parser_st_index_t rb_parser_st_hash(const void *ptr, size_t len, parser_st_index_t h));
148
- CONSTFUNC(parser_st_index_t rb_parser_st_hash_uint32(parser_st_index_t h, uint32_t i));
149
- CONSTFUNC(parser_st_index_t rb_parser_st_hash_uint(parser_st_index_t h, parser_st_index_t i));
150
- CONSTFUNC(parser_st_index_t rb_parser_st_hash_end(parser_st_index_t h));
151
- CONSTFUNC(parser_st_index_t rb_parser_st_hash_start(parser_st_index_t h));
152
-
153
- RUBY_SYMBOL_EXPORT_END
154
-
155
- #if defined(__cplusplus)
156
- #if 0
157
- { /* satisfy cc-mode */
158
- #endif
159
- } /* extern "C" { */
160
- #endif
161
-
162
- #endif /* RUBY_ST2_H */
@@ -1,106 +0,0 @@
1
- #ifndef EXTERNAL_VALUE_H
2
- #define EXTERNAL_VALUE_H
3
-
4
- #include "ruby/config.h"
5
-
6
- #if defined(__DOXYGEN__)
7
-
8
- /**
9
- * Type that represents a Ruby object. It is an unsigned integer of some kind,
10
- * depending on platforms.
11
- *
12
- * ```CXX
13
- * VALUE value = rb_eval_string("ARGF.readlines.map.with_index");
14
- * ```
15
- *
16
- * @warning ::VALUE is not a pointer.
17
- * @warning ::VALUE can be wider than `long`.
18
- */
19
- typedef uintptr_t VALUE;
20
-
21
- /**
22
- * Type that represents a Ruby identifier such as a variable name.
23
- *
24
- * ```CXX
25
- * ID method = rb_intern("method");
26
- * VALUE result = rb_funcall(obj, method, 0);
27
- * ```
28
- *
29
- * @note ::rb_cSymbol is a Ruby-level data type for the same thing.
30
- */
31
- typedef uintptr_t ID;
32
-
33
- /**
34
- * A signed integer type that has the same width with ::VALUE.
35
- *
36
- * @internal
37
- *
38
- * @shyouhei wonders: is it guaranteed that `uintptr_t` and `intptr_t` are the
39
- * same width? As far as I read ISO/IEC 9899:2018 section 7.20.1.4 paragraph 1
40
- * no such description is given... or defined elsewhere?
41
- */
42
- typedef intptr_t SIGNED_VALUE;
43
-
44
- /**
45
- * Identical to `sizeof(VALUE)`, except it is a macro that can also be used
46
- * inside of preprocessor directives such as `#if`. Handy on occasions.
47
- */
48
- #define SIZEOF_VALUE SIZEOF_UINTPTR_T
49
-
50
- /**
51
- * @private
52
- *
53
- * A compile-time constant of type ::VALUE whose value is 0.
54
- */
55
- #define RBIMPL_VALUE_NULL UINTPTR_C(0)
56
-
57
- /**
58
- * @private
59
- *
60
- * A compile-time constant of type ::VALUE whose value is 1.
61
- */
62
- #define RBIMPL_VALUE_ONE UINTPTR_C(1)
63
-
64
- /**
65
- * @private
66
- *
67
- * Maximum possible value that a ::VALUE can take.
68
- */
69
- #define RBIMPL_VALUE_FULL UINTPTR_MAX
70
-
71
- #elif defined HAVE_UINTPTR_T && 0
72
- typedef uintptr_t VALUE;
73
- typedef uintptr_t ID;
74
- # define SIGNED_VALUE intptr_t
75
- # define SIZEOF_VALUE SIZEOF_UINTPTR_T
76
- # undef PRI_VALUE_PREFIX
77
- # define RBIMPL_VALUE_NULL UINTPTR_C(0)
78
- # define RBIMPL_VALUE_ONE UINTPTR_C(1)
79
- # define RBIMPL_VALUE_FULL UINTPTR_MAX
80
-
81
- #elif SIZEOF_LONG == SIZEOF_VOIDP
82
- typedef unsigned long VALUE;
83
- typedef unsigned long ID;
84
- # define SIGNED_VALUE long
85
- # define SIZEOF_VALUE SIZEOF_LONG
86
- # define PRI_VALUE_PREFIX "l"
87
- # define RBIMPL_VALUE_NULL 0UL
88
- # define RBIMPL_VALUE_ONE 1UL
89
- # define RBIMPL_VALUE_FULL ULONG_MAX
90
-
91
- #elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
92
- typedef unsigned LONG_LONG VALUE;
93
- typedef unsigned LONG_LONG ID;
94
- # define SIGNED_VALUE LONG_LONG
95
- # define LONG_LONG_VALUE 1
96
- # define SIZEOF_VALUE SIZEOF_LONG_LONG
97
- # define PRI_VALUE_PREFIX PRI_LL_PREFIX
98
- # define RBIMPL_VALUE_NULL 0ULL
99
- # define RBIMPL_VALUE_ONE 1ULL
100
- # define RBIMPL_VALUE_FULL ULLONG_MAX
101
-
102
- #else
103
- # error ---->> ruby requires sizeof(void*) == sizeof(long) or sizeof(LONG_LONG) to be compiled. <<----
104
- #endif
105
-
106
- #endif /* EXTERNAL_VALUE_H */
@@ -1,283 +0,0 @@
1
- /**
2
- * @file encoding.h
3
- *
4
- * The encoding interface and implementations used by the parser.
5
- */
6
- #ifndef PRISM_ENCODING_H
7
- #define PRISM_ENCODING_H
8
-
9
- #include "prism/defines.h"
10
- #include "prism/util/pm_strncasecmp.h"
11
-
12
- #include <assert.h>
13
- #include <stdbool.h>
14
- #include <stddef.h>
15
- #include <stdint.h>
16
-
17
- /**
18
- * This struct defines the functions necessary to implement the encoding
19
- * interface so we can determine how many bytes the subsequent character takes.
20
- * Each callback should return the number of bytes, or 0 if the next bytes are
21
- * invalid for the encoding and type.
22
- */
23
- typedef struct {
24
- /**
25
- * Return the number of bytes that the next character takes if it is valid
26
- * in the encoding. Does not read more than n bytes. It is assumed that n is
27
- * at least 1.
28
- */
29
- size_t (*char_width)(const uint8_t *b, ptrdiff_t n);
30
-
31
- /**
32
- * Return the number of bytes that the next character takes if it is valid
33
- * in the encoding and is alphabetical. Does not read more than n bytes. It
34
- * is assumed that n is at least 1.
35
- */
36
- size_t (*alpha_char)(const uint8_t *b, ptrdiff_t n);
37
-
38
- /**
39
- * Return the number of bytes that the next character takes if it is valid
40
- * in the encoding and is alphanumeric. Does not read more than n bytes. It
41
- * is assumed that n is at least 1.
42
- */
43
- size_t (*alnum_char)(const uint8_t *b, ptrdiff_t n);
44
-
45
- /**
46
- * Return true if the next character is valid in the encoding and is an
47
- * uppercase character. Does not read more than n bytes. It is assumed that
48
- * n is at least 1.
49
- */
50
- bool (*isupper_char)(const uint8_t *b, ptrdiff_t n);
51
-
52
- /**
53
- * The name of the encoding. This should correspond to a value that can be
54
- * passed to Encoding.find in Ruby.
55
- */
56
- const char *name;
57
-
58
- /**
59
- * Return true if the encoding is a multibyte encoding.
60
- */
61
- bool multibyte;
62
- } pm_encoding_t;
63
-
64
- /**
65
- * All of the lookup tables use the first bit of each embedded byte to indicate
66
- * whether the codepoint is alphabetical.
67
- */
68
- #define PRISM_ENCODING_ALPHABETIC_BIT 1 << 0
69
-
70
- /**
71
- * All of the lookup tables use the second bit of each embedded byte to indicate
72
- * whether the codepoint is alphanumeric.
73
- */
74
- #define PRISM_ENCODING_ALPHANUMERIC_BIT 1 << 1
75
-
76
- /**
77
- * All of the lookup tables use the third bit of each embedded byte to indicate
78
- * whether the codepoint is uppercase.
79
- */
80
- #define PRISM_ENCODING_UPPERCASE_BIT 1 << 2
81
-
82
- /**
83
- * Return the size of the next character in the UTF-8 encoding.
84
- *
85
- * @param b The bytes to read.
86
- * @param n The number of bytes that can be read.
87
- * @returns The number of bytes that the next character takes if it is valid in
88
- * the encoding, or 0 if it is not.
89
- */
90
- size_t pm_encoding_utf_8_char_width(const uint8_t *b, ptrdiff_t n);
91
-
92
- /**
93
- * Return the size of the next character in the UTF-8 encoding if it is an
94
- * alphabetical character.
95
- *
96
- * @param b The bytes to read.
97
- * @param n The number of bytes that can be read.
98
- * @returns The number of bytes that the next character takes if it is valid in
99
- * the encoding, or 0 if it is not.
100
- */
101
- size_t pm_encoding_utf_8_alpha_char(const uint8_t *b, ptrdiff_t n);
102
-
103
- /**
104
- * Return the size of the next character in the UTF-8 encoding if it is an
105
- * alphanumeric character.
106
- *
107
- * @param b The bytes to read.
108
- * @param n The number of bytes that can be read.
109
- * @returns The number of bytes that the next character takes if it is valid in
110
- * the encoding, or 0 if it is not.
111
- */
112
- size_t pm_encoding_utf_8_alnum_char(const uint8_t *b, ptrdiff_t n);
113
-
114
- /**
115
- * Return true if the next character in the UTF-8 encoding if it is an uppercase
116
- * character.
117
- *
118
- * @param b The bytes to read.
119
- * @param n The number of bytes that can be read.
120
- * @returns True if the next character is valid in the encoding and is an
121
- * uppercase character, or false if it is not.
122
- */
123
- bool pm_encoding_utf_8_isupper_char(const uint8_t *b, ptrdiff_t n);
124
-
125
- /**
126
- * This lookup table is referenced in both the UTF-8 encoding file and the
127
- * parser directly in order to speed up the default encoding processing. It is
128
- * used to indicate whether a character is alphabetical, alphanumeric, or
129
- * uppercase in unicode mappings.
130
- */
131
- extern const uint8_t pm_encoding_unicode_table[256];
132
-
133
- /**
134
- * These are all of the encodings that prism supports.
135
- */
136
- typedef enum {
137
- PM_ENCODING_UTF_8 = 0,
138
- PM_ENCODING_US_ASCII,
139
- PM_ENCODING_ASCII_8BIT,
140
- PM_ENCODING_EUC_JP,
141
- PM_ENCODING_WINDOWS_31J,
142
-
143
- // We optionally support excluding the full set of encodings to only support the
144
- // minimum necessary to process Ruby code without encoding comments.
145
- #ifndef PRISM_ENCODING_EXCLUDE_FULL
146
- PM_ENCODING_BIG5,
147
- PM_ENCODING_BIG5_HKSCS,
148
- PM_ENCODING_BIG5_UAO,
149
- PM_ENCODING_CESU_8,
150
- PM_ENCODING_CP51932,
151
- PM_ENCODING_CP850,
152
- PM_ENCODING_CP852,
153
- PM_ENCODING_CP855,
154
- PM_ENCODING_CP949,
155
- PM_ENCODING_CP950,
156
- PM_ENCODING_CP951,
157
- PM_ENCODING_EMACS_MULE,
158
- PM_ENCODING_EUC_JP_MS,
159
- PM_ENCODING_EUC_JIS_2004,
160
- PM_ENCODING_EUC_KR,
161
- PM_ENCODING_EUC_TW,
162
- PM_ENCODING_GB12345,
163
- PM_ENCODING_GB18030,
164
- PM_ENCODING_GB1988,
165
- PM_ENCODING_GB2312,
166
- PM_ENCODING_GBK,
167
- PM_ENCODING_IBM437,
168
- PM_ENCODING_IBM720,
169
- PM_ENCODING_IBM737,
170
- PM_ENCODING_IBM775,
171
- PM_ENCODING_IBM852,
172
- PM_ENCODING_IBM855,
173
- PM_ENCODING_IBM857,
174
- PM_ENCODING_IBM860,
175
- PM_ENCODING_IBM861,
176
- PM_ENCODING_IBM862,
177
- PM_ENCODING_IBM863,
178
- PM_ENCODING_IBM864,
179
- PM_ENCODING_IBM865,
180
- PM_ENCODING_IBM866,
181
- PM_ENCODING_IBM869,
182
- PM_ENCODING_ISO_8859_1,
183
- PM_ENCODING_ISO_8859_2,
184
- PM_ENCODING_ISO_8859_3,
185
- PM_ENCODING_ISO_8859_4,
186
- PM_ENCODING_ISO_8859_5,
187
- PM_ENCODING_ISO_8859_6,
188
- PM_ENCODING_ISO_8859_7,
189
- PM_ENCODING_ISO_8859_8,
190
- PM_ENCODING_ISO_8859_9,
191
- PM_ENCODING_ISO_8859_10,
192
- PM_ENCODING_ISO_8859_11,
193
- PM_ENCODING_ISO_8859_13,
194
- PM_ENCODING_ISO_8859_14,
195
- PM_ENCODING_ISO_8859_15,
196
- PM_ENCODING_ISO_8859_16,
197
- PM_ENCODING_KOI8_R,
198
- PM_ENCODING_KOI8_U,
199
- PM_ENCODING_MAC_CENT_EURO,
200
- PM_ENCODING_MAC_CROATIAN,
201
- PM_ENCODING_MAC_CYRILLIC,
202
- PM_ENCODING_MAC_GREEK,
203
- PM_ENCODING_MAC_ICELAND,
204
- PM_ENCODING_MAC_JAPANESE,
205
- PM_ENCODING_MAC_ROMAN,
206
- PM_ENCODING_MAC_ROMANIA,
207
- PM_ENCODING_MAC_THAI,
208
- PM_ENCODING_MAC_TURKISH,
209
- PM_ENCODING_MAC_UKRAINE,
210
- PM_ENCODING_SHIFT_JIS,
211
- PM_ENCODING_SJIS_DOCOMO,
212
- PM_ENCODING_SJIS_KDDI,
213
- PM_ENCODING_SJIS_SOFTBANK,
214
- PM_ENCODING_STATELESS_ISO_2022_JP,
215
- PM_ENCODING_STATELESS_ISO_2022_JP_KDDI,
216
- PM_ENCODING_TIS_620,
217
- PM_ENCODING_UTF8_MAC,
218
- PM_ENCODING_UTF8_DOCOMO,
219
- PM_ENCODING_UTF8_KDDI,
220
- PM_ENCODING_UTF8_SOFTBANK,
221
- PM_ENCODING_WINDOWS_1250,
222
- PM_ENCODING_WINDOWS_1251,
223
- PM_ENCODING_WINDOWS_1252,
224
- PM_ENCODING_WINDOWS_1253,
225
- PM_ENCODING_WINDOWS_1254,
226
- PM_ENCODING_WINDOWS_1255,
227
- PM_ENCODING_WINDOWS_1256,
228
- PM_ENCODING_WINDOWS_1257,
229
- PM_ENCODING_WINDOWS_1258,
230
- PM_ENCODING_WINDOWS_874,
231
- #endif
232
-
233
- PM_ENCODING_MAXIMUM
234
- } pm_encoding_type_t;
235
-
236
- /**
237
- * This is the table of all of the encodings that prism supports.
238
- */
239
- extern const pm_encoding_t pm_encodings[PM_ENCODING_MAXIMUM];
240
-
241
- /**
242
- * This is the default UTF-8 encoding. We need a reference to it to quickly
243
- * create parsers.
244
- */
245
- #define PM_ENCODING_UTF_8_ENTRY (&pm_encodings[PM_ENCODING_UTF_8])
246
-
247
- /**
248
- * This is the US-ASCII encoding. We need a reference to it to be able to
249
- * compare against it when a string is being created because it could possibly
250
- * need to fall back to ASCII-8BIT.
251
- */
252
- #define PM_ENCODING_US_ASCII_ENTRY (&pm_encodings[PM_ENCODING_US_ASCII])
253
-
254
- /**
255
- * This is the ASCII-8BIT encoding. We need a reference to it so that pm_strpbrk
256
- * can compare against it because invalid multibyte characters are not a thing
257
- * in this encoding. It is also needed for handling Regexp encoding flags.
258
- */
259
- #define PM_ENCODING_ASCII_8BIT_ENTRY (&pm_encodings[PM_ENCODING_ASCII_8BIT])
260
-
261
- /**
262
- * This is the EUC-JP encoding. We need a reference to it to quickly process
263
- * regular expression modifiers.
264
- */
265
- #define PM_ENCODING_EUC_JP_ENTRY (&pm_encodings[PM_ENCODING_EUC_JP])
266
-
267
- /**
268
- * This is the Windows-31J encoding. We need a reference to it to quickly
269
- * process regular expression modifiers.
270
- */
271
- #define PM_ENCODING_WINDOWS_31J_ENTRY (&pm_encodings[PM_ENCODING_WINDOWS_31J])
272
-
273
- /**
274
- * Parse the given name of an encoding and return a pointer to the corresponding
275
- * encoding struct if one can be found, otherwise return NULL.
276
- *
277
- * @param start A pointer to the first byte of the name.
278
- * @param end A pointer to the last byte of the name.
279
- * @returns A pointer to the encoding struct if one is found, otherwise NULL.
280
- */
281
- const pm_encoding_t * pm_encoding_find(const uint8_t *start, const uint8_t *end);
282
-
283
- #endif