From owner-freebsd-hackers@FreeBSD.ORG Wed May 1 05:29:11 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 545D2D59; Wed, 1 May 2013 05:29:11 +0000 (UTC) (envelope-from phk@phk.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 1F3EE1A95; Wed, 1 May 2013 05:29:11 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 13E3889FC6; Wed, 1 May 2013 05:29:04 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.6/8.14.6) with ESMTP id r415T3qs074841; Wed, 1 May 2013 05:29:03 GMT (envelope-from phk@phk.freebsd.dk) To: Lawrence Stewart Subject: Re: Adding a FOREACH_CONTINUE() variant to queue(3) In-reply-to: <518092BF.9070105@freebsd.org> From: "Poul-Henning Kamp" References: <518092BF.9070105@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Date: Wed, 01 May 2013 05:29:03 +0000 Message-ID: <74840.1367386143@critter.freebsd.dk> X-Mailman-Approved-At: Wed, 01 May 2013 11:17:48 +0000 Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 May 2013 05:29:11 -0000 In message <518092BF.9070105@freebsd.org>, Lawrence Stewart writes: >[reposting from freebsd-arch@ - was probably the wrong list] >#define TAILQ_FOREACH_CONTINUE(var, head, field) \ Obligatory bikeshedding: I find the suffix "_CONTINUE" non-obvious, as there may not have been any previos FOREACH involved. TAILQ_FOREACH_FROM(...) ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.