Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/pcre2/src/config.h
21446 views
1
/* src/config.h. Generated from config.h.in by configure. */
2
/* src/config.h.in. Generated from configure.ac by autoheader. */
3
4
/* PCRE2 is written in Standard C, but there are a few non-standard things it
5
can cope with, allowing it to run on SunOS4 and other "close to standard"
6
systems.
7
8
In environments that support the GNU autotools, config.h.in is converted into
9
config.h by the "configure" script. In environments that use CMake,
10
config-cmake.in is converted into config.h. If you are going to build PCRE2 "by
11
hand" without using "configure" or CMake, you should copy the distributed
12
config.h.generic to config.h, and edit the macro definitions to be the way you
13
need them. You must then add -DHAVE_CONFIG_H to all of your compile commands,
14
so that config.h is included at the start of every source.
15
16
Alternatively, you can avoid editing by using -D on the compiler command line
17
to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H,
18
but if you do, default values will be taken from config.h for non-boolean
19
macros that are not defined on the command line.
20
21
Boolean macros such as HAVE_STDLIB_H and SUPPORT_PCRE2_8 should either be
22
defined (conventionally to 1) for TRUE, and not defined at all for FALSE. All
23
such macros are listed as a commented #undef in config.h.generic. Macros such
24
as MATCH_LIMIT, whose actual value is relevant, have defaults defined, but are
25
surrounded by #ifndef/#endif lines so that the value can be overridden by -D. */
26
27
/* By default, the \R escape sequence matches any Unicode line ending
28
character or sequence of characters. If BSR_ANYCRLF is defined (to any
29
value), this is changed so that backslash-R matches only CR, LF, or CRLF.
30
The build-time default can be overridden by the user of PCRE2 at runtime.
31
*/
32
/* #undef BSR_ANYCRLF */
33
34
/* Define to any value to disable the use of the z and t modifiers in
35
formatting settings such as %zu or %td (this is rarely needed). */
36
/* #undef DISABLE_PERCENT_ZT */
37
38
/* If you are compiling for a system that uses EBCDIC instead of ASCII
39
character codes, define this macro to any value. When EBCDIC is set, PCRE2
40
assumes that all input strings are in EBCDIC. If you do not define this
41
macro, PCRE2 will assume input strings are ASCII or UTF-8/16/32 Unicode. It
42
is not possible to build a version of PCRE2 that supports both EBCDIC and
43
ASCII or UTF-8/16/32. */
44
/* #undef EBCDIC */
45
46
/* To force an EBCDIC environment, define this macro to make the core PCRE2
47
library functions use EBCDIC codepage 1047, regardless of whether the
48
compiler supports it using C character literals. */
49
/* #undef EBCDIC_IGNORING_COMPILER */
50
51
/* In an EBCDIC environment, define this macro to any value to arrange for the
52
NL character to be 0x25 instead of the default 0x15. NL plays the role that
53
LF does in an ASCII/Unicode environment. */
54
/* #undef EBCDIC_NL25 */
55
56
/* Define to 1 if you have the <assert.h> header file. */
57
/* #undef HAVE_ASSERT_H */
58
59
/* Define this if your compiler supports __attribute__((uninitialized)) */
60
/* #undef HAVE_ATTRIBUTE_UNINITIALIZED */
61
62
/* Define this if your compiler provides __assume() */
63
/* #undef HAVE_BUILTIN_ASSUME */
64
65
/* Define this if your compiler provides __builtin_mul_overflow() */
66
/* #undef HAVE_BUILTIN_MUL_OVERFLOW */
67
68
/* Define this if your compiler provides __builtin_unreachable() */
69
/* #undef HAVE_BUILTIN_UNREACHABLE */
70
71
/* Define to 1 if you have the <bzlib.h> header file. */
72
/* #undef HAVE_BZLIB_H */
73
74
/* Define to 1 if you have the <dirent.h> header file. */
75
/* #undef HAVE_DIRENT_H */
76
77
/* Define to 1 if you have the <dlfcn.h> header file. */
78
/* #undef HAVE_DLFCN_H */
79
80
/* Define to 1 if you have the <editline/readline.h> header file. */
81
/* #undef HAVE_EDITLINE_READLINE_H */
82
83
/* Define to 1 if you have the <edit/readline/readline.h> header file. */
84
/* #undef HAVE_EDIT_READLINE_READLINE_H */
85
86
/* Define to 1 if you have the <inttypes.h> header file. */
87
/* #undef HAVE_INTTYPES_H */
88
89
/* Define to 1 if you have the <limits.h> header file. */
90
/* #undef HAVE_LIMITS_H */
91
92
/* Define to 1 if you have the `memfd_create' function. */
93
/* #undef HAVE_MEMFD_CREATE */
94
95
/* Define to 1 if you have the <minix/config.h> header file. */
96
/* #undef HAVE_MINIX_CONFIG_H */
97
98
/* Define to 1 if you have the `mkostemp' function. */
99
/* #undef HAVE_MKOSTEMP */
100
101
/* Define if you have POSIX threads libraries and header files. */
102
/* #undef HAVE_PTHREAD */
103
104
/* Have PTHREAD_PRIO_INHERIT. */
105
/* #undef HAVE_PTHREAD_PRIO_INHERIT */
106
107
/* Define to 1 if you have the <readline.h> header file. */
108
/* #undef HAVE_READLINE_H */
109
110
/* Define to 1 if you have the <readline/history.h> header file. */
111
/* #undef HAVE_READLINE_HISTORY_H */
112
113
/* Define to 1 if you have the <readline/readline.h> header file. */
114
/* #undef HAVE_READLINE_READLINE_H */
115
116
/* Define to 1 if you have the `realpath' function. */
117
/* #undef HAVE_REALPATH */
118
119
/* Define to 1 if you have the `secure_getenv' function. */
120
/* #undef HAVE_SECURE_GETENV */
121
122
/* Define to 1 if you have the <stdint.h> header file. */
123
/* #undef HAVE_STDINT_H */
124
125
/* Define to 1 if you have the <stdio.h> header file. */
126
/* #undef HAVE_STDIO_H */
127
128
/* Define to 1 if you have the <stdlib.h> header file. */
129
/* #undef HAVE_STDLIB_H */
130
131
/* Define to 1 if you have the <strings.h> header file. */
132
/* #undef HAVE_STRINGS_H */
133
134
/* Define to 1 if you have the <string.h> header file. */
135
/* #undef HAVE_STRING_H */
136
137
/* Define to 1 if you have the <sys/stat.h> header file. */
138
/* #undef HAVE_SYS_STAT_H */
139
140
/* Define to 1 if you have the <sys/types.h> header file. */
141
/* #undef HAVE_SYS_TYPES_H */
142
143
/* Define to 1 if you have the <sys/wait.h> header file. */
144
/* #undef HAVE_SYS_WAIT_H */
145
146
/* Define to 1 if you have the <unistd.h> header file. */
147
/* #undef HAVE_UNISTD_H */
148
149
/* Define to 1 if the compiler supports GCC compatible visibility
150
declarations. */
151
/* #undef HAVE_VISIBILITY */
152
153
/* Define to 1 if you have the <wchar.h> header file. */
154
/* #undef HAVE_WCHAR_H */
155
156
/* Define to 1 if you have the <windows.h> header file. */
157
/* #undef HAVE_WINDOWS_H */
158
159
/* Define to 1 if you have the <zlib.h> header file. */
160
/* #undef HAVE_ZLIB_H */
161
162
/* This limits the amount of memory that may be used while matching a pattern.
163
It applies to both pcre2_match() and pcre2_dfa_match(). It does not apply
164
to JIT matching. The value is in kibibytes (units of 1024 bytes). */
165
#ifndef HEAP_LIMIT
166
#define HEAP_LIMIT 20000000
167
#endif
168
169
/* The value of LINK_SIZE determines the number of bytes used to store links
170
as offsets within the compiled regex. The default is 2, which allows for
171
compiled patterns up to 65535 code units long. This covers the vast
172
majority of cases. However, PCRE2 can also be compiled to use 3 or 4 bytes
173
instead. This allows for longer patterns in extreme cases. */
174
#ifndef LINK_SIZE
175
#define LINK_SIZE 2
176
#endif
177
178
/* Define to the sub-directory where libtool stores uninstalled libraries. */
179
/* This is ignored unless you are using libtool. */
180
#ifndef LT_OBJDIR
181
#define LT_OBJDIR ".libs/"
182
#endif
183
184
/* The value of MATCH_LIMIT determines the default number of times the
185
pcre2_match() function can record a backtrack position during a single
186
matching attempt. The value is also used to limit a loop counter in
187
pcre2_dfa_match(). There is a runtime interface for setting a different
188
limit. The limit exists in order to catch runaway regular expressions that
189
take forever to determine that they do not match. The default is set very
190
large so that it does not accidentally catch legitimate cases. */
191
#ifndef MATCH_LIMIT
192
#define MATCH_LIMIT 10000000
193
#endif
194
195
/* The above limit applies to all backtracks, whether or not they are nested.
196
In some environments it is desirable to limit the nesting of backtracking
197
(that is, the depth of tree that is searched) more strictly, in order to
198
restrict the maximum amount of heap memory that is used. The value of
199
MATCH_LIMIT_DEPTH provides this facility. To have any useful effect, it
200
must be less than the value of MATCH_LIMIT. The default is to use the same
201
value as MATCH_LIMIT. There is a runtime method for setting a different
202
limit. In the case of pcre2_dfa_match(), this limit controls the depth of
203
the internal nested function calls that are used for pattern recursions,
204
lookarounds, and atomic groups. */
205
#ifndef MATCH_LIMIT_DEPTH
206
#define MATCH_LIMIT_DEPTH MATCH_LIMIT
207
#endif
208
209
/* This limit is parameterized just in case anybody ever wants to change it.
210
Care must be taken if it is increased, because it guards against integer
211
overflow caused by enormously large patterns. */
212
#ifndef MAX_NAME_COUNT
213
#define MAX_NAME_COUNT 10000
214
#endif
215
216
/* This limit is parameterized just in case anybody ever wants to change it.
217
Care must be taken if it is increased, because it guards against integer
218
overflow caused by enormously large patterns. */
219
#ifndef MAX_NAME_SIZE
220
#define MAX_NAME_SIZE 128
221
#endif
222
223
/* The value of MAX_VARLOOKBEHIND specifies the default maximum length, in
224
characters, for a variable-length lookbehind assertion. */
225
#ifndef MAX_VARLOOKBEHIND
226
#define MAX_VARLOOKBEHIND 255
227
#endif
228
229
/* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */
230
/* #undef NEVER_BACKSLASH_C */
231
232
/* The value of NEWLINE_DEFAULT determines the default newline character
233
sequence. PCRE2 client programs can override this by selecting other values
234
at run time. The valid values are 1 (CR), 2 (LF), 3 (CRLF), 4 (ANY), 5
235
(ANYCRLF), and 6 (NUL). */
236
#ifndef NEWLINE_DEFAULT
237
#define NEWLINE_DEFAULT 2
238
#endif
239
240
/* Name of package */
241
#define PACKAGE "pcre2"
242
243
/* Define to the address where bug reports for this package should be sent. */
244
#define PACKAGE_BUGREPORT ""
245
246
/* Define to the full name of this package. */
247
#define PACKAGE_NAME "PCRE2"
248
249
/* Define to the full name and version of this package. */
250
#define PACKAGE_STRING "PCRE2 10.47"
251
252
/* Define to the one symbol short name of this package. */
253
#define PACKAGE_TARNAME "pcre2"
254
255
/* Define to the home page for this package. */
256
#define PACKAGE_URL ""
257
258
/* Define to the version of this package. */
259
#define PACKAGE_VERSION "10.47"
260
261
/* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
262
parentheses (of any kind) in a pattern. This limits the amount of system
263
stack that is used while compiling a pattern. */
264
#ifndef PARENS_NEST_LIMIT
265
#define PARENS_NEST_LIMIT 250
266
#endif
267
268
/* The value of PCRE2GREP_BUFSIZE is the starting size of the buffer used by
269
pcre2grep to hold parts of the file it is searching. The buffer will be
270
expanded up to PCRE2GREP_MAX_BUFSIZE if necessary, for files containing
271
very long lines. The actual amount of memory used by pcre2grep is three
272
times this number, because it allows for the buffering of "before" and
273
"after" lines. */
274
#ifndef PCRE2GREP_BUFSIZE
275
#define PCRE2GREP_BUFSIZE 20480
276
#endif
277
278
/* The value of PCRE2GREP_MAX_BUFSIZE specifies the maximum size of the buffer
279
used by pcre2grep to hold parts of the file it is searching. The actual
280
amount of memory used by pcre2grep is three times this number, because it
281
allows for the buffering of "before" and "after" lines. */
282
#ifndef PCRE2GREP_MAX_BUFSIZE
283
#define PCRE2GREP_MAX_BUFSIZE 1048576
284
#endif
285
286
/* See PCRE2_EXP_DEFN; but this is applied to functions in the libpcre2-posix
287
library. */
288
/* #undef PCRE2POSIX_EXP_DEFN */
289
290
/* Define to any value if linking libpcre2-posix dynamically. Ideally, if both
291
static and shared libraries are being built, then PCRE2POSIX_SHARED would
292
be defined only for the shared build. Indeed, this is a requirement on
293
Windows. However, when building with Autoconf and libtool, we compile the
294
sources once only to create both the static and shared library, so in this
295
case, PCRE2POSIX_SHARED should only be defined if the shared library is
296
being built, regardless of whether or not the static library is also being
297
built. */
298
/* #undef PCRE2POSIX_SHARED */
299
300
/* Define to any value to include debugging code. */
301
/* #undef PCRE2_DEBUG */
302
303
/* Define to the annotation for making a symbol visible. */
304
#define PCRE2_EXPORT
305
306
/* If you are compiling for a system other than a Unix-like system or
307
Win32, and it needs some magic to be inserted before the definition
308
of a function that is exported by the library, define this macro to
309
contain the relevant magic. If you do not define this macro, a suitable
310
__declspec value is used for Windows systems; in other environments
311
a compiler relevant "extern" is used with any "visibility" related
312
attributes from PCRE2_EXPORT included.
313
This macro apears at the start of every exported function that is part
314
of the external API. It does not appear on functions that are "external"
315
in the C sense, but which are internal to the library. */
316
/* #undef PCRE2_EXP_DEFN */
317
318
/* Define to any value if linking statically. Ideally, if both static and
319
shared libraries are being built, then PCRE2_STATIC would be defined only
320
for the static build. Indeed, this is a requirement on Windows. With
321
Autoconf and libtool however, it is idiomatic to compile the sources once
322
to create both the static and shared library, so in this case, PCRE2_STATIC
323
should only be defined if no shared library is being built. */
324
/* #undef PCRE2_STATIC */
325
326
/* Define to necessary symbol if this constant uses a non-standard name on
327
your system. */
328
/* #undef PTHREAD_CREATE_JOINABLE */
329
330
/* Define to any non-zero number to enable support for SELinux compatible
331
executable memory allocator in JIT. Note that this will have no effect
332
unless SUPPORT_JIT is also defined. */
333
/* #undef SLJIT_PROT_EXECUTABLE_ALLOCATOR */
334
335
/* Define to 1 if all of the C90 standard headers exist (not just the ones
336
required in a freestanding environment). This macro is provided for
337
backward compatibility; new code need not use it. */
338
/* #undef STDC_HEADERS */
339
340
/* Define to any value to enable differential fuzzing support. */
341
/* #undef SUPPORT_DIFF_FUZZ */
342
343
/* Define to any value to enable support for Just-In-Time compiling. */
344
/* #undef SUPPORT_JIT */
345
346
/* Define to any value to allow pcre2grep to be linked with libbz2, so that it
347
is able to handle .bz2 files. */
348
/* #undef SUPPORT_LIBBZ2 */
349
350
/* Define to any value to allow pcre2test to be linked with libedit. */
351
/* #undef SUPPORT_LIBEDIT */
352
353
/* Define to any value to allow pcre2test to be linked with libreadline. */
354
/* #undef SUPPORT_LIBREADLINE */
355
356
/* Define to any value to allow pcre2grep to be linked with libz, so that it
357
is able to handle .gz files. */
358
/* #undef SUPPORT_LIBZ */
359
360
/* Define to any value to enable callout script support in pcre2grep. */
361
/* #undef SUPPORT_PCRE2GREP_CALLOUT */
362
363
/* Define to any value to enable fork support in pcre2grep callout scripts.
364
This will have no effect unless SUPPORT_PCRE2GREP_CALLOUT is also defined.
365
*/
366
/* #undef SUPPORT_PCRE2GREP_CALLOUT_FORK */
367
368
/* Define to any value to enable JIT support in pcre2grep. Note that this will
369
have no effect unless SUPPORT_JIT is also defined. */
370
/* #undef SUPPORT_PCRE2GREP_JIT */
371
372
/* Define to any value to enable the 16 bit PCRE2 library. */
373
/* #undef SUPPORT_PCRE2_16 */
374
375
/* Define to any value to enable the 32 bit PCRE2 library. */
376
/* #undef SUPPORT_PCRE2_32 */
377
378
/* Define to any value to enable the 8 bit PCRE2 library. */
379
/* #undef SUPPORT_PCRE2_8 */
380
381
/* Define to any value to enable support for Unicode and UTF encoding. This
382
will work even in an EBCDIC environment, but it is incompatible with the
383
EBCDIC macro. That is, PCRE2 can support *either* EBCDIC code *or*
384
ASCII/Unicode, but not both at once. */
385
/* #undef SUPPORT_UNICODE */
386
387
/* Define to any value for valgrind support to find invalid memory reads. */
388
/* #undef SUPPORT_VALGRIND */
389
390
/* Enable extensions on AIX 3, Interix. */
391
#ifndef _ALL_SOURCE
392
# define _ALL_SOURCE 1
393
#endif
394
/* Enable general extensions on macOS. */
395
#ifndef _DARWIN_C_SOURCE
396
# define _DARWIN_C_SOURCE 1
397
#endif
398
/* Enable general extensions on Solaris. */
399
#ifndef __EXTENSIONS__
400
# define __EXTENSIONS__ 1
401
#endif
402
/* Enable GNU extensions on systems that have them. */
403
#ifndef _GNU_SOURCE
404
# define _GNU_SOURCE 1
405
#endif
406
/* Enable X/Open compliant socket functions that do not require linking
407
with -lxnet on HP-UX 11.11. */
408
#ifndef _HPUX_ALT_XOPEN_SOCKET_API
409
# define _HPUX_ALT_XOPEN_SOCKET_API 1
410
#endif
411
/* Identify the host operating system as Minix.
412
This macro does not affect the system headers' behavior.
413
A future release of Autoconf may stop defining this macro. */
414
#ifndef _MINIX
415
/* # undef _MINIX */
416
#endif
417
/* Enable general extensions on NetBSD.
418
Enable NetBSD compatibility extensions on Minix. */
419
#ifndef _NETBSD_SOURCE
420
# define _NETBSD_SOURCE 1
421
#endif
422
/* Enable OpenBSD compatibility extensions on NetBSD.
423
Oddly enough, this does nothing on OpenBSD. */
424
#ifndef _OPENBSD_SOURCE
425
# define _OPENBSD_SOURCE 1
426
#endif
427
/* Define to 1 if needed for POSIX-compatible behavior. */
428
#ifndef _POSIX_SOURCE
429
/* # undef _POSIX_SOURCE */
430
#endif
431
/* Define to 2 if needed for POSIX-compatible behavior. */
432
#ifndef _POSIX_1_SOURCE
433
/* # undef _POSIX_1_SOURCE */
434
#endif
435
/* Enable POSIX-compatible threading on Solaris. */
436
#ifndef _POSIX_PTHREAD_SEMANTICS
437
# define _POSIX_PTHREAD_SEMANTICS 1
438
#endif
439
/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
440
#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
441
# define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
442
#endif
443
/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
444
#ifndef __STDC_WANT_IEC_60559_BFP_EXT__
445
# define __STDC_WANT_IEC_60559_BFP_EXT__ 1
446
#endif
447
/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
448
#ifndef __STDC_WANT_IEC_60559_DFP_EXT__
449
# define __STDC_WANT_IEC_60559_DFP_EXT__ 1
450
#endif
451
/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
452
#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
453
# define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
454
#endif
455
/* Enable extensions specified by ISO/IEC TS 18661-3:2015. */
456
#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
457
# define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
458
#endif
459
/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
460
#ifndef __STDC_WANT_LIB_EXT2__
461
# define __STDC_WANT_LIB_EXT2__ 1
462
#endif
463
/* Enable extensions specified by ISO/IEC 24747:2009. */
464
#ifndef __STDC_WANT_MATH_SPEC_FUNCS__
465
# define __STDC_WANT_MATH_SPEC_FUNCS__ 1
466
#endif
467
/* Enable extensions on HP NonStop. */
468
#ifndef _TANDEM_SOURCE
469
# define _TANDEM_SOURCE 1
470
#endif
471
/* Enable X/Open extensions. Define to 500 only if necessary
472
to make mbstate_t available. */
473
#ifndef _XOPEN_SOURCE
474
/* # undef _XOPEN_SOURCE */
475
#endif
476
477
/* Version number of package */
478
#define VERSION "10.47"
479
480
/* Number of bits in a file offset, on hosts where this is settable. */
481
/* #undef _FILE_OFFSET_BITS */
482
483
/* Define for large files, on AIX-style hosts. */
484
/* #undef _LARGE_FILES */
485
486
/* Define to empty if `const' does not conform to ANSI C. */
487
/* #undef const */
488
489
/* Define to the type of a signed integer type of width exactly 64 bits if
490
such a type exists and the standard includes do not define it. */
491
/* #undef int64_t */
492
493
/* Define to `unsigned int' if <sys/types.h> does not define. */
494
/* #undef size_t */
495
496