summaryrefslogtreecommitdiff
path: root/xmlcatalog.c
Commit message (Collapse)AuthorAgeFilesLines
* Stop calling xmlMemoryDumpNick Wellnhofer2023-04-301-1/+0
| | | | | | This was used to check for memory leaks but could potentially create a .memdump file. These days, there are better ways to check for memory leaks.
* catalog: Fix memory leaksNick Wellnhofer2023-02-211-0/+3
| | | | Fixes #377.
* Respect `--sysconfdir` in source filesDavid Seifert2022-03-301-1/+1
| | | | | | | | * Prefix installations need to point to a non-root `etc` - Gentoo Prefix has been patching this for over 10 years: https://bugs.gentoo.org/317891 - MacPorts has to manually replace paths after patching: https://github.com/macports/macports-ports/blob/cc3bb736e906abe73b014da02a89ae2b70ef6295/textproc/libxml2/Portfile#L46
* Don't check for standard C89 headersNick Wellnhofer2022-03-021-3/+0
| | | | | | | | | | | | | | | | | | | | Don't check for - ctype.h - errno.h - float.h - limits.h - math.h - signal.h - stdarg.h - stdlib.h - string.h - time.h Stop including non-standard headers - malloc.h - strings.h
* Remove duplicated code in xmlcatalogDavid King2022-01-161-25/+10
| | | | | | Found by Coverity. https://bugzilla.redhat.com/show_bug.cgi?id=1938806
* Fix typosNick Wellnhofer2020-03-081-1/+1
| | | | Resolves #133.
* xmlcatalog: restore ability to query system catalog easilyJan Pokorný2017-10-211-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I've noticed that easy way of locating a DocBook XSLT in a configure script of another project doesn't work anymore. It is using something like: xmlcatalog "" ${DOCBOOK_XSL_URI}/${DOCBOOK_XSL_PATH}. The script is then forced to a plain, suboptimal search using find utility. Indeed, I retrospectively realize that the check was working just by mere accident given that the window this presumably side-effect was applicable had not lasted long, some 8 months between 054c716ea1bf001544127a4ab4f4346d1b9947e7 introducing xmlInitializeCatalog in the LIBXML_TEST_VERSION-rooted call chain, and f65128f38289d77ff322d63aef2858cc0a819c34 reverting that again. So while one can state /etc/xml/catalog constant explicitly, in some use cases (such as the mentioned one -- that's why I wanted to omit stating the full path in the first place), this is rather an implementation detail, perhaps subject to change from that POV. Therefore I propose to restore that behaviour in the targeted manner without global disruptions this time around. As a side-effect, this fixes indenting of the affected part.
* xmlcatalog: flush stdout before interactive shell input.Patrick Monnerat2016-05-011-0/+1
|
* xmlcatalog: Fix a memory leak on quitPhilip Withnall2014-07-261-5/+6
| | | | | | Coverity issue: #60442 https://bugzilla.gnome.org/show_bug.cgi?id=731990
* Big space and tab cleanupDaniel Veillard2012-09-111-12/+12
| | | | Remove all space before tabs and space and tabs at end of lines.
* Fix a bunch of scan 'dead increments' and cleanupDaniel Veillard2009-09-051-3/+0
| | | | | | | | * HTMLparser.c c14n.c debugXML.c entities.c nanohttp.c parser.c testC14N.c uri.c xmlcatalog.c xmllint.c xmlregexp.c xpath.c: fix unused variables, or unneeded increments as well as a couple of space issues * runtest.c: check for NULL before calling unlink()
* end of first pass on coverity reports. DanielDaniel Veillard2006-03-101-1/+4
| | | | | | | * runtest.c schematron.c testAutomata.c tree.c valid.c xinclude.c xmlcatalog.c xmlreader.c xmlregexp.c xpath.c: end of first pass on coverity reports. Daniel
* added code to handle <group>, including dumping to output (bug 151924).William M. Brack2004-10-061-2/+4
| | | | | | | * catalog.c: added code to handle <group>, including dumping to output (bug 151924). * xmlcatalog.c, xmlstring.c, parser.c: minor compiler warning cleanup (no change to logic)
* Dodji pointed out a bug in xmlGetNodePath() applied patch from Albert ChinDaniel Veillard2004-08-141-19/+37
| | | | | | | | | | | | | | | * tree.c: Dodji pointed out a bug in xmlGetNodePath() * xmlcatalog.c: applied patch from Albert Chin to add a --no-super-update option to xmlcatalog see #145461 and another patch also from Albert Chin to not crash on -sgml --del without args see #145462 * Makefile.am: applied another patch from Albert Chin to fix a problem with diff on Solaris #145511 * xmlstring.c: fix xmlCheckUTF8() according to the suggestion in bug #148115 * python/libxml.py: apply fix from Marc-Antoine Parent about the errors in libxml(2).py on the node wrapper #135547 Daniel
* allow fallback to URI lookup when SYSTEM fails, should close #134092Daniel Veillard2004-03-041-1/+8
| | | | | | * xmlcatalog.c: allow fallback to URI lookup when SYSTEM fails, should close #134092 Daniel
* applied patch from Stefan Kost DanielDaniel Veillard2003-12-121-2/+2
| | | | | * xmlcatalog.c: applied patch from Stefan Kost Daniel
* Okay this is scary but it is just adding a configure option to disableDaniel Veillard2003-09-291-3/+3
| | | | | | | | | | | | | | | | | | * HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h include/libxml/catalog.h include/libxml/debugXML.h include/libxml/entities.h include/libxml/nanohttp.h include/libxml/relaxng.h include/libxml/tree.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlschemas.h include/libxml/xmlversion.h.in include/libxml/xpathInternals.h python/libxml.c: Okay this is scary but it is just adding a configure option to disable output, this touches most of the files. Daniel
* cleanup, creating a new legacy.c module, made sure make tests ran inDaniel Veillard2003-09-281-1/+1
| | | | | | | | | | | | | * Makefile.am: cleanup, creating a new legacy.c module, made sure make tests ran in reduced conditions * SAX.c SAX2.c configure.in entities.c globals.c parser.c parserInternals.c tree.c valid.c xlink.c xmlIO.c xmlcatalog.c xmlmemory.c xpath.c xmlmemory.c include/libxml/xmlversion.h.in: increased the modularization, allow to configure out validation code and legacy code, added a configuration option --with-minimum compiling only the mandatory code which then shrink to 200KB. Daniel
* small changes to syntax to get rid of compiler warnings. No changes toWilliam M. Brack2003-08-051-5/+5
| | | | | | | | * error.c HTMLparser.c testC14N.c testHTML.c testURI.c xmlcatalog.c xmlmemory.c xmlreader.c xmlschemastypes.c python/libxml.c include/libxml/xmlmemory.h: small changes to syntax to get rid of compiler warnings. No changes to logic.
* applied patch for FreeBSD by Julio Merino, closing #104475 DanielDaniel Veillard2003-01-261-0/+2
| | | | | | * xmlcatalog.c xmllint.c: applied patch for FreeBSD by Julio Merino, closing #104475 Daniel
* tried to fix some of the problem with --sgml DanielDaniel Veillard2002-10-221-6/+10
| | | | | * xmlcatalog.c: tried to fix some of the problem with --sgml Daniel
* applied 2 fixups from Igor DanielDaniel Veillard2002-03-211-1/+0
| | | | | | * xmlcatalog.c include/libxml/xmlversion.h.in: applied 2 fixups from Igor Daniel
* preparing 2.4.18 updated and rebuilt the web site implement the newLIBXML_2_4_18Daniel Veillard2002-03-181-0/+1
| | | | | | | | | | | | | * configure.in: preparing 2.4.18 * doc/*: updated and rebuilt the web site * *.c libxml.h: implement the new IN_LIBXML scheme discussed with the Windows and Cygwin maintainers. * parser.c: humm, changed the way the SAX parser work when xmlSubstituteEntitiesDefault(1) is set, it will then do the entity registration and loading by itself in case the user provided SAX getEntity() returns NULL. * testSAX.c: added --noent to test the behaviour. Daniel
* Fixed bug #68830, xmlcatalog now provides return codes in case of errorsDaniel Veillard2002-01-201-6/+23
| | | | | | * doc/xmlcatalog_man.xml xmlcatalog.c: Fixed bug #68830, xmlcatalog now provides return codes in case of errors Daniel
* removed the last occurences of strdup usage in the code DanielDaniel Veillard2002-01-181-2/+8
| | | | | | * globals.c xmlIO.c xmlcatalog.c: removed the last occurences of strdup usage in the code Daniel
* applied 42 documentation patches from Charlie Bozeman. Regenerated theDaniel Veillard2001-12-311-1/+1
| | | | | | * *.c include/libxml/*.h doc/html/*: applied 42 documentation patches from Charlie Bozeman. Regenerated the HTML docs. Daniel
* avoid unlink() and use remove() instead. DanielDaniel Veillard2001-11-041-5/+2
| | | | | * xmlcatalog.c: avoid unlink() and use remove() instead. Daniel
* Fixed SGML catalogs breakage of 2.4.7, added a couple of really neededDaniel Veillard2001-11-041-30/+114
| | | | | | | | | | * include/libxml/catalog.h catalog.c: Fixed SGML catalogs breakage of 2.4.7, added a couple of really needed APIs like xmlCatalogIsEmpty() and xmlNewCatalog() * xmlcatalog.c: updated --sgml --noout to be a suitable replacement for install-catalog * configure.in: preparing 2.4.8 Daniel
* - include/libxml/globals.h include/libxml/threads.h threads.cDaniel Veillard2001-10-171-0/+1
| | | | | | testThreads.c: far more testing, cleaning up bugs - *.c : make sure globals.h is always included. Daniel
* started integrating the core of the thread support not activated yet butDaniel Veillard2001-10-121-0/+2
| | | | | | | | | | * 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
* adding SGML super catalog support adding one API and one flag --sgml toDaniel Veillard2001-10-081-24/+53
| | | | | | | * include/libxml/catalog.h catalog.c xmlcatalog.c: adding SGML super catalog support adding one API and one flag --sgml to xmlcatalog Daniel
* removed a couple of warning try to solve the linking problem on platformsDaniel Veillard2001-09-201-0/+4
| | | | | | | * catalog.c xmlcatalog.c: removed a couple of warning * xpath.c: try to solve the linking problem on platforms needing trio to compile Daniel
* added a --convert option to xmlcatalog to convert SGML ones to the XMLDaniel Veillard2001-08-251-6/+12
| | | | | | | | * 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
* added documentation about Catalog support, misses an API descriptionDaniel Veillard2001-08-221-12/+25
| | | | | | | * doc/catalog.html doc/xml.html: added documentation about Catalog support, misses an API description * doc/html/*: reextracted the API pages Daniel
* starts to look okay, really plugged the new framework, cleaned a lot ofDaniel Veillard2001-08-221-17/+54
| | | | | | | | | | | * catalog.c parser.c xmlIO.c xmlcatalog.c xmllint.c include/libxml/catalog.h: starts to look okay, really plugged the new framework, cleaned a lot of stuff, added some APIs, except the PI's support missing this should be mostly complete * result/catalogs/* test/catalogs/*: added new test, enriched the existing one with URN ID tests Daniel
* more work on the XML catalog support. small cleanup seems using list as aDaniel Veillard2001-08-211-14/+176
| | | | | | | | | | | | * Makefile.am catalog.c xmlcatalog.c include/libxml/catalog.h: more work on the XML catalog support. * parser.c include/libxml/parser.h: small cleanup seems using list as a public parameter name can give portability troubles * trionan.c trionan.h xpath.c include/libxml/trionan.h include/libxml/xpath.h include/libxml/Makefile.am: removed trionan from the libxml API, added xmlXPathIsInf and xmlXPathIsNaN wrappers Daniel
* Re-worked NaN and Inf supportBjorn Reese2001-08-211-0/+7
|
* renaming testCatalog as xmlcatalog, making it an installed app adding aDaniel Veillard2001-08-201-0/+216
* Makefile.am xmlcatalog.c libxml.spec.in: renaming testCatalog as xmlcatalog, making it an installed app adding a shell, and preparing it to be a /etc/xml/catalog management tool, though not ready yet * catalog.c include/libxml/catalog.h: adding support for XML Catalogs http://www.oasis-open.org/committees/entity/ not finished, there is some interesting tradeoffs and a few open questions left. Daniel