[Lxml-checkins] r39480 - lxml/pyrex/Pyrex/Compiler
scoder at codespeak.net
scoder at codespeak.net
Tue Feb 27 08:45:46 CET 2007
Author: scoder
Date: Tue Feb 27 08:45:44 2007
New Revision: 39480
Modified:
lxml/pyrex/Pyrex/Compiler/ModuleNode.py
Log:
fix required by MSVC to make it compile
Modified: lxml/pyrex/Pyrex/Compiler/ModuleNode.py
==============================================================================
--- lxml/pyrex/Pyrex/Compiler/ModuleNode.py (original)
+++ lxml/pyrex/Pyrex/Compiler/ModuleNode.py Tue Feb 27 08:45:44 2007
@@ -1097,8 +1097,11 @@
{
if (module != NULL)
{
- PyObject *c_api_init = PyObject_GetAttrString(
- module, "_import_c_api");
+ int (*init)(struct {const char *s; const void **p;}*);
+ PyObject* c_api_init;
+
+ c_api_init = PyObject_GetAttrString(module,
+ "_import_c_api");
if (!c_api_init)
return -1;
if (!PyCObject_Check(c_api_init))
@@ -1109,8 +1112,7 @@
return -1;
}
- int (*init)(struct {const char *s; const void **p;}*) =
- PyCObject_AsVoidPtr(c_api_init);
+ init = PyCObject_AsVoidPtr(c_api_init);
Py_DECREF(c_api_init);
if (!init)
{
More information about the lxml-checkins
mailing list