summaryrefslogtreecommitdiff
path: root/pcre_fullinfo.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-09-26 19:12:32 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-09-26 19:12:32 +0000
commit5c3493df2827cb70ddc42899df2f9ee30f5e7a7b (patch)
tree94e6f1bf0230945da14fd4fe3408292572d90749 /pcre_fullinfo.c
parent13ec83b84a6939e47ebabc1836caec7d94836896 (diff)
downloadpcre-5c3493df2827cb70ddc42899df2f9ee30f5e7a7b.tar.gz
Added lower bound length-finding to pcre_study() and use it when matching; make
the value available via pcre_fullinfo(); also fixed bugs connected with pcre_study() in pcre_dfa_exec(). git-svn-id: svn://vcs.exim.org/pcre/code/trunk@455 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_fullinfo.c')
-rw-r--r--pcre_fullinfo.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/pcre_fullinfo.c b/pcre_fullinfo.c
index af39c44..120f1ef 100644
--- a/pcre_fullinfo.c
+++ b/pcre_fullinfo.c
@@ -119,9 +119,15 @@ switch (what)
case PCRE_INFO_FIRSTTABLE:
*((const uschar **)where) =
- (study != NULL && (study->options & PCRE_STUDY_MAPPED) != 0)?
+ (study != NULL && (study->flags & PCRE_STUDY_MAPPED) != 0)?
((const pcre_study_data *)extra_data->study_data)->start_bits : NULL;
break;
+
+ case PCRE_INFO_MINLENGTH:
+ *((int *)where) =
+ (study != NULL && (study->flags & PCRE_STUDY_MINLEN) != 0)?
+ study->minlength : -1;
+ break;
case PCRE_INFO_LASTLITERAL:
*((int *)where) =