Commit 49138f19 authored by Daniel Veillard's avatar Daniel Veillard

some clarification in xmlDocDumpMemory() documentation fixed xmllint

* tree.c: some clarification in xmlDocDumpMemory() documentation
* xmllint.c: fixed xmllint --stream --timing to get timings back
Daniel
parent b3744004
Thu Feb 19 13:56:53 CET 2004 Daniel Veillard <daniel@veillard.com>
* tree.c: some clarification in xmlDocDumpMemory() documentation
* xmllint.c: fixed xmllint --stream --timing to get timings back
Wed Feb 18 15:20:42 CET 2004 Daniel Veillard <daniel@veillard.com>
* parser.c: fixed a problem in push mode when attribute contains
......
......@@ -8386,8 +8386,10 @@ xmlDocDumpFormatMemoryEnc(xmlDocPtr out_doc, xmlChar **doc_txt_ptr,
* @mem: OUT: the memory pointer
* @size: OUT: the memory length
*
* Dump an XML document in memory and return the #xmlChar * and it's size.
* It's up to the caller to free the memory with xmlFree().
* Dump an XML document in memory and return the #xmlChar * and it's size
* in bytes. It's up to the caller to free the memory with xmlFree().
* The resulting byte array is zero terminated, though the last 0 is not
* included in the returned size.
*/
void
xmlDocDumpMemory(xmlDocPtr cur, xmlChar**mem, int *size) {
......
......@@ -705,14 +705,19 @@ static void streamFile(char *filename) {
if ((timing) && (!repeat)) {
#ifdef LIBXML_SCHEMAS_ENABLED
if ((valid) || (relaxng != NULL))
endTimer("Parsing and validating");
else
endTimer("Parsing");
#else
#ifdef LIBXML_VALID_ENABLED
if (valid)
endTimer("Parsing and validating");
else
endTimer("Parsing");
#else
endTimer("Parsing");
#endif /* LIBXML_VALID_ENABLED */
#endif
endTimer("Parsing");
}
#ifdef LIBXML_VALID_ENABLED
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment