From owner-freebsd-arch Thu Sep 27 23:50:29 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mail11.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by hub.freebsd.org (Postfix) with ESMTP id E02CA37B408 for ; Thu, 27 Sep 2001 23:50:26 -0700 (PDT) Received: (qmail 28239 invoked from network); 28 Sep 2001 06:50:26 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 28 Sep 2001 06:50:26 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010927185607.A90848@dragon.nuxi.com> Date: Thu, 27 Sep 2001 23:50:09 -0700 (PDT) From: John Baldwin To: arch@FreeBSD.org Subject: Re: Style Wars Cc: Julian Elischer Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 28-Sep-01 David O'Brien wrote: > On Thu, Sep 27, 2001 at 05:36:31PM -0700, John Baldwin wrote: >> for 3) with an additional note about sorting so that within logical groups >> of >> members, you would sort the items such that the longest types are first. > > Please clarify what you are saying here. Longest type measured as strlen(typename). :) I.e.: struct foo { const volatile f_cv; volatile int f_int; const char *f_name; struct mtx f_lock; u_int64_t f_64; int f_type; }; The reason is more obvious in a struct with multiple elements of the same type: struct new_lock_object { STAILQ_ENTRY(new_lock_object) lo_list; struct lock_class *lo_class; struct witness *lo_witness; const char *lo_name; const char *lo_wname; u_int lo_flags; }; -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message