summaryrefslogtreecommitdiff
path: root/pcretest.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-02-24 18:54:43 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-02-24 18:54:43 +0000
commitc2a2128c4117207e051e8a46f40ae1caa9e7e789 (patch)
treec69a33224ab7795913e42dd3c5b75027b35347d9 /pcretest.c
parent55ad7af2f56a1bfd24366ce36586e5ea0caaa2c9 (diff)
downloadpcre-c2a2128c4117207e051e8a46f40ae1caa9e7e789.tar.gz
Add support for PCRE_INFO_MAXLOOKBEHIND.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@932 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcretest.c')
-rw-r--r--pcretest.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pcretest.c b/pcretest.c
index 80e58a8..8b7bc57 100644
--- a/pcretest.c
+++ b/pcretest.c
@@ -3099,7 +3099,7 @@ while (!done)
{
unsigned long int all_options;
int count, backrefmax, first_char, need_char, okpartial, jchanged,
- hascrorlf;
+ hascrorlf, maxlookbehind;
int nameentrysize, namecount;
const pcre_uint8 *nametable;
@@ -3113,7 +3113,8 @@ while (!done)
new_info(re, NULL, PCRE_INFO_NAMETABLE, (void *)&nametable) +
new_info(re, NULL, PCRE_INFO_OKPARTIAL, &okpartial) +
new_info(re, NULL, PCRE_INFO_JCHANGED, &jchanged) +
- new_info(re, NULL, PCRE_INFO_HASCRORLF, &hascrorlf)
+ new_info(re, NULL, PCRE_INFO_HASCRORLF, &hascrorlf) +
+ new_info(re, NULL, PCRE_INFO_MAXLOOKBEHIND, &maxlookbehind)
!= 0)
goto SKIP_DATA;
@@ -3252,6 +3253,9 @@ while (!done)
fprintf(outfile, "%s\n", caseless);
}
}
+
+ if (maxlookbehind > 0)
+ fprintf(outfile, "Max lookbehind = %d\n", maxlookbehind);
/* Don't output study size; at present it is in any case a fixed
value, but it varies, depending on the computer architecture, and