diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-06-03 13:26:11 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-06-03 15:11:18 +0900 |
commit | 9f3888d6a3387773c8707b7971ce64c60df33d36 (patch) | |
tree | fae4b74a9d319ec899399d84cb9d6bd43c27a480 /internal/re.h | |
parent | 37eb5e74395f148782f7d67b5218fb2e66b113d7 (diff) |
Warn more duplicate literal hash keys
Following non-special_const literals:
* T_REGEXP
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4548
Diffstat (limited to 'internal/re.h')
-rw-r--r-- | internal/re.h | 2 |
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); |