Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb35fdaa

Browse files
committed
Clean up some signedness warnings.
1 parent1a7be5c commitb35fdaa

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

‎contrib/tsearch2/ispell/regis.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@
99
bool
1010
RS_isRegis(constchar*str)
1111
{
12-
unsignedchar*ptr= (unsignedchar*)str;
13-
14-
while (ptr&&*ptr)
15-
if (t_isalpha(ptr)||t_iseq(ptr,'[')||t_iseq(ptr,']')||t_iseq(ptr,'^'))
16-
ptr+=pg_mblen(ptr);
12+
while (str&&*str)
13+
{
14+
if (t_isalpha(str)||
15+
t_iseq(str,'[')||
16+
t_iseq(str,']')||
17+
t_iseq(str,'^'))
18+
str+=pg_mblen(str);
1719
else
1820
return false;
19-
21+
}
2022
return true;
2123
}
2224

‎contrib/tsearch2/ts_locale.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ char2wchar(wchar_t *to, const char *from, size_t len)
7474
#endif/* WIN32 */
7575

7676
int
77-
_t_isalpha(char*ptr ) {
77+
_t_isalpha(constchar*ptr ) {
7878
wchar_tcharacter;
7979

8080
char2wchar(&character,ptr,1);
@@ -83,7 +83,7 @@ _t_isalpha( char *ptr ) {
8383
}
8484

8585
int
86-
_t_isprint(char*ptr ) {
86+
_t_isprint(constchar*ptr ) {
8787
wchar_tcharacter;
8888

8989
char2wchar(&character,ptr,1);

‎contrib/tsearch2/ts_locale.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ size_tchar2wchar(wchar_t *to, const char *from, size_t len);
4444

4545
#definet_isdigit(x)( pg_mblen(x)==1 && isdigit( TOUCHAR(x) ) )
4646
#definet_isspace(x)( pg_mblen(x)==1 && isspace( TOUCHAR(x) ) )
47-
int_t_isalpha(char*ptr );
47+
externint_t_isalpha(constchar*ptr );
4848
#definet_isalpha(x)( (pg_mblen(x)==1) ? isalpha( TOUCHAR(x) ) : _t_isalpha(x) )
49-
int_t_isprint(char*ptr );
49+
externint_t_isprint(constchar*ptr );
5050
#definet_isprint(x)( (pg_mblen(x)==1) ? isprint( TOUCHAR(x) ) : _t_isprint(x) )
5151
/*
5252
* t_iseq() should be called only for ASCII symbols

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp