@@ -3367,7 +3367,7 @@ PyCFuncPtr_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
33673367 self -> callable = callable ;
33683368
33693369 self -> thunk = thunk ;
3370- * (void * * )self -> b_ptr = (void * )thunk -> pcl_exec ;
3370+ * (void * * )self -> b_ptr = (void * )thunk -> pcl ;
33713371
33723372 Py_INCREF ((PyObject * )thunk ); /* for KeepRef */
33733373 if (-1 == KeepRef ((CDataObject * )self , 0 , (PyObject * )thunk )) {
@@ -5326,42 +5326,36 @@ PyInit__ctypes(void)
53265326 Struct_Type .tp_base = & PyCData_Type ;
53275327 if (PyType_Ready (& Struct_Type ) < 0 )
53285328 return NULL ;
5329- Py_INCREF (& Struct_Type );
53305329 PyModule_AddObject (m , "Structure" , (PyObject * )& Struct_Type );
53315330
53325331 Py_TYPE (& Union_Type ) = & UnionType_Type ;
53335332 Union_Type .tp_base = & PyCData_Type ;
53345333 if (PyType_Ready (& Union_Type ) < 0 )
53355334 return NULL ;
5336- Py_INCREF (& Union_Type );
53375335 PyModule_AddObject (m , "Union" , (PyObject * )& Union_Type );
53385336
53395337 Py_TYPE (& PyCPointer_Type ) = & PyCPointerType_Type ;
53405338 PyCPointer_Type .tp_base = & PyCData_Type ;
53415339 if (PyType_Ready (& PyCPointer_Type ) < 0 )
53425340 return NULL ;
5343- Py_INCREF (& PyCPointer_Type );
53445341 PyModule_AddObject (m , "_Pointer" , (PyObject * )& PyCPointer_Type );
53455342
53465343 Py_TYPE (& PyCArray_Type ) = & PyCArrayType_Type ;
53475344 PyCArray_Type .tp_base = & PyCData_Type ;
53485345 if (PyType_Ready (& PyCArray_Type ) < 0 )
53495346 return NULL ;
5350- Py_INCREF (& PyCArray_Type );
53515347 PyModule_AddObject (m , "Array" , (PyObject * )& PyCArray_Type );
53525348
53535349 Py_TYPE (& Simple_Type ) = & PyCSimpleType_Type ;
53545350 Simple_Type .tp_base = & PyCData_Type ;
53555351 if (PyType_Ready (& Simple_Type ) < 0 )
53565352 return NULL ;
5357- Py_INCREF (& Simple_Type );
53585353 PyModule_AddObject (m , "_SimpleCData" , (PyObject * )& Simple_Type );
53595354
53605355 Py_TYPE (& PyCFuncPtr_Type ) = & PyCFuncPtrType_Type ;
53615356 PyCFuncPtr_Type .tp_base = & PyCData_Type ;
53625357 if (PyType_Ready (& PyCFuncPtr_Type ) < 0 )
53635358 return NULL ;
5364- Py_INCREF (& PyCFuncPtr_Type );
53655359 PyModule_AddObject (m , "CFuncPtr" , (PyObject * )& PyCFuncPtr_Type );
53665360
53675361 /*************************************************
0 commit comments