@@ -321,44 +321,18 @@ static PyMemberDef cframe_memberlist[] = {
321321
322322PyTypeObject PyCFrame_Type = {
323323 PyVarObject_HEAD_INIT (& PyType_Type , 0 )
324- "_stackless.cframe" ,
325- sizeof (PyCFrameObject ),
326- 0 ,
327- (destructor )cframe_dealloc , /* tp_dealloc */
328- 0 , /* tp_print */
329- 0 , /* tp_getattr */
330- 0 , /* tp_setattr */
331- 0 , /* tp_compare */
332- 0 , /* tp_repr */
333- 0 , /* tp_as_number */
334- 0 , /* tp_as_sequence */
335- 0 , /* tp_as_mapping */
336- 0 , /* tp_hash */
337- 0 , /* tp_call */
338- 0 , /* tp_str */
339- PyObject_GenericGetAttr , /* tp_getattro */
340- PyObject_GenericSetAttr , /* tp_setattro */
341- 0 , /* tp_as_buffer */
342- Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC , /* tp_flags */
343- 0 , /* tp_doc */
344- (traverseproc )cframe_traverse , /* tp_traverse */
345- (inquiry ) cframe_clear , /* tp_clear */
346- 0 , /* tp_richcompare */
347- 0 , /* tp_weaklistoffset */
348- 0 , /* tp_iter */
349- 0 , /* tp_iternext */
350- cframe_methods , /* tp_methods */
351- cframe_memberlist , /* tp_members */
352- 0 , /* tp_getset */
353- 0 , /* tp_base */
354- 0 , /* tp_dict */
355- 0 , /* tp_descr_get */
356- 0 , /* tp_descr_set */
357- 0 , /* tp_dictoffset */
358- 0 , /* tp_init */
359- 0 , /* tp_alloc */
360- cframe_new , /* tp_new */
361- PyObject_GC_Del , /* tp_free */
324+ .tp_name = "_stackless.cframe" ,
325+ .tp_basicsize = sizeof (PyCFrameObject ),
326+ .tp_dealloc = (destructor )cframe_dealloc ,
327+ .tp_getattro = PyObject_GenericGetAttr ,
328+ .tp_setattro = PyObject_GenericSetAttr ,
329+ .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC ,
330+ .tp_traverse = (traverseproc )cframe_traverse ,
331+ .tp_clear = (inquiry ) cframe_clear ,
332+ .tp_methods = cframe_methods ,
333+ .tp_members = cframe_memberlist ,
334+ .tp_new = cframe_new ,
335+ .tp_free = PyObject_GC_Del
362336};
363337
364338int slp_init_cframetype (void )
@@ -425,35 +399,12 @@ extension function written in C in a pickle.\n\
425399
426400PyTypeObject PyStacklessFunctionDeclaration_Type = {
427401 PyVarObject_HEAD_INIT (& PyType_Type , 0 )
428- "_stackless.FunctionDeclaration" , /*tp_name*/
429- sizeof (PyStacklessFunctionDeclarationObject ), /*tp_basicsize*/
430- 0 , /*tp_itemsize*/
431- /* methods */
432- 0 , /* tp_dealloc */
433- 0 , /* tp_print */
434- 0 , /* tp_getattr */
435- 0 , /* tp_setattr */
436- 0 , /* tp_compare */
437- 0 , /* tp_repr */
438- 0 , /* tp_as_number */
439- 0 , /* tp_as_sequence */
440- 0 , /* tp_as_mapping */
441- 0 , /* tp_hash */
442- 0 , /* tp_call */
443- 0 , /* tp_str */
444- 0 , /* tp_getattro */
445- 0 , /* tp_setattro */
446- 0 , /* tp_as_buffer */
447- Py_TPFLAGS_DEFAULT , /* tp_flags */
448- PyStacklessFunctionDeclaration_Type__doc__ , /* tp_doc */
449- 0 , /* tp_traverse */
450- 0 , /* tp_clear */
451- 0 , /* tp_richcompare */
452- 0 , /* tp_weaklistoffset */
453- 0 , /* tp_iter */
454- 0 , /* tp_iternext */
455- function_declaration_methods , /* tp_methods */
456- function_declaration_memberlist , /* tp_members */
402+ .tp_name = "_stackless.FunctionDeclaration" ,
403+ .tp_basicsize = sizeof (PyStacklessFunctionDeclarationObject ),
404+ .tp_flags = Py_TPFLAGS_DEFAULT ,
405+ .tp_doc = PyStacklessFunctionDeclaration_Type__doc__ ,
406+ .tp_methods = function_declaration_methods ,
407+ .tp_members = function_declaration_memberlist
457408};
458409
459410static
0 commit comments