From owner-freebsd-current Wed Oct 28 21:36:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA04479 for freebsd-current-outgoing; Wed, 28 Oct 1998 21:36:09 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA04471 for ; Wed, 28 Oct 1998 21:36:07 -0800 (PST) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.9.1/8.9.1) with ESMTP id VAA29610; Wed, 28 Oct 1998 21:36:01 -0800 (PST) (envelope-from jdp) Message-Id: <199810290536.VAA29610@austin.polstra.com> To: "Andrey A. Chernov" cc: current@FreeBSD.ORG Subject: Re: FreeBSD_cc_... In-reply-to: Your message of "Thu, 29 Oct 1998 08:25:24 +0300." <19981029082524.A16434@nagual.pp.ru> Date: Wed, 28 Oct 1998 21:36:01 -0800 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > John, why you choose to have such complex bitfielding-like thing > in one variable? It is too difficult to compare with it. Imagine > that next time GNU will issue release something like 2.7.2.1.12345, > what happens with your cdefs.h checking then? Better way just put > FreeBSD extensions version in separate variable without tracking GNU > version at all. GNU compiler presence can be checked with __GNUC__ > predefined variable separately. I wanted the variable to be self-contained, and interpretable without the context of __GNUC__ and __GNUC_MINOR__. That simplifies the #ifs, because it allows the use of just one comparison instead of several. If you look at you'll see what a mess results from needing to check several variables. We already do a similar thing with and __FreeBSD_version. I think it's pretty unlikely that GNU will release a version with a 5-component revision number. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message