[PATCH] Fix SWIG binding for svn_node_kind_t * (used in ViewCVS)
From: Nicholas Riley <njriley_at_uiuc.edu>
Date: 2003-04-13 09:27:15 CEST
Hi,
I isolated the problem I was having with ViewCVS to the change Karl
cmpilato posted this patch on the ViewCVS-dev list:
<http://www.lyra.org/pipermail/viewcvs-dev/2003-April/001007.html>
which I only found after I fixed it myself, of course :-/. I read
Incidentally, I am still having this problem with ViewCVS, and am out
<http://www.lyra.org/pipermail/viewcvs/2003q1/001759.html>
Also, is there an issue for the broken make dependencies on the SWIG
rm -rf subversion/bindings && mkdir -p subversion/bindings/swig/python && make && make swig-py && sudo make install-swig-py
If I omit the rm, I end up with stale bindings; if I omit the mkdir, I
---
* subversion/bindings/swig/svn_types.i: Add a typemap for
svn_node_kind_t *, so svn_fs_check_path() is correctly bridged to
Python.
Index: subversion/bindings/swig/svn_types.i
===================================================================
--- subversion/bindings/swig/svn_types.i (revision 5607)
+++ subversion/bindings/swig/svn_types.i (working copy)
@@ -103,6 +103,13 @@
*/
%apply long *OUTPUT { svn_revnum_t * };
+/* -----------------------------------------------------------------------
+ 'svn_node_kind_t *' will always be an OUTPUT parameter. (The
+ enumerated type is cast to a long before being passed to
+ PyInt_AsLong.)
+*/
+%apply long *OUTPUT { svn_node_kind_t * };
+
/* ----------------------------------------------------------------------- */
/* Define an OUTPUT typemap for 'svn_filesize_t *'. For now, we'll
--
=Nicholas Riley <njriley_at_uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 13 09:28:15 2003
|
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.