subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1877259 - /subversion/trunk/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
Date Fri, 01 May 2020 13:23:50 GMT
Author: brane
Date: Fri May  1 13:23:50 2020
New Revision: 1877259

URL: http://svn.apache.org/viewvc?rev=1877259&view=rev
Log:
* subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
  (svn_swig_py_stringhash_from_dict,
   svn_swig_py_mergeinfo_from_dict,
   svn_swig_py_prophash_from_dict): Move variable declarations to
    the start of block the to fix syntax errors with VC9.

Patch by: Jun Omae <jun66j5{_AT_}gmail.com>

Modified:
    subversion/trunk/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c

Modified: subversion/trunk/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c?rev=1877259&r1=1877258&r2=1877259&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c (original)
+++ subversion/trunk/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c Fri May
 1 13:23:50 2020
@@ -1171,6 +1171,7 @@ apr_hash_t *svn_swig_py_stringhash_from_
       PyObject *key = PyList_GetItem(keys, i);
       PyObject *value = PyDict_GetItem(dict, key);
       const char *propname = make_string_from_ob(key, pool);
+      const char *propval;
       if (!propname)
         {
           if (!PyErr_Occurred())
@@ -1180,7 +1181,7 @@ apr_hash_t *svn_swig_py_stringhash_from_
           Py_DECREF(keys);
           return NULL;
         }
-      const char *propval = make_string_from_ob_maybe_null(value, pool);
+      propval = make_string_from_ob_maybe_null(value, pool);
       if (PyErr_Occurred())
         {
           Py_DECREF(keys);
@@ -1215,6 +1216,7 @@ apr_hash_t *svn_swig_py_mergeinfo_from_d
       PyObject *key = PyList_GetItem(keys, i);
       PyObject *value = PyDict_GetItem(dict, key);
       const char *pathname = make_string_from_ob(key, pool);
+      const svn_rangelist_t *ranges;
       if (!pathname)
         {
           if (!PyErr_Occurred())
@@ -1224,7 +1226,7 @@ apr_hash_t *svn_swig_py_mergeinfo_from_d
           Py_DECREF(keys);
           return NULL;
         }
-      const svn_rangelist_t *ranges = svn_swig_py_seq_to_array(value,
+      ranges = svn_swig_py_seq_to_array(value,
         sizeof(const svn_merge_range_t *),
         svn_swig_py_unwrap_struct_ptr,
         svn_swig_TypeQuery("svn_merge_range_t *"),
@@ -1314,6 +1316,7 @@ apr_hash_t *svn_swig_py_prophash_from_di
       PyObject *key = PyList_GetItem(keys, i);
       PyObject *value = PyDict_GetItem(dict, key);
       const char *propname = make_string_from_ob(key, pool);
+      svn_string_t *propval;
       if (!propname)
         {
           if (!PyErr_Occurred())
@@ -1323,7 +1326,7 @@ apr_hash_t *svn_swig_py_prophash_from_di
           Py_DECREF(keys);
           return NULL;
         }
-      svn_string_t *propval = make_svn_string_from_ob_maybe_null(value, pool);
+      propval = make_svn_string_from_ob_maybe_null(value, pool);
       if (PyErr_Occurred())
         {
           Py_DECREF(keys);



Mime
View raw message