Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
aa6970ef
Commit
aa6970ef
authored
23 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fix some portability problems (get it to compile, at least, on HP's cc)
parent
1e277911
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/fulltextindex/fti.c
+8
-4
8 additions, 4 deletions
contrib/fulltextindex/fti.c
with
8 additions
and
4 deletions
contrib/fulltextindex/fti.c
+
8
−
4
View file @
aa6970ef
...
...
@@ -95,15 +95,17 @@ static bool is_stopword(char *);
static
bool
new_tuple
=
false
;
#ifdef USE_STOP_WORDS
/* THIS LIST MUST BE IN SORTED ORDER, A BINARY SEARCH IS USED!!!! */
char
*
StopWords
[]
=
{
/* list of words to skip in indexing */
#ifdef SAMPLE_STOP_WORDS
"no"
"no"
,
"the"
,
"yes"
,
#endif
"yes"
};
#endif
/* USE_STOP_WORDS */
/* stuff for caching query-plans, stolen from contrib/spi/\*.c */
typedef
struct
{
...
...
@@ -385,6 +387,7 @@ breakup(char *string, char *substring)
static
bool
is_stopword
(
char
*
text
)
{
#ifdef USE_STOP_WORDS
char
**
StopLow
;
/* for list of stop-words */
char
**
StopHigh
;
char
**
StopMiddle
;
...
...
@@ -406,6 +409,7 @@ is_stopword(char *text)
else
StopHigh
=
StopMiddle
;
}
#endif
/* USE_STOP_WORDS */
return
(
false
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment