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

Re: svn commit: r20268 - in trunk/subversion/bindings/swig: . include

From: Kouhei Sutou <kou_at_cozmixng.org>
Date: 2006-06-28 17:27:23 CEST

Hi,

In <20060627185248.E521634C0F2@svn.collab.net>
  "svn commit: r20268 - in trunk/subversion/bindings/swig: . include" on Tue, 27 Jun 2006 11:52:48 -0700 (PDT),
  maxb@tigris.org wrote:

> Author: maxb
> Date: Tue Jun 27 11:52:48 2006
> New Revision: 20268
>
> Modified:
> trunk/subversion/bindings/swig/include/svn_types.swg
> trunk/subversion/bindings/swig/svn_fs.i
> trunk/subversion/bindings/swig/svn_ra.i
>
> Log:

> * subversion/bindings/swig/svn_ra.i: Wrap '%apply apr_hash_t **DIRENTHASH'
> in '#ifndef SWIGRUBY' and comment.

> Modified: trunk/subversion/bindings/swig/svn_ra.i
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/bindings/swig/svn_ra.i?pathrev=20268&r1=20267&r2=20268
> ==============================================================================
> --- trunk/subversion/bindings/swig/svn_ra.i (original)
> +++ trunk/subversion/bindings/swig/svn_ra.i Tue Jun 27 11:52:48 2006
> @@ -57,7 +57,10 @@
> };
>
> %apply apr_hash_t **PROPHASH { apr_hash_t **props };
> +#ifndef SWIGRUBY
> +/* FIXME: Presumably Ruby needs a typemap for this too. */
> %apply apr_hash_t **DIRENTHASH { apr_hash_t **dirents };
> +#endif
>
> %apply const char *MAY_BE_NULL {
> const char *comment,
>

Should we remove the following codes in svn_types.swg?

  /* -----------------------------------------------------------------------
     apr_hash_t **dirents
     svn_client_ls()
     svn_io_get_dirents()
     svn_ra get_dir()
  */

  #ifdef SWIGPYTHON
  %typemap(in,numinputs=0) apr_hash_t **dirents = apr_hash_t **OUTPUT;
  %typemap(argout,fragment="t_output_helper") apr_hash_t **dirents {
    $result = t_output_helper($result, svn_swig_py_convert_hash(*$1,
      $descriptor(svn_dirent_t *), _global_svn_swig_py_pool));
  }
  #endif

  #ifdef SWIGPERL
  %typemap(in,numinputs=0) apr_hash_t **dirents = apr_hash_t **OUTPUT;
  %typemap(argout) apr_hash_t **dirents {
      ST(argvi++) = svn_swig_pl_convert_hash
          (*$1, $descriptor(svn_dirent_t *));
  }
  #endif

  #ifdef SWIGRUBY
  %typemap(in, numinputs=0) apr_hash_t **dirents = apr_hash_t **OUTPUT;
  %typemap(argout, fragment="output_helper") apr_hash_t **dirents
  {
    $result = output_helper($result,
                            svn_swig_rb_apr_hash_to_hash_swig_type
                              (*$1, "svn_dirent_t *"));
  }
  #endif

Thanks,

--
kou
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 28 17:29:09 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.