summaryrefslogtreecommitdiff
path: root/pcre_study.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-03-07 11:02:28 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-03-07 11:02:28 +0000
commita1609fda1aaf8a8499844b5021f7b03ec66e7d43 (patch)
tree03e16816cb2d6382b6cb48c7bdd273b051f21d93 /pcre_study.c
parentf1bf86368f88991a780fe5e0142c2e7b5b019f10 (diff)
downloadpcre-a1609fda1aaf8a8499844b5021f7b03ec66e7d43.tar.gz
Added some additional #ifdef SUPPORT_UTF8 to minimize the code when UTF-8
support is not compiled. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@107 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_study.c')
-rw-r--r--pcre_study.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcre_study.c b/pcre_study.c
index 87f8c6f..b23a3fb 100644
--- a/pcre_study.c
+++ b/pcre_study.c
@@ -394,11 +394,13 @@ do
character with a value > 255. */
case OP_NCLASS:
+#ifdef SUPPORT_UTF8
if (utf8)
{
start_bits[24] |= 0xf0; /* Bits for 0xc4 - 0xc8 */
memset(start_bits+25, 0xff, 7); /* Bits for 0xc9 - 0xff */
}
+#endif
/* Fall through */
case OP_CLASS:
@@ -411,6 +413,7 @@ do
value is > 127. In fact, there are only two possible starting bytes for
characters in the range 128 - 255. */
+#ifdef SUPPORT_UTF8
if (utf8)
{
for (c = 0; c < 16; c++) start_bits[c] |= tcode[c];
@@ -428,6 +431,7 @@ do
/* In non-UTF-8 mode, the two bit maps are completely compatible. */
else
+#endif
{
for (c = 0; c < 32; c++) start_bits[c] |= tcode[c];
}