Skip to content

Commit 76771a3

Browse files
committed
utf8.c: Replace macros by more compact equivalents
There are shortcuts available that cut these 8 names to 2.
1 parent 94caec9 commit 76771a3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

utf8.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,14 +1605,8 @@ Perl__utf8n_to_uvchr_msgs_helper(const U8 *s,
16051605
&& LIKELY(! (possible_problems & UTF8_GOT_OVERFLOW))
16061606
&& ( isUTF8_POSSIBLY_PROBLEMATIC(*adjusted_s0)
16071607
|| UNLIKELY(UTF8_IS_PERL_EXTENDED(s0)))))
1608-
&& ((flags & ( UTF8_DISALLOW_NONCHAR
1609-
|UTF8_DISALLOW_SURROGATE
1610-
|UTF8_DISALLOW_SUPER
1611-
|UTF8_DISALLOW_PERL_EXTENDED
1612-
|UTF8_WARN_NONCHAR
1613-
|UTF8_WARN_SURROGATE
1614-
|UTF8_WARN_SUPER
1615-
|UTF8_WARN_PERL_EXTENDED))))
1608+
&& ((flags & ( UTF8_DISALLOW_ILLEGAL_INTERCHANGE
1609+
|UTF8_WARN_ILLEGAL_INTERCHANGE))))
16161610
{
16171611
/* If there were no malformations, or the only malformation is an
16181612
* overlong, 'uv' is valid */

0 commit comments

Comments
 (0)