bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd parsing of identifier in define


From: Eric Blake
Subject: Re: Odd parsing of identifier in define
Date: Tue, 02 Aug 2011 11:14:28 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.11

On 08/02/2011 11:08 AM, James Kirk wrote:
Hi guys,

define( `def' )
ifdef( `def', defined, not defined )
->
not defined

On examining the debug output, it seems that the identifier is saved as `def ' 
instead of `def'.

Yep.

Is this a bug or a feature?

Feature. Trailing whitespace is always significant. _Only_ unquoted leading whitespace gets trimmed when collecting macro arguments.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]