Log

Author Commit Date CI Message
Daniel Veillard 52dcab39 2001-10-30T12:51:17 preparing 2.4.7 switched to the latest xmllint manual page from John * configure.in: preparing 2.4.7 * Makefile.am doc/Makefile.am: switched to the latest xmllint manual page from John * doc/*: updated the doc and rebuilt the generated pages Daniel
Daniel Veillard a9e65e8b 2001-10-30T10:32:36 closing bug #62711, the library should never close stdin or stdout. Daniel * xmlIO.c: closing bug #62711, the library should never close stdin or stdout. Daniel
Daniel Veillard 4def3bd9 2001-10-30T09:47:47 second pass at fixing #63336, using Joel Young final patch. looks okay. * uri.c: second pass at fixing #63336, using Joel Young final patch. looks okay. Daniel
Daniel Veillard bb6808ea 2001-10-29T23:59:27 trying to clear #63336 allowing the escaping routine to parse unconformant * uri.c include/libxml/uri.h: trying to clear #63336 allowing the escaping routine to parse unconformant URI-References. Daniel
Daniel Veillard acf7ff0a 2001-10-29T20:21:47 a few VMS updates from John A Fotheringham added * vms/readme.vms vms/build_libxml.com nanoftp.c include/libxml/xmlversion.h.in: a few VMS updates from John A Fotheringham * include/libxml/xmlIO.h xmlIO.c: added xmlCleanupInputCallbacks() and xmlCleanupOutputCallbacks() for the Perl binding people. Daniel
Daniel Veillard 635ef72a 2001-10-29T11:48:19 apply fixes to close #63271 and avoid segfaults when the error routine * parser.c globals.c DOCBparser.c HTMLparser.c error.c: apply fixes to close #63271 and avoid segfaults when the error routine gets callbed before xmlInitParser() get called. * nanoftp.c error.c: Applied patches from Justin Fletcher correcting some xmlGenericError misuses. Daniel
Daniel Veillard 51095317 2001-10-28T18:51:57 fixing a broken link, Daniel
MDT 2001 John Fleck fd32de62 2001-10-27T20:14:01 *doc/xmllint.xml, doc/xmllint.1 New and improved man page for xmllint - Sat Oct 27 14:04:45 MDT 2001 John Fleck <jfleck@inkstain.net> *doc/xmllint.xml, doc/xmllint.1 New and improved man page for xmllint - .xml is the original, .1 is the generated man page
Daniel Veillard c6271d20 2001-10-27T07:50:58 Updated the download part, a couple of fixups from Gary, Daniel
Daniel Veillard 9c466827 2001-10-25T12:03:39 More cleanup, fixed the front page, looks good ! Daniel
Daniel Veillard b8cfbd12 2001-10-25T10:53:28 Finished reintegrating the docs and unifying the look, may still need a couple of pointers but looks fine now. valid.html si now merged in xmldtd.html. Overall cleanup, Daniel
Daniel Veillard 594cf0b2 2001-10-25T08:09:12 Updated the stylesheet and the website, Daniel
Daniel Veillard c948420a 2001-10-24T12:35:52 now autogenerate the web site from the main HTML document. Daniel * doc/site.xsl doc/*.html doc/Makefile.am: now autogenerate the web site from the main HTML document. Daniel
Daniel Veillard 585b4ea7 2001-10-24T07:26:23 Added a bullet about xmlDetectCharEncoding() extra arg, Daniel
Daniel Veillard 5151c06f 2001-10-23T13:10:19 fixed an erroneous validation bug when PE refs occurs in external parsed * parser.c: fixed an erroneous validation bug when PE refs occurs in external parsed entities referenced from the internals subset * test/valid/index.xml test/valid/dtds/nitf-2-5.dtd test/valid/dtds/NewsMLv1.0.dtd result/valid/index.xml*: added the associated testcase, it's a nice one. * HTMLparser.c: generate the DTD node as HTML still ... * HTMLtree.c: fixed errors in Set/GetMetaEncoding Daniel
Daniel Veillard b6b0fd89 2001-10-22T12:31:11 Fixed a bug when creating a new HTML document, doc->children was set to NULL with a DTD child Daniel
Daniel Veillard 89cad536 2001-10-22T09:46:13 added entities testing to the Thread test make the test reasonable fix the * test/threads/*: added entities testing to the Thread test * testThreads.c: make the test reasonable * DOCBparser.c: fix the DTD public and system ID * xmllint.c: added --sgml for SGML DocBook importing * Makefile.am: added Docbtests target Daniel
Daniel Veillard 0a702dca 2001-10-19T14:50:57 Added link to Solaris binaries provided by Gary Pennington Daniel
Daniel Veillard 9ae1eba9 2001-10-19T09:48:35 use only "anonymous@" string for anonymous passwds removed bogus include * nanoftp.c: use only "anonymous@" string for anonymous passwds * testThreads.c: removed bogus include Daniel
Daniel Veillard ce2c2f09 2001-10-18T14:57:24 fixed a very serious (looping) validation bug Daniel * parser.c valid.c result/valid/rss.xml result/valid/rss.xml.err: fixed a very serious (looping) validation bug Daniel
Daniel Veillard 3c01b1d8 2001-10-17T15:58:35 - include/libxml/globals.h include/libxml/threads.h threads.c testThreads.c: far more testing, cleaning up bugs - *.c : make sure globals.h is always included. Daniel
Daniel Veillard 7cc95c0b 2001-10-17T15:45:12 try to get rid of parser loops for good. Daniel * HTMLparser.c: try to get rid of parser loops for good. Daniel
Daniel Veillard ab7488ef 2001-10-17T11:30:37 fixed some bugs in CFLAGS passing. added a specific threaded test case * configure.in: fixed some bugs in CFLAGS passing. * test/threads Makefile.am testThreads.c: added a specific threaded test case (really nasty, guaranteed). Daniel
Daniel Veillard 85c11fa2 2001-10-16T21:03:08 serious cleanup on the management of the XML catalog tree, more tests * catalog.c: serious cleanup on the management of the XML catalog tree, more tests done, especially with the catalog PI. Daniel
Daniel Veillard 364789a6 2001-10-16T12:45:00 avoid a problem in catalog cleanup on SMP if catalogs were not * catalog.c: avoid a problem in catalog cleanup on SMP if catalogs were not initialized. Daniel
Daniel Veillard 8146394d 2001-10-16T12:34:39 trying to cleanup the not thread safe parts of the library. Daniel * catalog.c xpath.c: trying to cleanup the not thread safe parts of the library. Daniel
Daniel Veillard 64a411cc 2001-10-15T12:32:07 make the allocation be per-thread a configure option fixed compilation * include/libxml/globals.h configure.in global.data: make the allocation be per-thread a configure option * encoding.c include/libxml/parser.h: fixed compilation errors Daniel
Daniel Veillard 5ee57fc9 2001-10-15T10:46:16 Norm reported that a few lines added were breaking libxslt compile, * include/libxml/parser.h: Norm reported that a few lines added were breaking libxslt compile, removed them for now Daniel
Daniel Veillard 6f350291 2001-10-14T09:56:15 debugged and fixed initialization problems which were giving troubles on * parser.c parserInternals.c threads.c: debugged and fixed initialization problems which were giving troubles on SMP boxes. Daniel
Daniel Veillard 6661ffa5 2001-10-13T14:18:17 missing globals.h Daniel * include/libxml/Makefile.am: missing globals.h Daniel
Daniel Veillard e7090619 2001-10-13T12:18:28 added a couple of standard includes. Daniel * globals.c: added a couple of standard includes. Daniel
Jaka Mocnik 77d19aea 2001-10-13T12:06:09 #include stdlib.h and string.h in order to have protoypes of memory and 2001-10-13 Jaka Mocnik <jaka@gnu.org> * globals.c: #include stdlib.h and string.h in order to have protoypes of memory and str*() routines.
Daniel Veillard d0463560 2001-10-13T09:15:48 Applied the last patches from Gary, cleanup, activated threading all user * include/libxml/SAX.h include/libxml/globals.h include/libxml/parser.h include/libxml/parserInternals.h include/libxml/tree.h include/libxml/xmlerror.h HTMLparser.c SAX.c error.c globals.c nanoftp.c nanohttp.c parser.c parserInternals.c testDocbook.c testHTML.c testSAX.c tree.c uri.c xlink.c xmlmemory.c: Applied the last patches from Gary, cleanup, activated threading all user accessible global variables are now handled in globals.[ch] Still a bit rought but make tests passes with either --with-threads defined at configure time or not. * Makefile.am example/Makefile.am: added globals.[ch] and threads linking options Daniel
Daniel Veillard b847864f 2001-10-12T17:29:10 started integrating the core of the thread support not activated yet but * Makefile.am include/libxml/Makefile.am include/libxml/globals.h globals.c include/libxml/threads.h threads.c build_glob.py global.data xmlcatalog.c acconfig.h configure.in: started integrating the core of the thread support not activated yet but half integrated. The code should still compile and work anyway. Daniel
Daniel Veillard b44025c7 2001-10-11T22:55:55 started integrating the non-controversial parts of Gary Pennington * HTMLtree.c catalog.c debugXML.c entities.c nanoftp.c parser.c valid.c xmlmemory.c xpath.c xpointer.c: started integrating the non-controversial parts of Gary Pennington multithread patches * catalog.c: corrected a small bug introduced Daniel
Daniel Veillard 75b96824 2001-10-11T18:59:45 very serious cleanup, isolating unportable code and as much as possible * catalog.c include/libxml/catalog.h: very serious cleanup, isolating unportable code and as much as possible the accesses to the global shared catalog. May need more testing ! Daniel
Daniel Veillard 78d12097 2001-10-11T09:12:24 integrating Keith Isdale patches for the XSLT debugger interfaces. Some * include/libxml/debugXML.h debugXML.c tree.c: integrating Keith Isdale patches for the XSLT debugger interfaces. Some cleanup Daniel
Daniel Veillard ff0b7311 2001-10-11T06:46:09 update from Tobias Peters for 2.4.5 generate line nubers in elements * win32/Makefile.mingw: update from Tobias Peters for 2.4.5 * DOCBparser.c: generate line nubers in elements Daniel
Daniel Veillard 60087f30 2001-10-10T09:45:09 preparing 2.4.6 release updated and rebuilt the docs fixed a number of * configure.in: preparing 2.4.6 release * doc/xml.html doc/html/*: updated and rebuilt the docs * include/libxml/*.h *.c: fixed a number of teh/the widht/width typos Daniel
MDT 2001 John Fleck 60416fa4 2001-10-09T02:41:50 doc/xmlcatalog_man.xml, xmlcatalog.1, xmlcatalog_man.html adding Mon Oct 8 20:38:27 MDT 2001 John Fleck <jfleck@inkstain.net> * doc/xmlcatalog_man.xml, xmlcatalog.1, xmlcatalog_man.html adding documentation for DV's supercatalog support
Daniel Veillard 82d75338 2001-10-08T15:01:59 adding SGML super catalog support adding one API and one flag --sgml to * include/libxml/catalog.h catalog.c xmlcatalog.c: adding SGML super catalog support adding one API and one flag --sgml to xmlcatalog Daniel
MDT 2001 John Fleck 0e229933 2001-10-07T22:46:00 //bugzilla.redhat.com/bugzilla/show_bug.cgi?id=54392 Sun Oct 7 16:43:57 MDT 2001 John Fleck <jfleck@inkstain.net> * doc/xmlcatalog_man.xml, xmlcatalog.1 One more crack at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=54392
Thomas Broyer 47334c09 2001-10-07T16:41:52 implemented xmlXPathObjectCopy for external objects added * xpath.c: implemented xmlXPathObjectCopy for external objects * include/libxml/xpathInternals.h: added xmlXPathStackIsExternal
MDT 2001 John Fleck ac941e32 2001-10-06T22:30:16 *doc/xmlcatalog_man.xml, xmlcatalog_man.html, xmlcatalog.1 finishing up Sat Oct 6 16:25:52 MDT 2001 John Fleck <jfleck@inkstain.net> *doc/xmlcatalog_man.xml, xmlcatalog_man.html, xmlcatalog.1 finishing up fix to https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=54392, making the xmlcatalog man page display more elegantly
Daniel Veillard 259ff746 2001-10-06T13:49:59 fixed configure.in, Daniel
Daniel Veillard 3fbe8e30 2001-10-06T13:30:33 closing bug #61832 removed a warning Daniel * configure.in: closing bug #61832 * HTMLparser.c: removed a warning Daniel
Daniel Veillard 6ab38386 2001-10-06T13:08:27 fixing #61673 part I, do not loose doc information when copying result * xpath.c: fixing #61673 part I, do not loose doc information when copying result value trees. Daniel
Daniel Veillard 556c668f 2001-10-06T09:59:51 trying to harden the XPath interpreter Daniel * xpath.c: trying to harden the XPath interpreter Daniel
MDT 2001 John Fleck 9f82dc65 2001-10-06T02:40:10 //bugzilla.redhat.com/bugzilla/show_bug.cgi?id=54392 Fri Oct 5 20:37:51 MDT 2001 John Fleck <jfleck@inkstain.net> * doc/xmlcatalog.1 updated using a new stylesheet to address, in part, https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=54392
William M. Brack 1633d187 2001-10-05T15:41:19 fixed HTMLparser.c
Daniel Veillard 20ee8c03 2001-10-05T09:18:14 applied fix from Mathias Hasselmann about a bug in URI parsing. fix bug * uri.c: applied fix from Mathias Hasselmann about a bug in URI parsing. * xpath.c: fix bug #61291 the default XML namespace node is missing from the namespace axis. * tree.c: refuse to create namespaces nodes with prefix "xml" Daniel
Daniel Veillard 651f9471 2001-10-04T14:51:06 ouch a non-defined namespace could lead to a crash, fixed #61215 Daniel * SAX.c: ouch a non-defined namespace could lead to a crash, fixed #61215 Daniel
Daniel Veillard 7dd0570d 2001-10-04T14:25:12 closed bug #61054 Daniel * parserInternals.c: closed bug #61054 Daniel
Daniel Veillard 5e6d10ae 2001-10-03T13:21:13 closing #60708 Daniel * include/libxml/Makefile.am: closing #60708 Daniel
Daniel Veillard a293c323 2001-10-02T13:54:14 adding xmlSAXParseFileWithData following Marco Stipek suggestion Daniel * win32/dsp/libxml2.def.src include/libxml/parser.h parser.c: adding xmlSAXParseFileWithData following Marco Stipek suggestion Daniel
Daniel Veillard f4309d74 2001-10-02T09:28:58 close bug #61550 when xml: wasn't considered a namespace daniel * valid.c: close bug #61550 when xml: wasn't considered a namespace daniel
Daniel Veillard f6ed8bc7 2001-10-02T09:22:47 Igor Zlatkovic patches fixed typos Daniel * win32/dsp/libxml2.def.src: Igor Zlatkovic patches * DOCBparser.c HTMLparser.c parser.c: fixed typos Daniel
Daniel Veillard 16756b62 2001-10-01T07:36:25 Justin Fletcher provided cleaup code in case HAVE_STAT is not defined Igor * catalog.c: Justin Fletcher provided cleaup code in case HAVE_STAT is not defined * include/win32config.h: Igor Zlatkovic suggested to have HAVE_STAT defined there Daniel
William M. Brack 5e1cac1a 2001-09-28T16:19:18 fixed catalog.c typo
Darin Adler 28faa56e 2001-09-26T05:27:39 Ignore xmlcatalog.
MDT 2001 John Fleck bbb9e437 2001-09-24T03:08:43 xmllint.c - fixing typo Sun Sep 23 21:02:39 MDT 2001 John Fleck <jfleck@inkstain.net> * xmllint.c - fixing typo
William M. Brack d28e48ab 2001-09-23T01:55:08 fix loop in HTMLparser.c
Daniel Veillard b1d62871 2001-09-21T09:47:08 applying patch from bug #60757 this should close it Daniel * parserInternals.c: applying patch from bug #60757 this should close it Daniel
Daniel Veillard c0631a60 2001-09-20T13:56:06 removed a couple of warning try to solve the linking problem on platforms * catalog.c xmlcatalog.c: removed a couple of warning * xpath.c: try to solve the linking problem on platforms needing trio to compile Daniel
Daniel Veillard eb48e1ca 2001-09-19T10:29:32 Make sure there is no misinterpretation possible of the HACKING rules, Daniel
Daniel Veillard 1a123613 2001-09-19T08:06:23 PISSED !!! DO NOT COMMIT DIRECTLY IF NOT ALLOWED PERSONALLY * Makefile.am libxml.spec.in: backing up non-documented changes commited without review or aproval by Jens Finke <jens@gnome.org> * HACKING: made 100% clear that no commit should be done directly Daniel
CEST 2001 Jens Finke de8c8af9 2001-09-19T07:20:40 Don't copy libxml.spec, it's already included due to listing in Wed Sep 19 08:42:20 CEST 2001 Jens Finke <jens@gnome.org> * Makfefile.am (dist-hook): Don't copy libxml.spec, it's already included due to listing in EXTRA_DIST. * libxml.spec.in: Updated.
Daniel Veillard f5b44e43 2001-09-17T17:19:54 Joe Orton provided a patch fixing a problem when iconv is specified to be * configure.in: Joe Orton provided a patch fixing a problem when iconv is specified to be in a non-standard directory but wasn't exported in xml2-config --cflags Daniel
Daniel Veillard dadd0873 2001-09-15T09:21:44 Added 1.8.16 and 2.4.5 releases, Daniel
Daniel Veillard 2fc2db73 2001-09-14T17:33:51 let's ship 2.4.5 before egtting too much troubles with 2.4.4 errors. * configure.in: let's ship 2.4.5 before egtting too much troubles with 2.4.4 errors. Daniel
Daniel Veillard 16698281 2001-09-14T10:29:27 do not output hexadecimal charrefs when serializing HTML since some * encoding.c entities.c: do not output hexadecimal charrefs when serializing HTML since some version of Netscape can't grok it, generate decimal ones. * result/HTML/doc3.htm: output changed due to previous test * parserInternals.c: repair xmlKeepBlanksDefault() broken in 2.4.4 Daniel
Daniel Veillard 008186fc 2001-09-13T14:24:44 Trying to minimize the support pain, Daniel
Daniel Veillard 98fed37a 2001-09-13T11:34:58 dohh generated the wrong include path :-( re-dohh forgot the new manpage * libxml-2.0.pc.in: dohh generated the wrong include path :-( * doc/Makefile.am libxml.spec.in: re-dohh forgot the new manpage :-( Daniel
Daniel Veillard baa8854e 2001-09-12T21:08:29 *** empty log message ***
Daniel Veillard 07cdb2a8 2001-09-12T20:19:58 moved includes to includedir/libxml2/libxml, updated the configuration * config.h.in configure.in libxml.spec.in include/libxml/Makefile.am libxml-2.0.pc.in: moved includes to includedir/libxml2/libxml, updated the configuration scripts systems accordingly
Daniel Veillard 04382ae3 2001-09-12T18:51:30 preparing for 2.4.4 updated and rebuilt the docs Daniel * configure.in: preparing for 2.4.4 * doc/xml.html doc/html/*: updated and rebuilt the docs Daniel
Daniel Veillard d63437e1 2001-09-12T15:00:27 tried to incorporate comments from bug #59220 Daniel * win32/dsp/libxml2.def.src: tried to incorporate comments from bug #59220 Daniel
Daniel Veillard 319a742a 2001-09-11T09:27:09 fixed bug #59981 related to handling of '&' in attributes when entities * parser.c result/noent/wml.xml: fixed bug #59981 related to handling of '&' in attributes when entities are substitued Daniel
Daniel Veillard 7cf5e448 2001-09-10T20:16:32 Tried to close bug #60131 Daniel * libxml.h include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h include/libxml/xmlwin32version.h.in: Tried to close bug #60131 Daniel
Daniel Veillard bce62332 2001-09-10T18:46:55 fixed a bug in the HTML parser introduced Sep 9 Daniel * SAX.c: fixed a bug in the HTML parser introduced Sep 9 Daniel
Daniel Veillard 143b04fb 2001-09-10T18:14:14 fixing bug #59946 on xmlns="" Daniel * SAX.c: fixing bug #59946 on xmlns="" Daniel
Daniel Veillard 7a51d6df 2001-09-10T14:40:43 fixing bug 59732, simple but allocates a new error code. Daniel * include/libxml/xmlerror.h SAX.c: fixing bug 59732, simple but allocates a new error code. Daniel
Daniel Veillard 05c13a20 2001-09-09T08:38:09 John Fleck fixed typos in the options output fix ignorable white space SAX * xmllint.c: John Fleck fixed typos in the options output * parser.c SAX.c: fix ignorable white space SAX selection * entities.c: Steve Underwood found the possibility of an ininite loop in case of error. Daniel
Daniel Veillard 5eb9dea8 2001-09-07T09:38:02 Need $(ICONV_LIBS) in libxml2_la_LIBADD Daniel * Makefile.am: Need $(ICONV_LIBS) in libxml2_la_LIBADD Daniel
Daniel Veillard a050d230 2001-09-05T15:51:05 warn if version is not 1.0 but it's not strictly speaking an error after * parser.c: warn if version is not 1.0 but it's not strictly speaking an error after analyzing the spec Daniel
MDT 2001 John Fleck 04685003 2001-09-03T16:11:47 *doc/catalog.html - add link to the html version of the man page, other Mon Sep 3 10:07:03 MDT 2001 John Fleck <jfleck@inkstain.net> *doc/catalog.html - add link to the html version of the man page, other linguistic cleanups
MDT 2001 John Fleck 5bd39dc7 2001-09-03T15:14:19 xmlcatalog.1, the man file, has not yet been included in the build. Mon Sep 3 09:10:08 MDT 2001 John Fleck <jfleck@inkstain.net> * doc/xmlcatalog_man.xml, xmlcatalog_man.html, xmlcatalog.1 adding documentation for xmlcatalog. Note: xmlcatalog.1, the man file, has not yet been included in the build.
Daniel Veillard 99784ff8 2001-09-01T16:20:28 removed a duplicate affectation Justin Fletcher Daniel * catalog.c: removed a duplicate affectation Justin Fletcher Daniel
Daniel Veillard 9e1c72da 2001-08-31T20:03:19 Armin Sander pointed a possible text coalescing problem, completed his * tree.c: Armin Sander pointed a possible text coalescing problem, completed his patch. Daniel
Bjorn Reese 0b2ae439 2001-08-31T16:31:57 const and volatile fix
Daniel Veillard 5d96fff0 2001-08-31T14:55:30 doc updates from Heiko Rupp 2 sanity checks from Heiko Rupp Daniel * libxml.4 parser.c: doc updates from Heiko Rupp * parserInternals.c: 2 sanity checks from Heiko Rupp Daniel
Daniel Veillard 2ebd7a7a 2001-08-28T21:07:03 added fix to the header Daniel * include/libxml/tree.h: added fix to the header Daniel
Daniel Veillard 3ec4c618 2001-08-28T20:39:49 applied patch from Armin Sander to make some pointers const in * tree.c: applied patch from Armin Sander to make some pointers const in xmlCopyNode() Daniel
Daniel Veillard b06c6145 2001-08-27T14:26:30 hum, restrict the integer usage gcc bug workaround to only gcc compilers * xpath.c: hum, restrict the integer usage gcc bug workaround to only gcc compilers so that other architecture don't get penalized by this limitation. * include/libxml/xpath.h: small typo fix from Heiko W. Rupp Daniel
Daniel Veillard 268fd1bc 2001-08-26T18:46:36 fixed a Windows compiler warning (Chris Poblete) fix for mod when dividend * valid.c: fixed a Windows compiler warning (Chris Poblete) * xpath.c: fix for mod when dividend is 0 (Chris Poblete) Daniel
Daniel Veillard 6c5f9d14 2001-08-25T13:33:14 added a --convert option to xmlcatalog to convert SGML ones to the XML * include/libxml/catalog.h catalog.c xmlcatalog.c: added a --convert option to xmlcatalog to convert SGML ones to the XML syntax. * xmllint.c: small cleanup for $SGML_CATALOG_FILES support. Daniel
Daniel Veillard 7e8a4f7a 2001-08-24T12:14:55 Added pointer to the DocBook catalog tarball, Daniel
Daniel Veillard 3993690e 2001-08-24T00:49:01 Added 2.4.3 Release, rebuilt the HTML pages, daniel
Daniel Veillard e8f37933 2001-08-23T23:21:04 Rebuilt the docs, preparing for release, Daniel
Daniel Veillard 6990bf3c 2001-08-23T21:17:48 started some serious testing and fixed a few bug and optmization needs. * catalog.c xmlIO.c: started some serious testing and fixed a few bug and optmization needs. Daniel