This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c4d5dfa
)
Document SvOOK_off
author
Karl Williamson
<khw@cpan.org>
Sat, 18 Jul 2020 14:44:25 +0000
(08:44 -0600)
committer
Karl Williamson
<khw@cpan.org>
Sun, 23 Aug 2020 02:55:35 +0000
(20:55 -0600)
sv.h
patch
|
blob
|
blame
|
history
diff --git
a/sv.h
b/sv.h
index
2538741
..
59ef698
100644
(file)
--- a/
sv.h
+++ b/
sv.h
@@
-961,6
+961,16
@@
Returns the vstring magic, or NULL if none
#define SvOOK(sv) (SvFLAGS(sv) & SVf_OOK)
#define SvOOK_on(sv) (SvFLAGS(sv) |= SVf_OOK)
+
+
+/*
+=for apidoc Am|void|SvOOK_off|SV * sv
+
+Remove any string offset.
+
+=cut
+*/
+
#define SvOOK_off(sv) ((void)(SvOOK(sv) && (sv_backoff(sv),0)))
#define SvFAKE(sv) (SvFLAGS(sv) & SVf_FAKE)