Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 67638 invoked from network); 26 Feb 2004 17:49:31 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 26 Feb 2004 17:49:31 -0000 Received: (qmail 34116 invoked by uid 500); 26 Feb 2004 17:49:17 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 34073 invoked by uid 500); 26 Feb 2004 17:49:16 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 34053 invoked from network); 26 Feb 2004 17:49:16 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by daedalus.apache.org with SMTP; 26 Feb 2004 17:49:16 -0000 Received: (qmail 19788 invoked by uid 65534); 26 Feb 2004 17:49:18 -0000 Received: from p50926F81.dip.t-dialin.net (EHLO wstst06) (80.146.111.129) by mail.gmx.net (mp016) with SMTP; 26 Feb 2004 18:49:18 +0100 X-Authenticated: #1766531 Date: Thu, 26 Feb 2004 18:48:18 +0100 From: Guenter Knauf Reply-To: Guenter Knauf To: tomcat-dev@jakarta.apache.org Subject: Re: [PATCH] use ap_ prefixed PCRE functions - take 2 Message-ID: References: <02b801c3fc8c$d98ea0d0$200110ac@truk> X-Mailer: AK-Mail 3.5 [ger] (registered, single user license) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Kurt, > I've reviewed your patch and have some comments included inline below. > regcomp and ap_pregcomp are not interchangeable like this. ap_pregcomp > needs an apr_pool to be passed to it and it returns the regex_t. I > think (apr_pool_t *)uriEnv->pool->_private is correct here (Henri?, > Jean-Frederic?). for that I did the trick with '#define REGEX_POOL'... > I'm not a fan of undef/def functions like this. If the functions were > interchangeable, I would have just created a new define like PREGCOMP > that points to the correct function. I totally agree, but I wasnt sure what gets here more acceptance. I create a new patch shortly. > Since Apache2 always comes with pcre whole define section would be > better like this: > #ifdef HAS_AP_PCRE > #include "httpd.h" > #else > #ifdef HAS_PCRE > #include "pcre.h" > #include "pcreposix.h" > #endif > #endif ok. Thanks for reviewing; I come up soon with a new patch with your suggestions. Guenter. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org