summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-10-17 22:32:23 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-10-18 09:56:28 -0700
commit20c88bf7facccf1de86d055e8b89eacf898319a4 (patch)
treef575b4322b85ce40478cde8cceba152f21b040f2 /sv.h
parent656281663fc2dc3f94e352fa9ff54e8bfd41e899 (diff)
downloadperl-20c88bf7facccf1de86d055e8b89eacf898319a4.tar.gz
Apify SV_CATBYTES and SV_CATUTF8
When I added them I was not sure at the time whether they would be stable or whether they might need to be changed. They seem pretty stable now, and they are extremely useful, so make them part of the API.
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/sv.h b/sv.h
index 8c751dcd2b..06fd27a0b0 100644
--- a/sv.h
+++ b/sv.h
@@ -1871,12 +1871,8 @@ Like sv_utf8_upgrade, but doesn't do magic on C<sv>.
/* if (after resolving magic etc), the SV is found to be overloaded,
* don't call the overload magic, just return as-is */
#define SV_SKIP_OVERLOAD 8192
-/* It is not yet clear whether we want this as an API, or what the
- * constants should be named. */
-#ifdef PERL_CORE
-# define SV_CATBYTES 16384
-# define SV_CATUTF8 32768
-#endif
+#define SV_CATBYTES 16384
+#define SV_CATUTF8 32768
/* The core is safe for this COW optimisation. XS code on CPAN may not be.
So only default to doing the COW setup if we're in the core.