mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 16:39:36 +00:00
pod: mention SvPVCLEAR()
This commit is contained in:
parent
94faf207d5
commit
5b1fede898
@ -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
|
||||
|
||||
@ -74,7 +74,7 @@ of C<pat>:
|
||||
|
||||
items = SP - MARK;
|
||||
MARK++;
|
||||
sv_setpvs(cat, "");
|
||||
SvPVCLEAR(cat);
|
||||
+ patcopy = pat;
|
||||
while (pat < patend) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user