summaryrefslogtreecommitdiff
path: root/pcre_config.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-09-11 11:15:33 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-09-11 11:15:33 +0000
commit1efcdd63835a98ad89649d4b0b89d6d875e54b2e (patch)
treed76b45cb414c6694d744369626e29c6cee14318d /pcre_config.c
parent6daf21e6a650630d1ef31720c2f92f555127fe80 (diff)
downloadpcre-1efcdd63835a98ad89649d4b0b89d6d875e54b2e.tar.gz
Add facility to make \R match only CR, LF, or CRLF.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@231 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_config.c')
-rw-r--r--pcre_config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/pcre_config.c b/pcre_config.c
index ea0e317..40532a5 100644
--- a/pcre_config.c
+++ b/pcre_config.c
@@ -87,6 +87,14 @@ switch (what)
*((int *)where) = NEWLINE;
break;
+ case PCRE_CONFIG_BSR:
+#ifdef BSR_ANYCRLF
+ *((int *)where) = 1;
+#else
+ *((int *)where) = 0;
+#endif
+ break;
+
case PCRE_CONFIG_LINK_SIZE:
*((int *)where) = LINK_SIZE;
break;