X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/aa41d2de89da4bf43d52fd12a191742ff9b668a0..c5537c6e21da5c92ab74fc567f663becc59d3f07:/src/src/pcre/pcre_config.c diff --git a/src/src/pcre/pcre_config.c b/src/src/pcre/pcre_config.c index e20450eea..131ae6410 100644 --- a/src/src/pcre/pcre_config.c +++ b/src/src/pcre/pcre_config.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/pcre/pcre_config.c,v 1.3 2006/11/07 16:50:36 ph10 Exp $ */ +/* $Cambridge: exim/src/src/pcre/pcre_config.c,v 1.6 2007/11/12 13:02:19 nm4 Exp $ */ /************************************************* * Perl-Compatible Regular Expressions * @@ -8,7 +8,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2006 University of Cambridge + Copyright (c) 1997-2007 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -43,6 +43,10 @@ POSSIBILITY OF SUCH DAMAGE. /* This module contains the external function pcre_config(). */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "pcre_internal.h" @@ -60,7 +64,7 @@ Arguments: Returns: 0 if data returned, negative on error */ -PCRE_DATA_SCOPE int +PCRE_EXP_DEFN int pcre_config(int what, void *where) { switch (what) @@ -85,6 +89,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;