summaryrefslogtreecommitdiffstats
path: root/glib
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-27 10:07:55 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-27 10:07:55 +0000
commit99f90ceb215313ca0e34510f7a080339f48e12ce (patch)
treea9d9e9a35263281b7cab7f54f18d9bf4eb3f26c0 /glib
parent2c9df6000e93158e14cf279e0cf3ee19acad11d0 (diff)
downloadpygobject-99f90ceb215313ca0e34510f7a080339f48e12ce.tar.gz
pygobject-99f90ceb215313ca0e34510f7a080339f48e12ce.tar.xz
pygobject-99f90ceb215313ca0e34510f7a080339f48e12ce.zip
Use the Py_TYPE macro everywhere.
2008-07-27 Johan Dahlin <johan@gnome.org> * glib/pyglib-python-compat.h: * gobject/gobjectmodule.c (pyg_object_new), (pyg__install_metaclass): * gobject/pygboxed.c (pyg_boxed_dealloc), (pyg_boxed_init), (pyg_register_boxed): * gobject/pygenum.c (pyg_enum_reduce): * gobject/pyginterface.c (pyg_interface_init), (pyg_register_interface): * gobject/pygobject.c (pygobject_get_inst_data), (pygobject_register_class), (pygobject_new_with_interfaces), (pygobject_dealloc), (pygobject_repr), (pygobject_emit), (pygobject_chain_from_overridden), (pygobject_weak_ref_notify): * gobject/pygparamspec.c (pygobject_paramspec_register_types): * gobject/pygpointer.c (pyg_pointer_dealloc), (pyg_pointer_init), (pyg_register_pointer): * gobject/pygtype.c (pyg_type_from_object), (pyg_value_array_from_pyobject), (pyg_value_from_pyobject), (pyg_object_descr_doc_get): Use the Py_TYPE macro everywhere. svn path=/trunk/; revision=886
Diffstat (limited to 'glib')
-rw-r--r--glib/pyglib-python-compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/pyglib-python-compat.h b/glib/pyglib-python-compat.h
index 0fb4601..83357a8 100644
--- a/glib/pyglib-python-compat.h
+++ b/glib/pyglib-python-compat.h
@@ -45,7 +45,7 @@ typedef int Py_ssize_t;
#define _PyLongObject PyIntObject
#define _PyLong_Type PyInt_Type
#define _PyLong_AS_LONG PyInt_AS_LONG
-#define Py_TYPE(ob) (ob->ob_type)
+#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
#else
#undef PYGLIB_MODULE_START
#undef PYGLIB_MODULE_END