[Python-checkins] CVS: python/dist/src/Objects structseq.c,1.6,1.7
Neil Schemenauer
nascheme@users.sourceforge.net
Fri, 22 Mar 2002 07:30:28 -0800
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv18074/Objects
Modified Files:
structseq.c
Log Message:
Use pymalloc if it's enabled.
Index: structseq.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/structseq.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** structseq.c 7 Mar 2002 15:13:40 -0000 1.6
--- structseq.c 22 Mar 2002 15:30:25 -0000 1.7
***************
*** 23,27 ****
PyStructSequence *obj;
! obj = PyObject_New(PyStructSequence, type);
obj->ob_size = VISIBLE_SIZE_TP(type);
--- 23,27 ----
PyStructSequence *obj;
! obj = PyMalloc_New(PyStructSequence, type);
obj->ob_size = VISIBLE_SIZE_TP(type);
***************
*** 38,42 ****
Py_XDECREF(obj->ob_item[i]);
}
! PyObject_FREE(obj);
}
--- 38,42 ----
Py_XDECREF(obj->ob_item[i]);
}
! PyMalloc_Del(obj);
}