--- code/trunk/pcre_config.c 2007/02/24 21:41:13 85 +++ code/trunk/pcre_config.c 2007/08/01 09:10:40 200 @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2005 University of Cambridge + Copyright (c) 1997-2007 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -41,6 +41,10 @@ /* This module contains the external function pcre_config(). */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include "pcre_internal.h" @@ -58,7 +62,7 @@ Returns: 0 if data returned, negative on error */ -PCRE_EXPORT int +PCRE_EXP_DEFN int pcre_config(int what, void *where) { switch (what) @@ -95,6 +99,10 @@ *((unsigned int *)where) = MATCH_LIMIT; break; + case PCRE_CONFIG_MATCH_LIMIT_RECURSION: + *((unsigned int *)where) = MATCH_LIMIT_RECURSION; + break; + case PCRE_CONFIG_STACKRECURSE: #ifdef NO_RECURSE *((int *)where) = 0;