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

Re: SWIG ignoring constants?

From: Jeremy Whitlock <jcscoobyrs_at_gmail.com>
Date: Wed, 15 Oct 2008 09:50:42 -0600

> I got this warning during the build:
> /home/stsp/svn/svn-trunk/subversion/include/svn_props.h:482:
> Warning(305): Bad constant value (ignored).
>
> The constant the warning is referring to looks like this:
>
> /**
> * This is a list of all revision properties.
> */
> line 482: #define SVN_PROP_REVISION_ALL_PROPS SVN_PROP_REVISION_AUTHOR, \
> SVN_PROP_REVISION_LOG, \
> SVN_PROP_REVISION_DATE, \
> SVN_PROP_REVISION_AUTOVERSIONED, \
> SVN_PROP_REVISION_ORIG_DATE, \
> SVNSYNC_PROP_LOCK, \
> SVNSYNC_PROP_FROM_URL, \
> SVNSYNC_PROP_FROM_UUID, \
> SVNSYNC_PROP_LAST_MERGED_REV, \
> SVNSYNC_PROP_CURRENTLY_COPYING,
>
> I'm not entirely sure why SWIG is ignoring this constant.
> Neither do I know what the consequences are.
>
> So I just wanted to ask whether anyone who has an idea about
> this issue can comment on this.

SWIG's C parser is not a complete parser and is easy confused. I can
see why this could cause an issue. The best thing from a SWIG
perspective would be to break those out into individual definitions
instead of one long chained one.

-- 
Take care,
Jeremy Whitlock
http://www.thoughtspark.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-10-15 17:50:58 CEST

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