mirror of
https://github.com/GNOME/libxml2.git
synced 2025-02-23 18:29:14 +08:00
* AUTHORS: added William and Bjorn * include/libxml/*.h *.c README doc/*.html etc.: changed old email to daniel@veillard.com hopefully I won't have to do this again * doc/Makefile.am doc/html/*.html: cleanup makefile, checked that docs can be rebuilt cleanly now * include/libxml/xml*version.h*: removed include/libxml/xmlversion.h from CVs it's generated, added include/libxml/xmlwin32version.h also generated but which should change far less frequently. * catalog.c nanoftp.c: made sure to include libxml.h not libxml/xmlversion.h directly * include/libxml/*.h: include xmlwin32version.h instead of xmlversion.h when compiling on WIN32 and MSC Daniel
33 lines
569 B
C
33 lines
569 B
C
/*
|
|
* testCatalog.c : a small tester program for Catalog loading
|
|
*
|
|
* See Copyright for the status of this software.
|
|
*
|
|
* daniel@veillard.com
|
|
*/
|
|
|
|
#include "libxml.h"
|
|
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include <stdarg.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);
|
|
}
|