diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-12-12 20:26:08 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-12-22 11:11:28 -0700 |
commit | 86f72d56e71cb202c98802b68923dfca4797c3e2 (patch) | |
tree | 10d09c56be441c5ebb8b9ef7515cc7a5c330347a /perl.c | |
parent | 9c0b68885345dfc017948c78b79c222b1468d96c (diff) | |
download | perl-86f72d56e71cb202c98802b68923dfca4797c3e2.tar.gz |
Use array for some inversion lists
This patch creates an array pointing to the inversion lists that cover
the Latin-1 ranges for Posix character classes, and uses it instead of
the individual variables previously referred to.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1002,6 +1002,10 @@ perl_destruct(pTHXx) PL_utf8_idstart = NULL; PL_utf8_idcont = NULL; PL_utf8_foldclosures = NULL; + for (i = 0; i < POSIX_CC_COUNT; i++) { + SvREFCNT_dec(PL_L1Posix_ptrs[i]); + PL_L1Posix_ptrs[i] = NULL; + } if (!specialWARN(PL_compiling.cop_warnings)) PerlMemShared_free(PL_compiling.cop_warnings); |