diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2017-09-16 11:39:38 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2017-09-16 11:39:38 +0000 |
commit | 84f9fb12818f27cb52711622b0c6e266c24fc71c (patch) | |
tree | 1b4e7f7372b0e9af5eb6d87c6edbb72f1bd4a851 /src/pcre2test.c | |
parent | b03ea65b602b84275a42f2fa9c00c0a16eed4b4f (diff) | |
download | pcre2-84f9fb12818f27cb52711622b0c6e266c24fc71c.tar.gz |
Add PCRE2_CONFIG_COMPILED_WIDTHS and PCRE2_CONFIG_NEVER_BACKSLASH_C.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@862 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2test.c')
-rw-r--r-- | src/pcre2test.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/pcre2test.c b/src/pcre2test.c index 7b7670d..88fe6d6 100644 --- a/src/pcre2test.c +++ b/src/pcre2test.c @@ -7807,15 +7807,11 @@ printf(" EBCDIC code page %s or similar\n", pcrz_cpversion()); #endif #endif -#ifdef SUPPORT_PCRE2_8 -printf(" 8-bit support\n"); -#endif -#ifdef SUPPORT_PCRE2_16 -printf(" 16-bit support\n"); -#endif -#ifdef SUPPORT_PCRE2_32 -printf(" 32-bit support\n"); -#endif +(void)PCRE2_CONFIG(PCRE2_CONFIG_COMPILED_WIDTHS, &optval); +if (optval & 1) printf(" 8-bit support\n"); +if (optval & 2) printf(" 16-bit support\n"); +if (optval & 4) printf(" 32-bit support\n"); + #ifdef SUPPORT_VALGRIND printf(" Valgrind support\n"); #endif @@ -7846,11 +7842,8 @@ print_newline_config(optval, FALSE); (void)PCRE2_CONFIG(PCRE2_CONFIG_BSR, &optval); printf(" \\R matches %s\n", optval? "CR, LF, or CRLF only" : "all Unicode newlines"); -#ifdef NEVER_BACKSLASH_C -printf(" \\C is not supported\n"); -#else -printf(" \\C is supported\n"); -#endif +(void)PCRE2_CONFIG(PCRE2_CONFIG_NEVER_BACKSLASH_C, &optval); +printf(" \\C is %ssupported\n", optval? "not ":""); (void)PCRE2_CONFIG(PCRE2_CONFIG_LINKSIZE, &optval); printf(" Internal link size = %d\n", optval); (void)PCRE2_CONFIG(PCRE2_CONFIG_PARENSLIMIT, &optval); |