1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-21 02:52:47 +03:00

Clean up ts_locale.h/.c. Fix broken and not-consistent-across-platforms

behavior of wchar2char/char2wchar; this should resolve bug #3730.  Avoid
excess computations of pg_mblen in t_isalpha and friends.  Const-ify
APIs where possible.
This commit is contained in:
Tom Lane
2007-11-09 22:37:35 +00:00
parent 83290b678d
commit 654dcfb9e4
5 changed files with 151 additions and 113 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tsearch/ts_utils.c,v 1.4 2007/09/04 02:16:56 tgl Exp $
* $PostgreSQL: pgsql/src/backend/tsearch/ts_utils.c,v 1.5 2007/11/09 22:37:35 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -75,7 +75,7 @@ comparestr(const void *a, const void *b)
* or palloc a new version.
*/
void
readstoplist(const char *fname, StopList *s, char *(*wordop) (char *))
readstoplist(const char *fname, StopList *s, char *(*wordop) (const char *))
{
char **stop = NULL;