Sfoglia il codice sorgente

added PCRE_JAVASCRIPT_COMPAT for \u support

Nicolas Cannasse 7 anni fa
parent
commit
902aa3b2b4
1 ha cambiato i file con 6 aggiunte e 5 eliminazioni
  1. 6 5
      include/pcre/config.h

+ 6 - 5
include/pcre/config.h

@@ -1,7 +1,8 @@
 #define COMPILE_PCRE16
-#undef SUPPORT_JIT
+#undef SUPPORT_JIT
 #define PCRE_STATIC
-
+#define PCRE_JAVASCRIPT_COMPAT
+
 #ifdef _MSC_VER
 #	pragma warning(disable:4710) // inline disabled
 #	pragma warning(disable:4711) // inline activated
@@ -15,14 +16,14 @@
    parentheses (of any kind) in a pattern. This limits the amount of system
    stack that is used while compiling a pattern. */
 #define PARENS_NEST_LIMIT 250
-
+
 /* The value of LINK_SIZE determines the number of bytes used to store links
    as offsets within the compiled regex. The default is 2, which allows for
    compiled patterns up to 64K long. This covers the vast majority of cases.
    However, PCRE can also be compiled to use 3 or 4 bytes instead. This allows
    for longer patterns in extreme cases. */
-#define LINK_SIZE 2
-
+#define LINK_SIZE 2
+
 /* This limit is parameterized just in case anybody ever wants to change it.
    Care must be taken if it is increased, because it guards against integer
    overflow caused by enormously large patterns. */