Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 41023 invoked from network); 6 Feb 2004 02:47:00 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Feb 2004 02:47:00 -0000 Received: (qmail 76744 invoked by uid 500); 6 Feb 2004 02:46:42 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 76476 invoked by uid 500); 6 Feb 2004 02:46:40 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 76453 invoked from network); 6 Feb 2004 02:46:40 -0000 X-Authentication-Warning: suntzu.lyra.org: gstein set sender to gstein@lyra.org using -f Date: Thu, 5 Feb 2004 18:51:49 -0800 From: Greg Stein To: dev@apr.apache.org Subject: Re: why gen-uri-delims in Python? Message-ID: <20040205185149.C16331@lyra.org> Mail-Followup-To: dev@apr.apache.org References: <40228B20.5020604@attglobal.net> <20040205122755.B15359@lyra.org> <4022F40A.2000409@attglobal.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <4022F40A.2000409@attglobal.net>; from trawick@attglobal.net on Thu, Feb 05, 2004 at 08:55:22PM -0500 X-URL: http://www.lyra.org/greg/ 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 On Thu, Feb 05, 2004 at 08:55:22PM -0500, Jeff Trawick wrote: > Greg Stein wrote: >... > > Seems like we need to keep that around, or find another solution. For > > example, we could generate an ASCII table and an EBCDIC table, and then > > use ./configure to select the appropriate table. > > shrug... the old way, or copy from uri_delims.h.{ascii|ebcdic} at configure > time; need something that uses a trivial operation that can be easily done in > Win32 build or NetWare build or some other odd build All righty. Are we only talking about ASCII and EBCDIC? There isn't anything else that will sneak up on us, right? And aren't Win32 and NetWare always going to use the ASCII form? In which case, we just hard-wire their build systems to point to the ASCII version. Once I understand the set of options here, I'll make it happen since I broke it in the first place :-) To be honest, I'm thinking that we just hand-write the two tables into apr_uri.c and use a #define to select the right one. We should already have a symbol somewhere saying whether we're using EBCDIC. Then we can get rid of all this delimiter generation stuff. These tables are quite constant... :-) Cheers, -g -- Greg Stein, http://www.lyra.org/