diff options
author | Karl Williamson <khw@cpan.org> | 2019-11-02 10:06:33 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-11-03 08:59:43 -0700 |
commit | 9e75dcb3be6b2f984a7d3b9277fd722c636c06fb (patch) | |
tree | 724617d1b170893b15aa4c01f074b9c0cc99ba87 /regcomp.c | |
parent | 16536ca15a88b421f73a11f49289c74192a13962 (diff) | |
download | perl-9e75dcb3be6b2f984a7d3b9277fd722c636c06fb.tar.gz |
Inversion lists are SvPOK
They always have a string, and making them this allows B to access it.
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -9199,6 +9199,7 @@ S_initialize_invlist_guts(pTHX_ SV* invlist, const Size_t initial_size) invlist_iterfinish(invlist); *get_invlist_previous_index_addr(invlist) = 0; + SvPOK_on(invlist); /* This allows B to extract the PV */ } SV* @@ -9273,6 +9274,7 @@ Perl__new_invlist_C_array(pTHX_ const UV* const list) invlist_iterfinish(invlist); SvREADONLY_on(invlist); + SvPOK_on(invlist); return invlist; } |