From 684f3160b835198ccd5c275c05ba2e0976054561 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 9 Jan 2011 18:36:10 -0700 Subject: 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. --- utf8.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'utf8.h') 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 \ -- cgit v1.2.1