summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-11-02 10:06:33 -0600
committerKarl Williamson <khw@cpan.org>2019-11-03 08:59:43 -0700
commit9e75dcb3be6b2f984a7d3b9277fd722c636c06fb (patch)
tree724617d1b170893b15aa4c01f074b9c0cc99ba87 /regcomp.c
parent16536ca15a88b421f73a11f49289c74192a13962 (diff)
downloadperl-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index 19216dcb14..2058499bbb 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -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;
}