Consolidate code into a single macro
authorKarl Williamson <khw@cpan.org>
Mon, 15 Oct 2018 02:16:03 +0000 (20:16 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 20 Oct 2018 06:09:55 +0000 (00:09 -0600)
commited68fe11532c7073e43da9e3cb5f6d4409c44c16
tree184f7894fa1d4648b81736dc8546d281f868fe0a
parent0a0ee7b8b14e71974adcfd6457c0d0a5486c28aa
Consolidate code into a single macro

If we die during the code generation phase, we set the regex SV to be
freed during cleanup.

This consolidates many of those instances into one macro, so that it can
be easily changed.  And instead of tieing it to the particular phase, we
clean up whenever that SV actually exists.  This requires initializing
it to NULL.
regcomp.c