monotone

monotone Mtn Source Tree

Root/pcre/pcre_config.h

1/* Formerly pcre-7.4/config.h.in. Only those macros used by the
2 library proper, not the test programs, have been preserved. As
3 monotone assumes all the facilities of C90 exist, we hardwire the
4 C90 setting of the configuration macro for the few places where
5 PCRE doesn't make that assumption. For values set from configure
6 command line switches in PCRE upstream, we hardwire selections that
7 are appropriate for monotone (mostly the upstream defaults). */
8
9/* By default, the \R escape sequence matches any Unicode line ending
10 character or sequence of characters. If BSR_ANYCRLF is defined, this is
11 changed so that backslash-R matches only CR, LF, or CRLF. The build- time
12 default can be overridden by the user of PCRE at runtime. On systems that
13 support it, "configure" can be used to override the default. */
14/* #undef BSR_ANYCRLF */
15
16/* If you are compiling for a system that uses EBCDIC instead of ASCII
17 character codes, define this macro as 1. On systems that can use
18 "configure", this can be done via --enable-ebcdic. */
19/* #undef EBCDIC */
20
21/* Define to 1 if you have the `bcopy' function. */
22/* #undef HAVE_BCOPY */
23
24/* Define to 1 if you have the `memmove' function. */
25#define HAVE_MEMMOVE 1
26
27/* The value of LINK_SIZE determines the number of bytes used to store links
28 as offsets within the compiled regex. The default is 2, which allows for
29 compiled patterns up to 64K long. This covers the vast majority of cases.
30 However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows
31 for longer patterns in extreme cases. On systems that support it,
32 "configure" can be used to override this default. */
33#define LINK_SIZE 2
34
35/* The value of MATCH_LIMIT determines the default number of times the
36 internal match() function can be called during a single execution of
37 pcre_exec(). There is a runtime interface for setting a different limit.
38 The limit exists in order to catch runaway regular expressions that take
39 for ever to determine that they do not match. The default is set very large
40 so that it does not accidentally catch legitimate cases. On systems that
41 support it, "configure" can be used to override this default default. */
42#define MATCH_LIMIT 10000000
43
44/* The above limit applies to all calls of match(), whether or not they
45 increase the recursion depth. In some environments it is desirable to limit
46 the depth of recursive calls of match() more strictly, in order to restrict
47 the maximum amount of stack (or heap, if NO_RECURSE is defined) that is
48 used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of
49 match(). To have any useful effect, it must be less than the value of
50 MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is
51 a runtime method for setting a different limit. On systems that support it,
52 "configure" can be used to override the default. */
53#define MATCH_LIMIT_RECURSION MATCH_LIMIT
54
55/* This limit is parameterized just in case anybody ever wants to change it.
56 Care must be taken if it is increased, because it guards against integer
57 overflow caused by enormously large patterns. */
58#define MAX_NAME_COUNT 10000
59
60/* This limit is parameterized just in case anybody ever wants to change it.
61 Care must be taken if it is increased, because it guards against integer
62 overflow caused by enormously large patterns. */
63#define MAX_NAME_SIZE 32
64
65/* The value of NEWLINE determines the newline character sequence. On systems
66 that support it, "configure" can be used to override the default, which is
67 10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF), -1 (ANY), or -2
68 (ANYCRLF). */
69#define NEWLINE -1
70
71/* PCRE uses recursive function calls to handle backtracking while matching.
72 This can sometimes be a problem on systems that have stacks of limited
73 size. Define NO_RECURSE to get a version that doesn't use recursion in the
74 match() function; instead it creates its own stack by steam using
75 pcre_recurse_malloc() to obtain memory from the heap. For more detail, see
76 the comments and other stuff just above the match() function. On systems
77 that support it, "configure" can be used to set this in the Makefile (use
78 --disable-stack-for-recursion). */
79/* #undef NO_RECURSE */
80
81/* If you are compiling for a system other than a Unix-like system or
82 Win32, and it needs some magic to be inserted before the definition
83 of a function that is exported by the library, define this macro to
84 contain the relevant magic. If you do not define this macro, it
85 defaults to "extern" for a C compiler and "extern C" for a C++
86 compiler on non-Win32 systems. This macro apears at the start of
87 every exported function that is part of the external API. It does
88 not appear on functions that are "external" in the C sense, but
89 which are internal to the library. */
90/* #undef PCRE_EXP_DEFN */
91
92/* Define if linking statically (TODO: make nice with Libtool) */
93#define PCRE_STATIC 1
94
95/* When calling PCRE via the POSIX interface, additional working storage is
96 required for holding the pointers to capturing substrings because PCRE
97 requires three integers per substring, whereas the POSIX interface provides
98 only two. If the number of expected substrings is small, the wrapper
99 function uses space on the stack, because this is faster than using
100 malloc() for each call. The threshold above which the stack is no longer
101 used is defined by POSIX_MALLOC_THRESHOLD. On systems that support it,
102 "configure" can be used to override this default. */
103#define POSIX_MALLOC_THRESHOLD 10
104
105/* Define to enable support for Unicode properties */
106#define SUPPORT_UCP 1
107
108/* Define to enable support for the UTF-8 Unicode encoding. */
109#define SUPPORT_UTF8 1
110
111/* Define to empty if `const' does not conform to ANSI C. */
112/* #undef const */
113
114/* Define to `unsigned int' if <sys/types.h> does not define. */
115/* #undef size_t */

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status