Perl_croak(aTHX_ "Can't find string terminator %c%s%c anywhere before EOF",q,s,q);
}
-#define FEATURE_IS_ENABLED(name, namelen) \
+#define FEATURE_IS_ENABLED(name) \
((0 != (PL_hints & HINT_LOCALIZE_HH)) \
- && feature_is_enabled(name, namelen) )
+ && feature_is_enabled((name ""), sizeof(name)-1))
/*
* S_feature_is_enabled
* Check whether the named feature is enabled.
case '~':
if (s[1] == '~'
&& (PL_expect == XOPERATOR || PL_expect == XTERMORDORDOR)
- && FEATURE_IS_ENABLED("~~", 2))
+ && FEATURE_IS_ENABLED("~~"))
{
s += 2;
Eop(OP_SMARTMATCH);
/* When 'use switch' is in effect, continue has a dual
life as a control operator. */
{
- if (!FEATURE_IS_ENABLED("switch", 6))
+ if (!FEATURE_IS_ENABLED("switch"))
PREBLOCK(CONTINUE);
else {
/* We have to disambiguate the two senses of
case 'r':
if (name[2] == 'r')
{ /* err */
- return (FEATURE_IS_ENABLED("err", 3) ? -KEY_err : 0);
+ return (FEATURE_IS_ENABLED("err") ? -KEY_err : 0);
}
goto unknown;
case 'a':
if (name[2] == 'y')
{ /* say */
- return (FEATURE_IS_ENABLED("say", 3) ? -KEY_say : 0);
+ return (FEATURE_IS_ENABLED("say") ? -KEY_say : 0);
}
goto unknown;
if (name[2] == 'e' &&
name[3] == 'n')
{ /* when */
- return (FEATURE_IS_ENABLED("switch", 6) ? KEY_when : 0);
+ return (FEATURE_IS_ENABLED("switch") ? KEY_when : 0);
}
goto unknown;
name[3] == 'a' &&
name[4] == 'k')
{ /* break */
- return (FEATURE_IS_ENABLED("switch", 6) ? -KEY_break : 0);
+ return (FEATURE_IS_ENABLED("switch") ? -KEY_break : 0);
}
goto unknown;
name[3] == 'e' &&
name[4] == 'n')
{ /* given */
- return (FEATURE_IS_ENABLED("switch", 6) ? KEY_given : 0);
+ return (FEATURE_IS_ENABLED("switch") ? KEY_given : 0);
}
goto unknown;
name[5] == 'l' &&
name[6] == 't')
{ /* default */
- return (FEATURE_IS_ENABLED("switch", 6) ? KEY_default : 0);
+ return (FEATURE_IS_ENABLED("switch") ? KEY_default : 0);
}
goto unknown;