Checkout
arfrever
committed
on 13 Feb 09
Fix building Ruby bindings with Ruby 1.9.

* build/ac-macros/swig.m4
(SVN_FIND_SWIG): Use appropriate -I options.

* subversion/bindings/s… Show more
Fix building Ruby bindings with Ruby 1.9.

* build/ac-macros/swig.m4

 (SVN_FIND_SWIG): Use appropriate -I options.

* subversion/bindings/swig/core.i: Use RSTRING_LEN().

* subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c

 (): Include <version.h>.

 (rb_holder_pop, svn_swig_rb_set_pool, svn_swig_rb_to_apr_array_row_prop,

  svn_swig_rb_to_apr_array_prop, svn_swig_rb_array_to_apr_array_revision_range,

  name, read_handler_rbio): Use RARRAY_LEN(), RARRAY_PTR() and RSTRING_LEN().

 (callback_rescue): Use rb_errinfo() instead of ruby_errinfo when Ruby >=1.9 is used.

* subversion/bindings/swig/include/svn_types.swg

 (_swig_rb_closed): Use RSTRING_LEN().

* subversion/bindings/swig/include/svn_string.swg

 (%typemap(in) svn_stringbuf_t *, %typemap(in) svn_stringbuf_t *node_name,

  %typemap(in) const svn_string_t * (svn_string_t value)): Use RSTRING_LEN().

Unrelated changes which fix 'implicit declarations of svn_md5_digest_to_cstring()'

and some 'casts to pointer from integer of different size' accidentally discovered

when building Ruby bindings with Ruby 1.9:

* subversion/bindings/swig/core.i: Include svn_md5_h.swg.

* subversion/bindings/swig/svn_fs.i:

* subversion/bindings/swig/svn_wc.i:

* subversion/bindings/swig/svn_delta.i: Include "svn_md5.h" to get the

   prototype for svn_md5_digest_to_cstring() (used in some typemaps in

   svn_types.swg).

Show less