]> granicus.if.org Git - python/commitdiff
fix missing variable declarations
authorBenjamin Peterson <benjamin@python.org>
Sat, 26 Mar 2011 23:09:55 +0000 (18:09 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sat, 26 Mar 2011 23:09:55 +0000 (18:09 -0500)
Modules/_ctypes/_ctypes.c

index 431940b16169ec15298e315e17cfcbf4e4b1a0bd..c6c6dbda18bf7803eb92e4a14abec2d6a1f80440 100644 (file)
@@ -1499,6 +1499,7 @@ static PyObject *
 c_wchar_p_from_param(PyObject *type, PyObject *value)
 {
     PyObject *as_parameter;
+    int res;
 #if (PYTHON_API_VERSION < 1012)
 # error not supported
 #endif
@@ -1566,6 +1567,7 @@ static PyObject *
 c_char_p_from_param(PyObject *type, PyObject *value)
 {
     PyObject *as_parameter;
+    int res;
 #if (PYTHON_API_VERSION < 1012)
 # error not supported
 #endif
@@ -1634,6 +1636,7 @@ c_void_p_from_param(PyObject *type, PyObject *value)
 {
     StgDictObject *stgd;
     PyObject *as_parameter;
+    int res;
 #if (PYTHON_API_VERSION < 1012)
 # error not supported
 #endif