summaryrefslogtreecommitdiff
path: root/internal/re.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-03 13:26:11 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-03 15:11:18 +0900
commit9f3888d6a3387773c8707b7971ce64c60df33d36 (patch)
treefae4b74a9d319ec899399d84cb9d6bd43c27a480 /internal/re.h
parent37eb5e74395f148782f7d67b5218fb2e66b113d7 (diff)
downloadruby-9f3888d6a3387773c8707b7971ce64c60df33d36.tar.gz
Warn more duplicate literal hash keys
Following non-special_const literals: * T_REGEXP
Diffstat (limited to 'internal/re.h')
-rw-r--r--internal/re.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/re.h b/internal/re.h
index 28fa3fb51c..a19ad934f7 100644
--- a/internal/re.h
+++ b/internal/re.h
@@ -18,6 +18,8 @@ VALUE rb_reg_check_preprocess(VALUE);
long rb_reg_search0(VALUE, VALUE, long, int, int);
VALUE rb_reg_match_p(VALUE re, VALUE str, long pos);
bool rb_reg_start_with_p(VALUE re, VALUE str);
+VALUE rb_reg_hash(VALUE re);
+VALUE rb_reg_equal(VALUE re1, VALUE re2);
void rb_backref_set_string(VALUE string, long pos, long len);
void rb_match_unbusy(VALUE);
int rb_match_count(VALUE match);