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

SWIG typemap position for merge-tracking (Re: svn commit: r24027)

From: Kouhei Sutou <kou_at_cozmixng.org>
Date: 2007-03-23 08:32:19 CET

Hi,

I changed subject.

2007/3/23, Kouhei Sutou <kou@cozmixng.org>:
> Hi,
>
> 2007/3/23, dlr@tigris.org <dlr@tigris.org>:
> > Author: dlr
> > Date: Thu Mar 22 14:11:00 2007
> > New Revision: 24027
>
> > Log:
> > Merge the merge-tracking branch to trunk.
>
> I think that the following typemaps should be defined in
> svn_containers.swg.
>
> > Modified: trunk/subversion/bindings/swig/include/svn_types.swg
> > URL: http://svn.collab.net/viewvc/svn/trunk/subversion/bindings/swig/include/svn_types.swg?pathrev=24027&r1=24026&r2=24027
> > ==============================================================================
> > --- trunk/subversion/bindings/swig/include/svn_types.swg (original)
> > +++ trunk/subversion/bindings/swig/include/svn_types.swg Thu Mar 22 14:11:00 2007
> > @@ -363,6 +363,51 @@
> > }
> > #endif
> >
> > +#ifdef SWIGPYTHON
> > +%typemap(in) apr_array_header_t *RANGELIST {
> > + $1 = svn_swig_py_rangelist_to_array ($input, _global_pool);
> > + if (PyErr_Occurred()) {
> > + SWIG_fail;
> > + }
> > +}
> > +#endif
> > +
> > +#ifdef SWIGPYTHON
> > +%typemap(in) apr_hash_t *MERGEINFO {
> > + $1 = svn_swig_py_mergeinfo_from_dict ($input, _global_pool);
> > + if (PyErr_Occurred()) {
> > + SWIG_fail;
> > + }
> > +}
> > +#endif
> > +
> > +#ifdef SWIGPYTHON
> > +%typemap(argout) apr_hash_t **MERGEHASH
> > +{
> > + $result = t_output_helper(
> > + $result,
> > + svn_swig_py_mergeinfo_to_dict(*$1,
> > + $descriptor(svn_merge_range_t *),
> > + _global_py_pool));
> > + if (PyErr_Occurred()) {
> > + SWIG_fail;
> > + }
> > +}
> > +#endif
> > +
> > +#ifdef SWIGPYTHON
> > +%typemap(argout) apr_hash_t **MERGEHASHHASH
> > +{
> > + $result = t_output_helper(
> > + $result,
> > + svn_swig_py_mergeinfo_hash_to_dict(*$1,
> > + $descriptor(svn_merge_range_t *),
> > + _global_py_pool));
> > + if (PyErr_Occurred()) {
> > + SWIG_fail;
> > + }
> > +}
> > +#endif
> > /* -----------------------------------------------------------------------
> > Define a more refined 'memberin' typemap for 'const char *' members. This
> > is used in place of the 'char *' handler defined automatically.
> >
>
> Thanks,
> --
> kou
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 23 08:32:30 2007

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.