This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regexec.c: Use macro instead of Perl_invlist_search()
authorKarl Williamson <khw@cpan.org>
Tue, 17 Jul 2018 19:29:50 +0000 (13:29 -0600)
committerKarl Williamson <khw@cpan.org>
Tue, 17 Jul 2018 19:54:40 +0000 (13:54 -0600)
There's no reason to use the function name, and by using the macro, this
code is insulated against future changes

regexec.c

index ba52ae9..45084be 100644 (file)
--- a/regexec.c
+++ b/regexec.c
@@ -2085,7 +2085,7 @@ STMT_START {
 #ifdef DEBUGGING
 static IV
 S_get_break_val_cp_checked(SV* const invlist, const UV cp_in) {
-  IV cp_out = Perl__invlist_search(invlist, cp_in);
+  IV cp_out = _invlist_search(invlist, cp_in);
   assert(cp_out >= 0);
   return cp_out;
 }