Date: Thu, 27 Sep 2001 23:50:09 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: arch@FreeBSD.org Cc: Julian Elischer <julian@elischer.org> Subject: Re: Style Wars Message-ID: <XFMail.010927235009.jhb@FreeBSD.org> In-Reply-To: <20010927185607.A90848@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010927235009.jhb>