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

Commitaa6970e

Browse files
committed
Fix some portability problems (get it to compile, at least, on HP's cc)
1 parent1e27791 commitaa6970e

File tree

1 file changed

+8
-4
lines changed
  • contrib/fulltextindex

1 file changed

+8
-4
lines changed

‎contrib/fulltextindex/fti.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,17 @@ static bool is_stopword(char *);
9595
staticboolnew_tuple= false;
9696

9797

98+
#ifdefUSE_STOP_WORDS
99+
98100
/* THIS LIST MUST BE IN SORTED ORDER, A BINARY SEARCH IS USED!!!! */
99101
char*StopWords[]= {/* list of words to skip in indexing */
100-
#ifdefSAMPLE_STOP_WORDS
101-
"no"
102+
"no",
102103
"the",
103-
"yes",
104-
#endif
104+
"yes"
105105
};
106106

107+
#endif/* USE_STOP_WORDS */
108+
107109
/* stuff for caching query-plans, stolen from contrib/spi/\*.c */
108110
typedefstruct
109111
{
@@ -385,6 +387,7 @@ breakup(char *string, char *substring)
385387
staticbool
386388
is_stopword(char*text)
387389
{
390+
#ifdefUSE_STOP_WORDS
388391
char**StopLow;/* for list of stop-words */
389392
char**StopHigh;
390393
char**StopMiddle;
@@ -406,6 +409,7 @@ is_stopword(char *text)
406409
else
407410
StopHigh=StopMiddle;
408411
}
412+
#endif/* USE_STOP_WORDS */
409413

410414
return (false);
411415
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp