Skip to content

Commit 0ddd4a5

Browse files
author
Father Chrysostomos
committed
Mathomise save_re_context
at Jarkko’s suggestion.
1 parent e32ff4e commit 0ddd4a5

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

mathoms.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,6 +1767,13 @@ Perl_utf8_to_uvuni(pTHX_ const U8 *s, STRLEN *retlen)
17671767
return NATIVE_TO_UNI(valid_utf8_to_uvchr(s, retlen));
17681768
}
17691769

1770+
void
1771+
Perl_save_re_context(pTHX)
1772+
{
1773+
PERL_UNUSED_CONTEXT;
1774+
}
1775+
1776+
17701777
END_EXTERN_C
17711778

17721779
#endif /* NO_MATHOMS */

regcomp.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16785,17 +16785,6 @@ S_re_croak2(pTHX_ bool utf8, const char* pat1,const char* pat2,...)
1678516785
Perl_croak(aTHX_ "%"UTF8f, UTF8fARG(utf8, l1-1, buf));
1678616786
}
1678716787

16788-
/* Get this: We have an empty void function here. But it somehow got into
16789-
the API, so there you go. */
16790-
16791-
#ifndef PERL_IN_XSUB_RE
16792-
void
16793-
Perl_save_re_context(pTHX)
16794-
{
16795-
PERL_UNUSED_CONTEXT;
16796-
}
16797-
#endif
16798-
1679916788
#ifdef DEBUGGING
1680016789
/* Certain characters are output as a sequence with the first being a
1680116790
* backslash. */

0 commit comments

Comments
 (0)