summaryrefslogtreecommitdiff
path: root/src/lxml/python.pxd
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2015-03-01 17:39:01 +0100
committerStefan Behnel <stefan_ml@behnel.de>2015-03-01 17:39:01 +0100
commit868c64fc4fbdeda1a329076c048bc3ce730f0350 (patch)
tree5f3610ca023d3cbe5f911d2c464a8cde4e3e0ae2 /src/lxml/python.pxd
parent7ee5d32023f6691a3978135fe48d93f861744ab9 (diff)
downloadpython-lxml-868c64fc4fbdeda1a329076c048bc3ce730f0350.tar.gz
use safer macros for memory allocation (adapted from PyMem_New() and PyMem_Resize())
Diffstat (limited to 'src/lxml/python.pxd')
-rw-r--r--src/lxml/python.pxd2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd
index 1d070860..6bd84d26 100644
--- a/src/lxml/python.pxd
+++ b/src/lxml/python.pxd
@@ -124,6 +124,8 @@ cdef extern from "pythread.h":
NOWAIT_LOCK
cdef extern from "etree_defs.h": # redefines some functions as macros
+ cdef void* lxml_malloc(size_t count, size_t item_size)
+ cdef void* lxml_realloc(void* mem, size_t count, size_t item_size)
cdef bint _isString(object obj)
cdef const_char* _fqtypename(object t)
cdef object PY_NEW(object t)