source: project/chicken/branches/prerelease/pcre/config.h @ 9381

Last change on this file since 9381 was 9381, checked in by Ivan Raikov, 12 years ago

Merged trunk into prerelease

File size: 5.9 KB
Line 
1/* config.h.  From PCRE 7.6 config.h generated from config.h.in by configure.  */
2
3#if defined(HAVE_CONFIG_H) || defined(HAVE_CHICKEN_CONFIG_H)
4# include "chicken-config.h"
5#endif
6
7/* On Unix-like systems config.h.in is converted by "configure" into config.h.
8Some other environments also support the use of "configure". PCRE is written in
9Standard C, but there are a few non-standard things it can cope with, allowing
10it to run on SunOS4 and other "close to standard" systems.
11
12If you are going to build PCRE "by hand" on a system without "configure" you
13should copy the distributed config.h.generic to config.h, and then set up the
14macro definitions the way you need them. You must then add -DHAVE_CONFIG_H to
15all of your compile commands, so that config.h is included at the start of
16every source.
17
18Alternatively, you can avoid editing by using -D on the compiler command line
19to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H.
20
21PCRE uses memmove() if HAVE_MEMMOVE is set to 1; otherwise it uses bcopy() if
22HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set
23them both to 0; an emulation function will be used. */
24
25/* Define to 1 if you have the `memmove' function. */
26#ifndef HAVE_MEMMOVE
27/* hm... there must be a better way */
28# define HAVE_MEMMOVE 1
29#endif
30
31/* The value of LINK_SIZE determines the number of bytes used to store links
32   as offsets within the compiled regex. The default is 2, which allows for
33   compiled patterns up to 64K long. This covers the vast majority of cases.
34   However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows
35   for longer patterns in extreme cases. On systems that support it,
36   "configure" can be used to override this default. */
37#ifndef LINK_SIZE
38#define LINK_SIZE   2
39#endif
40
41/* The value of MATCH_LIMIT determines the default number of times the
42   internal match() function can be called during a single execution of
43   pcre_exec(). There is a runtime interface for setting a different limit.
44   The limit exists in order to catch runaway regular expressions that take
45   for ever to determine that they do not match. The default is set very large
46   so that it does not accidentally catch legitimate cases. On systems that
47   support it, "configure" can be used to override this default default. */
48#ifndef MATCH_LIMIT
49#define MATCH_LIMIT 10000000
50#endif
51
52/* The above limit applies to all calls of match(), whether or not they
53   increase the recursion depth. In some environments it is desirable to limit
54   the depth of recursive calls of match() more strictly, in order to restrict
55   the maximum amount of stack (or heap, if NO_RECURSE is defined) that is
56   used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of
57   match(). To have any useful effect, it must be less than the value of
58   MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is
59   a runtime method for setting a different limit. On systems that support it,
60   "configure" can be used to override the default. */
61#ifndef MATCH_LIMIT_RECURSION
62#define MATCH_LIMIT_RECURSION MATCH_LIMIT
63#endif
64
65/* This limit is parameterized just in case anybody ever wants to change it.
66   Care must be taken if it is increased, because it guards against integer
67   overflow caused by enormously large patterns. */
68#ifndef MAX_NAME_COUNT
69#define MAX_NAME_COUNT 10000
70#endif
71
72/* This limit is parameterized just in case anybody ever wants to change it.
73   Care must be taken if it is increased, because it guards against integer
74   overflow caused by enormously large patterns. */
75#ifndef MAX_NAME_SIZE
76#define MAX_NAME_SIZE 32
77#endif
78
79/* The value of NEWLINE determines the newline character sequence. On systems
80   that support it, "configure" can be used to override the default, which is
81   10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF), -1 (ANY), or -2
82   (ANYCRLF). */
83#ifndef NEWLINE
84#define NEWLINE '\n'
85#endif
86
87/* Name of package */
88#define PACKAGE "pcre"
89
90/* Define to the address where bug reports for this package should be sent. */
91#define PACKAGE_BUGREPORT ""
92
93/* Define to the full name of this package. */
94#define PACKAGE_NAME "PCRE"
95
96/* Define to the full name and version of this package. */
97#define PACKAGE_STRING "PCRE 7.6"
98
99/* Define to the one symbol short name of this package. */
100#define PACKAGE_TARNAME "pcre"
101
102/* Define to the version of this package. */
103#define PACKAGE_VERSION "7.6"
104
105/* When calling PCRE via the POSIX interface, additional working storage is
106   required for holding the pointers to capturing substrings because PCRE
107   requires three integers per substring, whereas the POSIX interface provides
108   only two. If the number of expected substrings is small, the wrapper
109   function uses space on the stack, because this is faster than using
110   malloc() for each call. The threshold above which the stack is no longer
111   used is defined by POSIX_MALLOC_THRESHOLD. On systems that support it,
112   "configure" can be used to override this default. */
113#ifndef POSIX_MALLOC_THRESHOLD
114#define POSIX_MALLOC_THRESHOLD 10
115#endif
116
117/* PCRE uses recursive function calls to handle backtracking while matching.
118This can sometimes be a problem on systems that have stacks of limited size.
119Define NO_RECURSE to get a version that doesn't use recursion in the match()
120function; instead it creates its own stack by steam using pcre_recurse_malloc
121to get memory. For more detail, see comments and other stuff just above the
122match() function. On Unix systems, "configure" can be used to set this in the
123Makefile (use --disable-stack-for-recursion). */
124/* #define NO_RECURSE */
125
126/* Define to enable support for Unicode properties */
127#define SUPPORT_UCP
128
129/* Define to enable support for the UTF-8 Unicode encoding. */
130#define SUPPORT_UTF8
131
132/* Version number of package */
133#define VERSION "7.6"
134
135/* Define to empty if `const' does not conform to ANSI C. */
136/* #undef const */
137
138/* Define to `unsigned int' if <sys/types.h> does not define. */
139/* #undef size_t */
Note: See TracBrowser for help on using the repository browser.