From c4f65abe308836949b69bdbb093a452c0301ad0d Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 21 Apr 2003 23:07:45 +0000 Subject: [PATCH] updated a bit fixed the comment, threads now default to on fixed an * TODO: updated a bit * configure.in: fixed the comment, threads now default to on * parserInternals.c: fixed an erroneous xmlMallocAtomic() call Daniel --- ChangeLog | 6 ++++++ TODO | 43 +++++++++++++++++++++++++------------------ configure.in | 2 +- parserInternals.c | 2 +- 4 files changed, 33 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index f9482f03..fff6c0e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Apr 22 01:06:09 CEST 2003 Daniel Veillard + + * TODO: updated a bit + * configure.in: fixed the comment, threads now default to on + * parserInternals.c: fixed an erroneous xmlMallocAtomic() call + Mon Apr 21 23:33:38 CEST 2003 Daniel Veillard * globals.c libxml.h parser.c parserInternals.c tree.c xmllint.c diff --git a/TODO b/TODO index 70210643..c87200ad 100644 --- a/TODO +++ b/TODO @@ -2,7 +2,7 @@ TODO for the XML parser and stuff: ================================== - $Id$ + $Id$ this tend to be outdated :-\ ... @@ -21,9 +21,8 @@ TODO: to a reasonable level - Computation of base when HTTP redirect occurs, might affect HTTP interfaces. +- Computation of base in XInclude. Relativization of URIs. - listing all attributes in a node. -- Correct standalone checking/emitting (hard) - 2.9 Standalone Document Declaration - Better checking of external parsed entities TAG 1234 - Go through erratas and do the cleanup. http://www.w3.org/XML/xml-19980210-errata ... started ... @@ -34,8 +33,6 @@ TODO: - htmlParseDoc has parameter encoding which is not used. Function htmlCreateDocParserCtxt ignore it. - fix realloc() usage. -- compliance to XML-Namespace checking, see section 6 of - http://www.w3.org/TR/REC-xml-names/ - Stricten the UTF8 conformance (Martin Duerst): http://www.w3.org/2001/06/utf-8-test/. The bad files are in http://www.w3.org/2001/06/utf-8-wrong/. @@ -61,8 +58,6 @@ TODO: EXTENSIONS: =========== -- Fix output of - - Tools to produce man pages from the SGML docs. - Add Xpointer recognition/API @@ -73,14 +68,7 @@ EXTENSIONS: - Implement XSchemas => Really need to be done - - started - -- O2K parsing; - => this is a somewhat ugly mix of HTML and XML, adding a specific - routine in the comment parsing code of HTML and plug the XML - parsing one in-there should not be too hard. Key point is to get - XSL to transform all this to something decent ... - => forget about it ? + - datatype are complete, but structure support is very limited. - extend the shell with: - edit @@ -88,20 +76,39 @@ EXTENSIONS: - mv (yum, yum, but it's harder because directories are ordered in our case, mvup and mvdown would be required) + +Done: +===== + - Add HTML validation using the XHTML DTD - problem: do we want to keep and maintain the code for handling DTD/System ID cache directly in libxml ? + => not really done that way, but there are new APIs to check elements + or attributes. Otherwise XHTML validation directly ... + +- XML Schemas datatypes except Base64 and BinHex + +- Relax NG validation + +- XmlTextReader streaming API + validation - Add a DTD cache prefilled with xhtml DTDs and entities and a program to manage them -> like the /usr/bin/install-catalog from SGML right place seems $datadir/xmldtds Maybe this is better left to user apps + => use a catalog instead , and xhtml1-dtd package -- Add output to XHTML in case of HTML documents. +- Add output to XHTML + => XML serializer automatically recognize the DTd and apply the specific + rules. +- Fix output of -Done: -===== +- compliance to XML-Namespace checking, see section 6 of + http://www.w3.org/TR/REC-xml-names/ + +- Correct standalone checking/emitting (hard) + 2.9 Standalone Document Declaration - Implement OASIS XML Catalog support http://www.oasis-open.org/committees/entity/ diff --git a/configure.in b/configure.in index 4bc07ebf..92dab422 100644 --- a/configure.in +++ b/configure.in @@ -363,7 +363,7 @@ WITH_THREADS=0 THREAD_CFLAGS="" TEST_THREADS="" -AC_ARG_WITH(threads, [ --with-threads Add multithread support(off)]) +AC_ARG_WITH(threads, [ --with-threads Add multithread support(on)]) if test "$with_threads" = "no" ; then echo Disabling multithreaded support else diff --git a/parserInternals.c b/parserInternals.c index e3b4446d..8b574f25 100644 --- a/parserInternals.c +++ b/parserInternals.c @@ -2521,7 +2521,7 @@ xmlParserAddNodeInfo(xmlParserCtxtPtr ctxt, (2 * ctxt->node_seq.maximum)); if (ctxt->node_seq.buffer == NULL) - tmp_buffer = (xmlParserNodeInfo *) xmlMallocAtomic(byte_size); + tmp_buffer = (xmlParserNodeInfo *) xmlMalloc(byte_size); else tmp_buffer = (xmlParserNodeInfo *) xmlRealloc(ctxt->node_seq.buffer,