aboutsummaryrefslogtreecommitdiff
path: root/src/include/regex/regex.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-03-15 07:39:04 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-03-15 07:39:04 +0000
commit661ecf3c48e16a9add216287eb969d7615e47968 (patch)
tree91b54d5905aa2e22bd0ae9ea8c6b0f3cab75d3f4 /src/include/regex/regex.h
parent31a925c4d07675bc098a742ee9ca642ec79a40ee (diff)
downloadpostgresql-661ecf3c48e16a9add216287eb969d7615e47968.tar.gz
postgresql-661ecf3c48e16a9add216287eb969d7615e47968.zip
From: t-ishii@sra.co.jp
Included are patches intended for allowing PostgreSQL to handle multi-byte charachter sets such as EUC(Extende Unix Code), Unicode and Mule internal code. With the MB patch you can use multi-byte character sets in regexp and LIKE. The encoding system chosen is determined at the compile time. To enable the MB extension, you need to define a variable "MB" in Makefile.global or in Makefile.custom. For further information please take a look at README.mb under doc directory. (Note that unlike "jp patch" I do not use modified GNU regexp any more. I changed Henry Spencer's regexp coming with PostgreSQL.)
Diffstat (limited to 'src/include/regex/regex.h')
-rw-r--r--src/include/regex/regex.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/regex/regex.h b/src/include/regex/regex.h
index cd9efbceb75..f0c9876fe06 100644
--- a/src/include/regex/regex.h
+++ b/src/include/regex/regex.h
@@ -41,6 +41,7 @@
#define _REGEX_H_
#include <sys/types.h>
+#include <regex/pg_wchar.h>
/* types */
typedef off_t regoff_t;
@@ -49,8 +50,12 @@ typedef struct
{
int re_magic;
size_t re_nsub; /* number of parenthesized subexpressions */
- const char *re_endp; /* end pointer for REG_PEND */
+ const pg_wchar *re_endp; /* end pointer for REG_PEND */
struct re_guts *re_g; /* none of your business :-) */
+#ifdef MB
+ pg_wchar *patsave; /* mee too :-) */
+#endif
+
} regex_t;
typedef struct