[Python-checkins] python/dist/src/Objects methodobject.c,2.40,2.40.12.1

nascheme@users.sourceforge.net nascheme@users.sourceforge.net
Mon, 05 Aug 2002 07:46:13 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv15342/Objects

Modified Files:
      Tag: release22-maint
	methodobject.c 
Log Message:
Remove calls to 2.1 GC API (they are noops).


Index: methodobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/methodobject.c,v
retrieving revision 2.40
retrieving revision 2.40.12.1
diff -C2 -d -r2.40 -r2.40.12.1
*** methodobject.c	20 Sep 2001 21:45:26 -0000	2.40
--- methodobject.c	5 Aug 2002 14:46:11 -0000	2.40.12.1
***************
*** 23,27 ****
  	Py_XINCREF(self);
  	op->m_self = self;
- 	PyObject_GC_Init(op);
  	return (PyObject *)op;
  }
--- 23,26 ----
***************
*** 112,116 ****
  meth_dealloc(PyCFunctionObject *m)
  {
- 	PyObject_GC_Fini(m);
  	Py_XDECREF(m->m_self);
  	m->m_self = (PyObject *)free_list;
--- 111,114 ----
***************
*** 217,221 ****
  	0,
  	"builtin_function_or_method",
! 	sizeof(PyCFunctionObject) + PyGC_HEAD_SIZE,
  	0,
  	(destructor)meth_dealloc, 		/* tp_dealloc */
--- 215,219 ----
  	0,
  	"builtin_function_or_method",
! 	sizeof(PyCFunctionObject),
  	0,
  	(destructor)meth_dealloc, 		/* tp_dealloc */
***************
*** 234,238 ****
  	0,					/* tp_setattro */
  	0,					/* tp_as_buffer */
! 	Py_TPFLAGS_DEFAULT | Py_TPFLAGS_GC,	/* tp_flags */
   	0,					/* tp_doc */
   	(traverseproc)meth_traverse,		/* tp_traverse */
--- 232,236 ----
  	0,					/* tp_setattro */
  	0,					/* tp_as_buffer */
! 	Py_TPFLAGS_DEFAULT,			/* tp_flags */
   	0,					/* tp_doc */
   	(traverseproc)meth_traverse,		/* tp_traverse */
***************
*** 328,332 ****
  		PyCFunctionObject *v = free_list;
  		free_list = (PyCFunctionObject *)(v->m_self);
- 		v = (PyCFunctionObject *) PyObject_AS_GC(v);
  		PyObject_DEL(v);
  	}
--- 326,329 ----