diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-15 18:56:30 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-15 18:56:30 +0000 |
commit | aa6970efff0569801f7d09235fdd193ebaee62d7 (patch) | |
tree | 527ededf8aa6c0d18295661b4b36df68b499ed70 | |
parent | 1e2779117de142a2cd65f990357527a5937db008 (diff) | |
download | postgresql-aa6970efff0569801f7d09235fdd193ebaee62d7.tar.gz postgresql-aa6970efff0569801f7d09235fdd193ebaee62d7.zip |
Fix some portability problems (get it to compile, at least, on HP's cc)
-rw-r--r-- | contrib/fulltextindex/fti.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/fulltextindex/fti.c b/contrib/fulltextindex/fti.c index 10e40fd5dd2..8fd568d7208 100644 --- a/contrib/fulltextindex/fti.c +++ b/contrib/fulltextindex/fti.c @@ -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); } |