Author: ArcRiley Date: 2009-01-04 00:47:44 -0500 (Sun, 04 Jan 2009) New Revision: 1419
Modified: trunk/concordance/src/Core.c Log: Wrapping get/set functions to workaround windows build errors Modified: trunk/concordance/src/Core.c =================================================================== --- trunk/concordance/src/Core.c 2009-01-04 05:40:57 UTC (rev 1418) +++ trunk/concordance/src/Core.c 2009-01-04 05:47:44 UTC (rev 1419) @@ -167,7 +167,16 @@ PyObject_Del(self); } + static PyObject* + conCore_getattro(conCoreObject* self, PyObject* key) { + return PyObject_GenericGetAttr((PyObject*) self, key); + } + static int + conCore_setattro(conCoreObject* self, PyObject* key, PyObject* value) { + return PyObject_GenericSetAttr((PyObject*) self, key, value); + } + static gpointer conCore_loop(gpointer s) { /*\ cdef : \*/ @@ -345,8 +354,8 @@ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ - PyObject_GenericGetAttr, /*tp_getattro*/ - (setattrofunc)PyObject_GenericSetAttr, /*tp_setattro*/ + (getattrofunc) conCore_getattro, /*tp_getattro*/ + (setattrofunc) conCore_setattro, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT | /*tp_flags*/ Py_TPFLAGS_BASETYPE, _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn