5
5
*
6
6
* Copyright (c) 1998-2008, PostgreSQL Global Development Group
7
7
*
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 $
9
9
*
10
10
*-------------------------------------------------------------------------
11
11
*/
29
29
#include <wctype.h>
30
30
#endif
31
31
32
- #if defined(HAVE_WCSTOMBS )&& defined(HAVE_TOWLOWER )
33
- #define TS_USE_WIDE
34
- #endif
35
-
36
32
#define TOUCHAR (x )(*((const unsigned char *) (x)))
37
33
38
- #ifdef TS_USE_WIDE
34
+ #ifdef USE_WIDE_UPPER_LOWER
39
35
40
36
extern size_t wchar2char (char * to ,const wchar_t * from ,size_t tolen );
41
37
extern 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);
49
45
#define t_iseq (x ,c )(TOUCHAR(x) == (unsigned char) (c))
50
46
51
47
#define COPYCHAR (d ,s )memcpy(d, s, pg_mblen(s))
52
- #else /* notTS_USE_WIDE */
48
+ #else /* notUSE_WIDE_UPPER_LOWER */
53
49
54
50
#define t_isdigit (x )isdigit(TOUCHAR(x))
55
51
#define t_isspace (x )isspace(TOUCHAR(x))
@@ -58,7 +54,7 @@ extern intt_isprint(const char *ptr);
58
54
#define t_iseq (x ,c )(TOUCHAR(x) == (unsigned char) (c))
59
55
60
56
#define COPYCHAR (d ,s )(*((unsigned char *) (d)) = TOUCHAR(s))
61
- #endif /*TS_USE_WIDE */
57
+ #endif /*USE_WIDE_UPPER_LOWER */
62
58
63
59
extern char * lowerstr (const char * str );
64
60
extern char * lowerstr_with_len (const char * str ,int len );