1 /* config.h. Generated from config.h.in by configure. */ 2 /* config.h.in. Generated from configure.ac by autoheader. */ 3 4 5 /* PCRE is written in Standard C, but there are a few non-standard things it 6 can cope with, allowing it to run on SunOS4 and other "close to standard" 7 systems. 8 9 In environments that support the GNU autotools, config.h.in is converted into 10 config.h by the "configure" script. In environments that use CMake, 11 config-cmake.in is converted into config.h. If you are going to build PCRE "by 12 hand" without using "configure" or CMake, you should copy the distributed 13 config.h.generic to config.h, and edit the macro definitions to be the way you 14 need them. You must then add -DHAVE_CONFIG_H to all of your compile commands, 15 so that config.h is included at the start of every source. 16 17 Alternatively, you can avoid editing by using -D on the compiler command line 18 to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H, 19 but if you do, default values will be taken from config.h for non-boolean 20 macros that are not defined on the command line. 21 22 Boolean macros such as HAVE_STDLIB_H and SUPPORT_PCRE8 should either be defined 23 (conventionally to 1) for TRUE, and not defined at all for FALSE. All such 24 macros are listed as a commented #undef in config.h.generic. Macros such as 25 MATCH_LIMIT, whose actual value is relevant, have defaults defined, but are 26 surrounded by #ifndef/#endif lines so that the value can be overridden by -D. 27 28 PCRE uses memmove() if HAVE_MEMMOVE is defined; otherwise it uses bcopy() if 29 HAVE_BCOPY is defined. If your system has neither bcopy() nor memmove(), make 30 sure both macros are undefined; an emulation function will then be used. */ 31 32 /* By default, the \R escape sequence matches any Unicode line ending 33 character or sequence of characters. If BSR_ANYCRLF is defined (to any 34 value), this is changed so that backslash-R matches only CR, LF, or CRLF. 35 The build-time default can be overridden by the user of PCRE at runtime. */ 36 /* #undef BSR_ANYCRLF */ 37 38 /* If you are compiling for a system that uses EBCDIC instead of ASCII 39 character codes, define this macro to any value. You must also edit the 40 NEWLINE macro below to set a suitable EBCDIC newline, commonly 21 (0x15). 41 On systems that can use "configure" or CMake to set EBCDIC, NEWLINE is 42 automatically adjusted. When EBCDIC is set, PCRE assumes that all input 43 strings are in EBCDIC. If you do not define this macro, PCRE will assume 44 input strings are ASCII or UTF-8/16/32 Unicode. It is not possible to build 45 a version of PCRE that supports both EBCDIC and UTF-8/16/32. */ 46 /* #undef EBCDIC */ 47 48 /* In an EBCDIC environment, define this macro to any value to arrange for the 49 NL character to be 0x25 instead of the default 0x15. NL plays the role that 50 LF does in an ASCII/Unicode environment. The value must also be set in the 51 NEWLINE macro below. On systems that can use "configure" or CMake to set 52 EBCDIC_NL25, the adjustment of NEWLINE is automatic. */ 53 /* #undef EBCDIC_NL25 */ 54 55 /* Define to 1 if you have the `bcopy' function. */ 56 #define HAVE_BCOPY 1 57 58 /* Define to 1 if you have the <bits/type_traits.h> header file. */ 59 /* #undef HAVE_BITS_TYPE_TRAITS_H */ 60 61 /* Define to 1 if you have the <bzlib.h> header file. */ 62 /* #undef HAVE_BZLIB_H */ 63 64 /* Define to 1 if you have the <dirent.h> header file. */ 65 #define HAVE_DIRENT_H 1 66 67 /* Define to 1 if you have the <dlfcn.h> header file. */ 68 #define HAVE_DLFCN_H 1 69 70 /* Define to 1 if you have the <editline/readline.h> header file. */ 71 /* #undef HAVE_EDITLINE_READLINE_H */ 72 73 /* Define to 1 if you have the <edit/readline/readline.h> header file. */ 74 /* #undef HAVE_EDIT_READLINE_READLINE_H */ 75 76 /* Define to 1 if you have the <inttypes.h> header file. */ 77 #define HAVE_INTTYPES_H 1 78 79 /* Define to 1 if you have the <limits.h> header file. */ 80 #define HAVE_LIMITS_H 1 81 82 /* Define to 1 if the system has the type `long long'. */ 83 #define HAVE_LONG_LONG 1 84 85 /* Define to 1 if you have the `memmove' function. */ 86 #define HAVE_MEMMOVE 1 87 88 /* Define to 1 if you have the <memory.h> header file. */ 89 #define HAVE_MEMORY_H 1 90 91 /* Define if you have POSIX threads libraries and header files. */ 92 /* #undef HAVE_PTHREAD */ 93 94 /* Have PTHREAD_PRIO_INHERIT. */ 95 /* #undef HAVE_PTHREAD_PRIO_INHERIT */ 96 97 /* Define to 1 if you have the <readline/history.h> header file. */ 98 /* #undef HAVE_READLINE_HISTORY_H */ 99 100 /* Define to 1 if you have the <readline/readline.h> header file. */ 101 /* #undef HAVE_READLINE_READLINE_H */ 102 103 /* Define to 1 if you have the <stdint.h> header file. */ 104 #define HAVE_STDINT_H 1 105 106 /* Define to 1 if you have the <stdlib.h> header file. */ 107 #define HAVE_STDLIB_H 1 108 109 /* Define to 1 if you have the `strerror' function. */ 110 #define HAVE_STRERROR 1 111 112 /* Define to 1 if you have the <string> header file. */ 113 #define HAVE_STRING 1 114 115 /* Define to 1 if you have the <strings.h> header file. */ 116 #define HAVE_STRINGS_H 1 117 118 /* Define to 1 if you have the <string.h> header file. */ 119 #define HAVE_STRING_H 1 120 121 /* Define to 1 if you have `strtoimax'. */ 122 /* #undef HAVE_STRTOIMAX */ 123 124 /* Define to 1 if you have `strtoll'. */ 125 #define HAVE_STRTOLL 1 126 127 /* Define to 1 if you have `strtoq'. */ 128 /* #undef HAVE_STRTOQ */ 129 130 /* Define to 1 if you have the <sys/stat.h> header file. */ 131 #define HAVE_SYS_STAT_H 1 132 133 /* Define to 1 if you have the <sys/types.h> header file. */ 134 #define HAVE_SYS_TYPES_H 1 135 136 /* Define to 1 if you have the <type_traits.h> header file. */ 137 /* #undef HAVE_TYPE_TRAITS_H */ 138 139 /* Define to 1 if you have the <unistd.h> header file. */ 140 #define HAVE_UNISTD_H 1 141 142 /* Define to 1 if the system has the type `unsigned long long'. */ 143 #define HAVE_UNSIGNED_LONG_LONG 1 144 145 /* Define to 1 if the compiler supports simple visibility declarations. */ 146 #define HAVE_VISIBILITY 1 147 148 /* Define to 1 if you have the <windows.h> header file. */ 149 /* #undef HAVE_WINDOWS_H */ 150 151 /* Define to 1 if you have the <zlib.h> header file. */ 152 #define HAVE_ZLIB_H 1 153 154 /* Define to 1 if you have `_strtoi64'. */ 155 /* #undef HAVE__STRTOI64 */ 156 157 /* The value of LINK_SIZE determines the number of bytes used to store links 158 as offsets within the compiled regex. The default is 2, which allows for 159 compiled patterns up to 64K long. This covers the vast majority of cases. 160 However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows 161 for longer patterns in extreme cases. */ 162 #define LINK_SIZE 2 163 164 /* Define to the sub-directory where libtool stores uninstalled libraries. */ 165 #define LT_OBJDIR ".libs/" 166 167 /* The value of MATCH_LIMIT determines the default number of times the 168 internal match() function can be called during a single execution of 169 pcre_exec(). There is a runtime interface for setting a different limit. 170 The limit exists in order to catch runaway regular expressions that take 171 for ever to determine that they do not match. The default is set very large 172 so that it does not accidentally catch legitimate cases. */ 173 #define MATCH_LIMIT 10000000 174 175 /* The above limit applies to all calls of match(), whether or not they 176 increase the recursion depth. In some environments it is desirable to limit 177 the depth of recursive calls of match() more strictly, in order to restrict 178 the maximum amount of stack (or heap, if NO_RECURSE is defined) that is 179 used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of 180 match(). To have any useful effect, it must be less than the value of 181 MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is 182 a runtime method for setting a different limit. */ 183 #define MATCH_LIMIT_RECURSION MATCH_LIMIT 184 185 /* This limit is parameterized just in case anybody ever wants to change it. 186 Care must be taken if it is increased, because it guards against integer 187 overflow caused by enormously large patterns. */ 188 #define MAX_NAME_COUNT 10000 189 190 /* This limit is parameterized just in case anybody ever wants to change it. 191 Care must be taken if it is increased, because it guards against integer 192 overflow caused by enormously large patterns. */ 193 #define MAX_NAME_SIZE 32 194 195 /* The value of NEWLINE determines the default newline character sequence. 196 PCRE client programs can override this by selecting other values at run 197 time. In ASCII environments, the value can be 10 (LF), 13 (CR), or 3338 198 (CRLF); in EBCDIC environments the value can be 21 or 37 (LF), 13 (CR), or 199 3349 or 3365 (CRLF) because there are two alternative codepoints (0x15 and 200 0x25) that are used as the NL line terminator that is equivalent to ASCII 201 LF. In both ASCII and EBCDIC environments the value can also be -1 (ANY), 202 or -2 (ANYCRLF). */ 203 #define NEWLINE 10 204 205 /* PCRE uses recursive function calls to handle backtracking while matching. 206 This can sometimes be a problem on systems that have stacks of limited 207 size. Define NO_RECURSE to any value to get a version that doesn't use 208 recursion in the match() function; instead it creates its own stack by 209 steam using pcre_recurse_malloc() to obtain memory from the heap. For more 210 detail, see the comments and other stuff just above the match() function. 211 */ 212 /* #undef NO_RECURSE */ 213 214 /* Name of package */ 215 #define PACKAGE "pcre" 216 217 /* Define to the address where bug reports for this package should be sent. */ 218 #define PACKAGE_BUGREPORT "" 219 220 /* Define to the full name of this package. */ 221 #define PACKAGE_NAME "PCRE" 222 223 /* Define to the full name and version of this package. */ 224 #define PACKAGE_STRING "PCRE 8.38" 225 226 /* Define to the one symbol short name of this package. */ 227 #define PACKAGE_TARNAME "pcre" 228 229 /* Define to the home page for this package. */ 230 #define PACKAGE_URL "" 231 232 /* Define to the version of this package. */ 233 #define PACKAGE_VERSION "8.38" 234 235 /* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested 236 parentheses (of any kind) in a pattern. This limits the amount of system 237 stack that is used while compiling a pattern. */ 238 #define PARENS_NEST_LIMIT 250 239 240 /* to make a symbol visible */ 241 #define PCRECPP_EXP_DECL extern __attribute__ ((visibility ("default"))) 242 243 /* to make a symbol visible */ 244 #define PCRECPP_EXP_DEFN __attribute__ ((visibility ("default"))) 245 246 /* The value of PCREGREP_BUFSIZE determines the size of buffer used by 247 pcregrep to hold parts of the file it is searching. This is also the 248 minimum value. The actual amount of memory used by pcregrep is three times 249 this number, because it allows for the buffering of "before" and "after" 250 lines. */ 251 #define PCREGREP_BUFSIZE 20480 252 253 /* to make a symbol visible */ 254 #define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility ("default"))) 255 256 /* to make a symbol visible */ 257 #define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility ("default"))) 258 259 /* to make a symbol visible */ 260 #define PCRE_EXP_DATA_DEFN __attribute__ ((visibility ("default"))) 261 262 /* to make a symbol visible */ 263 #define PCRE_EXP_DECL extern __attribute__ ((visibility ("default"))) 264 265 266 /* If you are compiling for a system other than a Unix-like system or 267 Win32, and it needs some magic to be inserted before the definition 268 of a function that is exported by the library, define this macro to 269 contain the relevant magic. If you do not define this macro, a suitable 270 __declspec value is used for Windows systems; in other environments 271 "extern" is used for a C compiler and "extern C" for a C++ compiler. 272 This macro apears at the start of every exported function that is part 273 of the external API. It does not appear on functions that are "external" 274 in the C sense, but which are internal to the library. */ 275 #define PCRE_EXP_DEFN __attribute__ ((visibility ("default"))) 276 277 /* Define to any value if linking statically (TODO: make nice with Libtool) */ 278 /* #undef PCRE_STATIC */ 279 280 /* When calling PCRE via the POSIX interface, additional working storage is 281 required for holding the pointers to capturing substrings because PCRE 282 requires three integers per substring, whereas the POSIX interface provides 283 only two. If the number of expected substrings is small, the wrapper 284 function uses space on the stack, because this is faster than using 285 malloc() for each call. The threshold above which the stack is no longer 286 used is defined by POSIX_MALLOC_THRESHOLD. */ 287 #define POSIX_MALLOC_THRESHOLD 10 288 289 /* Define to necessary symbol if this constant uses a non-standard name on 290 your system. */ 291 /* #undef PTHREAD_CREATE_JOINABLE */ 292 293 /* Define to 1 if you have the ANSI C header files. */ 294 #define STDC_HEADERS 1 295 296 /* Define to any value to enable support for Just-In-Time compiling. */ 297 /* #undef SUPPORT_JIT */ 298 299 /* Define to any value to allow pcregrep to be linked with libbz2, so that it 300 is able to handle .bz2 files. */ 301 /* #undef SUPPORT_LIBBZ2 */ 302 303 /* Define to any value to allow pcretest to be linked with libedit. */ 304 /* #undef SUPPORT_LIBEDIT */ 305 306 /* Define to any value to allow pcretest to be linked with libreadline. */ 307 /* #undef SUPPORT_LIBREADLINE */ 308 309 /* Define to any value to allow pcregrep to be linked with libz, so that it is 310 able to handle .gz files. */ 311 /* #undef SUPPORT_LIBZ */ 312 313 /* Define to any value to enable the 16 bit PCRE library. */ 314 /* #undef SUPPORT_PCRE16 */ 315 316 /* Define to any value to enable the 32 bit PCRE library. */ 317 /* #undef SUPPORT_PCRE32 */ 318 319 /* Define to any value to enable the 8 bit PCRE library. */ 320 #define SUPPORT_PCRE8 /**/ 321 322 /* Define to any value to enable JIT support in pcregrep. */ 323 /* #undef SUPPORT_PCREGREP_JIT */ 324 325 /* Define to any value to enable support for Unicode properties. */ 326 /* #undef SUPPORT_UCP */ 327 328 /* Define to any value to enable support for the UTF-8/16/32 Unicode encoding. 329 This will work even in an EBCDIC environment, but it is incompatible with 330 the EBCDIC macro. That is, PCRE can support *either* EBCDIC code *or* 331 ASCII/UTF-8/16/32, but not both at once. */ 332 /* #undef SUPPORT_UTF */ 333 334 /* Define to any value for valgrind support to find invalid memory reads. */ 335 /* #undef SUPPORT_VALGRIND */ 336 337 /* Version number of package */ 338 #define VERSION "8.38" 339 340 /* Define to empty if `const' does not conform to ANSI C. */ 341 /* #undef const */ 342 343 /* Define to the type of a signed integer type of width exactly 64 bits if 344 such a type exists and the standard includes do not define it. */ 345 /* #undef int64_t */ 346 347 /* Define to `unsigned int' if <sys/types.h> does not define. */ 348 /* #undef size_t */ 349