diff options
author | Yusuke Endoh <[email protected]> | 2022-03-24 16:59:11 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2022-03-30 16:50:46 +0900 |
commit | ffc3b37f969a779f93b8f8a5b3591b4ef7de1538 (patch) | |
tree | 25b2d942e8eb2c4a73043773edfcfd6c0d709155 /regexec.c | |
parent | 23530d68cb04aed9c2f59a050523b0193ee2d0c1 (diff) |
re.c: Add Regexp.timeout= and Regexp.timeout
[Feature #17837]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5703
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -422,6 +422,7 @@ onig_region_copy(OnigRegion* to, const OnigRegion* from) (msa).gpos = (arg_gpos);\ (msa).best_len = ONIG_MISMATCH;\ (msa).counter = 0;\ + (msa).end_time = 0;\ } while(0) #else # define MATCH_ARG_INIT(msa, arg_option, arg_region, arg_start, arg_gpos) do {\ @@ -431,6 +432,7 @@ onig_region_copy(OnigRegion* to, const OnigRegion* from) (msa).start = (arg_start);\ (msa).gpos = (arg_gpos);\ (msa).counter = 0;\ + (msa).end_time = 0;\ } while(0) #endif |