summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-10-12 19:12:11 -0600
committerKarl Williamson <khw@cpan.org>2016-10-13 11:18:12 -0600
commitf4caf2b26940946566282dc266c4d4964d38d036 (patch)
treee2a14238f6b8bbe06b3c032c5cb97e64c28082ad /utf8.h
parentf9380377ac81dfbd87f997094a742406eb899a15 (diff)
downloadperl-f4caf2b26940946566282dc266c4d4964d38d036.tar.gz
utf8.h: Simplify macro
This complicated macro boils down to just one bit.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/utf8.h b/utf8.h
index aa1c69da4e..a93519a166 100644
--- a/utf8.h
+++ b/utf8.h
@@ -779,9 +779,7 @@ case any call to string overloading updates the internal UTF-8 encoding flag.
#define UTF8_ALLOW_ANY \
(~( UTF8_DISALLOW_ILLEGAL_INTERCHANGE|UTF8_DISALLOW_ABOVE_31_BIT \
|UTF8_WARN_ILLEGAL_INTERCHANGE|UTF8_WARN_ABOVE_31_BIT))
-#define UTF8_ALLOW_ANYUV \
- (UTF8_ALLOW_EMPTY \
- & ~(UTF8_DISALLOW_ILLEGAL_INTERCHANGE|UTF8_WARN_ILLEGAL_INTERCHANGE))
+#define UTF8_ALLOW_ANYUV UTF8_ALLOW_EMPTY
#define UTF8_ALLOW_DEFAULT (ckWARN(WARN_UTF8) ? 0 : \
UTF8_ALLOW_ANYUV)