bugzilla 612 - write recipients list in X-Envelope-To header of MBOX spool file
[exim.git] / src / src / pcre / config.h
1 /* $Cambridge: exim/src/src/pcre/config.h,v 1.4 2007/11/12 13:02:19 nm4 Exp $ */
2
3 /*************************************************
4 * config.h for PCRE for Exim *
5 *************************************************/
6
7 /* The PCRE sources include config.h, which for a free-standing PCRE build gets
8 set up by autoconf. For the embedded version in Exim, this file, which is
9 manually maintained, is used.
10
11 The only configuration thing that matters for the PCRE library itself is
12 whether the memmove() function exists or not. It should be present in all
13 Standard C libraries, but is missing in SunOS4. PCRE expects autoconf to set
14 HAVE_MEMMOVE to 1 in config.h when memmove() is present. If that is not set, it
15 defines memmove() as a macro for bcopy().
16
17 Exim works differently. It handles this case by defining memmove() as a macro
18 in its os.h-SunOS4 file. We interface this to PCRE by including the os.h file
19 here, and then defining HAVE_MEMOVE so that PCRE's code in internal.h leaves
20 things alone. */
21
22 #ifndef PCRE_CONFIG_H
23 #define PCRE_CONFIG_H
24
25 #include "../os.h"
26 #define HAVE_MEMMOVE 1
27
28 /* We also set up directly a number of parameters that, in the freestanding
29 PCRE, can be adjusted by "configure". */
30
31 #define NEWLINE '\n'
32 #define LINK_SIZE 2
33 #define MATCH_LIMIT 10000000
34 #define MATCH_LIMIT_RECURSION 10000000
35 #define POSIX_MALLOC_THRESHOLD 10
36
37 #define MAX_NAME_SIZE 32
38 #define MAX_NAME_COUNT 10000
39 #define MAX_DUPLENGTH 30000
40
41 /* There is some stuff in the PCRE sources for compilation on non-Unix systems
42 and non-ASCII systems. For Exim's purposes, just flatten it. */
43
44 #undef EBCDIC
45
46 #endif // include once
47
48 /* End */