[pygobject] pygi-info: set type fields before PyType_Ready() so PyPy picks them up
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] pygi-info: set type fields before PyType_Ready() so PyPy picks them up
- Date: Sat, 24 Mar 2018 17:29:34 +0000 (UTC)
commit e534c1674f212fe361670db063c2fa4f35a459ba
Author: Christoph Reiter <reiter christoph gmail com>
Date: Sat Mar 24 18:27:23 2018 +0100
pygi-info: set type fields before PyType_Ready() so PyPy picks them up
gi/pygi-info.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gi/pygi-info.c b/gi/pygi-info.c
index 74bd8ed9..aa551555 100644
--- a/gi/pygi-info.c
+++ b/gi/pygi-info.c
@@ -2316,19 +2316,19 @@ pygi_info_register_types (PyObject *m)
return -1;
}
- _PyGI_REGISTER_TYPE (m, PyGICallableInfo_Type, CallableInfo,
- PyGIBaseInfo_Type);
PyGICallableInfo_Type.tp_call = (ternaryfunc) _callable_info_call;
PyGICallableInfo_Type.tp_dealloc = (destructor) _callable_info_dealloc;
+ _PyGI_REGISTER_TYPE (m, PyGICallableInfo_Type, CallableInfo,
+ PyGIBaseInfo_Type);
- _PyGI_REGISTER_TYPE (m, PyGIFunctionInfo_Type, FunctionInfo,
- PyGICallableInfo_Type);
PyGIFunctionInfo_Type.tp_call = (ternaryfunc) _function_info_call;
PyGIFunctionInfo_Type.tp_descr_get = (descrgetfunc) _function_info_descr_get;
+ _PyGI_REGISTER_TYPE (m, PyGIFunctionInfo_Type, FunctionInfo,
+ PyGICallableInfo_Type);
+ PyGIVFuncInfo_Type.tp_descr_get = (descrgetfunc) _vfunc_info_descr_get;
_PyGI_REGISTER_TYPE (m, PyGIVFuncInfo_Type, VFuncInfo,
PyGICallableInfo_Type);
- PyGIVFuncInfo_Type.tp_descr_get = (descrgetfunc) _vfunc_info_descr_get;
_PyGI_REGISTER_TYPE (m, PyGISignalInfo_Type, SignalInfo,
PyGICallableInfo_Type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]