This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Tidy code in pp_study and Perl_screaminstr()
authorNicholas Clark <nick@ccl4.org>
Mon, 27 Jun 2011 19:13:39 +0000 (21:13 +0200)
committerNicholas Clark <nick@ccl4.org>
Fri, 1 Jul 2011 12:05:41 +0000 (14:05 +0200)
commit378b4d0f82057e5af983d31c5b48b7f10f4758b3
tree1a8e6ff11898d44603e82e97cbd2c6da181020d7
parent4185c9197f4aefd1943fba0b9999fc3200fd902c
Tidy code in pp_study and Perl_screaminstr()

In pp_study eliminate the variable pos, which duplicates len. ch should be U8,
not I32.

In Perl_screaminstr(), move the declarations of s and x to their point of use,
convert a for loop to a while loop, and avoid incrementing and decrementing s.
found is a boolean.
pp.c
util.c