This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Use old paradigm in dealing with flags recursively
authorKarl Williamson <public@khwilliamson.com>
Fri, 10 Aug 2012 17:53:20 +0000 (11:53 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sun, 12 Aug 2012 01:32:31 +0000 (19:32 -0600)
commit70ce1368b07e8958e7d4cb38d714ae744eed1bff
tree468c152200077dafb6a0664b28476db147d4d083
parent0ccf8511670a0328f6f0142c36308afb3be61ba2
regcomp.c: Use old paradigm in dealing with flags recursively

In a recursive call to reg(), instead of passing our flags pointer, pass
a new one and upon return or in that result with the existing one.  I
can see why this should be done, as you don't want to lose what you
already have, as reg() will start by resetting it to 0.  I don't know
why one ands it with the known flags, but I'm presuming there is a
reason, and so am copying the paradigm.  I searched the commit messages
and didn't find anything.  No tests failed, and I didn't figure out a
test that would fail.
regcomp.c