You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Max Bowsher <ma...@ukf.net> on 2006/06/04 16:57:53 UTC

Re: [PATCH] Use ifdefs for language-specific typemaps

Jelmer Vernooij wrote:
> Hi,
> 
> The attached patch changes some of the core SWIG files to use ifdefs
> rather than language-specific typemaps, which have been deprecated in
> SWIG. SWIG generates a warning on each of these, making it hard to
> notice other warnings.
> 
> These particular defines are already used in the SWIG code for
> Subversion, so there should be no problem with old versions of SWIG not
> defining them.
> 
> [[[
> 
>  * subversion/bindings/swig/include/apr.swg
>    subversion/bindings/swig/include/svn_string.swg
>    subversion/bindings/swig/include/svn_types.swg:
>    Use ifdefs around language-specific typemaps
> 
> ]]]

Rather than apply a patch converting only some of the files, I wrote a
Python script which automatically tweaked the code appropriately, and
ran it.

Done in r19926,7,8.

Max.