Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 77729 invoked from network); 26 Feb 2004 09:47:15 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 26 Feb 2004 09:47:15 -0000 Received: (qmail 14273 invoked by uid 500); 26 Feb 2004 09:46:43 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 14224 invoked by uid 500); 26 Feb 2004 09:46:43 -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 14210 invoked from network); 26 Feb 2004 09:46:42 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 26 Feb 2004 09:46:42 -0000 Received: (qmail 77676 invoked from network); 26 Feb 2004 09:47:07 -0000 Received: from localhost.hyperreal.org (HELO PC0133) (127.0.0.1) by localhost.hyperreal.org with SMTP; 26 Feb 2004 09:47:07 -0000 Message-ID: <403DC07E.7000807@apache.org> Date: Thu, 26 Feb 2004 10:46:38 +0100 From: Henri Gomez User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: [PATCH] use ap_ prefixed PCRE functions References: <1blyKLsp7hiwTtMrRP2O9tGvzmALUDlOAjtzf7PIaFP@akmail> In-Reply-To: <1blyKLsp7hiwTtMrRP2O9tGvzmALUDlOAjtzf7PIaFP@akmail> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 25/02/2004), Outbound message X-Antivirus-Status: Clean X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N 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 Guenter Knauf wrote: > Hi all, > I would like to get this patch into CVS in order to use PCRE on NetWare where only the ap_ prefixed pcre functions are exported. I have tested that the patch below compiles fine with NetWare, Linux and Win32. > As a positive side effect on Win32 the binary is about 24 kb smaller. > > Guenter. > > http://www.gknw.com/test/pcre_patch > > ############################################################################### > --- ./jk/native2/include/jk_global.h.orig 2004-02-24 12:30:10.000000000 +0100 > +++ ./jk/native2/include/jk_global.h 2004-02-25 20:44:36.000000000 +0100 > @@ -32,6 +32,7 @@ > #include "apr_errno.h" > #include "apr_version.h" > #include "apr_time.h" > +#include "httpd.h" httpd.h may not be found for IIS or Netscape, so it will brake these. Ditto for others. > #include > #include > ############################################################################### > --- ./jk/native2/common/jk_uriEnv.c.orig 2004-02-24 12:30:10.000000000 +0100 > +++ ./jk/native2/common/jk_uriEnv.c 2004-02-25 20:43:59.000000000 +0100 > @@ -73,8 +73,8 @@ > "uriEnv.parseName() parsing %s regexp\n", > name); > { > - regex_t *preg = (regex_t *)uriEnv->pool->calloc( env, uriEnv->pool, sizeof(regex_t)); > - if (regcomp(preg, uriEnv->uri, REG_EXTENDED)) { > + apr_pool_t *preg = (apr_pool_t *)uriEnv->pool->calloc( env, uriEnv->pool, sizeof(regex_t)); > + if (ap_pregcomp(preg, uriEnv->uri, REG_EXTENDED)) { > env->l->jkLog(env, env->l, JK_LOG_DEBUG, > "uriEnv.parseName() error compiling regexp %s\n", > uri); > @@ -138,8 +138,8 @@ > "uriEnv.parseName() parsing regexp %s\n", > uri); > { > - regex_t *preg = (regex_t *)uriEnv->pool->calloc( env, uriEnv->pool, sizeof(regex_t)); > - if (regcomp(preg, uriEnv->uri, REG_EXTENDED)) { > + apr_pool_t *preg = (apr_pool_t *)uriEnv->pool->calloc( env, uriEnv->pool, sizeof(regex_t)); > + if (ap_pregcomp(preg, uriEnv->uri, REG_EXTENDED)) { > env->l->jkLog(env, env->l, JK_LOG_DEBUG, > > "uriEnv.parseName() error compiling regexp %s\n", > uri); > ############################################################################### > --- ./jk/native2/common/jk_uriMap.c.orig 2004-02-24 12:30:10.000000000 +0100 > +++ ./jk/native2/common/jk_uriMap.c 2004-02-25 20:43:47.000000000 +0100 > @@ -317,7 +317,7 @@ > if (uwr->regexp) { > regex_t *r = (regex_t *)uwr->regexp; > regmatch_t regm[10]; > - if (!regexec(r, uri, r->re_nsub + 1, regm, 0)) { > + if (!ap_regexec(r, uri, r->re_nsub + 1, regm, 0)) { > return uwr; > } > } > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org