mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-23 15:01:05 +03:00
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
This commit is contained in:
@ -742,6 +742,7 @@ parseAndPrintFile(char *filename) {
|
||||
xmlFreeDoc(tmp);
|
||||
}
|
||||
|
||||
#ifdef LIBXML_OUTPUT_ENABLED
|
||||
/*
|
||||
* print it.
|
||||
*/
|
||||
@ -761,6 +762,7 @@ parseAndPrintFile(char *filename) {
|
||||
htmlDocDump(stdout, doc);
|
||||
#endif
|
||||
}
|
||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||
|
||||
/*
|
||||
* free it.
|
||||
@ -839,7 +841,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
#else /* !LIBXML_HTML_ENABLED */
|
||||
#include <stdio.h>
|
||||
int main(int argc, char **argv) {
|
||||
int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
||||
printf("%s : HTML support not compiled in\n", argv[0]);
|
||||
return(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user