libraries/spcre/libpcre/inc/config.h
changeset 0 7f656887cf89
equal deleted inserted replaced
-1:000000000000 0:7f656887cf89
       
     1 #include <e32def.h>
       
     2 #ifndef _PCRE_CONFIG_H
       
     3 #define _PCRE_CONFIG_H
       
     4 
       
     5 /* config.h.  Generated from config.h.in by configure.  */
       
     6 /* config.h.in.  Generated from configure.ac by autoheader.  */
       
     7 
       
     8 
       
     9 /* On Unix-like systems config.h.in is converted by "configure" into config.h.
       
    10 Some other environments also support the use of "configure". PCRE is written in
       
    11 Standard C, but there are a few non-standard things it can cope with, allowing
       
    12 it to run on SunOS4 and other "close to standard" systems.
       
    13 
       
    14 If you are going to build PCRE "by hand" on a system without "configure" you
       
    15 should copy the distributed config.h.generic to config.h, and then set up the
       
    16 macro definitions the way you need them. You must then add -DHAVE_CONFIG_H to
       
    17 all of your compile commands, so that config.h is included at the start of
       
    18 every source.
       
    19 
       
    20 Alternatively, you can avoid editing by using -D on the compiler command line
       
    21 to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H.
       
    22 
       
    23 PCRE uses memmove() if HAVE_MEMMOVE is set to 1; otherwise it uses bcopy() if
       
    24 HAVE_BCOPY is set to 1. If your system has neither bcopy() nor memmove(), set
       
    25 them both to 0; an emulation function will be used. */
       
    26 
       
    27 /* By default, the \R escape sequence matches any Unicode line ending
       
    28    character or sequence of characters. If BSR_ANYCRLF is defined, this is
       
    29    changed so that backslash-R matches only CR, LF, or CRLF. The build- time
       
    30    default can be overridden by the user of PCRE at runtime. On systems that
       
    31    support it, "configure" can be used to override the default. */
       
    32 /* #undef BSR_ANYCRLF */
       
    33 
       
    34 /* If you are compiling for a system that uses EBCDIC instead of ASCII
       
    35    character codes, define this macro as 1. On systems that can use
       
    36    "configure", this can be done via --enable-ebcdic. */
       
    37 /* #undef EBCDIC */
       
    38 
       
    39 /* Define to 1 if you have the `bcopy' function. */
       
    40 #ifndef HAVE_BCOPY
       
    41 #define HAVE_BCOPY 1
       
    42 #endif
       
    43 
       
    44 /* Define to 1 if you have the <bits/type_traits.h> header file. */
       
    45 /* #undef HAVE_BITS_TYPE_TRAITS_H */
       
    46 
       
    47 /* Define to 1 if you have the <bzlib.h> header file. */
       
    48 #ifndef HAVE_BZLIB_H
       
    49 #define HAVE_BZLIB_H 0
       
    50 #endif
       
    51 
       
    52 /* Define to 1 if you have the <dirent.h> header file. */
       
    53 #ifndef HAVE_DIRENT_H
       
    54 #define HAVE_DIRENT_H 0
       
    55 #endif
       
    56 
       
    57 /* Define to 1 if you have the <dlfcn.h> header file. */
       
    58 #ifndef HAVE_DLFCN_H
       
    59 #define HAVE_DLFCN_H 0
       
    60 #endif
       
    61 
       
    62 /* Define to 1 if you have the <inttypes.h> header file. */
       
    63 #ifndef HAVE_INTTYPES_H
       
    64 #define HAVE_INTTYPES_H 0
       
    65 #endif
       
    66 
       
    67 /* Define to 1 if you have the <limits.h> header file. */
       
    68 #ifndef HAVE_LIMITS_H
       
    69 #define HAVE_LIMITS_H 1
       
    70 #endif
       
    71 
       
    72 /* Define to 1 if the system has the type `long long'. */
       
    73 #ifndef HAVE_LONG_LONG
       
    74 #define HAVE_LONG_LONG 1
       
    75 #endif
       
    76 
       
    77 /* Define to 1 if you have the `memmove' function. */
       
    78 #ifndef HAVE_MEMMOVE
       
    79 #define HAVE_MEMMOVE 1
       
    80 #endif
       
    81 
       
    82 /* Define to 1 if you have the <memory.h> header file. */
       
    83 #ifndef HAVE_MEMORY_H
       
    84 #define HAVE_MEMORY_H 0
       
    85 #endif
       
    86 
       
    87 /* Define to 1 if you have the <readline/history.h> header file. */
       
    88 #ifndef HAVE_READLINE_HISTORY_H
       
    89 #define HAVE_READLINE_HISTORY_H 0
       
    90 #endif
       
    91 
       
    92 /* Define to 1 if you have the <readline/readline.h> header file. */
       
    93 #ifndef HAVE_READLINE_READLINE_H
       
    94 #define HAVE_READLINE_READLINE_H 0
       
    95 #endif
       
    96 
       
    97 /* Define to 1 if you have the <stdint.h> header file. */
       
    98 #ifndef HAVE_STDINT_H
       
    99 #define HAVE_STDINT_H 0
       
   100 #endif
       
   101 
       
   102 /* Define to 1 if you have the <stdlib.h> header file. */
       
   103 #ifndef HAVE_STDLIB_H
       
   104 #define HAVE_STDLIB_H 1
       
   105 #endif
       
   106 
       
   107 /* Define to 1 if you have the `strerror' function. */
       
   108 #ifndef HAVE_STRERROR
       
   109 #define HAVE_STRERROR 1
       
   110 #endif
       
   111 
       
   112 /* Define to 1 if you have the <string> header file. */
       
   113 #ifndef HAVE_STRING
       
   114 #define HAVE_STRING 1
       
   115 #endif
       
   116 
       
   117 /* Define to 1 if you have the <strings.h> header file. */
       
   118 #ifndef HAVE_STRINGS_H
       
   119 #define HAVE_STRINGS_H 0
       
   120 #endif
       
   121 
       
   122 /* Define to 1 if you have the <string.h> header file. */
       
   123 #ifndef HAVE_STRING_H
       
   124 #define HAVE_STRING_H 1
       
   125 #endif
       
   126 
       
   127 /* Define to 1 if you have the `strtoll' function. */
       
   128 /* #undef HAVE_STRTOLL */
       
   129 
       
   130 /* Define to 1 if you have the `strtoq' function. */
       
   131 #ifndef HAVE_STRTOQ
       
   132 #define HAVE_STRTOQ 1
       
   133 #endif
       
   134 
       
   135 /* Define to 1 if you have the <sys/stat.h> header file. */
       
   136 #ifndef HAVE_SYS_STAT_H
       
   137 #define HAVE_SYS_STAT_H 1
       
   138 #endif
       
   139 
       
   140 /* Define to 1 if you have the <sys/types.h> header file. */
       
   141 #ifndef HAVE_SYS_TYPES_H
       
   142 #define HAVE_SYS_TYPES_H 1
       
   143 #endif
       
   144 
       
   145 /* Define to 1 if you have the <type_traits.h> header file. */
       
   146 /* #undef HAVE_TYPE_TRAITS_H */
       
   147 
       
   148 /* Define to 1 if you have the <unistd.h> header file. */
       
   149 #ifndef HAVE_UNISTD_H
       
   150 #define HAVE_UNISTD_H 1
       
   151 #endif
       
   152 
       
   153 /* Define to 1 if the system has the type `unsigned long long'. */
       
   154 #ifndef HAVE_UNSIGNED_LONG_LONG
       
   155 #define HAVE_UNSIGNED_LONG_LONG 1
       
   156 #endif
       
   157 
       
   158 /* Define to 1 if you have the <windows.h> header file. */
       
   159 /* #undef HAVE_WINDOWS_H */
       
   160 
       
   161 /* Define to 1 if you have the <zlib.h> header file. */
       
   162 #ifndef HAVE_ZLIB_H
       
   163 #define HAVE_ZLIB_H 0
       
   164 #endif
       
   165 
       
   166 /* Define to 1 if you have the `_strtoi64' function. */
       
   167 /* #undef HAVE__STRTOI64 */
       
   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 64K long. This covers the vast majority of cases.
       
   172    However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows
       
   173    for longer patterns in extreme cases. On systems that support it,
       
   174    "configure" can be used to override this default. */
       
   175 #ifndef LINK_SIZE
       
   176 #define LINK_SIZE 2
       
   177 #endif
       
   178 
       
   179 /* The value of MATCH_LIMIT determines the default number of times the
       
   180    internal match() function can be called during a single execution of
       
   181    pcre_exec(). There is a runtime interface for setting a different limit.
       
   182    The limit exists in order to catch runaway regular expressions that take
       
   183    for ever to determine that they do not match. The default is set very large
       
   184    so that it does not accidentally catch legitimate cases. On systems that
       
   185    support it, "configure" can be used to override this default default. */
       
   186 #ifndef MATCH_LIMIT
       
   187 #define MATCH_LIMIT 10000000
       
   188 #endif
       
   189 
       
   190 /* The above limit applies to all calls of match(), whether or not they
       
   191    increase the recursion depth. In some environments it is desirable to limit
       
   192    the depth of recursive calls of match() more strictly, in order to restrict
       
   193    the maximum amount of stack (or heap, if NO_RECURSE is defined) that is
       
   194    used. The value of MATCH_LIMIT_RECURSION applies only to recursive calls of
       
   195    match(). To have any useful effect, it must be less than the value of
       
   196    MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There is
       
   197    a runtime method for setting a different limit. On systems that support it,
       
   198    "configure" can be used to override the default. */
       
   199 #ifndef MATCH_LIMIT_RECURSION
       
   200 #define MATCH_LIMIT_RECURSION MATCH_LIMIT
       
   201 #endif
       
   202 
       
   203 /* This limit is parameterized just in case anybody ever wants to change it.
       
   204    Care must be taken if it is increased, because it guards against integer
       
   205    overflow caused by enormously large patterns. */
       
   206 #ifndef MAX_NAME_COUNT
       
   207 #define MAX_NAME_COUNT 10000
       
   208 #endif
       
   209 
       
   210 /* This limit is parameterized just in case anybody ever wants to change it.
       
   211    Care must be taken if it is increased, because it guards against integer
       
   212    overflow caused by enormously large patterns. */
       
   213 #ifndef MAX_NAME_SIZE
       
   214 #define MAX_NAME_SIZE 32
       
   215 #endif
       
   216 
       
   217 /* The value of NEWLINE determines the newline character sequence. On systems
       
   218    that support it, "configure" can be used to override the default, which is
       
   219    10. The possible values are 10 (LF), 13 (CR), 3338 (CRLF), -1 (ANY), or -2
       
   220    (ANYCRLF). */
       
   221 #ifndef NEWLINE
       
   222 #define NEWLINE 10
       
   223 #endif
       
   224 
       
   225 /* PCRE uses recursive function calls to handle backtracking while matching.
       
   226    This can sometimes be a problem on systems that have stacks of limited
       
   227    size. Define NO_RECURSE to get a version that doesn't use recursion in the
       
   228    match() function; instead it creates its own stack by steam using
       
   229    pcre_recurse_malloc() to obtain memory from the heap. For more detail, see
       
   230    the comments and other stuff just above the match() function. On systems
       
   231    that support it, "configure" can be used to set this in the Makefile (use
       
   232    --disable-stack-for-recursion). */
       
   233 #define NO_RECURSE
       
   234 
       
   235 /* Name of package */
       
   236 #define PACKAGE "pcre"
       
   237 
       
   238 /* Define to the address where bug reports for this package should be sent. */
       
   239 #define PACKAGE_BUGREPORT ""
       
   240 
       
   241 /* Define to the full name of this package. */
       
   242 #define PACKAGE_NAME "PCRE"
       
   243 
       
   244 /* Define to the full name and version of this package. */
       
   245 #define PACKAGE_STRING "PCRE 7.8"
       
   246 
       
   247 /* Define to the one symbol short name of this package. */
       
   248 #define PACKAGE_TARNAME "pcre"
       
   249 
       
   250 /* Define to the version of this package. */
       
   251 #define PACKAGE_VERSION "7.8"
       
   252 
       
   253 
       
   254 /* If you are compiling for a system other than a Unix-like system or
       
   255    Win32, and it needs some magic to be inserted before the definition
       
   256    of a function that is exported by the library, define this macro to
       
   257    contain the relevant magic. If you do not define this macro, it
       
   258    defaults to "extern" for a C compiler and "extern C" for a C++
       
   259    compiler on non-Win32 systems. This macro apears at the start of
       
   260    every exported function that is part of the external API. It does
       
   261    not appear on functions that are "external" in the C sense, but
       
   262    which are internal to the library. */
       
   263 
       
   264 /* Define if linking statically (TODO: make nice with Libtool) */
       
   265 /* #undef PCRE_STATIC */
       
   266 
       
   267 
       
   268 /* When calling PCRE via the POSIX interface, additional working storage is
       
   269    required for holding the pointers to capturing substrings because PCRE
       
   270    requires three integers per substring, whereas the POSIX interface provides
       
   271    only two. If the number of expected substrings is small, the wrapper
       
   272    function uses space on the stack, because this is faster than using
       
   273    malloc() for each call. The threshold above which the stack is no longer
       
   274    used is defined by POSIX_MALLOC_THRESHOLD. On systems that support it,
       
   275    "configure" can be used to override this default. */
       
   276 #ifndef POSIX_MALLOC_THRESHOLD
       
   277 #define POSIX_MALLOC_THRESHOLD 10
       
   278 #endif
       
   279 
       
   280 /* Define to 1 if you have the ANSI C header files. */
       
   281 #ifndef STDC_HEADERS
       
   282 #define STDC_HEADERS 1
       
   283 #endif
       
   284 
       
   285 /* Define to allow pcregrep to be linked with libbz2, so that it is able to
       
   286    handle .bz2 files. */
       
   287  #undef SUPPORT_LIBBZ2 
       
   288 
       
   289 /* Define to allow pcretest to be linked with libreadline. */
       
   290  #undef SUPPORT_LIBREADLINE 
       
   291 
       
   292 /* Define to allow pcregrep to be linked with libz, so that it is able to
       
   293    handle .gz files. */
       
   294  #undef SUPPORT_LIBZ 
       
   295 
       
   296 /* Define to enable support for Unicode properties */
       
   297 #define SUPPORT_UCP 
       
   298 
       
   299 /* Define to enable support for the UTF-8 Unicode encoding. */
       
   300 #define SUPPORT_UTF8
       
   301 
       
   302 /* Version number of package */
       
   303 #ifndef VERSION
       
   304 #define VERSION "7.8"
       
   305 #endif
       
   306 
       
   307 /* Define to empty if `const' does not conform to ANSI C. */
       
   308 /* #undef const */
       
   309 
       
   310 /* Define to `unsigned int' if <sys/types.h> does not define. */
       
   311 /* #undef size_t */
       
   312 
       
   313 #define PCRE_EXP_DECL IMPORT_C
       
   314 #define PCRE_EXP_DEFN EXPORT_C
       
   315 
       
   316 typedef TInt BOOL;
       
   317 
       
   318 #endif //_PCRE_CONFIG_H