diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-12-21 16:15:32 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-12-22 13:31:22 -0800 |
commit | 94250aee408add483c1bb5d139839eb6510650b2 (patch) | |
tree | 9b9609969b53f0a0eb33755334982fdff16b526c /hv.h | |
parent | b861b87ffee6ad459fd7a2e4ee74d162f6e7ca70 (diff) | |
download | perl-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |