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
b35fdaaa
Commit
b35fdaaa
authored
Feb 10, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up some signedness warnings.
parent
1a7be5cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
contrib/tsearch2/ispell/regis.c
contrib/tsearch2/ispell/regis.c
+8
-6
contrib/tsearch2/ts_locale.c
contrib/tsearch2/ts_locale.c
+2
-2
contrib/tsearch2/ts_locale.h
contrib/tsearch2/ts_locale.h
+2
-2
No files found.
contrib/tsearch2/ispell/regis.c
View file @
b35fdaaa
...
...
@@ -9,14 +9,16 @@
bool
RS_isRegis
(
const
char
*
str
)
{
unsigned
char
*
ptr
=
(
unsigned
char
*
)
str
;
while
(
ptr
&&
*
ptr
)
if
(
t_isalpha
(
ptr
)
||
t_iseq
(
ptr
,
'['
)
||
t_iseq
(
ptr
,
']'
)
||
t_iseq
(
ptr
,
'^'
))
ptr
+=
pg_mblen
(
ptr
);
while
(
str
&&
*
str
)
{
if
(
t_isalpha
(
str
)
||
t_iseq
(
str
,
'['
)
||
t_iseq
(
str
,
']'
)
||
t_iseq
(
str
,
'^'
))
str
+=
pg_mblen
(
str
);
else
return
false
;
}
return
true
;
}
...
...
contrib/tsearch2/ts_locale.c
View file @
b35fdaaa
...
...
@@ -74,7 +74,7 @@ char2wchar(wchar_t *to, const char *from, size_t len)
#endif
/* WIN32 */
int
_t_isalpha
(
char
*
ptr
)
{
_t_isalpha
(
c
onst
c
har
*
ptr
)
{
wchar_t
character
;
char2wchar
(
&
character
,
ptr
,
1
);
...
...
@@ -83,7 +83,7 @@ _t_isalpha( char *ptr ) {
}
int
_t_isprint
(
char
*
ptr
)
{
_t_isprint
(
c
onst
c
har
*
ptr
)
{
wchar_t
character
;
char2wchar
(
&
character
,
ptr
,
1
);
...
...
contrib/tsearch2/ts_locale.h
View file @
b35fdaaa
...
...
@@ -44,9 +44,9 @@ size_t char2wchar(wchar_t *to, const char *from, size_t len);
#define t_isdigit(x) ( pg_mblen(x)==1 && isdigit( TOUCHAR(x) ) )
#define t_isspace(x) ( pg_mblen(x)==1 && isspace( TOUCHAR(x) ) )
int
_t_isalpha
(
char
*
ptr
);
extern
int
_t_isalpha
(
const
char
*
ptr
);
#define t_isalpha(x) ( (pg_mblen(x)==1) ? isalpha( TOUCHAR(x) ) : _t_isalpha(x) )
int
_t_isprint
(
char
*
ptr
);
extern
int
_t_isprint
(
const
char
*
ptr
);
#define t_isprint(x) ( (pg_mblen(x)==1) ? isprint( TOUCHAR(x) ) : _t_isprint(x) )
/*
* t_iseq() should be called only for ASCII symbols
...
...
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