[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: CVS update: subversion/subversion/include svn_types.h

From: Branko Èibej <brane_at_xbc.nu>
Date: 2001-02-13 02:42:30 CET

Karl Fogel wrote:

> Greg Stein <gstein@lyra.org> writes:
>
>> You're never supposed to have a space between a function symbol and the open
>> parenthesis.
>>
>> But some people disagree with me :-)
>
>
> :-)
>
> Parameter-receiving #defines are different. When you define them, the
> preprocessor seems to require no space before the left paren --
> otherwise it can't tell the difference between a macro that takes
> arguments, and a macro that happens to expand into text whose first
> character happens to be an open paren.
>
> However, when you *call* such a macro, the space is okay.
>
> (I only learned this by experimenting; perhaps there's something
> deeper going on here.)

Something very deep indeed: it's called "Internaional Standard ISO/IEC
9899:1999: Programming languages -- C". Fossil records confirming this
behaviour go back to 1989, by some accounts even as far back as the
early 1970's. :-)

-- 
Brane �ibej
    home:   <brane_at_xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej_at_hermes.si>   http://www.hermes-softlab.com/
     ACM:   <brane_at_acm.org>            http://www.acm.org/
Received on Sat Oct 21 14:36:22 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.