Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 43243 invoked from network); 14 Oct 2007 12:04:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Oct 2007 12:04:52 -0000 Received: (qmail 4271 invoked by uid 500); 14 Oct 2007 12:04:39 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 4216 invoked by uid 500); 14 Oct 2007 12:04:39 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 4205 invoked by uid 99); 14 Oct 2007 12:04:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2007 05:04:38 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lucian.grijincu@gmail.com designates 72.14.246.242 as permitted sender) Received: from [72.14.246.242] (HELO ag-out-0708.google.com) (72.14.246.242) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2007 12:04:42 +0000 Received: by ag-out-0708.google.com with SMTP id 8so1260205agc for ; Sun, 14 Oct 2007 05:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=oFO1SA5oUxBSA5CCgnzoNJdRFWIpyRoADK4yEoxyu2A=; b=HrZvWFxNkKyIRF+zEu3DkmOY6Rw/eFtmRdcIJlQRFl21qWlFSN5K+g7MAi730N2w+86dqw/2r1vA+n4/jjPAfe/lvXDI2vGYG0i9XhaCPm+BoFGoydO8bNRxt6l4kZ9TW5PUILWZRKhkfD3ME4VlAU5TTfboA/XbeK2rDnqVwZU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mUCzVnsh0OIYtLSLXDQCOmm28o5DdOFvWqlmHntbkTHt6cTKdOC5FkUz6FdgmSYys1AVf/rHsAKcWcJs2YR1Xw3B7RE8hO3IABpfJFqvORQrzdREDMhJZcWBRIWQ9S6IASBW4ZGTdQINIujEiIZwFudBlZeoL8jMJM6auLGq7QA= Received: by 10.90.105.20 with SMTP id d20mr7205105agc.1192363461209; Sun, 14 Oct 2007 05:04:21 -0700 (PDT) Received: by 10.90.63.7 with HTTP; Sun, 14 Oct 2007 05:04:21 -0700 (PDT) Message-ID: Date: Sun, 14 Oct 2007 15:04:21 +0300 From: "Lucian Adrian Grijincu" To: "William A. Rowe, Jr." Subject: Re: some simplifications for the Netware apr_thread_create code Cc: "APR Developer List" In-Reply-To: <47116F6A.90709@rowe-clan.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47116F6A.90709@rowe-clan.net> X-Virus-Checked: Checked by ClamAV on apache.org On 10/14/07, William A. Rowe, Jr. wrote: > Lucian Adrian Grijincu wrote: > > Just removing some unused code. > > APR_SUCCESS is deemed to be zero as I understand it, so no use in > > checking for it explicitly. > > Untrue, because it makes things clearer to the reader. > isn't this why they invented comments? why do: if(x==0) return 0; return x; when you can do: return x; //and place a witty comment here? saves a cmp and a jump. > The compiler can't care less if you compare (rv == 0) or (!rv), > it optimizes it the same way. > What !rv? i don't wanna do the comparison at all. -- Lucian