"Fossies" - the Fresh Open Source Software Archive

Member "AutoHotkey_L-1.1.33.09/source/lib_pcre/pcre/config.h" (8 May 2021, 14312 Bytes) of package /windows/misc/AutoHotkey_L-1.1.33.09.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "config.h" see the Fossies "Dox" file reference documentation.

    1 /* config.h.  Generated from config.h.in by configure.  */
    2 /* config.h.in.  Generated from configure.ac by autoheader.  */
    3 
    4 #include "../../config.h" // Allow AutoHotkey config.h to define charset (_MBCS or UNICODE).
    5 
    6 /* On Unix-like systems config.h.in is converted by "configure" into config.h.
    7 Some other environments also support the use of "configure". PCRE is written in
    8 Standard C, but there are a few non-standard things it can cope with, allowing
    9 it to run on SunOS4 and other "close to standard" systems.
   10 
   11 If you are going to build PCRE "by hand" on a system without "configure" you
   12 should copy the distributed config.h.generic to config.h, and then set up the
   13 macro definitions the way you need them. You must then add -DHAVE_CONFIG_H to
   14 all of your compile commands, so that config.h is included at the start of
   15 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 
   20 PCRE uses memmove() if HAVE_MEMMOVE is set to 1; otherwise it uses bcopy() if
   21 HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set
   22 them both to 0; an emulation function will be used. */
   23 
   24 /* By default, the \R escape sequence matches any Unicode line ending
   25    character or sequence of characters. If BSR_ANYCRLF is defined, this is
   26    changed so that backslash-R matches only CR, LF, or CRLF. The build-time
   27    default can be overridden by the user of PCRE at runtime. On systems that
   28    support it, "configure" can be used to override the default. */
   29 /* #undef BSR_ANYCRLF */
   30 /* AutoHotkey: BSR_ANYCRLF above is left undefined for backward compatibility with earlier versions
   31 of AutoHotkey.  In any case, it might be the best default because it matches up with the default behavior
   32 of `a (PCRE_NEWLINE_ANY), namely that all of the following are considered newlines:
   33 `r, `n, `r`n, `v/VT/vertical tab/chr(0xB), `f/FF/formfeed/chr(0xC), and NEL/next-line/chr(0x85).*/
   34 
   35 /* If you are compiling for a system that uses EBCDIC instead of ASCII
   36    character codes, define this macro as 1. On systems that can use
   37    "configure", this can be done via --enable-ebcdic. PCRE will then assume
   38    that all input strings are in EBCDIC. If you do not define this macro, PCRE
   39    will assume input strings are ASCII or UTF-8/16 Unicode. It is not possible
   40    to build a version of PCRE that supports both EBCDIC and UTF-8/16. */
   41 /* #undef EBCDIC */
   42 
   43 /* Define to 1 if you have the `bcopy' function. */
   44 #ifndef HAVE_BCOPY
   45 #define HAVE_BCOPY 0  /* AutoHotkey: Changed from 1 to 0. */
   46 #endif
   47 
   48 /* Define to 1 if you have the <bits/type_traits.h> header file. */
   49 /* #undef HAVE_BITS_TYPE_TRAITS_H */
   50 
   51 /* Define to 1 if you have the <bzlib.h> header file. */
   52 /* #undef HAVE_BZLIB_H */
   53 
   54 /* Define to 1 if you have the <dirent.h> header file. */
   55 #ifndef HAVE_DIRENT_H
   56 #define HAVE_DIRENT_H 0  /* AutoHotkey: Changed from 1 to 0. */
   57 #endif
   58 
   59 /* Define to 1 if you have the <dlfcn.h> header file. */
   60 #ifndef HAVE_DLFCN_H
   61 #define HAVE_DLFCN_H 0  /* AutoHotkey: Changed from 1 to 0. */
   62 #endif
   63 
   64 /* Define to 1 if you have the <inttypes.h> header file. */
   65 #ifndef HAVE_INTTYPES_H
   66 #define HAVE_INTTYPES_H 0  /* AutoHotkey: Changed from 1 to 0. */
   67 #endif
   68 
   69 /* Define to 1 if you have the <limits.h> header file. */
   70 #ifndef HAVE_LIMITS_H
   71 #define HAVE_LIMITS_H 1
   72 #endif
   73 
   74 /* Define to 1 if the system has the type `long long'. */
   75 #ifndef HAVE_LONG_LONG
   76 #define HAVE_LONG_LONG 1
   77 #endif
   78 
   79 /* Define to 1 if you have the `memmove' function. */
   80 #ifndef HAVE_MEMMOVE
   81 #define HAVE_MEMMOVE 1
   82 #endif
   83 
   84 /* Define to 1 if you have the <memory.h> header file. */
   85 #ifndef HAVE_MEMORY_H
   86 #define HAVE_MEMORY_H 1
   87 #endif
   88 
   89 /* Define to 1 if you have the <readline/history.h> header file. */
   90 /* #undef HAVE_READLINE_HISTORY_H */
   91 
   92 /* Define to 1 if you have the <readline/readline.h> header file. */
   93 /* #undef HAVE_READLINE_READLINE_H */
   94 
   95 /* Define to 1 if you have the <stdint.h> header file. */
   96 #ifndef HAVE_STDINT_H
   97 #define HAVE_STDINT_H 0  /* AutoHotkey: Changed from 1 to 0. */
   98 #endif
   99 
  100 /* Define to 1 if you have the <stdlib.h> header file. */
  101 #ifndef HAVE_STDLIB_H
  102 #define HAVE_STDLIB_H 1
  103 #endif
  104 
  105 /* Define to 1 if you have the `strerror' function. */
  106 #ifndef HAVE_STRERROR
  107 #define HAVE_STRERROR 1
  108 #endif
  109 
  110 /* Define to 1 if you have the <string> header file. */
  111 #ifndef HAVE_STRING
  112 #define HAVE_STRING 1
  113 #endif
  114 
  115 /* Define to 1 if you have the <strings.h> header file. */
  116 #ifndef HAVE_STRINGS_H
  117 #define HAVE_STRINGS_H 0  /* AutoHotkey: Changed from 1 to 0. */
  118 #endif
  119 
  120 /* Define to 1 if you have the <string.h> header file. */
  121 #ifndef HAVE_STRING_H
  122 #define HAVE_STRING_H 1
  123 #endif
  124 
  125 /* Define to 1 if you have `strtoimax'. */
  126 /* #undef HAVE_STRTOIMAX */
  127 
  128 /* Define to 1 if you have `strtoll'. */
  129 #ifndef HAVE_STRTOLL
  130 #define HAVE_STRTOLL 0  /* AutoHotkey: Changed from 1 to 0. */
  131 #endif
  132 
  133 /* Define to 1 if you have `strtoq'. */
  134 #ifndef HAVE_STRTOQ
  135 #define HAVE_STRTOQ 1
  136 #endif
  137 
  138 /* Define to 1 if you have the <sys/stat.h> header file. */
  139 #ifndef HAVE_SYS_STAT_H
  140 #define HAVE_SYS_STAT_H 1
  141 #endif
  142 
  143 /* Define to 1 if you have the <sys/types.h> header file. */
  144 #ifndef HAVE_SYS_TYPES_H
  145 #define HAVE_SYS_TYPES_H 1
  146 #endif
  147 
  148 /* Define to 1 if you have the <type_traits.h> header file. */
  149 /* #undef HAVE_TYPE_TRAITS_H */
  150 
  151 /* Define to 1 if you have the <unistd.h> header file. */
  152 #ifndef HAVE_UNISTD_H
  153 #define HAVE_UNISTD_H 0  /* AutoHotkey: Changed from 1 to 0. */
  154 #endif
  155 
  156 /* Define to 1 if the system has the type `unsigned long long'. */
  157 #ifndef HAVE_UNSIGNED_LONG_LONG
  158 #define HAVE_UNSIGNED_LONG_LONG 1
  159 #endif
  160 
  161 /* Define to 1 if you have the <windows.h> header file. */
  162 /* #undef HAVE_WINDOWS_H */
  163 #define HAVE_WINDOWS_H 1  /* AutoHotkey: Added. */
  164 
  165 /* Define to 1 if you have the <zlib.h> header file. */
  166 /* #undef HAVE_ZLIB_H */
  167 
  168 /* Define to 1 if you have `_strtoi64'. */
  169 #define HAVE__STRTOI64 1  /* AutoHotkey: Added. */
  170 
  171 /* The value of LINK_SIZE determines the number of bytes used to store links
  172    as offsets within the compiled regex. The default is 2, which allows for
  173    compiled patterns up to 64K long. This covers the vast majority of cases.
  174    However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows
  175    for longer patterns in extreme cases. On systems that support it,
  176    "configure" can be used to override this default. */
  177 #ifndef LINK_SIZE
  178 #define LINK_SIZE 2  /* AutoHotkey: PHP also seems to use 2, so it's likely the best compromise between memory utilization and being able to handle unusually large compiled patterns. */
  179 #endif
  180 
  181 /* Define to the sub-directory in which libtool stores uninstalled libraries.
  182    */
  183 /* #undef LT_OBJDIR */
  184 
  185 /* The value of MATCH_LIMIT determines the default number of times the
  186    internal match() function can be called during a single execution of
  187    pcre_exec(). There is a runtime interface for setting a different limit.
  188    The limit exists in order to catch runaway regular expressions that take
  189    for ever to determine that they do not match. The default is set very large
  190    so that it does not accidentally catch legitimate cases. On systems that
  191    support it, "configure" can be used to override this default default. */
  192 #ifndef MATCH_LIMIT
  193 #define MATCH_LIMIT 10000000
  194 #endif
  195 
  196 /* The above limit applies to all calls of match(), whether or not they
  197    increase the recursion depth. In some environments it is desirable to limit
  198    the depth of recursive calls of match() more strictly, in order to restrict
  199    the maximum amount of stack (or heap, if NO_RECURSE is defined) that is
  200    used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of
  201    match(). To have any useful effect, it must be less than the value of
  202    MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is
  203    a runtime method for setting a different limit. On systems that support it,
  204    "configure" can be used to override the default. */
  205 /* AutoHotkey: Original value was MATCH_LIMIT (i.e. 10000000).  It was lowered to 6000 so that
  206 the program's current stack limit of 4 MB won't be exceeded. The limit was computed from the
  207 following info in PCRE docs somewhere: "As a very rough rule of thumb, you should reckon on
  208 about 500 bytes per recursion. Thus, if you want to limit your stack usage to 8Mb, you should
  209 set the limit at 16000 recursions. A 64Mb stack, on the other hand, can support around
  210 128000 recursions."
  211 */
  212 #ifndef MATCH_LIMIT_RECURSION
  213 #define MATCH_LIMIT_RECURSION 6000
  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_COUNT
  220 #define MAX_NAME_COUNT 10000
  221 #endif
  222 
  223 /* This limit is parameterized just in case anybody ever wants to change it.
  224    Care must be taken if it is increased, because it guards against integer
  225    overflow caused by enormously large patterns. */
  226 #ifndef MAX_NAME_SIZE
  227 #define MAX_NAME_SIZE 32
  228 #endif
  229 
  230 /* The value of NEWLINE determines the newline character sequence. On systems
  231    that support it, "configure" can be used to override the default, which is
  232    10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF), -1 (ANY), or -2
  233    (ANYCRLF). */
  234 /* AutoHotkey: Changed below from default of 10 to 3338 because there's a
  235    slight chance that compiling this way improves performance. */
  236 #ifndef NEWLINE
  237 #define NEWLINE 3338
  238 #endif
  239 
  240 /* PCRE uses recursive function calls to handle backtracking while matching.
  241    This can sometimes be a problem on systems that have stacks of limited
  242    size. Define NO_RECURSE to get a version that doesn't use recursion in the
  243    match() function; instead it creates its own stack by steam using
  244    pcre_recurse_malloc() to obtain memory from the heap. For more detail, see
  245    the comments and other stuff just above the match() function. On systems
  246    that support it, "configure" can be used to set this in the Makefile (use
  247    --disable-stack-for-recursion). */
  248 /* #undef NO_RECURSE */
  249 
  250 /* Name of package */
  251 #define PACKAGE "pcre"
  252 
  253 /* Define to the address where bug reports for this package should be sent. */
  254 #define PACKAGE_BUGREPORT ""
  255 
  256 /* Define to the full name of this package. */
  257 #define PACKAGE_NAME "PCRE"
  258 
  259 /* Define to the full name and version of this package. */
  260 #define PACKAGE_STRING "PCRE 8.30"
  261 
  262 /* Define to the one symbol short name of this package. */
  263 #define PACKAGE_TARNAME "pcre"
  264 
  265 /* Define to the home page for this package. */
  266 /* #undef PACKAGE_URL */
  267 
  268 /* Define to the version of this package. */
  269 #define PACKAGE_VERSION "8.30"
  270 
  271 /* The value of PCREGREP_BUFSIZE determines the size of buffer used by
  272    pcregrep to hold parts of the file it is searching. On systems that support
  273    it, "configure" can be used to override the default, which is 8192. This is
  274    also the minimum value. The actual amount of memory used by pcregrep is
  275    three times this number, because it allows for the buffering of "before"
  276    and "after" lines. */
  277 #ifndef PCREGREP_BUFSIZE
  278 #define PCREGREP_BUFSIZE 20480
  279 #endif
  280 
  281 
  282 /* If you are compiling for a system other than a Unix-like system or
  283    Win32, and it needs some magic to be inserted before the definition
  284    of a function that is exported by the library, define this macro to
  285    contain the relevant magic. If you do not define this macro, it
  286    defaults to "extern" for a C compiler and "extern C" for a C++
  287    compiler on non-Win32 systems. This macro apears at the start of
  288    every exported function that is part of the external API. It does
  289    not appear on functions that are "external" in the C sense, but
  290    which are internal to the library. */
  291 /* #undef PCRE_EXP_DEFN */
  292 
  293 /* Define if linking statically (TODO: make nice with Libtool) */
  294 /* #undef PCRE_STATIC */
  295 #define PCRE_STATIC 1  /* AutoHotkey: Added because it reduces code size of AutoHotkey.exe and others by 1-2 KB.  It's also more appropriate since the linking of this library is at compile-time (i.e. not a DLL). */
  296 
  297 /* When calling PCRE via the POSIX interface, additional working storage is
  298    required for holding the pointers to capturing substrings because PCRE
  299    requires three integers per substring, whereas the POSIX interface provides
  300    only two. If the number of expected substrings is small, the wrapper
  301    function uses space on the stack, because this is faster than using
  302    malloc() for each call. The threshold above which the stack is no longer
  303    used is defined by POSIX_MALLOC_THRESHOLD. On systems that support it,
  304    "configure" can be used to override this default. */
  305 #ifndef POSIX_MALLOC_THRESHOLD
  306 #define POSIX_MALLOC_THRESHOLD 10
  307 #endif
  308 
  309 /* Define to 1 if you have the ANSI C header files. */
  310 #ifndef STDC_HEADERS
  311 #define STDC_HEADERS 1
  312 #endif
  313 
  314 /* Define to enable support for Just-In-Time compiling. */
  315 /* #undef SUPPORT_JIT */
  316 
  317 /* Define to allow pcregrep to be linked with libbz2, so that it is able to
  318    handle .bz2 files. */
  319 /* #undef SUPPORT_LIBBZ2 */
  320 
  321 /* Define to allow pcretest to be linked with libreadline. */
  322 /* #undef SUPPORT_LIBREADLINE */
  323 
  324 /* Define to allow pcregrep to be linked with libz, so that it is able to
  325    handle .gz files. */
  326 /* #undef SUPPORT_LIBZ */
  327 
  328 #ifdef UNICODE
  329 
  330 /* Define to enable the 16 bit PCRE library. */
  331 #define SUPPORT_PCRE16
  332 
  333 /* Define to enable support for Unicode properties */
  334 #define SUPPORT_UCP
  335 
  336 
  337 /* Define to enable support for the UTF-8/16 Unicode encoding. This will work
  338    even in an EBCDIC environment, but it is incompatible with the EBCDIC
  339    macro. That is, PCRE can support *either* EBCDIC code *or* ASCII/UTF-8/16,
  340    but not both at once. */
  341 #define SUPPORT_UTF
  342 
  343 /* AutoHotkey: Define to validate UTF input. Leave undefined for performance. */
  344 /* #undef SUPPORT_UTF_VALIDATION */
  345 
  346 #else
  347 
  348 /* Define to enable the 8 bit PCRE library. */
  349 #define SUPPORT_PCRE8
  350 
  351 #endif
  352 
  353 /* Define to enable JIT support in pcregrep. */
  354 /* #undef SUPPORT_PCREGREP_JIT */
  355 
  356 /* Version number of package */
  357 #ifndef VERSION
  358 #define VERSION "8.30"
  359 #endif
  360 
  361 /* Define to empty if `const' does not conform to ANSI C. */
  362 /* #undef const */
  363 
  364 /* Define to the type of a signed integer type of width exactly 64 bits if
  365    such a type exists and the standard includes do not define it. */
  366 /* #define int64_t __int64 */
  367 
  368 /* Define to `unsigned int' if <sys/types.h> does not define. */
  369 /* #undef size_t */