From owner-cvs-all Thu Jan 11 10:56:42 2001 Delivered-To: cvs-all@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 8A0ED37B401; Thu, 11 Jan 2001 10:56:16 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f0BItD110556; Thu, 11 Jan 2001 10:55:13 -0800 (PST) (envelope-from jhb@FreeBSD.org) 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: <200101111845.f0BIjBs35569@aslan.scsiguy.com> Date: Thu, 11 Jan 2001 10:55:38 -0800 (PST) From: John Baldwin To: "Justin T. Gibbs" Subject: Re: cvs commit: src/sys/alpha/alpha interrupt.c machdep.c mp_mac Cc: =?ISO-8859-1?Q?G=E9rard_Roudier?= Cc: =?ISO-8859-1?Q?G=E9rard_Roudier?= , Jake Burkholder , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Bruce Evans Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 11-Jan-01 Justin T. Gibbs wrote: >>> Anyone touching these variables had better understand what they are for >>> and how they operate. I think our developers are smart enough to >>> understand >>> this without ugly upper-case macros. Heck "errno" is not spelled >>> PTHREAD_GET(errno), or PTHREAD_SET(errno, error) and still people seem >>> to be able to write useful threaded apps. 8-) >> >>Erm, I didn't know that all developers that ever touched the kernel needed to >>memorize all the various MD header files machine/globals.h and >>machine/globaldata.h for _each_ architecture. I guess we want the learning >>curve so high that no one else can submit code? :-P > > That is an implementation complaint, not an interface complaint. I > thought we were discussing the interface? These variables are magic. A developer can find out that they are magic in one of two ways: 1) Use a special macro that acknowledges that they are magic, and have the compile break if they don't so that they know there is something they need to take into account. 2) Go memorize all aforementioned headers to know that these variables are magic. I prefer the interface 1) for this. Do you prefer 2)? > -- > Justin -- 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 cvs-all" in the body of the message