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
08d25d78
Commit
08d25d78
authored
Feb 08, 2019
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some const decorations
These mainly help understanding the function signatures better.
parent
3677a0b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/backend/utils/adt/like.c
src/backend/utils/adt/like.c
+7
-7
src/backend/utils/adt/like_match.c
src/backend/utils/adt/like_match.c
+1
-1
No files found.
src/backend/utils/adt/like.c
View file @
08d25d78
...
...
@@ -31,21 +31,21 @@
#define LIKE_ABORT (-1)
static
int
SB_MatchText
(
c
har
*
t
,
int
tlen
,
char
*
p
,
int
plen
,
static
int
SB_MatchText
(
c
onst
char
*
t
,
int
tlen
,
const
char
*
p
,
int
plen
,
pg_locale_t
locale
,
bool
locale_is_c
);
static
text
*
SB_do_like_escape
(
text
*
,
text
*
);
static
int
MB_MatchText
(
c
har
*
t
,
int
tlen
,
char
*
p
,
int
plen
,
static
int
MB_MatchText
(
c
onst
char
*
t
,
int
tlen
,
const
char
*
p
,
int
plen
,
pg_locale_t
locale
,
bool
locale_is_c
);
static
text
*
MB_do_like_escape
(
text
*
,
text
*
);
static
int
UTF8_MatchText
(
c
har
*
t
,
int
tlen
,
char
*
p
,
int
plen
,
static
int
UTF8_MatchText
(
c
onst
char
*
t
,
int
tlen
,
const
char
*
p
,
int
plen
,
pg_locale_t
locale
,
bool
locale_is_c
);
static
int
SB_IMatchText
(
c
har
*
t
,
int
tlen
,
char
*
p
,
int
plen
,
static
int
SB_IMatchText
(
c
onst
char
*
t
,
int
tlen
,
const
char
*
p
,
int
plen
,
pg_locale_t
locale
,
bool
locale_is_c
);
static
int
GenericMatchText
(
c
har
*
s
,
int
slen
,
char
*
p
,
int
plen
);
static
int
GenericMatchText
(
c
onst
char
*
s
,
int
slen
,
const
char
*
p
,
int
plen
);
static
int
Generic_Text_IC_like
(
text
*
str
,
text
*
pat
,
Oid
collation
);
/*--------------------
...
...
@@ -54,7 +54,7 @@ static int Generic_Text_IC_like(text *str, text *pat, Oid collation);
*--------------------
*/
static
inline
int
wchareq
(
c
har
*
p1
,
char
*
p2
)
wchareq
(
c
onst
char
*
p1
,
const
char
*
p2
)
{
int
p1_len
;
...
...
@@ -148,7 +148,7 @@ SB_lower_char(unsigned char c, pg_locale_t locale, bool locale_is_c)
/* Generic for all cases not requiring inline case-folding */
static
inline
int
GenericMatchText
(
c
har
*
s
,
int
slen
,
char
*
p
,
int
plen
)
GenericMatchText
(
c
onst
char
*
s
,
int
slen
,
const
char
*
p
,
int
plen
)
{
if
(
pg_database_encoding_max_length
()
==
1
)
return
SB_MatchText
(
s
,
slen
,
p
,
plen
,
0
,
true
);
...
...
src/backend/utils/adt/like_match.c
View file @
08d25d78
...
...
@@ -76,7 +76,7 @@
#endif
static
int
MatchText
(
c
har
*
t
,
int
tlen
,
char
*
p
,
int
plen
,
MatchText
(
c
onst
char
*
t
,
int
tlen
,
const
char
*
p
,
int
plen
,
pg_locale_t
locale
,
bool
locale_is_c
)
{
/* Fast path for match-everything pattern */
...
...
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