This is an ancient, internal debugging option which only works if
libxml2 is built with mem-debug as well. Remove the option to avoid
crashes.
Fixes#105.
This ensures that we have the ssize_t that we want on all compilers supported
by Python, since ssize_t is not supported on Visual Studio, for instance, since
it is a POSIX type.
- Handle Python 3 types similar to libxml2
- Copy new versions of libxml_xmlXPathDestructNsNode and
libxml_xmlXPathObjectPtrConvert from libxml2
- Fix compiler warnings
- Fix whitespace
- Remove unneeded imports from __future__
- Remove test in extelem.py (StringIO can't be converted to FILE under
Python 3)
- string.lower() works in both Python 2 and 3
Closes#25.
* python/libxslt.c: applied patch from Daniel Gryniewicz to
fix a segfault caused by a parameter array not being preset
to zero.
svn path=/trunk/; revision=1444
* libexslt/strings.c: added new function replace from Joel
Reed.
* tests/exslt/Makefile.am, replace.1.xml, replace.1.xsl,
replace.1.out: added new test case for above.
* libxslt.spec.in: trivial change from Gnome to GNOME
* configure.in: trivial change for flags on my compilations
* libxslt/documents.c, libxslt/documents.h, libxslt/keys.c,
libxslt/keys.h, libxslt/variables.c, libxslt/templates.c,
libxslt/transform.c, libxslt/variables.c, libxslt/xslt.c,
libxslt/xsltutils.c: fixed some documentation/comments and
compilation warnings - no change to logic.
* re-generated the documentation.
svn path=/trunk/; revision=1413
* configure python/generator.py python/libxsl.py
python/libxslt-python-api.xml python/libxslt.c
python/tests/2stage.py python/tests/loader.py: applied patch from
Nic James Ferrier to make stylesheets comparable and to add
transformContext handling
Daniel
* configure.in: convenience change
* python/libxsl.py python/libxslt-python-api.xml python/libxslt.c:
try to avoid calling libxml2 cleanup function directly but go
though the python wrapper of libxml2 for memory debug accounting.
Daniel
* libxslt/xsltconfig.h.in, libexstl/exsltconfig.h.in:
changed macro ATTRIBUTE_UNUSED for gcc so that, if undefined,
it's defined as __attribute__((unused))
* python/libxslt.c: fixed ATTRIBUTE_UNUSED to appear after
variable declaration
* libxslt/preproc.c: minor change to get rid of unused var/code
* libxslt/numbers.c, libxslt/extensions.c, libexslt/date.c,
python/libxslt.c, xsltproc/xsltproc.c: minor cleanup for
various compilation warnings (AIX as well as gcc)
* python/generator.py python/libxslt-python-api.xml python/libxslt.c
python/libxslt_wrap.h python/libxsltclass.txt: patch from
Sean Treadway, adding Python bindings for extension element and
some bindings cleanups.
* python/tests/Makefile.am python/tests/extelem.py: also add an
example/test.
Daniel
* configure.in python/Makefile.am python/libxslt.c libxslt/xsltutils.c
libxslt/trio.h libxslt/triodef.h: portability fixes from Albert Chin
* python/libxslt.py: avoid RTLD_GLOBAL detection warning too
Daniel
* libxslt/extensions.c libxslt/transform.c: fixing bug #101602
for extension modules init and shutdown callbacks, check that
they are now called when needed.
* python/libxsl.py python/libxslt-python-api.xml python/libxslt.c:
started adding the extension module support at the Python level.
Still a strange bug to hunt down left.
Daniel
* python/libxslt.c: make sure to register EXSLT for the bindings
* python/tests/Makefile.am python/tests/exslt.py: add a specific test
* xsltproc/xsltproc.c: minor cleanup
Daniel
* python/libxslt-python-api.xml python/libxslt.c
python/libxsltclass.txt python/tests/basic.py: applied a patch
from Ralf Mattes providing style.saveResultToString()
Daniel
* python/libxslt-python-api.xml python/libxslt.c
python/libxsltclass.txt : tried to fix#79105 by providing a
specific error registering routine.
Daniel
* python/Makefile.am python/generator.py python/libxslt.c
python/types.c python/tests/Makefile.am: applied the same kind of
fixes to the Python Makefiels than to libxml2 ones. Updates
and cleanups too.
Daniel
* configure.in libxslt/xsltwin32config.h: preparing release
1.0.13
* doc/*: updated and rebuilt the docs
* python/libxslt.c: fixed a possible reentrancy problem
Daniel
* python/generator.py python/libxslt.c: changes for the 'usual'
setup.py to allow building a libxml2-python
module based on the same code. The initialization is however
different the 2 .so files fo libxml2 and libxslt are identical and
they entry point initialize both libraries. this is done to avoid
some possible nasty problem since the Python don't merge the maps
of all shared modules.
* python/libxsl.py: attempt to cope with the shared library loading
problem when both modules are not merged.
Daniel
* python/libxml.c : fixed a small warning.
* doc/libxslt-api.xml doc/libxslt-decl.txt doc/libxslt-refs.xml
python/libxsltclass.txt: rebuilt the APIs
Daniel
* configure.in libxslt.spec.in python/Makefile.am python/generator.py
python/libxsl.py python/libxslt.c python/tests/Makefile.am:
Fixed the python Makefiles, corrected a bug showing up on ia64,
changed the name of the python internal module too
Daniel
* doc/libxslt-api.xml doc/libxslt-decl.txt doc/libxslt-refs.xml
doc/parsedecl.py: fixup the script and rebuid the API
* libxslt/extensions.h: cleanup
* python/generator.py python/libxslt-python-api.xml python/libxslt.c
python/libxsltclass.txt: provided accessors for a lot of the
tructures involved in the transformation. Stylesheet and
transformation python object don't free automatically the
encapsulated object when deallocated.
* python/tests/Makefile.am python/tests/basic.py
python/tests/extfunc.py python/tests/pyxsltproc.py:
updated the examples
Daniel
* xsltproc/xsltproc.c: small fix
* Makefile.am: cleanup
* python/tests/Makefile.am: avoid a problem with $(TESTS)
* python/generator.py python/libxml_wrap.h python/libxsl.py
python/libxslt.c python/libxsltclass.txt: augmented the
wrappers
* python/tests/pyxsltproc.py: rewrote xsltproc on top of the
libxslt-python API to get an estimate of what is missing
Daniel
* python/libxsl.py python/libxslt-python-api.xml python/libxslt.c
python/libxsltclass.txt: added libxslt_xsltCleanup() added parameters
to libxslt_xsltApplyStylesheet() removed the memleaks left and
fixed an import order.
* python/tests/basic.py python/tests/extfunc.py: updated the tests
Daniel
* python/libxlst.c python/libxslt-python-api.xml
python/libxsltclass.txt: plugged the extension of the engine
with python defined functions
* python/tests/Makefile.am python/tests/extfunc.py: added a
basic test, still a memleak, cleanup function needed.
Daniel
* configure.in python/Makefile.am: attempst to tweak to get
full memory debug...
* python/generator.py python/libxsl.py python/libxslt-python-api.xml
python/libxslt.c python/libxslt_wrap.h python/libxsltclass.txt:
the basic API starts to work
* python/tests/test.*: first basic test
* libxslt/xsltutils.c: fixed a comment
Daniel
* libxslt/pattern.[ch] doc/libxslt-api.xml doc/libxslt-refs.xml:
reactivated xsltMatchPattern() since this is really something
one may want to have access to in an extension function.
* Makefile.am configure.in python/Makefile.am python/generator.py
python/libxml_wrap.h python/libxsl.py python/libxslt-python-api.xml
python/libxslt.c python/libxslt_wrap.h python/libxsltclass.txt
python/types.c: started working on the python bindings, borrowed
most of the work done for libxml2, most of the generator code
is similar. Commit at the point where this compiles cleanly and
"import libxslt" doesn't yield any missing entry point.
Daniel