File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -3979,7 +3979,7 @@ RTp |MEM_SIZE|malloc_good_size \
3979
3979
#endif
3980
3980
#if defined(PERL_ANY_COW)
3981
3981
: Used in regexec.c
3982
- EXpx |bool |sv_setsv_cow |NN SV **pdsv \
3982
+ EXdpx |bool |sv_setsv_cow |NN SV **pdsv \
3983
3983
|NN SV *ssv
3984
3984
#endif
3985
3985
#if defined(PERL_CORE)
Original file line number Diff line number Diff line change @@ -4887,6 +4887,29 @@ Perl_sv_setsv_mg(pTHX_ SV *const dsv, SV *const ssv)
4887
4887
SvSETMAGIC(dsv);
4888
4888
}
4889
4889
4890
+ /*
4891
+ =for apidoc sv_setsv_cow
4892
+
4893
+ Attempt to make a COW copy of C<ssv> in C<*dsv>.
4894
+
4895
+ C<*pdsv> must be NULL or a valid SV, if NULL it will be filled in with
4896
+ a valid SV on success.
4897
+
4898
+ C<ssv> must be a POK, pPOK SV.
4899
+
4900
+ Returns true if the copy succeeds, false if a CoW copy cannot be made
4901
+ for some reason.
4902
+
4903
+ sv_setsv_cow() is used by the regular expression engine to attempt to
4904
+ make a COW copy of the matched against string for use in reporting
4905
+ C<$1> etc.
4906
+
4907
+ If this fails the regular expression engine instead makes a non-SV
4908
+ copy of a subset of the matched against string.
4909
+
4910
+ =cut
4911
+ */
4912
+
4890
4913
#ifdef PERL_ANY_COW
4891
4914
# define SVt_COW SVt_PV
4892
4915
bool
You can’t perform that action at this time.
0 commit comments