summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-09-28 14:47:05 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-10-01 12:51:56 -0700
commit9bb29b6866a80dfaa3765b219ca04942676a2fae (patch)
treeb7502edc78b227328733cfcbf76488e566301e64 /embed.h
parent158f7f72a5e9f438a9abd9881df85a8999adcb38 (diff)
downloadperl-9bb29b6866a80dfaa3765b219ca04942676a2fae.tar.gz
Remove length magic on scalars
It is not possible to know how to interpret the returned length without accessing the UTF8 flag, which is not reliable until the SV has been stringified, which requires get-magic. So length magic has not made senses since utf8 support was added. I have removed all uses of length magic from the core, so this is now dead code.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index f5aa4b8cc2..7146cec425 100644
--- a/embed.h
+++ b/embed.h
@@ -1120,7 +1120,6 @@
#define magic_getuvar(a,b) Perl_magic_getuvar(aTHX_ a,b)
#define magic_getvec(a,b) Perl_magic_getvec(aTHX_ a,b)
#define magic_killbackrefs(a,b) Perl_magic_killbackrefs(aTHX_ a,b)
-#define magic_len(a,b) Perl_magic_len(aTHX_ a,b)
#define magic_nextpack(a,b,c) Perl_magic_nextpack(aTHX_ a,b,c)
#define magic_regdata_cnt(a,b) Perl_magic_regdata_cnt(aTHX_ a,b)
#define magic_regdatum_get(a,b) Perl_magic_regdatum_get(aTHX_ a,b)