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
diff --git a/ChangeLog b/ChangeLog
index f9482f0..fff6c0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Apr 22 01:06:09 CEST 2003 Daniel Veillard <daniel@veillard.com>
+
+	* 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 <daniel@veillard.com>
 
 	* globals.c libxml.h parser.c parserInternals.c tree.c xmllint.c
diff --git a/TODO b/TODO
index 7021064..c87200a 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 @@
   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 @@
 - 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 @@
 EXTENSIONS:
 ===========
 
-- Fix output of <tst val="x&#xA;y"/>
-
 - Tools to produce man pages from the SGML docs.
 
 - Add Xpointer recognition/API
@@ -73,14 +68,7 @@
 
 - Implement XSchemas
   => Really need to be done <grin/>
-  - 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 @@
    - 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 <tst val="x&#xA;y"/>
 
-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 4bc07eb..92dab42 100644
--- a/configure.in
+++ b/configure.in
@@ -363,7 +363,7 @@
 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 e3b4446..8b574f2 100644
--- a/parserInternals.c
+++ b/parserInternals.c
@@ -2521,7 +2521,7 @@
 			(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,