Commit 8332f539 by Victor M. Alvarez

Move variable declarations. Visual Studio 9.0 don't accept C99.

parent 01bc8977
......@@ -1721,12 +1721,16 @@ const char* yara_include_callback(
const char* calling_rule_namespace,
void* user_data)
{
const char* cstring_result = NULL;
PyObject* result;
PyObject* callback = (PyObject*) user_data;
PyObject* py_incl_name = NULL;
PyObject* py_calling_fn = NULL;
PyObject* py_calling_ns = NULL;
PyObject* type = NULL;
PyObject* value = NULL;
PyObject* traceback = NULL;
const char* cstring_result = NULL;
PyGILState_STATE gil_state = PyGILState_Ensure();
......@@ -1760,10 +1764,9 @@ const char* yara_include_callback(
Py_INCREF(py_calling_ns);
}
PyObject *type=NULL, *value=NULL, *traceback=NULL;
PyErr_Fetch(&type, &value, &traceback);
PyObject* result = PyObject_CallFunctionObjArgs(
result = PyObject_CallFunctionObjArgs(
callback,
py_incl_name,
py_calling_fn,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment