| 220 |
of typing. I tried "uchar", but it causes problems on Digital Unix, where |
of typing. I tried "uchar", but it causes problems on Digital Unix, where |
| 221 |
it is defined in sys/types, so use "uschar" instead. */ |
it is defined in sys/types, so use "uschar" instead. */ |
| 222 |
|
|
| 223 |
#ifndef COMPILE_PCRE16 |
#ifdef COMPILE_PCRE8 |
| 224 |
|
|
| 225 |
typedef unsigned char pcre_uchar; |
typedef unsigned char pcre_uchar; |
| 226 |
|
#define IN_UCHARS(x) (x) |
| 227 |
|
|
| 228 |
#else |
#else |
| 229 |
|
|
| 230 |
|
#ifdef COMPILE_PCRE16 |
| 231 |
#if USHRT_MAX != 65535 |
#if USHRT_MAX != 65535 |
| 232 |
/* This is a warning message. Change PCRE_SCHAR16 to a 16 bit data type in |
/* This is a warning message. Change PCRE_SCHAR16 to a 16 bit data type in |
| 233 |
pcre.h(.in) and disable (comment out) this message. */ |
pcre.h(.in) and disable (comment out) this message. */ |
| 234 |
#error Warning: PCRE_SCHAR16 is not a 16 bit data type. |
#error Warning: PCRE_SCHAR16 is not a 16 bit data type. |
| 235 |
#endif |
#endif |
| 236 |
typedef pcre_uint16 pcre_uchar; |
typedef pcre_uint16 pcre_uchar; |
| 237 |
#endif |
#define IN_UCHARS(x) ((x) << 1) |
| 238 |
|
|
| 239 |
|
#else |
| 240 |
|
#error Unsupported compiling mode |
| 241 |
|
#endif /* COMPILE_PCRE16 */ |
| 242 |
|
|
| 243 |
|
#endif /* COMPILE_PCRE8 */ |
| 244 |
|
|
| 245 |
/* This is an unsigned int value that no character can ever have. UTF-8 |
/* This is an unsigned int value that no character can ever have. UTF-8 |
| 246 |
characters only go up to 0x7fffffff (though Unicode doesn't go beyond |
characters only go up to 0x7fffffff (though Unicode doesn't go beyond |
| 299 |
#define PCRE_PUCHAR CUSTOM_SUBJECT_PTR |
#define PCRE_PUCHAR CUSTOM_SUBJECT_PTR |
| 300 |
#else |
#else |
| 301 |
#define PCRE_PUCHAR const pcre_uchar * |
#define PCRE_PUCHAR const pcre_uchar * |
|
|
|
|
/* PCRE_SPTR is defined in pcre.h. */ |
|
|
#define USPTR const uschar * |
|
| 302 |
#endif |
#endif |
| 303 |
|
|
| 304 |
/* Include the public PCRE header and the definitions of UCP character property |
/* Include the public PCRE header and the definitions of UCP character property |
| 432 |
|
|
| 433 |
#elif LINK_SIZE == 3 || LINK_SIZE == 4 |
#elif LINK_SIZE == 3 || LINK_SIZE == 4 |
| 434 |
|
|
| 435 |
|
#undef LINK_SIZE |
| 436 |
|
#define LINK_SIZE 2 |
| 437 |
|
|
| 438 |
#define PUT(a,n,d) \ |
#define PUT(a,n,d) \ |
| 439 |
(a[n] = (d) >> 16), \ |
(a[n] = (d) >> 16), \ |
| 440 |
(a[(n)+1] = (d) & 65536) |
(a[(n)+1] = (d) & 65536) |
| 2044 |
strncmp((char *)(str1), (char *)(str2), (num)) |
strncmp((char *)(str1), (char *)(str2), (num)) |
| 2045 |
#define STRNCMP_UC_C8(str1, str2, num) \ |
#define STRNCMP_UC_C8(str1, str2, num) \ |
| 2046 |
strncmp((char *)(str1), (str2), (num)) |
strncmp((char *)(str1), (str2), (num)) |
| 2047 |
#define STRLEN_UC(str) strlen(str) |
#define STRLEN_UC(str) strlen((const char *)str) |
| 2048 |
|
|
| 2049 |
#else |
#else |
| 2050 |
|
|
| 2087 |
|
|
| 2088 |
#ifdef SUPPORT_JIT |
#ifdef SUPPORT_JIT |
| 2089 |
extern void PRIV(jit_compile)(const real_pcre *, pcre_extra *); |
extern void PRIV(jit_compile)(const real_pcre *, pcre_extra *); |
| 2090 |
extern int PRIV(jit_exec)(const real_pcre *, void *, PCRE_SPTR, |
extern int PRIV(jit_exec)(const real_pcre *, void *, |
| 2091 |
int, int, int, int, int *, int); |
const pcre_uchar *, int, int, int, int, int *, int); |
| 2092 |
extern void PRIV(jit_free)(void *); |
extern void PRIV(jit_free)(void *); |
| 2093 |
#endif |
#endif |
| 2094 |
|
|