Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 3159 invoked by uid 6000); 25 Oct 1997 15:34:40 -0000 Received: (qmail 3151 invoked from network); 25 Oct 1997 15:34:38 -0000 Received: from thoth.mch.sni.de (192.35.17.2) by taz.hyperreal.org with SMTP; 25 Oct 1997 15:34:38 -0000 Received: from deejai.mch.sni.de (deejai.mch.sni.de [139.25.113.10]) by thoth.mch.sni.de (8.8.7/8.8.7) with ESMTP id RAA09600 for ; Sat, 25 Oct 1997 17:34:36 +0200 (MDT) Received: (from martin@localhost) by deejai.mch.sni.de (8.8.7/8.8.7) id RAA10178; Sat, 25 Oct 1997 17:34:34 +0200 (MET DST) Message-ID: <19971025173432.51208@deejai.mch.sni.de> Date: Sat, 25 Oct 1997 17:34:32 +0200 From: Martin Kraemer To: new-httpd@apache.org Subject: Re: pre-patch: struct sockaddr_in error messages References: <19971025020225.19035@deejai.mch.sni.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.85 In-Reply-To: ; from Dean Gaudet on Fri, Oct 24, 1997 at 06:10:27PM -0700 X-Face: %0^)uynSVIl4|'Kt4&K^"0e)QSD,RsmBJzgofk.'s$bu*4XXru?d/!|;"x{U(7 X-Operating-System: SINIX-D 5.41 C1001 X-Organization: Siemens-Nixdorf Informationssysteme AG (Muenchen, W.Germany) X-Phone: +49-89-636-46021 X-Fax: +49-89-636-44994 X-Disclaimer: THE COMMENTS CONTAINED IN THIS MESSAGE REFLECT THE VIEWS OF THE WRITER AND ARE NOT NECESSARILY THE VIEWS OF SIEMENS NIXDORF AG X-No-Junk-Mail: I do not want to get *any* junk mail. Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org On Fri, Oct 24, 1997 at 06:10:27PM -0700, Dean Gaudet wrote: > Oh, BTW, %S can't be used because it's the posix way of specifying a > wchar_t *, which is why gcc was complaining to me. ..and because would non-standard (taking two va_args() instead of one). > We can replace both of these, and skirt the ap_snprintf debate, with a > single core routine: > > int vformatter(int (*write_func)(void *data, const void *buf, size_t len), > void *data, const char *format_string, va_list ap); > > Which will naturally have a wrapper: > > int formatter(int (*write_func)(void *data, const void *buf, size_t len), > void *data, const char *format_string, ...); Yes, that sounds sensible/reasonable, +1 too, like Ben. Internally, it could even use snprintf for the "standard" formats ;-) Martin -- | S I E M E N S | | Siemens Nixdorf | ------------- | Voice: +49-89-636-46021 | Informationssysteme AG | N I X D O R F | FAX: +49-89-636-44994 | 81730 Munich, Germany ~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request