pod: mention SvPVCLEAR()

This commit is contained in:
Yves Orton 2016-10-19 10:58:30 +02:00
parent 94faf207d5
commit 5b1fede898
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ sv_insert() or sv_insert_flags().
If you don't need the existing content of the SV, you can avoid some
copying with:
sv_setpvs(sv, "");
SvPVCLEAR(sv);
s = SvGROW(sv, needlen + 1);
/* something that modifies up to needlen bytes at s, but modifies
newlen bytes

View File

@ -74,7 +74,7 @@ of C<pat>:
items = SP - MARK;
MARK++;
sv_setpvs(cat, "");
SvPVCLEAR(cat);
+ patcopy = pat;
while (pat < patend) {