datadog-ruby_core_source 3.3.6 → 3.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (374) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.datadog.md +7 -1
  3. data/datadog-ruby_core_source.gemspec +6 -1
  4. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/id.h +7 -0
  5. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/array.h +1 -0
  6. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/basic_operators.h +2 -0
  7. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/bits.h +82 -0
  8. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/class.h +1 -1
  9. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/encoding.h +2 -0
  10. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/error.h +2 -0
  11. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/fixnum.h +1 -0
  12. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/gc.h +23 -28
  13. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/hash.h +1 -0
  14. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/imemo.h +7 -1
  15. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/io.h +4 -1
  16. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/parse.h +14 -2
  17. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/ractor.h +4 -0
  18. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/sanitizers.h +36 -3
  19. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/string.h +34 -18
  20. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/thread.h +29 -0
  21. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/vm.h +3 -3
  22. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/method.h +1 -0
  23. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/ast.h +2146 -453
  24. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/defines.h +44 -7
  25. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/diagnostic.h +24 -6
  26. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/extension.h +2 -2
  27. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/node.h +0 -21
  28. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/options.h +94 -3
  29. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/parser.h +82 -40
  30. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/prism.h +47 -11
  31. data/lib/datadog/ruby_core_source/ruby-3.4.0-rc1/prism/regexp.h +43 -0
  32. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/static_literals.h +3 -2
  33. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_char.h +1 -2
  34. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_constant_pool.h +0 -8
  35. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_integer.h +22 -15
  36. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_newline_list.h +11 -0
  37. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_string.h +28 -12
  38. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/version.h +3 -3
  39. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism_compile.h +23 -12
  40. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ractor_core.h +8 -20
  41. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/rubyparser.h +168 -249
  42. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/shape.h +2 -1
  43. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/thread_pthread.h +26 -25
  44. data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/vm_core.h +62 -48
  45. data/lib/datadog/ruby_core_source/version.rb +1 -1
  46. data/lib/datadog/ruby_core_source.rb +14 -1
  47. metadata +109 -372
  48. data/.github/workflows/publish.yml +0 -18
  49. data/.gitignore +0 -7
  50. data/.idea/vcs.xml +0 -28
  51. data/CHANGELOG.md +0 -284
  52. data/CONTRIBUTING.md +0 -2
  53. data/Gemfile +0 -4
  54. data/Rakefile +0 -73
  55. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/addr2line.h +0 -21
  56. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/constant.h +0 -50
  57. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/debug_counter.h +0 -109
  58. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/dln.h +0 -51
  59. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/encindex.h +0 -69
  60. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/eval_intern.h +0 -334
  61. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/gc.h +0 -116
  62. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/id_table.h +0 -31
  63. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/insns.inc +0 -217
  64. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/insns_info.inc +0 -1570
  65. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/known_errors.inc +0 -746
  66. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/node_name.inc +0 -198
  67. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/opt_sc.inc +0 -1601
  68. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/optinsn.inc +0 -103
  69. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/optunifs.inc +0 -61
  70. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/parse.h +0 -206
  71. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/probes_helper.h +0 -43
  72. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/regenc.h +0 -254
  73. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/regint.h +0 -938
  74. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/regparse.h +0 -370
  75. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/revision.h +0 -1
  76. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/siphash.h +0 -48
  77. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/symbol.h +0 -108
  78. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/thread_win32.h +0 -36
  79. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/timev.h +0 -42
  80. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/transcode_data.h +0 -139
  81. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/version.h +0 -73
  82. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/vm.inc +0 -3667
  83. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/vm_call_iseq_optimized.inc +0 -213
  84. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/vm_exec.h +0 -192
  85. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/vm_insnhelper.h +0 -255
  86. data/lib/datadog/ruby_core_source/ruby-2.5.0-p0/vmtc.inc +0 -214
  87. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/addr2line.h +0 -21
  88. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/constant.h +0 -51
  89. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/debug_counter.h +0 -109
  90. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/dln.h +0 -51
  91. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/encindex.h +0 -69
  92. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/eval_intern.h +0 -334
  93. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/gc.h +0 -116
  94. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/id_table.h +0 -31
  95. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/insns.inc +0 -217
  96. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/insns_info.inc +0 -1570
  97. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/known_errors.inc +0 -746
  98. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/node_name.inc +0 -198
  99. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/opt_sc.inc +0 -1601
  100. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/optinsn.inc +0 -103
  101. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/optunifs.inc +0 -61
  102. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/parse.h +0 -206
  103. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/probes_helper.h +0 -43
  104. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/regenc.h +0 -254
  105. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/regint.h +0 -938
  106. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/regparse.h +0 -370
  107. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/revision.h +0 -1
  108. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/siphash.h +0 -48
  109. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/symbol.h +0 -108
  110. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/thread_win32.h +0 -36
  111. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/timev.h +0 -42
  112. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/transcode_data.h +0 -139
  113. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/version.h +0 -73
  114. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/vm.inc +0 -3667
  115. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/vm_call_iseq_optimized.inc +0 -213
  116. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/vm_exec.h +0 -192
  117. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/vm_insnhelper.h +0 -255
  118. data/lib/datadog/ruby_core_source/ruby-2.5.1-p57/vmtc.inc +0 -214
  119. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/addr2line.h +0 -21
  120. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/constant.h +0 -51
  121. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/debug_counter.h +0 -109
  122. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/dln.h +0 -51
  123. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/encindex.h +0 -69
  124. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/eval_intern.h +0 -334
  125. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/gc.h +0 -116
  126. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/id_table.h +0 -31
  127. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/insns.inc +0 -217
  128. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/insns_info.inc +0 -1570
  129. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/known_errors.inc +0 -746
  130. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/node_name.inc +0 -198
  131. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/opt_sc.inc +0 -1601
  132. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/optinsn.inc +0 -103
  133. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/optunifs.inc +0 -61
  134. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/parse.h +0 -200
  135. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/probes_helper.h +0 -43
  136. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/regenc.h +0 -254
  137. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/regint.h +0 -938
  138. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/regparse.h +0 -370
  139. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/revision.h +0 -1
  140. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/siphash.h +0 -48
  141. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/symbol.h +0 -108
  142. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/thread_win32.h +0 -36
  143. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/timev.h +0 -42
  144. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/transcode_data.h +0 -139
  145. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/version.h +0 -73
  146. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/vm.inc +0 -3667
  147. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/vm_call_iseq_optimized.inc +0 -213
  148. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/vm_exec.h +0 -192
  149. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/vm_insnhelper.h +0 -255
  150. data/lib/datadog/ruby_core_source/ruby-2.5.4-p155/vmtc.inc +0 -214
  151. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/addr2line.h +0 -22
  152. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/builtin.h +0 -117
  153. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/constant.h +0 -53
  154. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/darray.h +0 -246
  155. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/debug_counter.h +0 -423
  156. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/dln.h +0 -32
  157. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/encindex.h +0 -70
  158. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/eval_intern.h +0 -343
  159. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/hrtime.h +0 -227
  160. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/insns.inc +0 -251
  161. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/insns_info.inc +0 -9215
  162. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/known_errors.inc +0 -791
  163. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/node_name.inc +0 -212
  164. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/optinsn.inc +0 -128
  165. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/optunifs.inc +0 -43
  166. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/parse.h +0 -243
  167. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/parser_bits.h +0 -564
  168. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/parser_node.h +0 -32
  169. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/probes_helper.h +0 -42
  170. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/regenc.h +0 -254
  171. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/regint.h +0 -1004
  172. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/regparse.h +0 -371
  173. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/revision.h +0 -5
  174. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/rjit.h +0 -101
  175. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/rjit_c.h +0 -164
  176. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/siphash.h +0 -48
  177. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/symbol.h +0 -118
  178. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/thread_win32.h +0 -58
  179. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/timev.h +0 -58
  180. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/transcode_data.h +0 -138
  181. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/variable.h +0 -39
  182. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/version.h +0 -69
  183. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm.inc +0 -5436
  184. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_call_iseq_optimized.inc +0 -244
  185. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_callinfo.h +0 -619
  186. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_exec.h +0 -199
  187. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_insnhelper.h +0 -261
  188. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vm_sync.h +0 -137
  189. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/vmtc.inc +0 -245
  190. data/lib/datadog/ruby_core_source/ruby-3.3.0-p0/yjit.h +0 -72
  191. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/addr2line.h +0 -22
  192. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/builtin.h +0 -117
  193. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/constant.h +0 -53
  194. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/darray.h +0 -246
  195. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/debug_counter.h +0 -423
  196. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/dln.h +0 -32
  197. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/encindex.h +0 -70
  198. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/eval_intern.h +0 -343
  199. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/hrtime.h +0 -227
  200. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/insns.inc +0 -251
  201. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/insns_info.inc +0 -9215
  202. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/known_errors.inc +0 -791
  203. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/node_name.inc +0 -212
  204. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/optinsn.inc +0 -128
  205. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/optunifs.inc +0 -43
  206. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/parse.h +0 -243
  207. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/parser_bits.h +0 -564
  208. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/parser_node.h +0 -32
  209. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/probes_helper.h +0 -42
  210. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/regenc.h +0 -254
  211. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/regint.h +0 -1006
  212. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/regparse.h +0 -371
  213. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/revision.h +0 -5
  214. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/rjit.h +0 -101
  215. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/rjit_c.h +0 -164
  216. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/siphash.h +0 -48
  217. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/symbol.h +0 -118
  218. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/thread_win32.h +0 -58
  219. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/timev.h +0 -58
  220. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/transcode_data.h +0 -138
  221. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/variable.h +0 -39
  222. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/version.h +0 -69
  223. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm.inc +0 -5436
  224. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_call_iseq_optimized.inc +0 -244
  225. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_callinfo.h +0 -614
  226. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_exec.h +0 -199
  227. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_insnhelper.h +0 -261
  228. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vm_sync.h +0 -137
  229. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/vmtc.inc +0 -245
  230. data/lib/datadog/ruby_core_source/ruby-3.3.5-p100/yjit.h +0 -72
  231. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/addr2line.h +0 -22
  232. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/builtin.h +0 -119
  233. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/constant.h +0 -53
  234. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/darray.h +0 -191
  235. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/debug_counter.h +0 -423
  236. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/dln.h +0 -34
  237. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/encindex.h +0 -70
  238. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/eval_intern.h +0 -324
  239. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/hrtime.h +0 -237
  240. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/insns.inc +0 -259
  241. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/insns_info.inc +0 -9530
  242. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/known_errors.inc +0 -1419
  243. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/node_name.inc +0 -224
  244. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/optinsn.inc +0 -128
  245. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/optunifs.inc +0 -43
  246. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/parse.h +0 -243
  247. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/parser_bits.h +0 -564
  248. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/parser_node.h +0 -32
  249. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h +0 -33
  250. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/prism/util/pm_string_list.h +0 -44
  251. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/probes_helper.h +0 -42
  252. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/regenc.h +0 -254
  253. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/regint.h +0 -1010
  254. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/regparse.h +0 -371
  255. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/revision.h +0 -5
  256. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/rjit.h +0 -101
  257. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/rjit_c.h +0 -165
  258. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/siphash.h +0 -48
  259. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/symbol.h +0 -118
  260. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/thread_win32.h +0 -58
  261. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/timev.h +0 -58
  262. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/transcode_data.h +0 -138
  263. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/variable.h +0 -39
  264. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/version.h +0 -69
  265. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm.inc +0 -5643
  266. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm_call_iseq_optimized.inc +0 -244
  267. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm_callinfo.h +0 -605
  268. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm_exec.h +0 -199
  269. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm_insnhelper.h +0 -272
  270. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vm_sync.h +0 -137
  271. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/vmtc.inc +0 -253
  272. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview1/yjit.h +0 -79
  273. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/addr2line.h +0 -22
  274. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/builtin.h +0 -119
  275. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/constant.h +0 -53
  276. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/darray.h +0 -209
  277. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/debug_counter.h +0 -423
  278. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/dln.h +0 -32
  279. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/encindex.h +0 -70
  280. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/eval_intern.h +0 -324
  281. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/hrtime.h +0 -237
  282. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/insns.inc +0 -265
  283. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/insns_info.inc +0 -9902
  284. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/known_errors.inc +0 -1419
  285. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/node_name.inc +0 -224
  286. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/optinsn.inc +0 -128
  287. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/optunifs.inc +0 -43
  288. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/parse.h +0 -244
  289. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/parser_bits.h +0 -564
  290. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/parser_node.h +0 -32
  291. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/probes_helper.h +0 -42
  292. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/regenc.h +0 -254
  293. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/regint.h +0 -1006
  294. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/regparse.h +0 -371
  295. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/revision.h +0 -5
  296. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/rjit.h +0 -101
  297. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/rjit_c.h +0 -165
  298. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/siphash.h +0 -48
  299. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/symbol.h +0 -123
  300. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/thread_win32.h +0 -58
  301. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/timev.h +0 -58
  302. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/transcode_data.h +0 -138
  303. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/variable.h +0 -39
  304. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/version.h +0 -69
  305. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm.inc +0 -5840
  306. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_call_iseq_optimized.inc +0 -244
  307. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_callinfo.h +0 -627
  308. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_exec.h +0 -199
  309. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_insnhelper.h +0 -277
  310. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vm_sync.h +0 -137
  311. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/vmtc.inc +0 -259
  312. data/lib/datadog/ruby_core_source/ruby-3.4.0-preview2/yjit.h +0 -79
  313. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ccan/build_assert/build_assert.h +0 -0
  314. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ccan/check_type/check_type.h +0 -0
  315. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ccan/container_of/container_of.h +0 -0
  316. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ccan/list/list.h +0 -0
  317. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ccan/str/str.h +0 -0
  318. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/id_table.h +0 -0
  319. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/bignum.h +0 -0
  320. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/cmdlineopt.h +0 -0
  321. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/compar.h +0 -0
  322. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/compile.h +0 -0
  323. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/compilers.h +0 -0
  324. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/complex.h +0 -0
  325. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/cont.h +0 -0
  326. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/dir.h +0 -0
  327. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/enc.h +0 -0
  328. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/enum.h +0 -0
  329. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/enumerator.h +0 -0
  330. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/eval.h +0 -0
  331. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/file.h +0 -0
  332. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/inits.h +0 -0
  333. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/load.h +0 -0
  334. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/loadpath.h +0 -0
  335. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/math.h +0 -0
  336. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/missing.h +0 -0
  337. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/numeric.h +0 -0
  338. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/object.h +0 -0
  339. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/proc.h +0 -0
  340. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/process.h +0 -0
  341. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/random.h +0 -0
  342. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/range.h +0 -0
  343. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/rational.h +0 -0
  344. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/re.h +0 -0
  345. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/ruby_parser.h +0 -0
  346. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/serial.h +0 -0
  347. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/signal.h +0 -0
  348. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/st.h +0 -0
  349. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/static_assert.h +0 -0
  350. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/struct.h +0 -0
  351. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/symbol.h +0 -0
  352. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/time.h +0 -0
  353. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/transcode.h +0 -0
  354. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/util.h +0 -0
  355. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/variable.h +0 -0
  356. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal/warnings.h +0 -0
  357. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/internal.h +0 -0
  358. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/iseq.h +0 -0
  359. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/node.h +0 -0
  360. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/parser_st.h +0 -0
  361. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/parser_value.h +0 -0
  362. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/encoding.h +0 -0
  363. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/pack.h +0 -0
  364. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/prettyprint.h +0 -0
  365. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_buffer.h +0 -0
  366. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_list.h +0 -0
  367. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_memchr.h +0 -0
  368. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_strncasecmp.h +0 -0
  369. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/prism/util/pm_strpbrk.h +0 -0
  370. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ruby_assert.h +0 -0
  371. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/ruby_atomic.h +0 -0
  372. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/thread_none.h +0 -0
  373. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/vm_debug.h +0 -0
  374. /data/lib/datadog/ruby_core_source/{ruby-3.4.0-preview1 → ruby-3.4.0-rc1}/vm_opts.h +0 -0
@@ -1,1006 +0,0 @@
1
- #ifndef ONIGMO_REGINT_H
2
- #define ONIGMO_REGINT_H
3
- /**********************************************************************
4
- regint.h - Onigmo (Oniguruma-mod) (regular expression library)
5
- **********************************************************************/
6
- /*-
7
- * Copyright (c) 2002-2013 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
8
- * Copyright (c) 2011-2016 K.Takata <kentkt AT csc DOT jp>
9
- * All rights reserved.
10
- *
11
- * Redistribution and use in source and binary forms, with or without
12
- * modification, are permitted provided that the following conditions
13
- * are met:
14
- * 1. Redistributions of source code must retain the above copyright
15
- * notice, this list of conditions and the following disclaimer.
16
- * 2. Redistributions in binary form must reproduce the above copyright
17
- * notice, this list of conditions and the following disclaimer in the
18
- * documentation and/or other materials provided with the distribution.
19
- *
20
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
21
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30
- * SUCH DAMAGE.
31
- */
32
-
33
- /* for debug */
34
- /* #define ONIG_DEBUG_PARSE_TREE */
35
- /* #define ONIG_DEBUG_COMPILE */
36
- /* #define ONIG_DEBUG_SEARCH */
37
- /* #define ONIG_DEBUG_MATCH */
38
- /* #define ONIG_DEBUG_MATCH_CACHE */
39
- /* #define ONIG_DEBUG_MEMLEAK */
40
- /* #define ONIG_DONT_OPTIMIZE */
41
-
42
- /* for byte-code statistical data. */
43
- /* #define ONIG_DEBUG_STATISTICS */
44
-
45
- /* enable the match optimization by using a cache. */
46
- #define USE_MATCH_CACHE
47
-
48
- #if defined(ONIG_DEBUG_PARSE_TREE) || defined(ONIG_DEBUG_MATCH) || \
49
- defined(ONIG_DEBUG_SEARCH) || defined(ONIG_DEBUG_COMPILE) || \
50
- defined(ONIG_DEBUG_STATISTICS) || defined(ONIG_DEBUG_MEMLEAK)
51
- # ifndef ONIG_DEBUG
52
- # define ONIG_DEBUG
53
- # endif
54
- #endif
55
-
56
- /* __POWERPC__ added to accommodate Darwin case. */
57
- #ifndef UNALIGNED_WORD_ACCESS
58
- # if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
59
- defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || \
60
- defined(__powerpc64__) || defined(__POWERPC__) || defined(__aarch64__) || \
61
- defined(__mc68020__)
62
- # define UNALIGNED_WORD_ACCESS 1
63
- # else
64
- # define UNALIGNED_WORD_ACCESS 0
65
- # endif
66
- #endif
67
-
68
- #if UNALIGNED_WORD_ACCESS
69
- # define PLATFORM_UNALIGNED_WORD_ACCESS
70
- #endif
71
-
72
- /* config */
73
- /* spec. config */
74
- #define USE_NAMED_GROUP
75
- #define USE_SUBEXP_CALL
76
- #define USE_PERL_SUBEXP_CALL
77
- #define USE_CAPITAL_P_NAMED_GROUP
78
- #define USE_BACKREF_WITH_LEVEL /* \k<name+n>, \k<name-n> */
79
- #define USE_MONOMANIAC_CHECK_CAPTURES_IN_ENDLESS_REPEAT /* /(?:()|())*\2/ */
80
- #define USE_NEWLINE_AT_END_OF_STRING_HAS_EMPTY_LINE /* /\n$/ =~ "\n" */
81
- #define USE_WARNING_REDUNDANT_NESTED_REPEAT_OPERATOR
82
- /* !!! moved to regenc.h. */ /* #define USE_CRNL_AS_LINE_TERMINATOR */
83
- #define USE_NO_INVALID_QUANTIFIER
84
-
85
- /* internal config */
86
- /* #define USE_OP_PUSH_OR_JUMP_EXACT */
87
- #define USE_QTFR_PEEK_NEXT
88
- #define USE_ST_LIBRARY
89
- #define USE_SUNDAY_QUICK_SEARCH
90
-
91
- #define INIT_MATCH_STACK_SIZE 160
92
- #define DEFAULT_MATCH_STACK_LIMIT_SIZE 0 /* unlimited */
93
- #define DEFAULT_PARSE_DEPTH_LIMIT 4096
94
-
95
- #define OPT_EXACT_MAXLEN 24
96
-
97
- /* check config */
98
- #if defined(USE_PERL_SUBEXP_CALL) || defined(USE_CAPITAL_P_NAMED_GROUP)
99
- # if !defined(USE_NAMED_GROUP) || !defined(USE_SUBEXP_CALL)
100
- # error USE_NAMED_GROUP and USE_SUBEXP_CALL must be defined.
101
- # endif
102
- #endif
103
-
104
- #if defined(__GNUC__)
105
- # define ARG_UNUSED __attribute__ ((unused))
106
- #else
107
- # define ARG_UNUSED
108
- #endif
109
-
110
- #if !defined(RUBY) && defined(RUBY_EXPORT)
111
- # define RUBY
112
- #endif
113
- #ifdef RUBY
114
- # ifndef RUBY_DEFINES_H
115
- # include "ruby/ruby.h"
116
- # undef xmalloc
117
- # undef xrealloc
118
- # undef xcalloc
119
- # undef xfree
120
- # endif
121
- #else /* RUBY */
122
- # include "config.h"
123
- # if SIZEOF_LONG_LONG > 0
124
- # define LONG_LONG long long
125
- # endif
126
- #endif /* RUBY */
127
-
128
- #include <stdarg.h>
129
-
130
- /* */
131
- /* escape other system UChar definition */
132
- #ifdef ONIG_ESCAPE_UCHAR_COLLISION
133
- # undef ONIG_ESCAPE_UCHAR_COLLISION
134
- #endif
135
-
136
- #define USE_WORD_BEGIN_END /* "\<": word-begin, "\>": word-end */
137
- #ifdef RUBY
138
- # undef USE_CAPTURE_HISTORY
139
- #else
140
- # define USE_CAPTURE_HISTORY
141
- #endif
142
- #define USE_VARIABLE_META_CHARS
143
- #define USE_FIND_LONGEST_SEARCH_ALL_OF_RANGE
144
- /* #define USE_COMBINATION_EXPLOSION_CHECK */ /* (X*)* */
145
-
146
-
147
- #ifndef xmalloc
148
- # define xmalloc malloc
149
- # define xrealloc realloc
150
- # define xcalloc calloc
151
- # define xfree free
152
- #endif
153
-
154
- #ifdef RUBY
155
-
156
- # define CHECK_INTERRUPT_IN_MATCH_AT do { \
157
- msa->counter++; \
158
- if (msa->counter >= 128) { \
159
- msa->counter = 0; \
160
- if (rb_reg_timeout_p(reg, &msa->end_time)) { \
161
- goto timeout; \
162
- } \
163
- rb_thread_check_ints(); \
164
- } \
165
- } while(0)
166
- # define onig_st_init_table st_init_table
167
- # define onig_st_init_table_with_size st_init_table_with_size
168
- # define onig_st_init_numtable st_init_numtable
169
- # define onig_st_init_numtable_with_size st_init_numtable_with_size
170
- # define onig_st_init_strtable st_init_strtable
171
- # define onig_st_init_strtable_with_size st_init_strtable_with_size
172
- # define onig_st_delete st_delete
173
- # define onig_st_delete_safe st_delete_safe
174
- # define onig_st_insert st_insert
175
- # define onig_st_lookup st_lookup
176
- # define onig_st_foreach st_foreach
177
- # define onig_st_add_direct st_add_direct
178
- # define onig_st_free_table st_free_table
179
- # define onig_st_cleanup_safe st_cleanup_safe
180
- # define onig_st_copy st_copy
181
- # define onig_st_nothing_key_clone st_nothing_key_clone
182
- # define onig_st_nothing_key_free st_nothing_key_free
183
- # define onig_st_is_member st_is_member
184
-
185
- # define USE_UPPER_CASE_TABLE
186
- #else /* RUBY */
187
-
188
- # define CHECK_INTERRUPT_IN_MATCH_AT
189
-
190
- # define st_init_table onig_st_init_table
191
- # define st_init_table_with_size onig_st_init_table_with_size
192
- # define st_init_numtable onig_st_init_numtable
193
- # define st_init_numtable_with_size onig_st_init_numtable_with_size
194
- # define st_init_strtable onig_st_init_strtable
195
- # define st_init_strtable_with_size onig_st_init_strtable_with_size
196
- # define st_delete onig_st_delete
197
- # define st_delete_safe onig_st_delete_safe
198
- # define st_insert onig_st_insert
199
- # define st_lookup onig_st_lookup
200
- # define st_foreach onig_st_foreach
201
- # define st_add_direct onig_st_add_direct
202
- # define st_free_table onig_st_free_table
203
- # define st_cleanup_safe onig_st_cleanup_safe
204
- # define st_copy onig_st_copy
205
- # define st_nothing_key_clone onig_st_nothing_key_clone
206
- # define st_nothing_key_free onig_st_nothing_key_free
207
- /* */
208
- # define onig_st_is_member st_is_member
209
-
210
- #endif /* RUBY */
211
-
212
- #define STATE_CHECK_STRING_THRESHOLD_LEN 7
213
- #define STATE_CHECK_BUFF_MAX_SIZE 0x4000
214
-
215
- #define xmemset memset
216
- #define xmemcpy memcpy
217
- #define xmemmove memmove
218
-
219
- #if ((defined(RUBY_MSVCRT_VERSION) && RUBY_MSVCRT_VERSION >= 90) \
220
- || (!defined(RUBY_MSVCRT_VERSION) && defined(_WIN32))) \
221
- && !defined(__GNUC__)
222
- # define xalloca _alloca
223
- # define xvsnprintf(buf,size,fmt,args) _vsnprintf_s(buf,size,_TRUNCATE,fmt,args)
224
- # define xsnprintf sprintf_s
225
- # define xstrcat(dest,src,size) strcat_s(dest,size,src)
226
- #else
227
- # define xalloca alloca
228
- # define xvsnprintf vsnprintf
229
- # define xsnprintf snprintf
230
- # define xstrcat(dest,src,size) strcat(dest,src)
231
- #endif
232
-
233
- #if defined(ONIG_DEBUG_MEMLEAK) && defined(_MSC_VER)
234
- # define _CRTDBG_MAP_ALLOC
235
- # include <malloc.h>
236
- # include <crtdbg.h>
237
- #endif
238
-
239
- #include <stdlib.h>
240
-
241
- #if defined(HAVE_ALLOCA_H) && (defined(_AIX) || !defined(__GNUC__))
242
- # include <alloca.h>
243
- #endif
244
-
245
- #include <string.h>
246
-
247
- #include <ctype.h>
248
- #ifdef HAVE_SYS_TYPES_H
249
- # include <sys/types.h>
250
- #endif
251
-
252
- #ifdef HAVE_STDINT_H
253
- # include <stdint.h>
254
- #endif
255
-
256
- #ifdef HAVE_INTTYPES_H
257
- # include <inttypes.h>
258
- #endif
259
-
260
- #include <stddef.h>
261
-
262
- #ifdef _WIN32
263
- # include <malloc.h> /* for alloca() */
264
- #endif
265
-
266
- #ifdef ONIG_DEBUG
267
- # include <stdio.h>
268
- #endif
269
-
270
- #ifdef _WIN32
271
- # if defined(_MSC_VER) && (_MSC_VER < 1300)
272
- # ifndef _INTPTR_T_DEFINED
273
- # define _INTPTR_T_DEFINED
274
- typedef int intptr_t;
275
- # endif
276
- # ifndef _UINTPTR_T_DEFINED
277
- # define _UINTPTR_T_DEFINED
278
- typedef unsigned int uintptr_t;
279
- # endif
280
- # endif
281
- #endif /* _WIN32 */
282
-
283
- #ifndef PRIdPTR
284
- # ifdef _WIN64
285
- # define PRIdPTR "I64d"
286
- # define PRIuPTR "I64u"
287
- # define PRIxPTR "I64x"
288
- # else
289
- # define PRIdPTR "ld"
290
- # define PRIuPTR "lu"
291
- # define PRIxPTR "lx"
292
- # endif
293
- #endif
294
-
295
- #ifndef PRIdPTRDIFF
296
- # define PRIdPTRDIFF PRIdPTR
297
- #endif
298
-
299
- #include "regenc.h"
300
-
301
- RUBY_SYMBOL_EXPORT_BEGIN
302
-
303
- #ifdef MIN
304
- # undef MIN
305
- #endif
306
- #ifdef MAX
307
- # undef MAX
308
- #endif
309
- #define MIN(a,b) (((a)>(b))?(b):(a))
310
- #define MAX(a,b) (((a)<(b))?(b):(a))
311
-
312
- #define IS_NULL(p) (((void*)(p)) == (void*)0)
313
- #define IS_NOT_NULL(p) (((void*)(p)) != (void*)0)
314
- #define CHECK_NULL_RETURN(p) if (IS_NULL(p)) return NULL
315
- #define CHECK_NULL_RETURN_MEMERR(p) if (IS_NULL(p)) return ONIGERR_MEMORY
316
- #define NULL_UCHARP ((UChar* )0)
317
-
318
- #define ONIG_LAST_CODE_POINT (~((OnigCodePoint )0))
319
-
320
- #define PLATFORM_GET_INC_ARGUMENTS_ASSERT(val, type) \
321
- ((void)sizeof(char[2 * (sizeof(val) == sizeof(type)) - 1]))
322
-
323
- #ifdef PLATFORM_UNALIGNED_WORD_ACCESS
324
-
325
- # define PLATFORM_GET_INC(val,p,type) do{\
326
- PLATFORM_GET_INC_ARGUMENTS_ASSERT(val, type);\
327
- val = *(type* )p;\
328
- (p) += sizeof(type);\
329
- } while(0)
330
-
331
- #else
332
-
333
- # define PLATFORM_GET_INC(val,p,type) do{\
334
- PLATFORM_GET_INC_ARGUMENTS_ASSERT(val, type);\
335
- type platform_get_value;\
336
- xmemcpy(&platform_get_value, (p), sizeof(type));\
337
- val = platform_get_value;\
338
- (p) += sizeof(type);\
339
- } while(0)
340
-
341
- /* sizeof(OnigCodePoint) */
342
- # define WORD_ALIGNMENT_SIZE SIZEOF_LONG
343
-
344
- # define GET_ALIGNMENT_PAD_SIZE(addr,pad_size) do {\
345
- (pad_size) = WORD_ALIGNMENT_SIZE \
346
- - ((uintptr_t )(addr) % WORD_ALIGNMENT_SIZE);\
347
- if ((pad_size) == WORD_ALIGNMENT_SIZE) (pad_size) = 0;\
348
- } while (0)
349
-
350
- # define ALIGNMENT_RIGHT(addr) do {\
351
- (addr) += (WORD_ALIGNMENT_SIZE - 1);\
352
- (addr) -= ((uintptr_t )(addr) % WORD_ALIGNMENT_SIZE);\
353
- } while (0)
354
-
355
- #endif /* PLATFORM_UNALIGNED_WORD_ACCESS */
356
-
357
- /* stack pop level */
358
- #define STACK_POP_LEVEL_FREE 0
359
- #define STACK_POP_LEVEL_MEM_START 1
360
- #define STACK_POP_LEVEL_ALL 2
361
-
362
- /* optimize flags */
363
- #define ONIG_OPTIMIZE_NONE 0
364
- #define ONIG_OPTIMIZE_EXACT 1 /* Slow Search */
365
- #define ONIG_OPTIMIZE_EXACT_BM 2 /* Boyer Moore Search */
366
- #define ONIG_OPTIMIZE_EXACT_BM_NOT_REV 3 /* BM (applied to a multibyte string) */
367
- #define ONIG_OPTIMIZE_EXACT_IC 4 /* Slow Search (ignore case) */
368
- #define ONIG_OPTIMIZE_MAP 5 /* char map */
369
- #define ONIG_OPTIMIZE_EXACT_BM_IC 6 /* BM (ignore case) */
370
- #define ONIG_OPTIMIZE_EXACT_BM_NOT_REV_IC 7 /* BM (applied to a multibyte string) (ignore case) */
371
-
372
- /* bit status */
373
- typedef unsigned int BitStatusType;
374
-
375
- #define BIT_STATUS_BITS_NUM (sizeof(BitStatusType) * 8)
376
- #define BIT_STATUS_CLEAR(stats) (stats) = 0
377
- #define BIT_STATUS_ON_ALL(stats) (stats) = ~((BitStatusType )0)
378
- #define BIT_STATUS_AT(stats,n) \
379
- ((n) < (int )BIT_STATUS_BITS_NUM ? ((stats) & ((BitStatusType )1 << n)) : ((stats) & 1))
380
-
381
- #define BIT_STATUS_ON_AT(stats,n) do {\
382
- if ((n) < (int )BIT_STATUS_BITS_NUM)\
383
- (stats) |= (1 << (n));\
384
- else\
385
- (stats) |= 1;\
386
- } while (0)
387
-
388
- #define BIT_STATUS_ON_AT_SIMPLE(stats,n) do {\
389
- if ((n) < (int )BIT_STATUS_BITS_NUM)\
390
- (stats) |= (1 << (n));\
391
- } while (0)
392
-
393
-
394
- #define INT_MAX_LIMIT ((1UL << (SIZEOF_INT * 8 - 1)) - 1)
395
- #define LONG_MAX_LIMIT ((1UL << (SIZEOF_LONG * 8 - 1)) - 1)
396
-
397
- #define DIGITVAL(code) ((code) - '0')
398
- #define ODIGITVAL(code) DIGITVAL(code)
399
- #define XDIGITVAL(enc,code) \
400
- (ONIGENC_IS_CODE_DIGIT(enc,code) ? DIGITVAL(code) \
401
- : (ONIGENC_IS_CODE_UPPER(enc,code) ? (code) - 'A' + 10 : (code) - 'a' + 10))
402
-
403
- #define IS_SINGLELINE(option) ((option) & ONIG_OPTION_SINGLELINE)
404
- #define IS_MULTILINE(option) ((option) & ONIG_OPTION_MULTILINE)
405
- #define IS_IGNORECASE(option) ((option) & ONIG_OPTION_IGNORECASE)
406
- #define IS_EXTEND(option) ((option) & ONIG_OPTION_EXTEND)
407
- #define IS_FIND_LONGEST(option) ((option) & ONIG_OPTION_FIND_LONGEST)
408
- #define IS_FIND_NOT_EMPTY(option) ((option) & ONIG_OPTION_FIND_NOT_EMPTY)
409
- #define IS_FIND_CONDITION(option) ((option) & \
410
- (ONIG_OPTION_FIND_LONGEST | ONIG_OPTION_FIND_NOT_EMPTY))
411
- #define IS_NOTBOL(option) ((option) & ONIG_OPTION_NOTBOL)
412
- #define IS_NOTEOL(option) ((option) & ONIG_OPTION_NOTEOL)
413
- #define IS_NOTBOS(option) ((option) & ONIG_OPTION_NOTBOS)
414
- #define IS_NOTEOS(option) ((option) & ONIG_OPTION_NOTEOS)
415
- #define IS_ASCII_RANGE(option) ((option) & ONIG_OPTION_ASCII_RANGE)
416
- #define IS_POSIX_BRACKET_ALL_RANGE(option) ((option) & ONIG_OPTION_POSIX_BRACKET_ALL_RANGE)
417
- #define IS_WORD_BOUND_ALL_RANGE(option) ((option) & ONIG_OPTION_WORD_BOUND_ALL_RANGE)
418
- #define IS_NEWLINE_CRLF(option) ((option) & ONIG_OPTION_NEWLINE_CRLF)
419
-
420
- /* OP_SET_OPTION is required for these options.
421
- #define IS_DYNAMIC_OPTION(option) \
422
- (((option) & (ONIG_OPTION_MULTILINE | ONIG_OPTION_IGNORECASE)) != 0)
423
- */
424
- /* ignore-case and multibyte status are included in compiled code. */
425
- #define IS_DYNAMIC_OPTION(option) 0
426
-
427
- #define DISABLE_CASE_FOLD_MULTI_CHAR(case_fold_flag) \
428
- ((case_fold_flag) & ~INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR)
429
-
430
- #define REPEAT_INFINITE -1
431
- #define IS_REPEAT_INFINITE(n) ((n) == REPEAT_INFINITE)
432
-
433
- /* bitset */
434
- #define BITS_PER_BYTE 8
435
- #define SINGLE_BYTE_SIZE (1 << BITS_PER_BYTE)
436
- #define BITS_IN_ROOM ((int )sizeof(Bits) * BITS_PER_BYTE)
437
- #define BITSET_SIZE (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
438
-
439
- #ifdef PLATFORM_UNALIGNED_WORD_ACCESS
440
- typedef unsigned int Bits;
441
- #else
442
- typedef unsigned char Bits;
443
- #endif
444
- typedef Bits BitSet[BITSET_SIZE];
445
- typedef Bits* BitSetRef;
446
-
447
- #define SIZE_BITSET (int )sizeof(BitSet)
448
-
449
- #define BITSET_CLEAR(bs) do {\
450
- int i;\
451
- for (i = 0; i < BITSET_SIZE; i++) { (bs)[i] = 0; } \
452
- } while (0)
453
-
454
- #define BS_ROOM(bs,pos) (bs)[(int )(pos) / BITS_IN_ROOM]
455
- #define BS_BIT(pos) (1U << ((int )(pos) % BITS_IN_ROOM))
456
-
457
- #define BITSET_AT(bs, pos) (BS_ROOM(bs,pos) & BS_BIT(pos))
458
- #define BITSET_SET_BIT(bs, pos) BS_ROOM(bs,pos) |= BS_BIT(pos)
459
- #define BITSET_CLEAR_BIT(bs, pos) BS_ROOM(bs,pos) &= ~(BS_BIT(pos))
460
- #define BITSET_INVERT_BIT(bs, pos) BS_ROOM(bs,pos) ^= BS_BIT(pos)
461
-
462
- /* bytes buffer */
463
- typedef struct _BBuf {
464
- UChar* p;
465
- unsigned int used;
466
- unsigned int alloc;
467
- } BBuf;
468
-
469
- #define BBUF_INIT(buf,size) onig_bbuf_init((BBuf* )(buf), (size))
470
-
471
- #define BBUF_SIZE_INC(buf,inc) do{\
472
- UChar *tmp;\
473
- (buf)->alloc += (inc);\
474
- tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
475
- if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
476
- (buf)->p = tmp;\
477
- } while (0)
478
-
479
- #define BBUF_EXPAND(buf,low) do{\
480
- UChar *tmp;\
481
- do { (buf)->alloc *= 2; } while ((buf)->alloc < (unsigned int )low);\
482
- tmp = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
483
- if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
484
- (buf)->p = tmp;\
485
- } while (0)
486
-
487
- #define BBUF_ENSURE_SIZE(buf,size) do{\
488
- unsigned int new_alloc = (buf)->alloc;\
489
- while (new_alloc < (unsigned int )(size)) { new_alloc *= 2; }\
490
- if ((buf)->alloc != new_alloc) {\
491
- UChar *tmp;\
492
- tmp = (UChar* )xrealloc((buf)->p, new_alloc);\
493
- if (IS_NULL(tmp)) return(ONIGERR_MEMORY);\
494
- (buf)->p = tmp;\
495
- (buf)->alloc = new_alloc;\
496
- }\
497
- } while (0)
498
-
499
- #define BBUF_WRITE(buf,pos,bytes,n) do{\
500
- int used = (pos) + (int )(n);\
501
- if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
502
- xmemcpy((buf)->p + (pos), (bytes), (n));\
503
- if ((buf)->used < (unsigned int )used) (buf)->used = used;\
504
- } while (0)
505
-
506
- #define BBUF_WRITE1(buf,pos,byte) do{\
507
- int used = (pos) + 1;\
508
- if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
509
- (buf)->p[(pos)] = (UChar )(byte);\
510
- if ((buf)->used < (unsigned int )used) (buf)->used = used;\
511
- } while (0)
512
-
513
- #define BBUF_ADD(buf,bytes,n) BBUF_WRITE((buf),(buf)->used,(bytes),(n))
514
- #define BBUF_ADD1(buf,byte) BBUF_WRITE1((buf),(buf)->used,(byte))
515
- #define BBUF_GET_ADD_ADDRESS(buf) ((buf)->p + (buf)->used)
516
- #define BBUF_GET_OFFSET_POS(buf) ((buf)->used)
517
-
518
- /* from < to */
519
- #define BBUF_MOVE_RIGHT(buf,from,to,n) do {\
520
- if ((unsigned int )((to)+(n)) > (buf)->alloc) BBUF_EXPAND((buf),(to) + (n));\
521
- xmemmove((buf)->p + (to), (buf)->p + (from), (n));\
522
- if ((unsigned int )((to)+(n)) > (buf)->used) (buf)->used = (to) + (n);\
523
- } while (0)
524
-
525
- /* from > to */
526
- #define BBUF_MOVE_LEFT(buf,from,to,n) do {\
527
- xmemmove((buf)->p + (to), (buf)->p + (from), (n));\
528
- } while (0)
529
-
530
- /* from > to */
531
- #define BBUF_MOVE_LEFT_REDUCE(buf,from,to) do {\
532
- xmemmove((buf)->p + (to), (buf)->p + (from), (buf)->used - (from));\
533
- (buf)->used -= (from - to);\
534
- } while (0)
535
-
536
- #define BBUF_INSERT(buf,pos,bytes,n) do {\
537
- if (pos >= (buf)->used) {\
538
- BBUF_WRITE(buf,pos,bytes,n);\
539
- }\
540
- else {\
541
- BBUF_MOVE_RIGHT((buf),(pos),(pos) + (n),((buf)->used - (pos)));\
542
- xmemcpy((buf)->p + (pos), (bytes), (n));\
543
- }\
544
- } while (0)
545
-
546
- #define BBUF_GET_BYTE(buf, pos) (buf)->p[(pos)]
547
-
548
-
549
- #define ANCHOR_BEGIN_BUF (1<<0)
550
- #define ANCHOR_BEGIN_LINE (1<<1)
551
- #define ANCHOR_BEGIN_POSITION (1<<2)
552
- #define ANCHOR_END_BUF (1<<3)
553
- #define ANCHOR_SEMI_END_BUF (1<<4)
554
- #define ANCHOR_END_LINE (1<<5)
555
-
556
- #define ANCHOR_WORD_BOUND (1<<6)
557
- #define ANCHOR_NOT_WORD_BOUND (1<<7)
558
- #define ANCHOR_WORD_BEGIN (1<<8)
559
- #define ANCHOR_WORD_END (1<<9)
560
- #define ANCHOR_PREC_READ (1<<10)
561
- #define ANCHOR_PREC_READ_NOT (1<<11)
562
- #define ANCHOR_LOOK_BEHIND (1<<12)
563
- #define ANCHOR_LOOK_BEHIND_NOT (1<<13)
564
-
565
- #define ANCHOR_ANYCHAR_STAR (1<<14) /* ".*" optimize info */
566
- #define ANCHOR_ANYCHAR_STAR_ML (1<<15) /* ".*" optimize info (multi-line) */
567
-
568
- #define ANCHOR_KEEP (1<<16)
569
-
570
- /* operation code */
571
- enum OpCode {
572
- OP_FINISH = 0, /* matching process terminator (no more alternative) */
573
- OP_END = 1, /* pattern code terminator (success end) */
574
-
575
- OP_EXACT1 = 2, /* single byte, N = 1 */
576
- OP_EXACT2, /* single byte, N = 2 */
577
- OP_EXACT3, /* single byte, N = 3 */
578
- OP_EXACT4, /* single byte, N = 4 */
579
- OP_EXACT5, /* single byte, N = 5 */
580
- OP_EXACTN, /* single byte */
581
- OP_EXACTMB2N1, /* mb-length = 2 N = 1 */
582
- OP_EXACTMB2N2, /* mb-length = 2 N = 2 */
583
- OP_EXACTMB2N3, /* mb-length = 2 N = 3 */
584
- OP_EXACTMB2N, /* mb-length = 2 */
585
- OP_EXACTMB3N, /* mb-length = 3 */
586
- OP_EXACTMBN, /* other length */
587
-
588
- OP_EXACT1_IC, /* single byte, N = 1, ignore case */
589
- OP_EXACTN_IC, /* single byte, ignore case */
590
-
591
- OP_CCLASS,
592
- OP_CCLASS_MB,
593
- OP_CCLASS_MIX,
594
- OP_CCLASS_NOT,
595
- OP_CCLASS_MB_NOT,
596
- OP_CCLASS_MIX_NOT,
597
-
598
- OP_ANYCHAR, /* "." */
599
- OP_ANYCHAR_ML, /* "." multi-line */
600
- OP_ANYCHAR_STAR, /* ".*" */
601
- OP_ANYCHAR_ML_STAR, /* ".*" multi-line */
602
- OP_ANYCHAR_STAR_PEEK_NEXT,
603
- OP_ANYCHAR_ML_STAR_PEEK_NEXT,
604
-
605
- OP_WORD,
606
- OP_NOT_WORD,
607
- OP_WORD_BOUND,
608
- OP_NOT_WORD_BOUND,
609
- OP_WORD_BEGIN,
610
- OP_WORD_END,
611
-
612
- OP_ASCII_WORD,
613
- OP_NOT_ASCII_WORD,
614
- OP_ASCII_WORD_BOUND,
615
- OP_NOT_ASCII_WORD_BOUND,
616
- OP_ASCII_WORD_BEGIN,
617
- OP_ASCII_WORD_END,
618
-
619
- OP_BEGIN_BUF,
620
- OP_END_BUF,
621
- OP_BEGIN_LINE,
622
- OP_END_LINE,
623
- OP_SEMI_END_BUF,
624
- OP_BEGIN_POSITION,
625
-
626
- OP_BACKREF1,
627
- OP_BACKREF2,
628
- OP_BACKREFN,
629
- OP_BACKREFN_IC,
630
- OP_BACKREF_MULTI,
631
- OP_BACKREF_MULTI_IC,
632
- OP_BACKREF_WITH_LEVEL, /* \k<xxx+n>, \k<xxx-n> */
633
-
634
- OP_MEMORY_START,
635
- OP_MEMORY_START_PUSH, /* push back-tracker to stack */
636
- OP_MEMORY_END_PUSH, /* push back-tracker to stack */
637
- OP_MEMORY_END_PUSH_REC, /* push back-tracker to stack */
638
- OP_MEMORY_END,
639
- OP_MEMORY_END_REC, /* push marker to stack */
640
-
641
- OP_KEEP,
642
-
643
- OP_FAIL, /* pop stack and move */
644
- OP_JUMP,
645
- OP_PUSH,
646
- OP_POP,
647
- OP_PUSH_OR_JUMP_EXACT1, /* if match exact then push, else jump. */
648
- OP_PUSH_IF_PEEK_NEXT, /* if match exact then push, else none. */
649
- OP_REPEAT, /* {n,m} */
650
- OP_REPEAT_NG, /* {n,m}? (non greedy) */
651
- OP_REPEAT_INC,
652
- OP_REPEAT_INC_NG, /* non greedy */
653
- OP_REPEAT_INC_SG, /* search and get in stack */
654
- OP_REPEAT_INC_NG_SG, /* search and get in stack (non greedy) */
655
- OP_NULL_CHECK_START, /* null loop checker start */
656
- OP_NULL_CHECK_END, /* null loop checker end */
657
- OP_NULL_CHECK_END_MEMST, /* null loop checker end (with capture status) */
658
- OP_NULL_CHECK_END_MEMST_PUSH, /* with capture status and push check-end */
659
-
660
- OP_PUSH_POS, /* (?=...) start */
661
- OP_POP_POS, /* (?=...) end */
662
- OP_PUSH_POS_NOT, /* (?!...) start */
663
- OP_FAIL_POS, /* (?!...) end */
664
- OP_PUSH_STOP_BT, /* (?>...) start */
665
- OP_POP_STOP_BT, /* (?>...) end */
666
- OP_LOOK_BEHIND, /* (?<=...) start (no needs end opcode) */
667
- OP_PUSH_LOOK_BEHIND_NOT, /* (?<!...) start */
668
- OP_FAIL_LOOK_BEHIND_NOT, /* (?<!...) end */
669
- OP_PUSH_ABSENT_POS, /* (?~...) start */
670
- OP_ABSENT, /* (?~...) start of inner loop */
671
- OP_ABSENT_END, /* (?~...) end */
672
-
673
- OP_CALL, /* \g<name> */
674
- OP_RETURN,
675
-
676
- OP_CONDITION,
677
-
678
- OP_STATE_CHECK_PUSH, /* combination explosion check and push */
679
- OP_STATE_CHECK_PUSH_OR_JUMP, /* check ok -> push, else jump */
680
- OP_STATE_CHECK, /* check only */
681
- OP_STATE_CHECK_ANYCHAR_STAR,
682
- OP_STATE_CHECK_ANYCHAR_ML_STAR,
683
-
684
- /* no need: IS_DYNAMIC_OPTION() == 0 */
685
- OP_SET_OPTION_PUSH, /* set option and push recover option */
686
- OP_SET_OPTION /* set option */
687
- };
688
-
689
- typedef int RelAddrType;
690
- typedef int AbsAddrType;
691
- typedef int LengthType;
692
- typedef int RepeatNumType;
693
- typedef short int MemNumType;
694
- typedef short int StateCheckNumType;
695
- typedef void* PointerType;
696
-
697
- #define SIZE_OPCODE 1
698
- #define SIZE_RELADDR (int )sizeof(RelAddrType)
699
- #define SIZE_ABSADDR (int )sizeof(AbsAddrType)
700
- #define SIZE_LENGTH (int )sizeof(LengthType)
701
- #define SIZE_MEMNUM (int )sizeof(MemNumType)
702
- #define SIZE_STATE_CHECK_NUM (int )sizeof(StateCheckNumType)
703
- #define SIZE_REPEATNUM (int )sizeof(RepeatNumType)
704
- #define SIZE_OPTION (int )sizeof(OnigOptionType)
705
- #define SIZE_CODE_POINT (int )sizeof(OnigCodePoint)
706
- #define SIZE_POINTER (int )sizeof(PointerType)
707
-
708
-
709
- #define GET_RELADDR_INC(addr,p) PLATFORM_GET_INC(addr, p, RelAddrType)
710
- #define GET_ABSADDR_INC(addr,p) PLATFORM_GET_INC(addr, p, AbsAddrType)
711
- #define GET_LENGTH_INC(len,p) PLATFORM_GET_INC(len, p, LengthType)
712
- #define GET_MEMNUM_INC(num,p) PLATFORM_GET_INC(num, p, MemNumType)
713
- #define GET_REPEATNUM_INC(num,p) PLATFORM_GET_INC(num, p, RepeatNumType)
714
- #define GET_OPTION_INC(option,p) PLATFORM_GET_INC(option, p, OnigOptionType)
715
- #define GET_POINTER_INC(ptr,p) PLATFORM_GET_INC(ptr, p, PointerType)
716
- #define GET_STATE_CHECK_NUM_INC(num,p) PLATFORM_GET_INC(num, p, StateCheckNumType)
717
-
718
- /* code point's address must be aligned address. */
719
- #define GET_CODE_POINT(code,p) code = *((OnigCodePoint* )(p))
720
- #define GET_BYTE_INC(byte,p) do{\
721
- byte = *(p);\
722
- (p)++;\
723
- } while(0)
724
-
725
-
726
- /* op-code + arg size */
727
- #define SIZE_OP_ANYCHAR_STAR SIZE_OPCODE
728
- #define SIZE_OP_ANYCHAR_STAR_PEEK_NEXT (SIZE_OPCODE + 1)
729
- #define SIZE_OP_JUMP (SIZE_OPCODE + SIZE_RELADDR)
730
- #define SIZE_OP_PUSH (SIZE_OPCODE + SIZE_RELADDR)
731
- #define SIZE_OP_POP SIZE_OPCODE
732
- #define SIZE_OP_PUSH_OR_JUMP_EXACT1 (SIZE_OPCODE + SIZE_RELADDR + 1)
733
- #define SIZE_OP_PUSH_IF_PEEK_NEXT (SIZE_OPCODE + SIZE_RELADDR + 1)
734
- #define SIZE_OP_REPEAT_INC (SIZE_OPCODE + SIZE_MEMNUM)
735
- #define SIZE_OP_REPEAT_INC_NG (SIZE_OPCODE + SIZE_MEMNUM)
736
- #define SIZE_OP_PUSH_POS SIZE_OPCODE
737
- #define SIZE_OP_PUSH_POS_NOT (SIZE_OPCODE + SIZE_RELADDR)
738
- #define SIZE_OP_POP_POS SIZE_OPCODE
739
- #define SIZE_OP_FAIL_POS SIZE_OPCODE
740
- #define SIZE_OP_SET_OPTION (SIZE_OPCODE + SIZE_OPTION)
741
- #define SIZE_OP_SET_OPTION_PUSH (SIZE_OPCODE + SIZE_OPTION)
742
- #define SIZE_OP_FAIL SIZE_OPCODE
743
- #define SIZE_OP_MEMORY_START (SIZE_OPCODE + SIZE_MEMNUM)
744
- #define SIZE_OP_MEMORY_START_PUSH (SIZE_OPCODE + SIZE_MEMNUM)
745
- #define SIZE_OP_MEMORY_END_PUSH (SIZE_OPCODE + SIZE_MEMNUM)
746
- #define SIZE_OP_MEMORY_END_PUSH_REC (SIZE_OPCODE + SIZE_MEMNUM)
747
- #define SIZE_OP_MEMORY_END (SIZE_OPCODE + SIZE_MEMNUM)
748
- #define SIZE_OP_MEMORY_END_REC (SIZE_OPCODE + SIZE_MEMNUM)
749
- #define SIZE_OP_PUSH_STOP_BT SIZE_OPCODE
750
- #define SIZE_OP_POP_STOP_BT SIZE_OPCODE
751
- #define SIZE_OP_NULL_CHECK_START (SIZE_OPCODE + SIZE_MEMNUM)
752
- #define SIZE_OP_NULL_CHECK_END (SIZE_OPCODE + SIZE_MEMNUM)
753
- #define SIZE_OP_LOOK_BEHIND (SIZE_OPCODE + SIZE_LENGTH)
754
- #define SIZE_OP_PUSH_LOOK_BEHIND_NOT (SIZE_OPCODE + SIZE_RELADDR + SIZE_LENGTH)
755
- #define SIZE_OP_FAIL_LOOK_BEHIND_NOT SIZE_OPCODE
756
- #define SIZE_OP_CALL (SIZE_OPCODE + SIZE_ABSADDR)
757
- #define SIZE_OP_RETURN SIZE_OPCODE
758
- #define SIZE_OP_CONDITION (SIZE_OPCODE + SIZE_MEMNUM + SIZE_RELADDR)
759
- #define SIZE_OP_PUSH_ABSENT_POS SIZE_OPCODE
760
- #define SIZE_OP_ABSENT (SIZE_OPCODE + SIZE_RELADDR)
761
- #define SIZE_OP_ABSENT_END SIZE_OPCODE
762
-
763
- #ifdef USE_COMBINATION_EXPLOSION_CHECK
764
- # define SIZE_OP_STATE_CHECK (SIZE_OPCODE + SIZE_STATE_CHECK_NUM)
765
- # define SIZE_OP_STATE_CHECK_PUSH (SIZE_OPCODE + SIZE_STATE_CHECK_NUM + SIZE_RELADDR)
766
- # define SIZE_OP_STATE_CHECK_PUSH_OR_JUMP (SIZE_OPCODE + SIZE_STATE_CHECK_NUM + SIZE_RELADDR)
767
- # define SIZE_OP_STATE_CHECK_ANYCHAR_STAR (SIZE_OPCODE + SIZE_STATE_CHECK_NUM)
768
- #endif
769
-
770
- #define MC_ESC(syn) (syn)->meta_char_table.esc
771
- #define MC_ANYCHAR(syn) (syn)->meta_char_table.anychar
772
- #define MC_ANYTIME(syn) (syn)->meta_char_table.anytime
773
- #define MC_ZERO_OR_ONE_TIME(syn) (syn)->meta_char_table.zero_or_one_time
774
- #define MC_ONE_OR_MORE_TIME(syn) (syn)->meta_char_table.one_or_more_time
775
- #define MC_ANYCHAR_ANYTIME(syn) (syn)->meta_char_table.anychar_anytime
776
-
777
- #define IS_MC_ESC_CODE(code, syn) \
778
- ((code) == MC_ESC(syn) && \
779
- !IS_SYNTAX_OP2((syn), ONIG_SYN_OP2_INEFFECTIVE_ESCAPE))
780
-
781
-
782
- #define SYN_POSIX_COMMON_OP \
783
- ( ONIG_SYN_OP_DOT_ANYCHAR | ONIG_SYN_OP_POSIX_BRACKET | \
784
- ONIG_SYN_OP_DECIMAL_BACKREF | \
785
- ONIG_SYN_OP_BRACKET_CC | ONIG_SYN_OP_ASTERISK_ZERO_INF | \
786
- ONIG_SYN_OP_LINE_ANCHOR | \
787
- ONIG_SYN_OP_ESC_CONTROL_CHARS )
788
-
789
- #define SYN_GNU_REGEX_OP \
790
- ( ONIG_SYN_OP_DOT_ANYCHAR | ONIG_SYN_OP_BRACKET_CC | \
791
- ONIG_SYN_OP_POSIX_BRACKET | ONIG_SYN_OP_DECIMAL_BACKREF | \
792
- ONIG_SYN_OP_BRACE_INTERVAL | ONIG_SYN_OP_LPAREN_SUBEXP | \
793
- ONIG_SYN_OP_VBAR_ALT | \
794
- ONIG_SYN_OP_ASTERISK_ZERO_INF | ONIG_SYN_OP_PLUS_ONE_INF | \
795
- ONIG_SYN_OP_QMARK_ZERO_ONE | \
796
- ONIG_SYN_OP_ESC_AZ_BUF_ANCHOR | ONIG_SYN_OP_ESC_CAPITAL_G_BEGIN_ANCHOR | \
797
- ONIG_SYN_OP_ESC_W_WORD | \
798
- ONIG_SYN_OP_ESC_B_WORD_BOUND | ONIG_SYN_OP_ESC_LTGT_WORD_BEGIN_END | \
799
- ONIG_SYN_OP_ESC_S_WHITE_SPACE | ONIG_SYN_OP_ESC_D_DIGIT | \
800
- ONIG_SYN_OP_LINE_ANCHOR )
801
-
802
- #define SYN_GNU_REGEX_BV \
803
- ( ONIG_SYN_CONTEXT_INDEP_ANCHORS | ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS | \
804
- ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS | ONIG_SYN_ALLOW_INVALID_INTERVAL | \
805
- ONIG_SYN_BACKSLASH_ESCAPE_IN_CC | ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC )
806
-
807
-
808
- #define NCCLASS_FLAGS(cc) ((cc)->flags)
809
- #define NCCLASS_FLAG_SET(cc,flag) (NCCLASS_FLAGS(cc) |= (flag))
810
- #define NCCLASS_FLAG_CLEAR(cc,flag) (NCCLASS_FLAGS(cc) &= ~(flag))
811
- #define IS_NCCLASS_FLAG_ON(cc,flag) ((NCCLASS_FLAGS(cc) & (flag)) != 0)
812
-
813
- /* cclass node */
814
- #define FLAG_NCCLASS_NOT (1<<0)
815
-
816
- #define NCCLASS_SET_NOT(nd) NCCLASS_FLAG_SET(nd, FLAG_NCCLASS_NOT)
817
- #define NCCLASS_CLEAR_NOT(nd) NCCLASS_FLAG_CLEAR(nd, FLAG_NCCLASS_NOT)
818
- #define IS_NCCLASS_NOT(nd) IS_NCCLASS_FLAG_ON(nd, FLAG_NCCLASS_NOT)
819
-
820
- typedef struct {
821
- int type;
822
- /* struct _Node* next; */
823
- /* unsigned int flags; */
824
- } NodeBase;
825
-
826
- typedef struct {
827
- NodeBase base;
828
- unsigned int flags;
829
- BitSet bs;
830
- BBuf* mbuf; /* multi-byte info or NULL */
831
- } CClassNode;
832
-
833
- typedef intptr_t OnigStackIndex;
834
-
835
- typedef struct _OnigStackType {
836
- unsigned int type;
837
- OnigStackIndex null_check;
838
- union {
839
- struct {
840
- UChar *pcode; /* byte code position */
841
- UChar *pstr; /* string position */
842
- UChar *pstr_prev; /* previous char position of pstr */
843
- #ifdef USE_COMBINATION_EXPLOSION_CHECK
844
- unsigned int state_check;
845
- #endif
846
- UChar *pkeep; /* keep pattern position */
847
- } state;
848
- struct {
849
- int count; /* for OP_REPEAT_INC, OP_REPEAT_INC_NG */
850
- UChar *pcode; /* byte code position (head of repeated target) */
851
- int num; /* repeat id */
852
- } repeat;
853
- struct {
854
- OnigStackIndex si; /* index of stack */
855
- } repeat_inc;
856
- struct {
857
- int num; /* memory num */
858
- UChar *pstr; /* start/end position */
859
- /* Following information is set, if this stack type is MEM-START */
860
- OnigStackIndex start; /* prev. info (for backtrack "(...)*" ) */
861
- OnigStackIndex end; /* prev. info (for backtrack "(...)*" ) */
862
- } mem;
863
- struct {
864
- int num; /* null check id */
865
- UChar *pstr; /* start position */
866
- } null_check;
867
- #ifdef USE_SUBEXP_CALL
868
- struct {
869
- UChar *ret_addr; /* byte code position */
870
- int num; /* null check id */
871
- UChar *pstr; /* string position */
872
- } call_frame;
873
- #endif
874
- struct {
875
- UChar *abs_pstr; /* absent start position */
876
- const UChar *end_pstr; /* end position */
877
- } absent_pos;
878
- #ifdef USE_MATCH_CACHE
879
- struct {
880
- long index; /* index of the match cache buffer */
881
- uint8_t mask; /* bit-mask for the match cache buffer */
882
- } match_cache_point;
883
- #endif
884
- } u;
885
- } OnigStackType;
886
-
887
- #ifdef USE_MATCH_CACHE
888
- typedef struct {
889
- UChar *addr;
890
- long cache_point;
891
- int outer_repeat_mem;
892
- long num_cache_points_at_outer_repeat;
893
- long num_cache_points_in_outer_repeat;
894
- int lookaround_nesting;
895
- UChar *match_addr;
896
- } OnigCacheOpcode;
897
- #endif
898
-
899
- typedef struct {
900
- void* stack_p;
901
- size_t stack_n;
902
- OnigOptionType options;
903
- OnigRegion* region;
904
- const UChar* start; /* search start position */
905
- const UChar* gpos; /* global position (for \G: BEGIN_POSITION) */
906
- #ifdef USE_FIND_LONGEST_SEARCH_ALL_OF_RANGE
907
- OnigPosition best_len; /* for ONIG_OPTION_FIND_LONGEST */
908
- UChar* best_s;
909
- #endif
910
- #ifdef USE_COMBINATION_EXPLOSION_CHECK
911
- void* state_check_buff;
912
- int state_check_buff_size;
913
- #endif
914
- int counter;
915
- /* rb_hrtime_t from hrtime.h */
916
- #ifdef MY_RUBY_BUILD_MAY_TIME_TRAVEL
917
- int128_t end_time;
918
- #else
919
- uint64_t end_time;
920
- #endif
921
- #ifdef USE_MATCH_CACHE
922
- int match_cache_status;
923
- long num_fails;
924
- long num_cache_opcodes;
925
- OnigCacheOpcode* cache_opcodes;
926
- long num_cache_points;
927
- uint8_t* match_cache_buf;
928
- #endif
929
- } OnigMatchArg;
930
-
931
- #define NUM_CACHE_OPCODES_UNINIT 1
932
- #define NUM_CACHE_OPCODES_IMPOSSIBLE -1
933
-
934
- #define MATCH_CACHE_STATUS_UNINIT 1
935
- #define MATCH_CACHE_STATUS_INIT 2
936
- #define MATCH_CACHE_STATUS_DISABLED -1
937
- #define MATCH_CACHE_STATUS_ENABLED 0
938
-
939
- #define IS_CODE_SB_WORD(enc,code) \
940
- (ONIGENC_IS_CODE_ASCII(code) && ONIGENC_IS_CODE_WORD(enc,code))
941
-
942
- typedef struct OnigEndCallListItem {
943
- struct OnigEndCallListItem* next;
944
- void (*func)(void);
945
- } OnigEndCallListItemType;
946
-
947
- extern void onig_add_end_call(void (*func)(void));
948
-
949
-
950
- #ifdef ONIG_DEBUG
951
-
952
- typedef struct {
953
- short int opcode;
954
- const char* name;
955
- short int arg_type;
956
- } OnigOpInfoType;
957
-
958
- extern OnigOpInfoType OnigOpInfo[];
959
-
960
-
961
- extern void onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar* bpend, UChar** nextp, OnigEncoding enc);
962
-
963
- # ifdef ONIG_DEBUG_STATISTICS
964
- extern void onig_statistics_init(void);
965
- extern void onig_print_statistics(FILE* f);
966
- # endif
967
- #endif
968
-
969
- #ifndef PRINTF_ARGS
970
- #define PRINTF_ARGS(func, fmt, vargs) func
971
- #endif
972
-
973
- extern UChar* onig_error_code_to_format(OnigPosition code);
974
- PRINTF_ARGS(extern void onig_vsnprintf_with_pattern(UChar buf[], int bufsize, OnigEncoding enc, UChar* pat, UChar* pat_end, const char *fmt, va_list args), 6, 0);
975
- PRINTF_ARGS(extern void onig_snprintf_with_pattern(UChar buf[], int bufsize, OnigEncoding enc, UChar* pat, UChar* pat_end, const char *fmt, ...), 6, 7);
976
- extern int onig_bbuf_init(BBuf* buf, OnigDistance size);
977
- extern int onig_compile(regex_t* reg, const UChar* pattern, const UChar* pattern_end, OnigErrorInfo* einfo);
978
- #ifdef RUBY
979
- extern int onig_compile_ruby(regex_t* reg, const UChar* pattern, const UChar* pattern_end, OnigErrorInfo* einfo, const char *sourcefile, int sourceline);
980
- #endif
981
- extern void onig_transfer(regex_t* to, regex_t* from);
982
- extern int onig_is_code_in_cc(OnigEncoding enc, OnigCodePoint code, CClassNode* cc);
983
- extern int onig_is_code_in_cc_len(int enclen, OnigCodePoint code, CClassNode* cc);
984
-
985
- /* strend hash */
986
- typedef void hash_table_type;
987
- #ifdef RUBY
988
- # include "ruby/st.h"
989
- #else
990
- # include "st.h"
991
- #endif
992
- typedef st_data_t hash_data_type;
993
-
994
- extern hash_table_type* onig_st_init_strend_table_with_size(st_index_t size);
995
- extern int onig_st_lookup_strend(hash_table_type* table, const UChar* str_key, const UChar* end_key, hash_data_type *value);
996
- extern int onig_st_insert_strend(hash_table_type* table, const UChar* str_key, const UChar* end_key, hash_data_type value);
997
-
998
- #ifdef RUBY
999
- extern size_t onig_memsize(const regex_t *reg);
1000
- extern size_t onig_region_memsize(const struct re_registers *regs);
1001
- bool rb_reg_timeout_p(regex_t *reg, void *end_time);
1002
- #endif
1003
-
1004
- RUBY_SYMBOL_EXPORT_END
1005
-
1006
- #endif /* ONIGMO_REGINT_H */