aboutsummaryrefslogtreecommitdiff
path: root/src/common/unicode_norm.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-04-07 16:32:02 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-04-07 16:32:02 -0400
commit0cb2e51992a7940f9e577a74da250508aedcecf7 (patch)
tree37c39570126c1b3442125d080703cc66c3d25a8e /src/common/unicode_norm.c
parent817cb100136a15796cbd9e70f49d20625108d782 (diff)
downloadpostgresql-0cb2e51992a7940f9e577a74da250508aedcecf7.tar.gz
postgresql-0cb2e51992a7940f9e577a74da250508aedcecf7.zip
Avoid using a C++ keyword in header file
per cpluspluscheck
Diffstat (limited to 'src/common/unicode_norm.c')
-rw-r--r--src/common/unicode_norm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/unicode_norm.c b/src/common/unicode_norm.c
index 9eddadeda2e..740b10d22a1 100644
--- a/src/common/unicode_norm.c
+++ b/src/common/unicode_norm.c
@@ -369,10 +369,10 @@ unicode_normalize_kc(const pg_wchar *input)
* combining class for the second, and the second is not a starter. A
* character is a starter if its combining class is 0.
*/
- if (nextEntry->class == 0x0 || prevEntry->class == 0x0)
+ if (nextEntry->comb_class == 0x0 || prevEntry->comb_class == 0x0)
continue;
- if (prevEntry->class <= nextEntry->class)
+ if (prevEntry->comb_class <= nextEntry->comb_class)
continue;
/* exchange can happen */
@@ -407,7 +407,7 @@ unicode_normalize_kc(const pg_wchar *input)
{
pg_wchar ch = decomp_chars[count];
pg_unicode_decomposition *ch_entry = get_code_entry(ch);
- int ch_class = (ch_entry == NULL) ? 0 : ch_entry->class;
+ int ch_class = (ch_entry == NULL) ? 0 : ch_entry->comb_class;
pg_wchar composite;
if (last_class < ch_class &&