From 0cb2e51992a7940f9e577a74da250508aedcecf7 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 7 Apr 2017 16:32:02 -0400 Subject: Avoid using a C++ keyword in header file per cpluspluscheck --- src/common/unicode/generate-unicode_norm_table.pl | 2 +- src/common/unicode_norm.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/common') diff --git a/src/common/unicode/generate-unicode_norm_table.pl b/src/common/unicode/generate-unicode_norm_table.pl index 6d6e803b08..41792afd3e 100644 --- a/src/common/unicode/generate-unicode_norm_table.pl +++ b/src/common/unicode/generate-unicode_norm_table.pl @@ -88,7 +88,7 @@ print $OUTPUT <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 && -- cgit v1.2.3