don't use Py_None directly nor &PyType_Type
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
50ae3fe87e
commit
922d58ac19
9 changed files with 67 additions and 46 deletions
|
|
@ -96,7 +96,7 @@ swig_varlink_type(void) {
|
|||
const PyTypeObject tmp
|
||||
#endif
|
||||
= {
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /* Number of items in variable part (ob_size) */
|
||||
(char *)"swigvarlink", /* Type name (tp_name) */
|
||||
sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
|
||||
|
|
@ -137,6 +137,7 @@ swig_varlink_type(void) {
|
|||
type_init = 1;
|
||||
}
|
||||
#endif
|
||||
varlink_type.ob_type = &PyType_Type;
|
||||
return &varlink_type;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue