1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-27 04:55:04 +03:00
libxml2/testCatalog.c
Daniel Veillard 017b108fcf - Makefile.am: cleanup when --without-debug is specified
- xinclude.c xpath.c xpathInternals.h xpointer.c: cleanup
  w.r.t. --without-debug and other include points
- catalog.h testCatalog.c: a bit of cleanup and prepare for XML
  Catalogs
- configure.in entities.h tree.h HTMLparser.c: removed
  --without-corba, made the _private field mandatory
Daniel
2001-06-21 11:20:21 +00:00

34 lines
603 B
C

/*
* testCatalog.c : a small tester program for Catalog loading
*
* See Copyright for the status of this software.
*
* Daniel.Veillard@w3.org
*/
#include "libxml.h"
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
#include <libxml/uri.h>
#include <libxml/catalog.h>
int main(int argc, char **argv) {
#ifdef LIBXML_CATALOG_ENABLED
int i;
for (i = 1; i < argc; i++)
xmlLoadCatalog(argv[i]);
xmlCatalogDump(stdout);
xmlCatalogCleanup();
xmlCleanupParser();
xmlMemoryDump();
#endif
return(0);
}