summaryrefslogtreecommitdiff
path: root/hv.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-21 16:15:32 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-22 13:31:22 -0800
commit94250aee408add483c1bb5d139839eb6510650b2 (patch)
tree9b9609969b53f0a0eb33755334982fdff16b526c /hv.h
parentb861b87ffee6ad459fd7a2e4ee74d162f6e7ca70 (diff)
downloadperl-94250aee408add483c1bb5d139839eb6510650b2.tar.gz
speed up feature-checking slightly
When seeing whether the cop hint hash contains the given feature, Perl_feature_is_enabled only needs to see whether the hint hash ele- ment exists. It doesn’t need to turn it into a scalar.
Diffstat (limited to 'hv.h')
-rw-r--r--hv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/hv.h b/hv.h
index e45460a8c0..05245d58a7 100644
--- a/hv.h
+++ b/hv.h
@@ -509,6 +509,9 @@ struct refcounted_he;
/* flags for the refcounted_he API */
#define REFCOUNTED_HE_KEY_UTF8 0x00000001
+#ifdef PERL_CORE
+# define REFCOUNTED_HE_EXISTS 0x00000002
+#endif
#ifdef PERL_CORE