@@ -258,17 +258,17 @@ PyObject* pysqlite_cache_display(pysqlite_Cache* self, PyObject* args)
258
258
Py_RETURN_NONE ;
259
259
}
260
260
261
- static PyType_Slot pysqlite_NodeType_slots [] = {
261
+ static PyType_Slot node_slots [] = {
262
262
{Py_tp_dealloc , pysqlite_node_dealloc },
263
263
{Py_tp_new , PyType_GenericNew },
264
264
{0 , NULL },
265
265
};
266
266
267
- static PyType_Spec pysqlite_NodeType_spec = {
267
+ static PyType_Spec node_spec = {
268
268
.name = MODULE_NAME ".Node" ,
269
269
.basicsize = sizeof (pysqlite_Node ),
270
270
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE ,
271
- .slots = pysqlite_NodeType_slots ,
271
+ .slots = node_slots ,
272
272
};
273
273
PyTypeObject * pysqlite_NodeType = NULL ;
274
274
@@ -280,30 +280,30 @@ static PyMethodDef cache_methods[] = {
280
280
{NULL , NULL }
281
281
};
282
282
283
- static PyType_Slot pysqlite_CacheType_slots [] = {
283
+ static PyType_Slot cache_slots [] = {
284
284
{Py_tp_dealloc , pysqlite_cache_dealloc },
285
285
{Py_tp_methods , cache_methods },
286
286
{Py_tp_new , PyType_GenericNew },
287
287
{Py_tp_init , pysqlite_cache_init },
288
288
{0 , NULL },
289
289
};
290
290
291
- static PyType_Spec pysqlite_CacheType_spec = {
291
+ static PyType_Spec cache_spec = {
292
292
.name = MODULE_NAME ".Cache" ,
293
293
.basicsize = sizeof (pysqlite_Cache ),
294
294
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE ,
295
- .slots = pysqlite_CacheType_slots ,
295
+ .slots = cache_slots ,
296
296
};
297
297
PyTypeObject * pysqlite_CacheType = NULL ;
298
298
299
299
extern int pysqlite_cache_setup_types (PyObject * mod )
300
300
{
301
- pysqlite_NodeType = (PyTypeObject * )PyType_FromModuleAndSpec (mod , & pysqlite_NodeType_spec , NULL );
301
+ pysqlite_NodeType = (PyTypeObject * )PyType_FromModuleAndSpec (mod , & node_spec , NULL );
302
302
if (pysqlite_NodeType == NULL ) {
303
303
return -1 ;
304
304
}
305
305
306
- pysqlite_CacheType = (PyTypeObject * )PyType_FromModuleAndSpec (mod , & pysqlite_CacheType_spec , NULL );
306
+ pysqlite_CacheType = (PyTypeObject * )PyType_FromModuleAndSpec (mod , & cache_spec , NULL );
307
307
if (pysqlite_CacheType == NULL ) {
308
308
return -1 ;
309
309
}
0 commit comments