|
|
@ -7,7 +7,7 @@ |
|
|
|
* |
|
|
|
* |
|
|
|
* |
|
|
|
* |
|
|
|
* IDENTIFICATION |
|
|
|
* IDENTIFICATION |
|
|
|
* $PostgreSQL: pgsql/src/backend/tsearch/ts_utils.c,v 1.7 2007/11/15 22:25:16 momjian Exp $ |
|
|
|
* $PostgreSQL: pgsql/src/backend/tsearch/ts_utils.c,v 1.8 2007/12/27 13:02:48 petere Exp $ |
|
|
|
* |
|
|
|
* |
|
|
|
*------------------------------------------------------------------------- |
|
|
|
*------------------------------------------------------------------------- |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -69,7 +69,7 @@ comparestr(const void *a, const void *b) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Reads a stopword file. Each word is run through 'wordop' |
|
|
|
* Reads a stop-word file. Each word is run through 'wordop' |
|
|
|
* function, if given. wordop may either modify the input in-place, |
|
|
|
* function, if given. wordop may either modify the input in-place, |
|
|
|
* or palloc a new version. |
|
|
|
* or palloc a new version. |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -89,7 +89,7 @@ readstoplist(const char *fname, StopList *s, char *(*wordop) (const char *)) |
|
|
|
if ((hin = AllocateFile(filename, "r")) == NULL) |
|
|
|
if ((hin = AllocateFile(filename, "r")) == NULL) |
|
|
|
ereport(ERROR, |
|
|
|
ereport(ERROR, |
|
|
|
(errcode(ERRCODE_CONFIG_FILE_ERROR), |
|
|
|
(errcode(ERRCODE_CONFIG_FILE_ERROR), |
|
|
|
errmsg("could not open stopword file \"%s\": %m", |
|
|
|
errmsg("could not open stop-word file \"%s\": %m", |
|
|
|
filename))); |
|
|
|
filename))); |
|
|
|
|
|
|
|
|
|
|
|
while ((line = t_readline(hin)) != NULL) |
|
|
|
while ((line = t_readline(hin)) != NULL) |
|
|
|