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