summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorPali <pali@cpan.org>2018-02-10 13:40:47 +0100
committerTony Cook <tony@develop-help.com>2019-09-02 10:21:54 +1000
commit423ce6234bb755185e783187da2b1fc06560ce8b (patch)
treeb0c7dd08c8a96ba5e726a013097860060e58d1cb /sv.h
parent7ea7c4bb61d23965a7ad7041fe9c58b5075aac85 (diff)
downloadperl-423ce6234bb755185e783187da2b1fc06560ce8b.tar.gz
Implement sv_utf8_downgrade_nomg
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index 24c728dcd2..53aea18aeb 100644
--- a/sv.h
+++ b/sv.h
@@ -1941,6 +1941,8 @@ Like C<sv_catsv> but doesn't process magic.
#define sv_pvn_force_nomg(sv, lp) sv_pvn_force_flags(sv, lp, 0)
#define sv_utf8_upgrade_flags(sv, flags) sv_utf8_upgrade_flags_grow(sv, flags, 0)
#define sv_utf8_upgrade_nomg(sv) sv_utf8_upgrade_flags(sv, 0)
+#define sv_utf8_downgrade(sv, fail_ok) sv_utf8_downgrade_flags(sv, fail_ok, SV_GMAGIC)
+#define sv_utf8_downgrade_nomg(sv, fail_ok) sv_utf8_downgrade_flags(sv, fail_ok, 0)
#define sv_catpvn_nomg(dsv, sstr, slen) sv_catpvn_flags(dsv, sstr, slen, 0)
#define sv_catpv_nomg(dsv, sstr) sv_catpv_flags(dsv, sstr, 0)
#define sv_setsv(dsv, ssv) \