From owner-cvs-all Sat May 1 15:10:12 1999 Delivered-To: cvs-all@freebsd.org Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (Postfix) with ESMTP id B014514BDE; Sat, 1 May 1999 15:10:01 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id IAA17220; Sun, 2 May 1999 08:09:56 +1000 Date: Sun, 2 May 1999 08:09:56 +1000 From: Bruce Evans Message-Id: <199905012209.IAA17220@godzilla.zeta.org.au> To: dcs@newsguy.com, kris@FreeBSD.org Subject: Re: cvs commit: ports/lang/nawk Makefile ports/lang/nawk/files md5ports/lang/nawk/patches patch-aa patch-ab patch-ac patch-adpatch-ae Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk >> Mar 5, 1999: >> after hearing from yet another innocent victim, changed >> isnumber to is_number to avoid the problem caused by >> freeBSD gratuitously and incorrectly including the name >> isnumber in the standard header file ctype.h. s/innocent/guilty/ ... Declaring or defining isnumber() in ctype.h is perfectly ANSI C conformant. ANSI C reserves all names beginning with is[a-z]. >Well, we have been doing it since 1994, at the very least. What did >BSD do before that? > >Anyway, it's only defined if neither _ANSI_SOURCE nor _POSIX_SOURCE >are defined. Under what conditions are these defined? Whenever an application chooses to do so. They are supposed to reduce the namespace to only those symbols required by ANSI C and POSIX.1 respectively. This is much stricter than reducing the namespace to the symbols permitted by the standards. E.g., isnumber() is permitted but not required. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message