diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-08-21 11:46:08 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2007-08-21 11:46:08 +0000 |
commit | c6a88bf880d462c62e00d8d7c3eeeaad60ebab49 (patch) | |
tree | 7b948602c6a0645f32441bdf9dd602a73b4fc3e7 /pcre_fullinfo.c | |
parent | 3fa5c170ee26c5a63c0efa62dc42fc9fb57ce76b (diff) | |
download | pcre-c6a88bf880d462c62e00d8d7c3eeeaad60ebab49.tar.gz |
Don't advance by 2 if explicit \r or \n in the pattern. Add
PCRE_INFO_HASCRORLF.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@226 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_fullinfo.c')
-rw-r--r-- | pcre_fullinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pcre_fullinfo.c b/pcre_fullinfo.c index 9f1f76b..b082473 100644 --- a/pcre_fullinfo.c +++ b/pcre_fullinfo.c @@ -152,6 +152,10 @@ switch (what) *((int *)where) = (re->options & PCRE_JCHANGED) != 0; break; + case PCRE_INFO_HASCRORLF: + *((int *)where) = (re->options & PCRE_HASCRORLF) != 0; + break; + default: return PCRE_ERROR_BADOPTION; } |