From dev-return-1827-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Wed Apr 11 15:52:20 2001 Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 26325 invoked by uid 500); 11 Apr 2001 15:52:18 -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 Delivered-To: moderator for dev@apr.apache.org Received: (qmail 13842 invoked from network); 11 Apr 2001 15:48:11 -0000 Sender: cmpilato@collab.net To: Justin Erenkrantz Cc: rbb@covalent.net, "William A. Rowe, Jr." , dev@apr.apache.org Subject: Re: Buckets code question References: <005601c0c250$e44d3050$94c0b0d0@roweclan.net> <20010411073551.F10042@ebuilt.com> From: cmpilato@collab.net Reply-To: cmpilato@collab.net Date: 11 Apr 2001 10:48:20 -0500 In-Reply-To: Justin Erenkrantz's message of "Wed, 11 Apr 2001 07:35:51 -0700" Message-ID: Lines: 18 X-Mailer: Gnus v5.7/Emacs 20.5 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Justin Erenkrantz writes: > If I understand this snippet correctly, why do we even have the do while > loop in the first place? I present you with a comment near a similar macro (SVN_ERR) used in Subversion. /* The `do { ... } while (0)' wrapper has no semantic effect, but it makes this macro syntactically equivalent to the expression statement it resembles. Without it, statements like if (a) SVN_ERR (some operation); else foo; would not mean what they appear to. */