Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Mar 2003 18:04:12 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        obrien@FreeBSD.org
Cc:        "Andrey A. Chernov" <ache@nagual.pp.ru>, src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/awk Makefile 
Message-ID:  <12557.1047920652@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 17 Mar 2003 09:00:03 PST." <20030317170003.GA31982@dragon.nuxi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20030317170003.GA31982@dragon.nuxi.com>, "David O'Brien" writes:
>On Mon, Mar 17, 2003 at 11:46:36AM +0300, Andrey A. Chernov wrote:
>> On Mon, Mar 17, 2003 at 00:07:54 -0800, David E. O'Brien wrote:
>> > obrien      2003/03/17 00:07:54 PST
>> > 
>> >   FreeBSD src repository
>> > 
>> >   Modified files:
>> >     usr.bin/awk          Makefile 
>> >   Log:
>> >   For the bwk_20030314 version, we have to -DHAS_ISBLANK now.
>> >   Oh how I wish the author had accepted my "#ifndef isblank" patch instead.
>> 
>> In strict sense isblank() is a function, not necessary a macro.
>
>Show me a single real implimentation that isn't a macro.

Cut from an odd-ball embedded environment which cares very much about
not inlining things with macros:

	#ifdef TINY_MODE
	[...]
	static inline int
	isblank(int c)
	{

		return(__ISBLANK(c));
	}
	[...]
	#else
	[...]
	#define isblank(c) __ISBLANK(c)
	[...]
	#endif

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




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