summaryrefslogtreecommitdiff
path: root/pcre_string_utils.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2014-01-02 17:41:28 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2014-01-02 17:41:28 +0000
commit31a692c6bfca25feffa7cc96dab542080b0a9d0c (patch)
treece87e75e8ed049d97d5f667631fcaf7b30e86f70 /pcre_string_utils.c
parent62671ac7455a5eb508bc3f99e6f01585efd08c83 (diff)
downloadpcre-31a692c6bfca25feffa7cc96dab542080b0a9d0c.tar.gz
Revert RAWUCHAR macros, renaming them as UCHAR21 and adding an explanatory
comment. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1431 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_string_utils.c')
-rw-r--r--pcre_string_utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcre_string_utils.c b/pcre_string_utils.c
index 61a9b4b..25eacc8 100644
--- a/pcre_string_utils.c
+++ b/pcre_string_utils.c
@@ -6,7 +6,7 @@
and semantics are as close as possible to those of the Perl 5 language.
Written by Philip Hazel
- Copyright (c) 1997-2013 University of Cambridge
+ Copyright (c) 1997-2014 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -91,8 +91,8 @@ pcre_uchar c2;
while (*str1 != '\0' || *str2 != '\0')
{
- c1 = *str1++;
- c2 = *str2++;
+ c1 = UCHAR21INC(str1);
+ c2 = UCHAR21INC(str2);
if (c1 != c2)
return ((c1 > c2) << 1) - 1;
}
@@ -131,7 +131,7 @@ pcre_uchar c2;
while (*str1 != '\0' || *ustr2 != '\0')
{
- c1 = *str1++;
+ c1 = UCHAR21INC(str1);
c2 = (pcre_uchar)*ustr2++;
if (c1 != c2)
return ((c1 > c2) << 1) - 1;