mirror of
https://github.com/GNOME/libxml2.git
synced 2025-02-23 18:29:14 +08:00
* encoding.c: (xmlIconvWrapper): Add cast to fix warning. * testCatalog.c: Add include of <libxml/parser.h>.
34 lines
596 B
C
34 lines
596 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>
|
|
#include <libxml/parser.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);
|
|
}
|