add a C program to run the W3C test suite, work in progress add a new

* runxmlconf.c Makefile.am: add a C program to run the W3C test
  suite, work in progress
* xmllint.c: add a new option --oldxml10 to use the old parser
* parser.c: fix the XML_PARSE_OLD10 processing of the new option
  and a bug in version parsing
Daniel

svn path=/trunk/; revision=3757
diff --git a/parser.c b/parser.c
index 0fa7a65..4966560 100644
--- a/parser.c
+++ b/parser.c
@@ -9168,14 +9168,14 @@
     }
     cur = CUR;
     if (!((cur >= '0') && (cur <= '9'))) {
-	free(buf);
+	xmlFree(buf);
 	return(NULL);
     }
     buf[len++] = cur;
     NEXT;
     cur=CUR;
     if (cur != '.') {
-	free(buf);
+	xmlFree(buf);
 	return(NULL);
     }
     buf[len++] = cur;
@@ -13753,6 +13753,10 @@
 	ctxt->options |= XML_PARSE_COMPACT;
         options -= XML_PARSE_COMPACT;
     }
+    if (options & XML_PARSE_OLD10) {
+	ctxt->options |= XML_PARSE_OLD10;
+        options -= XML_PARSE_OLD10;
+    }
     ctxt->linenumbers = 1;
     return (options);
 }