55 *
66 * Copyright (c) 1998-2008, PostgreSQL Global Development Group
77 *
8- * $PostgreSQL: pgsql/src/include/tsearch/ts_locale.h,v 1.5 2008/01/01 19:45:59 momjian Exp $
8+ * $PostgreSQL: pgsql/src/include/tsearch/ts_locale.h,v 1.6 2008/06/17 16:09:06 momjian Exp $
99 *
1010 *-------------------------------------------------------------------------
1111 */
2929#include <wctype.h>
3030#endif
3131
32- #if defined(HAVE_WCSTOMBS )&& defined(HAVE_TOWLOWER )
33- #define TS_USE_WIDE
34- #endif
35-
3632#define TOUCHAR (x )(*((const unsigned char *) (x)))
3733
38- #ifdef TS_USE_WIDE
34+ #ifdef USE_WIDE_UPPER_LOWER
3935
4036extern size_t wchar2char (char * to ,const wchar_t * from ,size_t tolen );
4137extern size_t char2wchar (wchar_t * to ,size_t tolen ,const char * from ,size_t fromlen );
@@ -49,7 +45,7 @@ extern intt_isprint(const char *ptr);
4945#define t_iseq (x ,c )(TOUCHAR(x) == (unsigned char) (c))
5046
5147#define COPYCHAR (d ,s )memcpy(d, s, pg_mblen(s))
52- #else /* notTS_USE_WIDE */
48+ #else /* notUSE_WIDE_UPPER_LOWER */
5349
5450#define t_isdigit (x )isdigit(TOUCHAR(x))
5551#define t_isspace (x )isspace(TOUCHAR(x))
@@ -58,7 +54,7 @@ extern intt_isprint(const char *ptr);
5854#define t_iseq (x ,c )(TOUCHAR(x) == (unsigned char) (c))
5955
6056#define COPYCHAR (d ,s )(*((unsigned char *) (d)) = TOUCHAR(s))
61- #endif /*TS_USE_WIDE */
57+ #endif /*USE_WIDE_UPPER_LOWER */
6258
6359extern char * lowerstr (const char * str );
6460extern char * lowerstr_with_len (const char * str ,int len );