From owner-freebsd-standards Sun Oct 20 12:49:32 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94B4237B401; Sun, 20 Oct 2002 12:49:31 -0700 (PDT) Received: from chiark.greenend.org.uk (chiark.greenend.org.uk [212.135.138.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B45543E6E; Sun, 20 Oct 2002 12:49:30 -0700 (PDT) (envelope-from fanf@chiark.greenend.org.uk) Received: from fanf by chiark.greenend.org.uk with local (Exim 3.12 #1) id 183M4e-0003SF-00 (Debian); Sun, 20 Oct 2002 20:49:20 +0100 Date: Sun, 20 Oct 2002 20:49:20 +0100 From: Tony Finch To: "M. Warner Losh" Cc: dot@dotat.at, tlambert2@mindspring.com, bde@zeta.org.au, rodrigc@attbi.com, freebsd-standards@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: Problem detecting POSIX symbolic constants Message-ID: <20021020204920.C8767@chiark.greenend.org.uk> References: <20021012151336.A24868@chiark.greenend.org.uk> <3DA883F2.33E84C@mindspring.com> <20021016121455.A3711@chiark.greenend.org.uk> <20021020.134409.73085448.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021020.134409.73085448.imp@bsdimp.com>; from imp@bsdimp.com on Sun, Oct 20, 2002 at 01:44:09PM -0600 Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Oct 20, 2002 at 01:44:09PM -0600, M. Warner Losh wrote: > Tony Finch writes: > : On Sat, Oct 12, 2002 at 01:20:03PM -0700, Terry Lambert wrote: > : > > : > #if _DEFINED_SUPPORTED && defined(SOMETHING) > : > : That's a syntax error in pre-ANSI preprocessors (unless defined() is > : #defined), which won't be bypassed by evaluation shortcutting since > : evaluation happens after parsing. > > Actaully, it is only a syntax error on some really really really old > cpp. The sun cpp on SunOS 4.x, for example, wasn't ANSI, but did grok > the above construct. Yes, the C manual in -CURRENT which sates from 1986 documents defined(). I haven't found any versions of the manual between 1975 (h0h0 C) and then, and I don't have a copy of K&R 1 :-/ Tony. -- f.a.n.finch http://dotat.at/ FITZROY SOLE: SOUTH 7 TO SEVERE GALE 9, OCCASIONALLY STORM 10 IN FITZROY. RAIN OR SQUALLY THUNDERY SHOWERS. MODERATE OR GOOD, OCCASIONALLY POOR. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message