Bug 591908: Remove Math.floor from microbenchmark iterations/sec calculation (r=fklockii)
[tamarin-stm.git] / pcre / config.h
blob7b430b2e6b4d7af03112c279c75168835d93b407
1 /* config.h. Generated from config.h.in by configure. */
2 /* config.h.in. Generated from configure.ac by autoheader. */
5 /* On Unix-like systems config.h.in is converted by "configure" into config.h.
6 Some other environments also support the use of "configure". PCRE is written in
7 Standard C, but there are a few non-standard things it can cope with, allowing
8 it to run on SunOS4 and other "close to standard" systems.
10 If you are going to build PCRE "by hand" on a system without "configure" you
11 should copy the distributed config.h.generic to config.h, and then set up the
12 macros the way you need them. Alternatively, you can avoid editing by using -D
13 on the compiler command line to set the macro values.
15 PCRE uses memmove() if HAVE_MEMMOVE is set to 1; otherwise it uses bcopy() if
16 HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set
17 them both to 0; an emulation function will be used. */
19 /* If you are compiling for a system that uses EBCDIC instead of ASCII
20 character codes, define this macro as 1. On systems that can use
21 "configure", this can be done via --enable-ebcdic. */
22 /* #undef EBCDIC */
24 /* Define to 1 if you have the `bcopy' function. */
25 #define HAVE_BCOPY 1
27 /* Define to 1 if you have the <bits/type_traits.h> header file. */
28 #define HAVE_BITS_TYPE_TRAITS_H 1
30 /* Define to 1 if you have the <dirent.h> header file. */
31 #define HAVE_DIRENT_H 1
33 /* Define to 1 if you have the <dlfcn.h> header file. */
34 #define HAVE_DLFCN_H 1
36 /* Define to 1 if you have the <inttypes.h> header file. */
37 #define HAVE_INTTYPES_H 1
39 /* Define to 1 if you have the <limits.h> header file. */
40 #define HAVE_LIMITS_H 1
42 /* Define to 1 if the system has the type `long long'. */
43 #ifndef HAVE_LONG_LONG
44 #define HAVE_LONG_LONG 1
45 #endif
47 /* Define to 1 if you have the `memmove' function. */
48 #define HAVE_MEMMOVE 1
50 /* Define to 1 if you have the <memory.h> header file. */
51 #define HAVE_MEMORY_H 1
53 /* Define to 1 if you have the <stdint.h> header file. */
54 #define HAVE_STDINT_H 1
56 /* Define to 1 if you have the <stdlib.h> header file. */
57 #define HAVE_STDLIB_H 1
59 /* Define to 1 if you have the `strerror' function. */
60 #define HAVE_STRERROR 1
62 /* Define to 1 if you have the <string> header file. */
63 #define HAVE_STRING 1
65 /* Define to 1 if you have the <strings.h> header file. */
66 #define HAVE_STRINGS_H 1
68 /* Define to 1 if you have the <string.h> header file. */
69 #define HAVE_STRING_H 1
71 /* Define to 1 if you have the `strtoll' function. */
72 #define HAVE_STRTOLL 1
74 /* Define to 1 if you have the `strtoq' function. */
75 /* #undef HAVE_STRTOQ */
77 /* Define to 1 if you have the <sys/stat.h> header file. */
78 #define HAVE_SYS_STAT_H 1
80 /* Define to 1 if you have the <sys/types.h> header file. */
81 #define HAVE_SYS_TYPES_H 1
83 /* Define to 1 if you have the <type_traits.h> header file. */
84 /* #undef HAVE_TYPE_TRAITS_H */
86 /* Define to 1 if you have the <unistd.h> header file. */
87 #define HAVE_UNISTD_H 1
89 /* Define to 1 if the system has the type `unsigned long long'. */
90 #define HAVE_UNSIGNED_LONG_LONG 1
92 /* Define to 1 if you have the <windows.h> header file. */
93 #define HAVE_WINDOWS_H 1
95 /* cn: added constants for carriage return, unicode line seperator, and unicode paragraph seperator,
96 all of which should match the '$' metacharater.
98 //#define CARRAIGE_RETURN '\r' // <CR>
99 //#define UNICODE_LINE_SEPERATOR 0x2028 // <LS>
100 //#define UNICODE_PARAGRAPH_SEPERATOR 0x2029 // <PS>
102 // cn: also added unicode whitespace characters.
103 #define UNICODE_NOBREAK_SPACE 0x00A0 // - no-break space
104 #define UNICODE_ZEROWIDTH_SPACE 0x200B // - zero width space
105 #define UNICODE_WORDJOINER_SPACE 0x2060 // - word joiner
106 #define UNICODE_IDEOGRAPHIC_SPACE 0x3000 // - ideographic space
107 #define UNICODE_ZEROWIDTH_NOBREAK_SPACE 0xFEFF // - zero width no-break space
109 //inline bool isECMALineTerminator(unsigned short x) { return (((x) == NEWLINE) || ((x) == CARRAIGE_RETURN) || ((x) == UNICODE_LINE_SEPERATOR) || ((x) == UNICODE_PARAGRAPH_SEPERATOR) ); }
110 bool isUnicodeWhiteSpace(unsigned short x);
112 /* The value of LINK_SIZE determines the number of bytes used to store links
113 as offsets within the compiled regex. The default is 2, which allows for
114 compiled patterns up to 64K long. This covers the vast majority of cases.
115 However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows
116 for longer patterns in extreme cases. On systems that support it,
117 "configure" can be used to override this default. */
118 #define LINK_SIZE 2
120 /* The value of MATCH_LIMIT determines the default number of times the
121 internal match() function can be called during a single execution of
122 pcre_exec(). There is a runtime interface for setting a different limit.
123 The limit exists in order to catch runaway regular expressions that take
124 for ever to determine that they do not match. The default is set very large
125 so that it does not accidentally catch legitimate cases. On systems that
126 support it, "configure" can be used to override this default default. */
127 #define MATCH_LIMIT 10000000
129 /* The above limit applies to all calls of match(), whether or not they
130 increase the recursion depth. In some environments it is desirable to limit
131 the depth of recursive calls of match() more strictly, in order to restrict
132 the maximum amount of stack (or heap, if NO_RECURSE is defined) that is
133 used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of
134 match(). To have any useful effect, it must be less than the value of
135 MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is
136 a runtime method for setting a different limit. On systems that support it,
137 "configure" can be used to override the default. */
138 #define MATCH_LIMIT_RECURSION MATCH_LIMIT
140 /* This limit is parameterized just in case anybody ever wants to change it.
141 Care must be taken if it is increased, because it guards against integer
142 overflow caused by enormously large patterns. */
143 #define MAX_NAME_COUNT 10000
145 /* This limit is parameterized just in case anybody ever wants to change it.
146 Care must be taken if it is increased, because it guards against integer
147 overflow caused by enormously large patterns. */
148 #define MAX_NAME_SIZE 32
150 /* The value of NEWLINE determines the newline character sequence. On
151 Unix-like systems, "configure" can be used to override the default, which
152 is 10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF), -1 (ANY), or
153 -2 (ANYCRLF). */
154 #define NEWLINE -1
156 /* PCRE uses recursive function calls to handle backtracking while matching.
157 This can sometimes be a problem on systems that have stacks of limited
158 size. Define NO_RECURSE to get a version that doesn't use recursion in the
159 match() function; instead it creates its own stack by steam using
160 pcre_recurse_malloc() to obtain memory from the heap. For more detail, see
161 the comments and other stuff just above the match() function. On systems
162 that support it, "configure" can be used to set this in the Makefile (use
163 --disable-stack-for-recursion). */
164 #define NO_RECURSE
166 /* Name of package */
167 #ifndef PACKAGE
168 #define PACKAGE "pcre"
170 /* Define to the address where bug reports for this package should be sent. */
171 #define PACKAGE_BUGREPORT ""
173 /* Define to the full name of this package. */
174 #define PACKAGE_NAME "PCRE"
176 /* Define to the full name and version of this package. */
177 #define PACKAGE_STRING "PCRE 7.3"
179 /* Define to the one symbol short name of this package. */
180 #define PACKAGE_TARNAME "pcre"
182 /* Define to the version of this package. */
183 #define PACKAGE_VERSION "7.3"
184 #endif // PACKAGE
186 /* If you are compiling for a system other than a Unix-like system or
187 Win32, and it needs some magic to be inserted before the definition
188 of a function that is exported by the library, define this macro to
189 contain the relevant magic. If you do not define this macro, it
190 defaults to "extern" for a C compiler and "extern C" for a C++
191 compiler on non-Win32 systems. This macro apears at the start of
192 every exported function that is part of the external API. It does
193 not appear on functions that are "external" in the C sense, but
194 which are internal to the library. */
195 /* #undef PCRE_EXP_DEFN */
197 /* Define if linking statically (TODO: make nice with Libtool) */
198 /* #undef PCRE_STATIC */
200 /* When calling PCRE via the POSIX interface, additional working storage is
201 required for holding the pointers to capturing substrings because PCRE
202 requires three integers per substring, whereas the POSIX interface provides
203 only two. If the number of expected substrings is small, the wrapper
204 function uses space on the stack, because this is faster than using
205 malloc() for each call. The threshold above which the stack is no longer
206 used is defined by POSIX_MALLOC_THRESHOLD. On systems that support it,
207 "configure" can be used to override this default. */
208 #define POSIX_MALLOC_THRESHOLD 10
210 /* Define to 1 if you have the ANSI C header files. */
211 #define STDC_HEADERS 1
213 /* Define to enable support for Unicode properties */
214 /* #undef SUPPORT_UCP */
216 /* Define to enable support for the UTF-8 Unicode encoding. */
217 #define SUPPORT_UTF8
219 /* Version number of package */
220 #ifndef VERSION
221 #define VERSION "7.3"
222 #endif // VERSION
224 //#define PCRE_DEBUG
226 /* Define to empty if `const' does not conform to ANSI C. */
227 /* #undef const */
229 /* Define to `unsigned int' if <sys/types.h> does not define. */
230 /* #undef size_t */