Removed an ifdef for IS_UTF8_CHAR in utf8.c
authorBrian Fraser <fraserbn@gmail.com>
Sat, 7 Sep 2013 03:31:36 +0000 (00:31 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Sat, 21 Sep 2013 11:47:41 +0000 (08:47 -0300)
IS_UTF8_CHAR is defined by utf8.h, so this is always defined.
In fact, later in utf8.c we use it again, this time without the
ifdef.

utf8.c

diff --git a/utf8.c b/utf8.c
index f07e8ec..c8bbaea 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -366,10 +366,8 @@ Perl_is_utf8_char_buf(const U8 *buf, const U8* buf_end)
        len = UTF8SKIP(buf);
     }
 
-#ifdef IS_UTF8_CHAR
     if (IS_UTF8_CHAR_FAST(len))
         return IS_UTF8_CHAR(buf, len) ? len : 0;
-#endif /* #ifdef IS_UTF8_CHAR */
     return is_utf8_char_slow(buf, len);
 }