This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8.h: remove wrong, no-longer used #define
authorKarl Williamson <public@khwilliamson.com>
Mon, 10 Jan 2011 01:36:10 +0000 (18:36 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 10 Jan 2011 02:29:03 +0000 (19:29 -0700)
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.

utf8.h

diff --git a/utf8.h b/utf8.h
index 6b696a4..80a682d 100644 (file)
--- 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 \