diff options
author | Tay Ray Chuan <rctay89@gmail.com> | 2012-01-04 21:25:48 +0800 |
---|---|---|
committer | Tay Ray Chuan <rctay89@gmail.com> | 2012-01-08 23:22:28 +0800 |
commit | 6a8879189094e207f0622454d450d14c494253b6 (patch) | |
tree | 98ec2677c900d0de39e0fc3e22a054a4896c4914 /src/lxml/proxy.pxi | |
parent | b2aabc20a2f1a80b642e03fd25577b0a03493331 (diff) | |
download | python-lxml-6a8879189094e207f0622454d450d14c494253b6.tar.gz |
reuse cython definitions for stdlib.h
Diffstat (limited to 'src/lxml/proxy.pxi')
-rw-r--r-- | src/lxml/proxy.pxi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lxml/proxy.pxi b/src/lxml/proxy.pxi index 69819718..5a7d1993 100644 --- a/src/lxml/proxy.pxi +++ b/src/lxml/proxy.pxi @@ -224,17 +224,17 @@ cdef int _growNsCache(_nscache* c_ns_cache) except -1: c_ns_cache.size = 20 else: c_ns_cache.size *= 2 - c_ns_ptr = <xmlNs**> cstd.realloc( + c_ns_ptr = <xmlNs**> stdlib.realloc( c_ns_cache.new, c_ns_cache.size * sizeof(xmlNs*)) if c_ns_ptr is not NULL: c_ns_cache.new = c_ns_ptr - c_ns_ptr = <xmlNs**> cstd.realloc( + c_ns_ptr = <xmlNs**> stdlib.realloc( c_ns_cache.old, c_ns_cache.size * sizeof(xmlNs*)) if c_ns_ptr is not NULL: c_ns_cache.old = c_ns_ptr else: - cstd.free(c_ns_cache.new) - cstd.free(c_ns_cache.old) + stdlib.free(c_ns_cache.new) + stdlib.free(c_ns_cache.old) python.PyErr_NoMemory() return -1 return 0 @@ -368,9 +368,9 @@ cdef int moveNodeToDocument(_Document doc, xmlDoc* c_source_doc, # cleanup if c_ns_cache.new is not NULL: - cstd.free(c_ns_cache.new) + stdlib.free(c_ns_cache.new) if c_ns_cache.old is not NULL: - cstd.free(c_ns_cache.old) + stdlib.free(c_ns_cache.old) # 3) fix the names in the tree if we moved it from a different thread if doc._c_doc.dict is not c_source_doc.dict: |