This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
re_op_compile(): merge the two 'eq old_re' checks
authorDavid Mitchell <davem@iabyn.com>
Sat, 10 Dec 2011 11:09:51 +0000 (11:09 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 13 Jun 2012 12:32:47 +0000 (13:32 +0100)
commit3b16d10d72cd916e1907c4161cc52322040c227a
tree5162ead1d82f8ae862312cc166a3cdbcd1ac1359
parentfdfac248b2fc50e69d93d95b69996b68cebdd0f4
re_op_compile(): merge the two 'eq old_re' checks

The code had two similar checks for whether the new pattern was the same
as the old (and so skip recompilation); the second was for after a longjmp
and upgrade to UTF8. By moving both checks to just after the
"if (jump_ret == 0)" block we should achieve code simplification without
any change in functionality
regcomp.c