summaryrefslogtreecommitdiff
path: root/src/lxml/python.pxd
diff options
context:
space:
mode:
authorscoder <none@none>2006-05-05 19:48:23 +0200
committerscoder <none@none>2006-05-05 19:48:23 +0200
commitb81dd86f014ba1b4c4b9f366231ba44a414596fb (patch)
tree153254f77ca31a5985820ac29ddf3c16f2fa9b60 /src/lxml/python.pxd
parentfcb3836cb49052a1f853003c7f3945eef733c95d (diff)
downloadpython-lxml-b81dd86f014ba1b4c4b9f366231ba44a414596fb.tar.gz
[svn r1091] clean up, use Python memory management instead of plain C-malloc
--HG-- branch : trunk
Diffstat (limited to 'src/lxml/python.pxd')
-rw-r--r--src/lxml/python.pxd4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd
index 7f872cb1..70e12a69 100644
--- a/src/lxml/python.pxd
+++ b/src/lxml/python.pxd
@@ -2,6 +2,7 @@ from tree cimport FILE
cdef extern from "Python.h":
ctypedef struct PyObject
+ ctypedef int size_t
cdef FILE* PyFile_AsFile(PyObject* p)
cdef int PyFile_Check(object p)
@@ -39,6 +40,9 @@ cdef extern from "Python.h":
cdef int PySequence_Check(object instance)
cdef int PyType_Check(object instance)
+ cdef void* PyMem_Malloc(size_t size)
+ cdef void PyMem_Free(void* p)
+
cdef extern from "etree.h": # redefines some functions as macros
cdef int isinstance(object instance, object classes)
cdef int issubclass(object derived, object superclasses)