From owner-freebsd-arch Fri Apr 28 17:23:59 2000 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id D6A9137B9E1 for ; Fri, 28 Apr 2000 17:23:56 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id CAA23319 for ; Sat, 29 Apr 2000 02:23:50 +0200 (CEST) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id CAA05233 for freebsd-arch@freebsd.org; Sat, 29 Apr 2000 02:23:49 +0200 (CEST) Received: from io.yi.org (24.67.218.186.bc.wave.home.com [24.67.218.186]) by hub.freebsd.org (Postfix) with ESMTP id 7E40A37B9E1; Fri, 28 Apr 2000 17:23:41 -0700 (PDT) (envelope-from jburkhol@home.com) Received: from io.yi.org (localhost.gvcl1.bc.wave.home.com [127.0.0.1]) by io.yi.org (Postfix) with ESMTP id 84C11BCA7; Fri, 28 Apr 2000 17:23:40 -0700 (PDT) X-Mailer: exmh version 2.1.1 10/15/1999 To: Archie Cobbs Cc: freebsd-arch@freebsd.org Subject: Re: cvs commit: src/sys/sys queue.h In-Reply-To: Message from Archie Cobbs of "Thu, 27 Apr 2000 15:50:13 PDT." <200004272250.PAA26982@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 28 Apr 2000 17:23:40 -0700 From: Jake Burkholder Message-Id: <20000429002340.84C11BCA7@io.yi.org> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > archie 2000/04/27 15:50:13 PDT > > Modified files: > sys/sys queue.h > Log: > Add a new macro CIRCLEQ_FOREACH_REVERSE for traversing through a > circle queue in the reverse direction (from tail to head). > > Revision Changes Path > 1.34 +6 -1 src/sys/sys/queue.h On my web page is a patch that adds TAILQ_FOREACH_REVERSE and updates the man page for both new macros. I also wrote a dumb little program that demonstrates the possible use of a traversal macro with an additional condition. I'll do the work of adding such a thing to the header and updating the manpage if anyone else thinks it would be useful. Comments on names and semantics appreciated. http://io.yi.org Jake To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message