diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-09-29 13:20:24 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-09-29 13:20:24 +0000 |
commit | a9cce9cd0d7aff3ec318b5d8d376da131b6aaad4 (patch) | |
tree | ba5ba1b51fea7936c5ca1b90e23c2004df34c703 /python/libxml.c | |
parent | c064b476c8736c8c601e4d8fc480a5d998d9441f (diff) | |
download | libxml2-a9cce9cd0d7aff3ec318b5d8d376da131b6aaad4.tar.gz |
Okay this is scary but it is just adding a configure option to disable
* HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c
encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c
testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c
testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c
xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c
example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h
include/libxml/catalog.h include/libxml/debugXML.h
include/libxml/entities.h include/libxml/nanohttp.h
include/libxml/relaxng.h include/libxml/tree.h
include/libxml/valid.h include/libxml/xmlIO.h
include/libxml/xmlschemas.h include/libxml/xmlversion.h.in
include/libxml/xpathInternals.h python/libxml.c:
Okay this is scary but it is just adding a configure option
to disable output, this touches most of the files.
Daniel
Diffstat (limited to 'python/libxml.c')
-rw-r--r-- | python/libxml.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/python/libxml.c b/python/libxml.c index cd71ff17..6f3ca8b8 100644 --- a/python/libxml.c +++ b/python/libxml.c @@ -319,6 +319,7 @@ xmlPythonFileClose (void * context) { return(0); } +#ifdef LIBXML_OUTPUT_ENABLED /** * xmlOutputBufferCreatePythonFile: * @file: a PyFile_Type @@ -368,6 +369,7 @@ libxml_xmlCreateOutputBuffer(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) { py_retval = libxml_xmlOutputBufferPtrWrap(buffer); return(py_retval); } +#endif /* LIBXML_OUTPUT_ENABLED */ /** @@ -1056,7 +1058,10 @@ static xmlSAXHandler pythonSaxHandler = { NULL, /* TODO pythonGetParameterEntity, */ pythonCdataBlock, pythonExternalSubset, - 1 + 1, + NULL, /* TODO mograte to SAX2 */ + NULL, + NULL }; /************************************************************************ @@ -2299,6 +2304,7 @@ libxml_xmlNodeGetNs(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) return (py_retval); } +#ifdef LIBXML_OUTPUT_ENABLED /************************************************************************ * * * Serialization front-end * @@ -2524,6 +2530,7 @@ libxml_saveNodeTo(ATTRIBUTE_UNUSED PyObject * self, PyObject * args) } return (PyInt_FromLong((long) len)); } +#endif /* LIBXML_OUTPUT_ENABLED */ /************************************************************************ * * @@ -2773,9 +2780,11 @@ static PyMethodDef libxmlMethods[] = { {(char *) "type", libxml_type, METH_VARARGS, NULL}, {(char *) "doc", libxml_doc, METH_VARARGS, NULL}, {(char *) "xmlNewNode", libxml_xmlNewNode, METH_VARARGS, NULL}, +#ifdef LIBXML_OUTPUT_ENABLED {(char *) "serializeNode", libxml_serializeNode, METH_VARARGS, NULL}, {(char *) "saveNodeTo", libxml_saveNodeTo, METH_VARARGS, NULL}, {(char *) "outputBufferCreate", libxml_xmlCreateOutputBuffer, METH_VARARGS, NULL}, +#endif /* LIBXML_OUTPUT_ENABLED */ {(char *) "inputBufferCreate", libxml_xmlCreateInputBuffer, METH_VARARGS, NULL}, {(char *) "setEntityLoader", libxml_xmlSetEntityLoader, METH_VARARGS, NULL}, {(char *)"xmlRegisterErrorHandler", libxml_xmlRegisterErrorHandler, METH_VARARGS, NULL }, @@ -2807,7 +2816,9 @@ initlibxml2mod(void) return; /* XXX xmlInitParser does much more than this */ xmlInitGlobals(); +#ifdef LIBXML_OUTPUT_ENABLED xmlRegisterDefaultOutputCallbacks(); +#endif /* LIBXML_OUTPUT_ENABLED */ xmlRegisterDefaultInputCallbacks(); m = Py_InitModule((char *) "libxml2mod", libxmlMethods); initialized = 1; |