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

[PATCH] Let SWIG pickup the INVALID and IGNORED REVNUM constants.

From: Ben Reser <ben_at_reser.org>
Date: 2004-01-02 01:15:57 CET

Since SVN_IGNORED_REVNUM and SVN_INVALID_REVNUM typecast in the macro
the constants aren't picked up as constnats by SWIG. I can take and
hardcode the values in scripts but this seems rather unfriendly.

Rather than require every use of these macros to have the typecasts I
simple make SVN_IGNORED_REVNUM_VALUE and SVN_INVALID_REVNUM_VALUE and
reference them in the old macros. THe *_VALUE macros then get picked
up by SWIG where I can modify their names.

This is a really low risk change so I'd like to see this make it into
1.0.

[[[
Needed to make SWIG pickup the constant. It doesn't treat
complex/typecast macros as constants.

* subversion/include/svn_types.h
  Change SVN_INVALID_REVNUM and SVN_IGNORED_REFVUM to
  use SVN_INVALID_REVNUM_VALUE and SVN_IGNORED_REVNUM_VALUE.
]]]

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Jan 2 01:16:33 2004

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