Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0cb2e519
Commit
0cb2e519
authored
Apr 07, 2017
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid using a C++ keyword in header file
per cpluspluscheck
parent
817cb100
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
src/common/unicode/generate-unicode_norm_table.pl
src/common/unicode/generate-unicode_norm_table.pl
+1
-1
src/common/unicode_norm.c
src/common/unicode_norm.c
+3
-3
src/include/common/unicode_norm_table.h
src/include/common/unicode_norm_table.h
+1
-1
No files found.
src/common/unicode/generate-unicode_norm_table.pl
View file @
0cb2e519
...
...
@@ -88,7 +88,7 @@ print $OUTPUT <<HEADER;
typedef struct
{
uint32 codepoint; /* Unicode codepoint */
uint8 c
lass;
/* combining class of character */
uint8 c
omb_class;
/* combining class of character */
uint8 dec_size_flags; /* size and flags of decomposition code list */
uint16 dec_index; /* index into UnicodeDecomp_codepoints, or the
* decomposition itself if DECOMP_INLINE */
...
...
src/common/unicode_norm.c
View file @
0cb2e519
...
...
@@ -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
->
c
lass
==
0x0
||
prevEntry
->
class
==
0x0
)
if
(
nextEntry
->
c
omb_class
==
0x0
||
prevEntry
->
comb_
class
==
0x0
)
continue
;
if
(
prevEntry
->
c
lass
<=
nextEntry
->
class
)
if
(
prevEntry
->
c
omb_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
->
c
omb_c
lass
;
pg_wchar
composite
;
if
(
last_class
<
ch_class
&&
...
...
src/include/common/unicode_norm_table.h
View file @
0cb2e519
...
...
@@ -19,7 +19,7 @@
typedef
struct
{
uint32
codepoint
;
/* Unicode codepoint */
uint8
c
lass
;
/* combining class of character */
uint8
c
omb_class
;
/* combining class of character */
uint8
dec_size_flags
;
/* size and flags of decomposition code list */
uint16
dec_index
;
/* index into UnicodeDecomp_codepoints, or the
* decomposition itself if DECOMP_INLINE */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment