mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Fix headerscheck warning.
Reported-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/93731.1742310701@sss.pgh.pa.us
This commit is contained in:
@ -466,20 +466,6 @@ foreach my $entry (@{ $map{special} })
|
||||
|
||||
print $OT "\n};\n";
|
||||
|
||||
print $OT <<"EOS";
|
||||
|
||||
/*
|
||||
* Map for each case kind.
|
||||
*/
|
||||
static const pg_wchar *casekind_map[NCaseKind] =
|
||||
{
|
||||
[CaseLower] = case_map_lower,
|
||||
[CaseTitle] = case_map_title,
|
||||
[CaseUpper] = case_map_upper,
|
||||
[CaseFold] = case_map_fold,
|
||||
};
|
||||
EOS
|
||||
|
||||
my @codepoints = keys %simple;
|
||||
my $range = make_ranges(\@codepoints, 500);
|
||||
my @case_map_lines = range_tables($range);
|
||||
|
@ -27,6 +27,17 @@ enum CaseMapResult
|
||||
CASEMAP_SPECIAL,
|
||||
};
|
||||
|
||||
/*
|
||||
* Map for each case kind.
|
||||
*/
|
||||
static const pg_wchar *const casekind_map[NCaseKind] =
|
||||
{
|
||||
[CaseLower] = case_map_lower,
|
||||
[CaseTitle] = case_map_title,
|
||||
[CaseUpper] = case_map_upper,
|
||||
[CaseFold] = case_map_fold,
|
||||
};
|
||||
|
||||
static pg_wchar find_case_map(pg_wchar ucs, const pg_wchar *map);
|
||||
static size_t convert_case(char *dst, size_t dstsize, const char *src, ssize_t srclen,
|
||||
CaseKind str_casekind, bool full, WordBoundaryNext wbnext,
|
||||
|
@ -8592,17 +8592,6 @@ static const uint8 case_map_special[1677] =
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
* Map for each case kind.
|
||||
*/
|
||||
static const pg_wchar *casekind_map[NCaseKind] =
|
||||
{
|
||||
[CaseLower] = case_map_lower,
|
||||
[CaseTitle] = case_map_title,
|
||||
[CaseUpper] = case_map_upper,
|
||||
[CaseFold] = case_map_fold,
|
||||
};
|
||||
|
||||
/*
|
||||
* Used by case_index() to map a codepoint to an index that can be used in any
|
||||
* of the following arrays: case_map_lower, case_map_title, case_map_upper,
|
||||
|
Reference in New Issue
Block a user