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

[PATCH] Issue 990: swigutil_py.c.diff

From: Dale Hirt <dale_at_sbcltd.com>
Date: 2003-02-17 17:57:54 CET

So,

Here is my first patch against swigutil_py.c. I added in two functions,
svn_swig_py_get_osfhandle and svn_swig_py_valid_fhandle, to factor out the
OS-dependent portions.

So this is the logic:

If they send in a string,
   we now open an apr_file_t variable, using the string variable
Otherwise
   If they send in a FILE*,
       we create an apr_os_file_t variable using svn_swig_py_get_osfhandle.
   else if they send in an int,
     if Win32, we create an apr_os_file_t variable using
svn_swig_py_get_osfhandle.
     otherwise, we just assign straight across. May need some work ther.

   we now have an apr_os_file_t variable, and we validate it using
svn_swig_py_valid_fhandle
   we now open an apr_file_t variable, using the apr_os_file_t variable.

return apr_file_t variable

All of this, and error checking, too.

Hope your day is a great one,

Dale Hirt
Systems Administrator
SB&C, Ltd.
 <<swigutil_py.c.diff>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Mon Feb 17 17:58:40 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.