Changeset 27419 in webkit for trunk/JavaScriptCore/pcre/pcre-config.h
- Timestamp:
- Nov 3, 2007, 10:22:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/pcre/pcre-config.h
r26697 r27419 1 2 /* On Unix-like systems config.in is converted by "configure" into config.h.3 Some other environments also support the use of "configure". PCRE is written in4 Standard C, but there are a few non-standard things it can cope with, allowing5 it to run on SunOS4 and other "close to standard" systems.6 7 On a non-Unix-like system you should just copy this file into config.h, and set8 up the macros the way you need them. You should normally change the definitions9 of HAVE_STRERROR and HAVE_MEMMOVE to 1. Unfortunately, because of the way10 autoconf works, these cannot be made the defaults. If your system has bcopy()11 and not memmove(), change the definition of HAVE_BCOPY instead of HAVE_MEMMOVE.12 If your system has neither bcopy() nor memmove(), leave them both as 0; an13 emulation function will be used. */14 15 /* If you are compiling for a system that uses EBCDIC instead of ASCII16 character codes, define this macro as 1. On systems that can use "configure",17 this can be done via --enable-ebcdic. */18 19 #ifndef EBCDIC20 #define EBCDIC 021 #endif22 23 /* If you are compiling for a system other than a Unix-like system or Win32,24 and it needs some magic to be inserted before the definition of a function that25 is exported by the library, define this macro to contain the relevant magic. If26 you do not define this macro, it defaults to "extern" for a C compiler and27 "extern C" for a C++ compiler on non-Win32 systems. This macro apears at the28 start of every exported function that is part of the external API. It does not29 appear on functions that are "external" in the C sense, but which are internal30 to the library. */31 32 #define PCRE_DATA_SCOPE extern33 34 /* Define the following macro to empty if the "const" keyword does not work. */35 36 #undef const37 38 /* Define the following macro to "unsigned" if <stddef.h> does not define39 size_t. */40 41 #undef size_t42 43 /* The following two definitions are mainly for the benefit of SunOS4, which44 does not have the strerror() or memmove() functions that should be present in45 all Standard C libraries. The macros HAVE_STRERROR and HAVE_MEMMOVE should46 normally be defined with the value 1 for other systems, but unfortunately we47 cannot make this the default because "configure" files generated by autoconf48 will only change 0 to 1; they won't change 1 to 0 if the functions are not49 found. */50 51 #define HAVE_STRERROR 152 #define HAVE_MEMMOVE 153 54 /* There are some non-Unix-like systems that don't even have bcopy(). If this55 macro is false, an emulation is used. If HAVE_MEMMOVE is set to 1, the value of56 HAVE_BCOPY is not relevant. */57 58 #define HAVE_BCOPY 059 60 /* The value of NEWLINE determines the newline character. The default is to61 leave it up to the compiler, but some sites want to force a particular value.62 On Unix-like systems, "configure" can be used to override this default. */63 64 #ifndef NEWLINE65 #define NEWLINE '\n'66 #endif67 68 1 /* The value of LINK_SIZE determines the number of bytes used to store links as 69 2 offsets within the compiled regex. The default is 2, which allows for compiled … … 73 6 to override this default. */ 74 7 75 #ifndef LINK_SIZE76 8 #define LINK_SIZE 2 77 #endif78 79 /* When calling PCRE via the POSIX interface, additional working storage is80 required for holding the pointers to capturing substrings because PCRE requires81 three integers per substring, whereas the POSIX interface provides only two. If82 the number of expected substrings is small, the wrapper function uses space on83 the stack, because this is faster than using malloc() for each call. The84 threshold above which the stack is no longer used is defined by POSIX_MALLOC_85 THRESHOLD. On systems that support it, "configure" can be used to override this86 default. */87 88 #ifndef POSIX_MALLOC_THRESHOLD89 #define POSIX_MALLOC_THRESHOLD 1090 #endif91 92 /* PCRE uses recursive function calls to handle backtracking while matching.93 This can sometimes be a problem on systems that have stacks of limited size.94 Define NO_RECURSE to get a version that doesn't use recursion in the match()95 function; instead it creates its own stack by steam using pcre_recurse_malloc()96 to obtain memory from the heap. For more detail, see the comments and other97 stuff just above the match() function. On systems that support it, "configure"98 can be used to set this in the Makefile (use --disable-stack-for-recursion). */99 100 #define NO_RECURSE101 9 102 10 /* The value of MATCH_LIMIT determines the default number of times the internal … … 108 16 override this default default. */ 109 17 110 #ifndef MATCH_LIMIT111 18 #define MATCH_LIMIT 10000000 112 #endif113 19 114 20 /* The above limit applies to all calls of match(), whether or not they … … 121 27 "configure" can be used to override this default default. */ 122 28 123 #ifndef MATCH_LIMIT_RECURSION124 29 #define MATCH_LIMIT_RECURSION MATCH_LIMIT 125 #endif126 127 #define SUPPORT_UCP 1128 #define SUPPORT_UTF8 1129 130 #define JAVASCRIPT 1131 30 132 31 /* End */
Note:
See TracChangeset
for help on using the changeset viewer.