diff options
| author | Stefan Behnel <stefan_ml@behnel.de> | 2012-07-30 20:12:24 +0200 |
|---|---|---|
| committer | Stefan Behnel <stefan_ml@behnel.de> | 2012-07-30 20:12:24 +0200 |
| commit | 290fdc52a30164a46f349dd6b7d2a94b45bdc15b (patch) | |
| tree | c7e9095e04bf2fc260ca900d1afc5fe49f1a1d58 /src/lxml/python.pxd | |
| parent | 5658b26a7c7d9baf7b072a1de888e39d7b531eff (diff) | |
| download | python-lxml-290fdc52a30164a46f349dd6b7d2a94b45bdc15b.tar.gz | |
fixed libxml2 API usage by appropriately using 'const' and 'xmlChar*'
Diffstat (limited to 'src/lxml/python.pxd')
| -rw-r--r-- | src/lxml/python.pxd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd index c63de17e..11cd5485 100644 --- a/src/lxml/python.pxd +++ b/src/lxml/python.pxd @@ -1,4 +1,5 @@ from libc cimport stdio +from libc.string cimport const_char cimport cython cdef extern from "Python.h": @@ -126,7 +127,7 @@ cdef extern from "pythread.h": cdef extern from "etree_defs.h": # redefines some functions as macros cdef bint _isString(object obj) - cdef char* _fqtypename(object t) + cdef const_char* _fqtypename(object t) cdef object PY_NEW(object t) cdef bint IS_PYTHON3 cdef bint IS_PYPY |
