Skip to content

Commit 549ea06

Browse files
committed
Fix headerscheck warning.
Reported-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/93731.1742310701@sss.pgh.pa.us
1 parent 4078da6 commit 549ea06

File tree

3 files changed

+11
-25
lines changed

3 files changed

+11
-25
lines changed

src/common/unicode/generate-unicode_case_table.pl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -466,20 +466,6 @@ sub get_hash_key
466466

467467
print $OT "\n};\n";
468468

469-
print $OT <<"EOS";
470-
471-
/*
472-
* Map for each case kind.
473-
*/
474-
static const pg_wchar *casekind_map[NCaseKind] =
475-
{
476-
[CaseLower] = case_map_lower,
477-
[CaseTitle] = case_map_title,
478-
[CaseUpper] = case_map_upper,
479-
[CaseFold] = case_map_fold,
480-
};
481-
EOS
482-
483469
my @codepoints = keys %simple;
484470
my $range = make_ranges(\@codepoints, 500);
485471
my @case_map_lines = range_tables($range);

src/common/unicode_case.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ enum CaseMapResult
2727
CASEMAP_SPECIAL,
2828
};
2929

30+
/*
31+
* Map for each case kind.
32+
*/
33+
static const pg_wchar *const casekind_map[NCaseKind] =
34+
{
35+
[CaseLower] = case_map_lower,
36+
[CaseTitle] = case_map_title,
37+
[CaseUpper] = case_map_upper,
38+
[CaseFold] = case_map_fold,
39+
};
40+
3041
static pg_wchar find_case_map(pg_wchar ucs, const pg_wchar *map);
3142
static size_t convert_case(char *dst, size_t dstsize, const char *src, ssize_t srclen,
3243
CaseKind str_casekind, bool full, WordBoundaryNext wbnext,

src/include/common/unicode_case_table.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8592,17 +8592,6 @@ static const uint8 case_map_special[1677] =
85928592

85938593
};
85948594

8595-
/*
8596-
* Map for each case kind.
8597-
*/
8598-
static const pg_wchar *casekind_map[NCaseKind] =
8599-
{
8600-
[CaseLower] = case_map_lower,
8601-
[CaseTitle] = case_map_title,
8602-
[CaseUpper] = case_map_upper,
8603-
[CaseFold] = case_map_fold,
8604-
};
8605-
86068595
/*
86078596
* Used by case_index() to map a codepoint to an index that can be used in any
86088597
* of the following arrays: case_map_lower, case_map_title, case_map_upper,

0 commit comments

Comments
 (0)