You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rd...@apache.org on 2010/03/22 22:20:19 UTC

svn commit: r926343 - /subversion/trunk/subversion/bindings/swig/svn_diff.i

Author: rdonch
Date: Mon Mar 22 21:20:18 2010
New Revision: 926343

URL: http://svn.apache.org/viewvc?rev=926343&view=rev
Log:
* subversion/bindings/swig/svn_diff.i: Immutablize some struct members,
   setting which is not supported.


Modified:
    subversion/trunk/subversion/bindings/swig/svn_diff.i

Modified: subversion/trunk/subversion/bindings/swig/svn_diff.i
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/svn_diff.i?rev=926343&r1=926342&r2=926343&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/svn_diff.i (original)
+++ subversion/trunk/subversion/bindings/swig/svn_diff.i Mon Mar 22 21:20:18 2010
@@ -45,6 +45,15 @@
 
 #ifdef SWIGPYTHON
 %apply svn_stream_t *WRAPPED_STREAM { svn_stream_t * };
+
+/* The WRAPPED_STREAM typemap can't cope with struct members, and there
+   isn't really a reason to change these. */
+%immutable svn_hunk_t::diff_text;
+%immutable svn_hunk_t::original_text;
+%immutable svn_hunk_t::modified_text;
+
+/* Ditto. */
+%immutable svn_patch_t::patch_file;
 #endif
 
 /* ----------------------------------------------------------------------- */