This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use isGV_with_GP in util.c:fbm_compile
authorFather Chrysostomos <sprout@cpan.org>
Thu, 24 May 2012 21:49:19 +0000 (14:49 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Wed, 30 May 2012 06:55:23 +0000 (23:55 -0700)
commit42bb8ff7b3697c670cb960482274cd0127bbda86
treec3a2a9a023441152be2790a0bea84940ec1ad6af
parenta91cc45146f05ad6f704d28dd889084201c1b74f
Use isGV_with_GP in util.c:fbm_compile

This little statement:

    if (SvSCREAM(sv))
return;

filters out not only studied strings, but also GVs.

Since studied strings are gone, it only filters out GVs now.  Since
fbm_compile coerces its argument, we still want to filter out GVs, so
we use isGV_with_GP to make the intent clear.
util.c