summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/ruby/re.h21
-rw-r--r--re.c2
2 files changed, 22 insertions, 1 deletions
@@ -106,6 +106,27 @@ long rb_reg_adjust_startpos(VALUE re, VALUE str, long pos, int dir);
VALUE rb_reg_quote(VALUE str);
/**
* Runs a regular expression match using function `match`. Performs preparation,
* error handling, and memory cleanup.
*
@@ -1575,7 +1575,7 @@ rb_reg_prepare_enc(VALUE re, VALUE str, int warn)
return enc;
}
-static regex_t *
rb_reg_prepare_re(VALUE re, VALUE str)
{
int r;