summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-01-09 18:36:10 -0700
committerKarl Williamson <public@khwilliamson.com>2011-01-09 19:29:03 -0700
commit684f3160b835198ccd5c275c05ba2e0976054561 (patch)
tree2e5696de95890ffc7e2034034178a5b2231ea875 /utf8.h
parent0e67c69ffa3f5162e422bb6bb1a30e1aef84709b (diff)
downloadperl-684f3160b835198ccd5c275c05ba2e0976054561.tar.gz
utf8.h: remove wrong, no-longer used #define
UNICODE_ILLEGAL only referred to one of 66 code points in the same class. And they aren't illegal except in certain circumstances. New #defines have taken over the use this formerly had, so it is now meaningless.
Diffstat (limited to 'utf8.h')
-rw-r--r--utf8.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/utf8.h b/utf8.h
index 6b696a43e6..80a682d9fc 100644
--- a/utf8.h
+++ b/utf8.h
@@ -372,7 +372,6 @@ Perl's extended UTF-8 means we can have start bytes up to FF.
#define UNICODE_SURROGATE_LAST 0xDFFF
#define UNICODE_REPLACEMENT 0xFFFD
#define UNICODE_BYTE_ORDER_MARK 0xFEFF
-#define UNICODE_ILLEGAL 0xFFFF
/* Though our UTF-8 encoding can go beyond this,
* let's be conservative and do as Unicode says. */
@@ -400,7 +399,6 @@ Perl's extended UTF-8 means we can have start bytes up to FF.
(c) <= UNICODE_SURROGATE_LAST)
#define UNICODE_IS_REPLACEMENT(c) ((c) == UNICODE_REPLACEMENT)
#define UNICODE_IS_BYTE_ORDER_MARK(c) ((c) == UNICODE_BYTE_ORDER_MARK)
-#define UNICODE_IS_ILLEGAL(c) ((c) == UNICODE_ILLEGAL)
#define UNICODE_IS_NONCHAR(c) ((c >= 0xFDD0 && c <= 0xFDEF) \
/* The other noncharacters end in FFFE or FFFF, which \
* the mask below catches both of, but beyond the last \