Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 May 1999 08:09:56 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        dcs@newsguy.com, kris@FreeBSD.org
Cc:        cvs-all@FreeBSD.org, cvs-committers@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
Message-ID:  <199905012209.IAA17220@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>   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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905012209.IAA17220>