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

Commit08d25d7

Browse files
committed
Add some const decorations
These mainly help understanding the function signatures better.
1 parent3677a0b commit08d25d7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

‎src/backend/utils/adt/like.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@
3131
#defineLIKE_ABORT(-1)
3232

3333

34-
staticintSB_MatchText(char*t,inttlen,char*p,intplen,
34+
staticintSB_MatchText(constchar*t,inttlen,constchar*p,intplen,
3535
pg_locale_tlocale,boollocale_is_c);
3636
statictext*SB_do_like_escape(text*,text*);
3737

38-
staticintMB_MatchText(char*t,inttlen,char*p,intplen,
38+
staticintMB_MatchText(constchar*t,inttlen,constchar*p,intplen,
3939
pg_locale_tlocale,boollocale_is_c);
4040
statictext*MB_do_like_escape(text*,text*);
4141

42-
staticintUTF8_MatchText(char*t,inttlen,char*p,intplen,
42+
staticintUTF8_MatchText(constchar*t,inttlen,constchar*p,intplen,
4343
pg_locale_tlocale,boollocale_is_c);
4444

45-
staticintSB_IMatchText(char*t,inttlen,char*p,intplen,
45+
staticintSB_IMatchText(constchar*t,inttlen,constchar*p,intplen,
4646
pg_locale_tlocale,boollocale_is_c);
4747

48-
staticintGenericMatchText(char*s,intslen,char*p,intplen);
48+
staticintGenericMatchText(constchar*s,intslen,constchar*p,intplen);
4949
staticintGeneric_Text_IC_like(text*str,text*pat,Oidcollation);
5050

5151
/*--------------------
@@ -54,7 +54,7 @@ static intGeneric_Text_IC_like(text *str, text *pat, Oid collation);
5454
*--------------------
5555
*/
5656
staticinlineint
57-
wchareq(char*p1,char*p2)
57+
wchareq(constchar*p1,constchar*p2)
5858
{
5959
intp1_len;
6060

@@ -148,7 +148,7 @@ SB_lower_char(unsigned char c, pg_locale_t locale, bool locale_is_c)
148148

149149
/* Generic for all cases not requiring inline case-folding */
150150
staticinlineint
151-
GenericMatchText(char*s,intslen,char*p,intplen)
151+
GenericMatchText(constchar*s,intslen,constchar*p,intplen)
152152
{
153153
if (pg_database_encoding_max_length()==1)
154154
returnSB_MatchText(s,slen,p,plen,0, true);

‎src/backend/utils/adt/like_match.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
#endif
7777

7878
staticint
79-
MatchText(char*t,inttlen,char*p,intplen,
79+
MatchText(constchar*t,inttlen,constchar*p,intplen,
8080
pg_locale_tlocale,boollocale_is_c)
8181
{
8282
/* Fast path for match-everything pattern */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp