Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 99991 invoked by uid 500); 9 Oct 2000 03:44:36 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 99971 invoked from network); 9 Oct 2000 03:44:32 -0000 Message-Id: <200010090344.OAA27143@silk.apana.org.au> From: "Brian Havard" To: "new-httpd@apache.org" Date: Mon, 09 Oct 2000 14:44:21 +1000 (EST) Reply-To: "Brian Havard" Priority: Normal X-Mailer: PMMail 2.10.1999 for OS/2 Warp 4.05 In-Reply-To: <000501c0316a$d1fae8b0$92c0b0d0@roweclan.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: RE: cvs commit: apache-2.0/src/main http_protocol.c X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Sun, 8 Oct 2000 16:00:41 -0500, William A. Rowe, Jr. wrote: >> From: Greg Stein [mailto:gstein@lyra.org] >> Sent: Sunday, October 08, 2000 2:56 PM >> Untrue. At the machine language level, a conditional test may >> produce -1, but C produces 0 or 1. Always has. > >Then I retract... I was looking at code 20 minutes before I had >to teach, my brain wasn't all here. I have always avoided relying >on a non-zero value being anything in particular, and has always >been a -big-red-flag- in my book, and yes, Greg, I do asm :-) Maybe you were thinking of other languages. EG Some BASICs return -1 for true. Oh, and a really don't see the point of using '\0', it's exactly the same as 0. I know the argument for it (makes it obvious you're comparing a character) but do you write 0.0 when comparing a float? 0L when comparing a long? -- ______________________________________________________________________________ | Brian Havard | "He is not the messiah! | | brianh@kheldar.apana.org.au | He's a very naughty boy!" - Life of Brian | ------------------------------------------------------------------------------