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

Re: Syntax errors with the "space-before-paren" style in Ruby and SWIG

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2006-02-05 03:10:18 CET

David James wrote:
> On 2/3/06, Julian Foad <julianfoad@btopenworld.com> wrote:
>>David James wrote:
[...]

Thanks for the info.

> If you declare a SWIG macro using %define, you need to declare it
> without spaces. You also need to avoid spaces when you use the macro.
> This is similar to the restrictions of the C preprocessor.

Somewhat similar, but different.

>>As for the C preprocessor, I believe the only issue is that the definition of a
>>macro taking parameters can't have a space before the open parenthesis; we
>>already know and accept that so it's not an issue that causes any problems. Am
>>I wrong?
>
> No, that's right. The only issue here is that if we're reformatting
> function calls, we'll have to be careful to avoid reformatting usages
> of macros that look like function calls.

What I meant to emphasise is that, for the C preprocessor, it only matters at
the point of definition of macros, not at their usage ("calls").

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Feb 5 03:10:40 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.