diff --git a/ChangeLog b/ChangeLog index 357379a9..9881051b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Sep 20 22:01:47 CEST 2004 Daniel Veillard + + * xmllint.c: added --timing --copy timing for the copy + * vms/build_libxml.com: applied patch from Craig Berry + to build with recent releases + Fri Sep 17 21:25:33 PDT 2004 William Brack * nanohttp.c, include/libxml/nanohttp.h: added the routine diff --git a/vms/build_libxml.com b/vms/build_libxml.com index 323c36fe..ed5107b0 100755 --- a/vms/build_libxml.com +++ b/vms/build_libxml.com @@ -42,14 +42,14 @@ $!- list of sources to be built into the LIBXML library. Compare this list $! to the definition of "libxml2_la_SOURCES" in the file MAKEFILE.IN. $! Currently this definition includes the list WITH_TRIO_SOURCES_TRUE $! -$ sources = "SAX.c entities.c encoding.c error.c parserInternals.c parser.c" -$ sources = sources + " tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c valid.c" -$ sources = sources + " xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c " -$ sources = sources + " xpointer.c xinclude.c nanohttp.c nanoftp.c " -$ sources = sources + " DOCBparser.c catalog.c globals.c threads.c c14n.c " -$ sources = sources + " xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c " +$ sources = "SAX.c entities.c encoding.c error.c parserInternals.c" +$ sources = sources + " parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c" +$ sources = sources + " valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c" +$ sources = sources + " xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c" +$ sources = sources + " catalog.c globals.c threads.c c14n.c xmlstring.c" +$ sources = sources + " xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c" $ sources = sources + " triostr.c trio.c xmlreader.c relaxng.c dict.c SAX2.c" -$ sources = sources + " legacy.c xmldwalk.c chvalid.c" +$ sources = sources + " xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c" $! $!- list of main modules to compile and link. Compare this list to the $! definition of bin_PROGRAMS in MAKEFILE.IN diff --git a/xmllint.c b/xmllint.c index a72fcca2..9b4d6953 100644 --- a/xmllint.c +++ b/xmllint.c @@ -1236,8 +1236,20 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) { */ if (copy) { tmp = doc; + if (timing) { + startTimer(); + } doc = xmlCopyDoc(doc, 1); + if (timing) { + endTimer("Copying"); + } + if (timing) { + startTimer(); + } xmlFreeDoc(tmp); + if (timing) { + endTimer("Freeing original"); + } } #endif /* LIBXML_TREE_ENABLED */